Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1320257imu; Tue, 20 Nov 2018 15:43:46 -0800 (PST) X-Google-Smtp-Source: AFSGD/XIWUZjM1Je1Vw6QmJ29Gy42qpMBl0HEJ59/WUI/SghrwhyGYg2CFYgx3Zl9PDDyfJmKMmp X-Received: by 2002:a63:5407:: with SMTP id i7mr3783163pgb.413.1542757426435; Tue, 20 Nov 2018 15:43:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542757426; cv=none; d=google.com; s=arc-20160816; b=CYWkSCU9+Z+a4Gxn2GsXpA2Ak5lSLvdAAKn5EubKuol4J/z8Y0er6/dcQOXSjm6kbu pPA23FCZl44j+HhiIWETB2JBvH/1hZ53DoHAqM/063+6KOzV231oHPIegStaVLUSZGdF PryQVMOeuGpu5XW1uekLRn6uXO0ZDMAip8JPKmaMut0Or589c7qmHGugH6tBrZYagl8B 5At1cwfxWQRj6A/zSvgPoZ1Mo4PdZzb5GMQHN/wXa6fzecTFu4c/vR7zEmuA1G/9q85X +Qb57Rll0SyvQQ+HOJujtkuwjuuUcbz1WKS2tjkLL/3un5ecx7M9UhA7bXrdbT0sZ4VB lUtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:from:cc:to:subject :content-transfer-encoding:mime-version:references:in-reply-to:date; bh=GoNn1/CKN8Fc5tFAN7wWYA4mtB4uU+FJxDkP4vRCNyY=; b=NGTfA3Lo0tFrjJJVaRQYEIotLqUnHF9LYp6tL7GJQZVMwvg6sruIEv47qC9EcI2wCt Wzm83BjUR9VD5y65HTO74LF3Dzc3xY+Iq9ZWEgzCc66g8yRMC/atTy/zhtc/9thaFFXS //4DE819D2sKgAbaUgUsGcwhyX5B3wxFIndFC3+c6N7NVx5vr4x8QVGnrTUxtwwecSkA WkuJL5vGVnDzkphhV/hFGHGinSEnod9yUGUH3isgYZgvjuNPyvB9Hq8Njowsg0z9gG1M iynZbiMVK3AI4Q2P+al0DPM57HDftGsUZrfq6qxgOca42vx3rcqo0t42bEtP/a0oOaF0 LJYw== 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 u4si26938312pls.200.2018.11.20.15.43.29; Tue, 20 Nov 2018 15:43:46 -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 S1726477AbeKUKIm convert rfc822-to-8bit (ORCPT + 99 others); Wed, 21 Nov 2018 05:08:42 -0500 Received: from hermes.aosc.io ([199.195.250.187]:44848 "EHLO hermes.aosc.io" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725946AbeKUKIm (ORCPT ); Wed, 21 Nov 2018 05:08:42 -0500 Received: from localhost (localhost [127.0.0.1]) (Authenticated sender: icenowy@aosc.io) by hermes.aosc.io (Postfix) with ESMTPSA id 0B298A3063; Tue, 20 Nov 2018 23:36:51 +0000 (UTC) Date: Wed, 21 Nov 2018 07:36:38 +0800 In-Reply-To: <20181120084245.bnjdaf647e6tdlku@flea> References: <8f07fac854eaaea63e199fe0e80cf20004dffbdf.1542546735.git.mesihkilinc@gmail.com> <20181120084245.bnjdaf647e6tdlku@flea> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Subject: Re: [RFC PATCH v2 03/14] ARM: sunxi: add Allwinner ARMv5 SoCs To: linux-arm-kernel@lists.infradead.org, Maxime Ripard , Mesih Kilinc CC: devicetree@vger.kernel.org, Marc Zyngier , Julian Calaby , Linus Walleij , Daniel Lezcano , linux-kernel@vger.kernel.org, Russell King , linux-gpio@vger.kernel.org, linux-sunxi@googlegroups.com, Rob Herring , Chen-Yu Tsai , linux-clk@vger.kernel.org From: Icenowy Zheng Message-ID: <464C921F-1AA7-4475-9085-25D03D21AFE2@aosc.io> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 于 2018年11月20日 GMT+08:00 下午4:42:45, Maxime Ripard 写到: >On Sun, Nov 18, 2018 at 05:17:02PM +0300, Mesih Kilinc wrote: >> Add option for Allwinner ARMv5 SoCs and SoC F1C100s (which has a die >> used for many new F-series products, including F1C100A, F1C100s, >F1C200s, >> F1C500, F1C600). >> >> Signed-off-by: Icenowy Zheng >> Signed-off-by: Mesih Kilinc >> --- >> arch/arm/mach-sunxi/Kconfig | 14 +++++++++++++- >> arch/arm/mach-sunxi/Makefile | 1 + >> arch/arm/mach-sunxi/sunxi_v5.c | 22 ++++++++++++++++++++++ >> 3 files changed, 36 insertions(+), 1 deletion(-) >> create mode 100644 arch/arm/mach-sunxi/sunxi_v5.c >> >> diff --git a/arch/arm/mach-sunxi/Kconfig >b/arch/arm/mach-sunxi/Kconfig >> index 5db17ec..066644c 100644 >> --- a/arch/arm/mach-sunxi/Kconfig >> +++ b/arch/arm/mach-sunxi/Kconfig >> @@ -1,6 +1,6 @@ >> menuconfig ARCH_SUNXI >> bool "Allwinner SoCs" >> - depends on ARCH_MULTI_V7 >> + depends on ARCH_MULTI_V5 || ARCH_MULTI_V7 >> select ARCH_HAS_RESET_CONTROLLER >> select CLKSRC_MMIO >> select GENERIC_IRQ_CHIP >> @@ -64,4 +64,16 @@ config ARCH_SUNXI_MC_SMP >> >> endif >> >> +if ARCH_MULTI_V5 >> + >> +config ARCH_SUNXI_V5 >> + bool >> + select SUN4I_TIMER > >If SUN4I_TIMER is needed both by the armv5 and armv7 cores, why did we >need to move it out of ARCH_SUNXI? > >> +config MACH_SUNIV >> + bool "Allwinner new F-series (suniv) SoCs support" > >I would drop the "new" here. Sorry, but old F-series SoCs are not suniv. They are sunii or sun3i. > >> +++ b/arch/arm/mach-sunxi/sunxi_v5.c >> @@ -0,0 +1,22 @@ >> +// SPDX-License-Identifier: GPL-2.0 >> +/* >> + * Device Tree support for Allwinner F series SoCs >> + * >> + * Copyright (C) 2017 Icenowy Zheng >> + * Copyright (C) 2018 Mesih Kilinc >> + * >> + * This file is licensed under the terms of the GNU General Public >> + * License version 2. This program is licensed "as is" without any >> + * warranty of any kind, whether express or implied. >> + */ >> + >> +#include >> + >> +static const char * const suniv_board_dt_compat[] = { >> + "allwinner,suniv-f1c100s", >> + NULL, >> +}; >> + >> +DT_MACHINE_START(SUNXI_DT, "Allwinner suniv Family") >> + .dt_compat = suniv_board_dt_compat, >> +MACHINE_END > >Do we really need a separate file for that? > >Maxime