From patchwork Sun Nov 18 14:17:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mesih Kilinc X-Patchwork-Id: 10687913 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6057E109C for ; Sun, 18 Nov 2018 14:18:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 12D142990A for ; Sun, 18 Nov 2018 14:18:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 06B3C29925; Sun, 18 Nov 2018 14:18:37 +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=-3.6 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.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 9D76F2990A for ; Sun, 18 Nov 2018 14:18:36 +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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: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=ekQzQvNO6IoJ0SdiuTvM0dzeLi8K+YZMuI78/ebHo9I=; b=gnvXhJQAXvinWT7U9oomOhECwr u1TcqobWWXtpIMp2q+tksOGjmh9escXSgzpVO/5a+w68wD0N+XvY9H220fEbDBzcObp/QPGRN6yL3 hK4MFRcqNESV60gK1ZuVF4jqlBB9uJpCwYGRJ2VKtlLh8LlhGyCG6QXQW9Ff0uK3m18jy0hQDQXOK CNaLGWQahdYsw9q5/RCkqfQwi8BiMmWPpJgpJ5wySMGScIWsEsmVaQE72faoWPp/iowcaz50X9m7w tbj4GH7936LUAjlF8CdOMajaF3ho2sFR41LmgmOVIZ7g+xX+MuKFvxVZHqh2OJ4FFYoKctw0UfBR0 Ilttc/pQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gONuF-0007jN-0V; Sun, 18 Nov 2018 14:18:35 +0000 Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gONuA-0007WF-ON for linux-arm-kernel@lists.infradead.org; Sun, 18 Nov 2018 14:18:32 +0000 Received: by mail-wr1-x442.google.com with SMTP id u9-v6so29297838wrr.0 for ; Sun, 18 Nov 2018 06:18:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=3cTRTYQX1dq39tst1PgcbJbQuLmJE6rf6FzcT64LsY8=; b=AdlozcMztriRqCcXr2wC8A6d8B3pcSLWJquUK38SXn16JOCZu104KACuuzxrkqW+Q2 yK394JGpcxwkGvX36XAow7Ql6MlIhtKWg/VfY4xXJiQSWfzW+5NmGAfDOpakmG2DdQjv pBBGnnxW+oAyvqJF2fOo7sPEX6FY7MfPOZjHXZnpFs4/aP7czu8X939dBXaqXFakOyOp Ng5A54dAoHP4bT5Lze0tlVzQkYTO/JoKiH+lcj4hZ6qx9L0Rw7NXN/u2gQ0J+Ly/A9eU jqAWEXm+Shgq8d//Uaajw0nRIkHlQBpZgE7e/UoE2cMYIwsLcU8+nDeRcmilKbYN+zFP dNKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=3cTRTYQX1dq39tst1PgcbJbQuLmJE6rf6FzcT64LsY8=; b=gHgG4dy6NHJvxWhq5IZTt5LsL50zSrZ6VA8EhjenFOvlPLP1WoIg7lt88dQnbrFVSK vS56dMFcXR72J4ru37RCtPDUXTzZQHCaoFvcpjtzCG1BeyvfQT7uJM0K3NrQRyiPjmGP SF1Ngr4wQjSA24sGD3rmvHqWypYfLoCQswjmIMK9PreGtYWfZUWSfYLaM8aDquMQrfKw bgPy5KgWZ9d1GPVZWZUeIOnyjgjox86BjULSdv4l0KbUHvsVr+j+9NZaqwfQeRjl/xBT BbeBb5DKW4VMkSj8o7aG35kFTxu3eJCNTpu3m2iZfEQpfj4eQ5Lttb8rbSkFYIMhqLey hmcA== X-Gm-Message-State: AA+aEWaRv4xxe4MiXSETMzVC8/KUT1+7DDYKX7JYXPrBhEWrk3MSTXMv aqHXQKsrphreLfAdyTewY+Gk/scdcao= X-Google-Smtp-Source: AFSGD/Ul9+8jogXL1LM/tbFPPz/NcOS93aYqOSylUm0a3gUBIekLyN+Yxm+bh0ag0YGPhG1/Le5f6Q== X-Received: by 2002:adf:d112:: with SMTP id a18mr2317549wri.17.1542550698939; Sun, 18 Nov 2018 06:18:18 -0800 (PST) Received: from ThinkPad.home ([185.219.176.209]) by smtp.gmail.com with ESMTPSA id d4sm29814412wrp.89.2018.11.18.06.18.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 18 Nov 2018 06:18:18 -0800 (PST) From: Mesih Kilinc To: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-gpio@vger.kernel.org, linux-sunxi@googlegroups.com Subject: [RFC PATCH v2 01/14] ARM: add CONFIG_ARCH_SUNXI_V7 for differentiate ARMv5/v7 Allwinner SoCs Date: Sun, 18 Nov 2018 17:17:00 +0300 Message-Id: X-Mailer: git-send-email 2.7.4 In-Reply-To: References: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181118_061830_804584_9A6E5384 X-CRM114-Status: GOOD ( 14.16 ) 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: Mesih Kilinc , Julian Calaby , Linus Walleij , Daniel Lezcano , Russell King , Marc Zyngier , Chen-Yu Tsai , Rob Herring , Maxime Ripard , Icenowy Zheng MIME-Version: 1.0 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 Allwinner also has some ARMv5 SoCs. In order to add support for them, add a CONFIG_ARCH_SUNXI_V7 bool config which is selected when a ARMv7 soc is selected, and make CONFIG_ARCH_SUNXI a common option which is selected by both V7 and V5 sunxi option. Signed-off-by: Icenowy Zheng Signed-off-by: Mesih Kilinc --- arch/arm/mach-sunxi/Kconfig | 25 +++++++++++++++++-------- arch/arm/mach-sunxi/Makefile | 2 +- 2 files changed, 18 insertions(+), 9 deletions(-) diff --git a/arch/arm/mach-sunxi/Kconfig b/arch/arm/mach-sunxi/Kconfig index d9c8ecf..5db17ec 100644 --- a/arch/arm/mach-sunxi/Kconfig +++ b/arch/arm/mach-sunxi/Kconfig @@ -6,31 +6,38 @@ menuconfig ARCH_SUNXI select GENERIC_IRQ_CHIP select GPIOLIB select PINCTRL - select PM_OPP - select SUN4I_TIMER select RESET_CONTROLLER + help + Support for Allwinner ARM-based family of processors if ARCH_SUNXI +if ARCH_MULTI_V7 + +config ARCH_SUNXI_V7 + bool + select PM_OPP + select SUN4I_TIMER + config MACH_SUN4I bool "Allwinner A10 (sun4i) SoCs support" - default ARCH_SUNXI + select ARCH_SUNXI_V7 config MACH_SUN5I bool "Allwinner A10s / A13 (sun5i) SoCs support" - default ARCH_SUNXI + select ARCH_SUNXI_V7 select SUN5I_HSTIMER config MACH_SUN6I bool "Allwinner A31 (sun6i) SoCs support" - default ARCH_SUNXI + select ARCH_SUNXI_V7 select ARM_GIC select MFD_SUN6I_PRCM select SUN5I_HSTIMER config MACH_SUN7I bool "Allwinner A20 (sun7i) SoCs support" - default ARCH_SUNXI + select ARCH_SUNXI_V7 select ARM_GIC select ARM_PSCI select ARCH_SUPPORTS_BIG_ENDIAN @@ -39,13 +46,13 @@ config MACH_SUN7I config MACH_SUN8I bool "Allwinner sun8i Family SoCs support" - default ARCH_SUNXI + select ARCH_SUNXI_V7 select ARM_GIC select MFD_SUN6I_PRCM config MACH_SUN9I bool "Allwinner (sun9i) SoCs support" - default ARCH_SUNXI + select ARCH_SUNXI_V7 select ARM_GIC config ARCH_SUNXI_MC_SMP @@ -56,3 +63,5 @@ config ARCH_SUNXI_MC_SMP select ARM_CPU_SUSPEND endif + +endif diff --git a/arch/arm/mach-sunxi/Makefile b/arch/arm/mach-sunxi/Makefile index 71429aa..c9a83ab 100644 --- a/arch/arm/mach-sunxi/Makefile +++ b/arch/arm/mach-sunxi/Makefile @@ -1,5 +1,5 @@ CFLAGS_mc_smp.o += -march=armv7-a -obj-$(CONFIG_ARCH_SUNXI) += sunxi.o +obj-$(CONFIG_ARCH_SUNXI_V7) += sunxi.o obj-$(CONFIG_ARCH_SUNXI_MC_SMP) += mc_smp.o headsmp.o obj-$(CONFIG_SMP) += platsmp.o