From patchwork Tue Feb 28 06:35:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andreas_F=C3=A4rber?= X-Patchwork-Id: 9594773 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id F0C7D60453 for ; Tue, 28 Feb 2017 06:45:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E012A27B13 for ; Tue, 28 Feb 2017 06:45:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D0C6628490; Tue, 28 Feb 2017 06:45:33 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 5894527B13 for ; Tue, 28 Feb 2017 06:45:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=6y5zL0/Arpll9iirnwGeNC/XA5SfJwJWrBUdziZWdxE=; b=aUdOub+5PPwcRB FPkJTbzqWAE4HGZGvp63RbecLuXTXnaAHrPJuVLnjNn7G02OvQ9r6Y9X1xNTy8J48JNZCYHbNYmUa grownwxyZXyQ19++N7zAma1IJAyTTKZI4Zk9jhEn527JeOAbC4jWWV/gUogDwfvqknbAC0WKet0uW t6fnaS49mmF4h0yCLyVI79b7ysytRxqk5bvKE3iMNA710hccwQrGpT7VZq90bv0BUjBT0gF4EMFce ppKxQtR0XA2f9Qj1dubJ4cL8MWn56a9iiyC/MvFt9P6u+Sy6qbFlY3JG9YEfdGSzugENIJ/55Tmjd HO9k3af9yJ21UAfAFkGQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cibXN-0006Tf-V6; Tue, 28 Feb 2017 06:45:29 +0000 Received: from mx2.suse.de ([195.135.220.15]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cibOr-00082k-8q for linux-arm-kernel@lists.infradead.org; Tue, 28 Feb 2017 06:36:49 +0000 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 5C87FADBE; Tue, 28 Feb 2017 06:35:53 +0000 (UTC) From: =?UTF-8?q?Andreas=20F=C3=A4rber?= To: arm@kernel.org Subject: [PATCH v3 06/25] ARM: Prepare Actions Semi S500 Date: Tue, 28 Feb 2017 07:35:16 +0100 Message-Id: <20170228063535.32069-7-afaerber@suse.de> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170228063535.32069-1-afaerber@suse.de> References: <20170228063535.32069-1-afaerber@suse.de> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170227_223641_979855_934CA52D X-CRM114-Status: GOOD ( 16.02 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: support@lemaker.org, linux-kernel@vger.kernel.org, Russell King , mp-cs@actions-semi.com, 96boards@ucrobotics.com, =?UTF-8?q?Andreas=20F=C3=A4rber?= , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add ARCH_ACTIONS and mach-actions/owl.c for "actions,s500". Signed-off-by: Andreas Färber --- v2 -> v3: * Selected AMBA, global timer, TWD drivers * Fixed copy&paste in machine definition (Alberto) v1 -> v2: * Renamed ARCH_OWL to ARCH_ACTION (Arnd) * Renamed mach-owl to mach-actions, leaving owl.c * Adopted "actions" vendor prefix * Selected new clocksource driver arch/arm/Kconfig | 2 ++ arch/arm/Makefile | 1 + arch/arm/mach-actions/Kconfig | 15 +++++++++++++++ arch/arm/mach-actions/Makefile | 1 + arch/arm/mach-actions/owl.c | 28 ++++++++++++++++++++++++++++ 5 files changed, 47 insertions(+) create mode 100644 arch/arm/mach-actions/Kconfig create mode 100644 arch/arm/mach-actions/Makefile create mode 100644 arch/arm/mach-actions/owl.c diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 0d4e71b..94fa3925 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -720,6 +720,8 @@ config ARCH_VIRT # source "arch/arm/mach-mvebu/Kconfig" +source "arch/arm/mach-actions/Kconfig" + source "arch/arm/mach-alpine/Kconfig" source "arch/arm/mach-artpec/Kconfig" diff --git a/arch/arm/Makefile b/arch/arm/Makefile index ab30cc6..d2ccf72 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile @@ -151,6 +151,7 @@ textofs-$(CONFIG_ARCH_AXXIA) := 0x00308000 # Machine directory name. This list is sorted alphanumerically # by CONFIG_* macro name. +machine-$(CONFIG_ARCH_ACTIONS) += actions machine-$(CONFIG_ARCH_ALPINE) += alpine machine-$(CONFIG_ARCH_ARTPEC) += artpec machine-$(CONFIG_ARCH_AT91) += at91 diff --git a/arch/arm/mach-actions/Kconfig b/arch/arm/mach-actions/Kconfig new file mode 100644 index 0000000..717adc1 --- /dev/null +++ b/arch/arm/mach-actions/Kconfig @@ -0,0 +1,15 @@ +menuconfig ARCH_ACTIONS + bool "Actions Semi SoCs" + depends on ARCH_MULTI_V7 + select ARM_AMBA + select ARM_GIC + select ARM_GLOBAL_TIMER + select CACHE_L2X0 + select CLKSRC_ARM_GLOBAL_TIMER_SCHED_CLOCK + select COMMON_CLK + select GENERIC_IRQ_CHIP + select HAVE_ARM_SCU if SMP + select HAVE_ARM_TWD if SMP + select OWL_TIMER + help + This enables support for the Actions Semiconductor S500 SoC family. diff --git a/arch/arm/mach-actions/Makefile b/arch/arm/mach-actions/Makefile new file mode 100644 index 0000000..524c381 --- /dev/null +++ b/arch/arm/mach-actions/Makefile @@ -0,0 +1 @@ +obj-$(CONFIG_ARCH_ACTIONS) += owl.o diff --git a/arch/arm/mach-actions/owl.c b/arch/arm/mach-actions/owl.c new file mode 100644 index 0000000..4ac4a86 --- /dev/null +++ b/arch/arm/mach-actions/owl.c @@ -0,0 +1,28 @@ +/* + * Copyright (C) 2017 Andreas Färber + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + */ + +#include +#include + +static const char * const owl_dt_compat[] = { + "actions,s500", + NULL +}; + +DT_MACHINE_START(OWL, "Actions Semi Owl platform") + .dt_compat = owl_dt_compat, + .l2c_aux_val = 0, + .l2c_aux_mask = ~0, +MACHINE_END