Received: by 10.223.176.46 with SMTP id f43csp152973wra; Fri, 19 Jan 2018 15:19:50 -0800 (PST) X-Google-Smtp-Source: AH8x2259lMSsmmD6bpPjSlQxrI8NWucBVDw6YzTqO1VxobQTaE09KWFDcN+LL+JNNQc2ovVCiIZL X-Received: by 10.99.103.198 with SMTP id b189mr127056pgc.20.1516403990590; Fri, 19 Jan 2018 15:19:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516403990; cv=none; d=google.com; s=arc-20160816; b=uGTfbgrw1dJ1ELTUL+I9WhoUYy2XqAhZbXQdr0sZGeJMjMikue6bUZr8NPgJikZLvw 1bmGxA8MBpkZvTj3vf8pjnpjfuA1OFxIKyLvn/MMNwgccqtMGf9wf743eD34h42S7rrz 52+xLW5EnAdNX2PBFpplP6bZMNxFTfOX7eZaNhS4UOhSWQpvBOjBVXZJgN+sYv9OeF/k MKMYESokUJ7aLw20fPBQGx/+9CLfzF/rntTaYXPQ8+foI3/uz/rpBqWDXE25N0VeOFOW 07wDgpmmKgX7BJUqze9KGra1vzp5uBsYseyBLdoBussuP9CeozuOg9urQgfgRkwloL/M i9ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=8jFJ8J7HlriK/rzIxYKRH8jrZ2i1vTgdTzfUz2UBp6o=; b=JqJNOCisAwuS75L9bSYiqNOgXrdDFSDJqZpminp+y51nBKE3ymirrVo/3JxMRlXIg2 4+GZCnzMLdwgWK5wiL3L/AtvwXKb3K9WMrhtEZXLPHHiQ9iZ6AFuCi7HiRF6M2e2X6/p M1AeqIyIThS3rdFJuK2MKK4HUHhCgkMJ9+uHZC+C98Z1/bYULr1cwpG7tAb6BLJBRg0x NfDPT32qtYmG/zqzQ9TVKWMwJVdqi+W8ft2H/DI4/H8JFBCZ8X5sxwMOKRg0YpVDojnv uEypJuPLjHGn4xU9JuQFreLp3hqrXmVLuxQW9Mk1rJtFGEP/BserZyyQd/qJd7ucOe2s s15A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d25si10177961pfl.211.2018.01.19.15.19.36; Fri, 19 Jan 2018 15:19:50 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932520AbeASXSZ (ORCPT + 99 others); Fri, 19 Jan 2018 18:18:25 -0500 Received: from hermes.aosc.io ([199.195.250.187]:48305 "EHLO hermes.aosc.io" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932382AbeASXSJ (ORCPT ); Fri, 19 Jan 2018 18:18:09 -0500 Received: from localhost (localhost [127.0.0.1]) (Authenticated sender: icenowy@aosc.io) by hermes.aosc.io (Postfix) with ESMTPSA id 23CF754CFE; Fri, 19 Jan 2018 23:18:03 +0000 (UTC) From: Icenowy Zheng To: Maxime Ripard , Chen-Yu Tsai , Russell King , Daniel Lezcano , Marc Zyngier , Linus Walleij Cc: 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, Icenowy Zheng Subject: [RFC PATCH 1/9] ARM: add CONFIG_ARCH_SUNXI_V7 for differentiate ARMv5/v7 Allwinner SoCs Date: Sat, 20 Jan 2018 07:17:27 +0800 Message-Id: <20180119231735.61504-2-icenowy@aosc.io> In-Reply-To: <20180119231735.61504-1-icenowy@aosc.io> References: <20180119231735.61504-1-icenowy@aosc.io> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Allwinner also has some ARMv5 SoCs. In order to add support for them, add a CONFIG_ARCH_SUNXI_V7 option that is selectable when ARMv7 is selceted, and make CONFIG_ARCH_SUNXI a common bool config which is selected by both V7 and V5 sunxi option. The ARMv7 defconfigs are modified to have the new CONFIG_ARCH_SUNXI_V7 option. Signed-off-by: Icenowy Zheng --- arch/arm/configs/multi_v7_defconfig | 2 +- arch/arm/configs/sunxi_defconfig | 2 +- arch/arm/mach-sunxi/Kconfig | 14 ++++++++++++-- arch/arm/mach-sunxi/Makefile | 2 +- 4 files changed, 15 insertions(+), 5 deletions(-) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index 61509c4b769f..9b4267b2ad49 100644 --- a/arch/arm/configs/multi_v7_defconfig +++ b/arch/arm/configs/multi_v7_defconfig @@ -98,7 +98,7 @@ CONFIG_ARCH_R8A7792=y CONFIG_ARCH_R8A7793=y CONFIG_ARCH_R8A7794=y CONFIG_ARCH_SH73A0=y -CONFIG_ARCH_SUNXI=y +CONFIG_ARCH_SUNXI_V7=y CONFIG_ARCH_SIRF=y CONFIG_ARCH_TEGRA=y CONFIG_ARCH_TEGRA_2x_SOC=y diff --git a/arch/arm/configs/sunxi_defconfig b/arch/arm/configs/sunxi_defconfig index 5caaf971fb50..9e9be989a4bd 100644 --- a/arch/arm/configs/sunxi_defconfig +++ b/arch/arm/configs/sunxi_defconfig @@ -5,7 +5,7 @@ CONFIG_BLK_DEV_INITRD=y CONFIG_PERF_EVENTS=y CONFIG_MODULES=y CONFIG_MODULE_UNLOAD=y -CONFIG_ARCH_SUNXI=y +CONFIG_ARCH_SUNXI_V7=y CONFIG_SMP=y CONFIG_NR_CPUS=8 CONFIG_AEABI=y diff --git a/arch/arm/mach-sunxi/Kconfig b/arch/arm/mach-sunxi/Kconfig index 58153cdf025b..65509a35935f 100644 --- a/arch/arm/mach-sunxi/Kconfig +++ b/arch/arm/mach-sunxi/Kconfig @@ -1,6 +1,16 @@ -menuconfig ARCH_SUNXI +config ARCH_SUNXI + bool + select ARCH_HAS_RESET_CONTROLLER + select CLKSRC_MMIO + select GENERIC_IRQ_CHIP + select GPIOLIB + select PINCTRL + select RESET_CONTROLLER + +menuconfig ARCH_SUNXI_V7 bool "Allwinner SoCs" depends on ARCH_MULTI_V7 + select ARCH_SUNXI select ARCH_HAS_RESET_CONTROLLER select CLKSRC_MMIO select GENERIC_IRQ_CHIP @@ -10,7 +20,7 @@ menuconfig ARCH_SUNXI select SUN4I_TIMER select RESET_CONTROLLER -if ARCH_SUNXI +if ARCH_SUNXI_V7 config MACH_SUN4I bool "Allwinner A10 (sun4i) SoCs support" diff --git a/arch/arm/mach-sunxi/Makefile b/arch/arm/mach-sunxi/Makefile index 27b168f121a1..6d874f6c9d3a 100644 --- a/arch/arm/mach-sunxi/Makefile +++ b/arch/arm/mach-sunxi/Makefile @@ -1,2 +1,2 @@ -obj-$(CONFIG_ARCH_SUNXI) += sunxi.o +obj-$(CONFIG_ARCH_SUNXI_V7) += sunxi.o obj-$(CONFIG_SMP) += platsmp.o -- 2.14.2