Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp451679imu; Tue, 20 Nov 2018 01:42:48 -0800 (PST) X-Google-Smtp-Source: AFSGD/V36TM/D+2140JoR6PXO5rRiqpAf7LjYDVLbKQPij4lPINChqCf4xH+oQnoUgmSCurROVHk X-Received: by 2002:a63:5026:: with SMTP id e38mr1249469pgb.123.1542706968526; Tue, 20 Nov 2018 01:42:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542706968; cv=none; d=google.com; s=arc-20160816; b=EW9YecckuXMKs2EcdIN4WY4r7DgScJ7VWCAkK9EDKuaTWo+pFQwpsn58n6s40XWt5R JUn9vphN+dYvSETLdQwpOwh/zi2bEXh1MHfFaYQJLyHx8ioh5M6TazCVuvyj/9w0Ut0/ wJ3dCMX344EbKPkS+wHiBRhD20kCmauvUJ/MKvFrM4Pg0VZ0USHK34mhwJy0L8PxN/OP LsW+VGE33/apHcMNmHJNsZQ5r6ZL96tHqeeh0y51Ap53FaxOAkSeNIia999gjPhuSp1V 9cimjPs9ZgC/DsFXaN8+sg6pkAwlrLaqVEgqF+LxPyOnZP7GnG+7ys8QTiS/HB+/U15t /Qng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=1ZYCFEGC0cX81p6jfodE3q2xM3vYW04lr0SdJKZ6AMw=; b=exavVEAmvmYZAuNUIs0/2MacAgwCiTLSy8vD+kkjKdFgzhHzatinEpIVV5VhVMXwkA hcf4XHbc6tu/HSSVFId/T6knl57W+qcsvAzy4/5OOuCfpgxE8x9zC8Cit8FXNJz3csLn 4yCWzme8ojJuEFPIS9IUL6At9NY0xWeShcg88FQ4iadf/J1PQw/sreEmfFXxvdO6ctJ4 iLDNAgZkBJDzhjrZvJHwb/9XNP+YbIy3u2h0K0DD0mp8oYAS9Atocd4fQGkmDtI/seCT yxyiZcXkyPeVOP0ovF1mF25xmd8BM3lKRZL+TSwE2aGTHOeU+R+MQKqqmes9QgAaABpE Dlgg== 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 j24si37002732pgn.149.2018.11.20.01.42.33; Tue, 20 Nov 2018 01:42:48 -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 S1726400AbeKTTKz (ORCPT + 99 others); Tue, 20 Nov 2018 14:10:55 -0500 Received: from mail.bootlin.com ([62.4.15.54]:50013 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725843AbeKTTKy (ORCPT ); Tue, 20 Nov 2018 14:10:54 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id A5EE72074F; Tue, 20 Nov 2018 09:42:55 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.2 Received: from localhost (aaubervilliers-681-1-13-146.w90-88.abo.wanadoo.fr [90.88.134.146]) by mail.bootlin.com (Postfix) with ESMTPSA id 735D62037D; Tue, 20 Nov 2018 09:42:45 +0100 (CET) Date: Tue, 20 Nov 2018 09:42:45 +0100 From: Maxime Ripard To: Mesih Kilinc 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, Chen-Yu Tsai , Russell King , Daniel Lezcano , Marc Zyngier , Linus Walleij , Icenowy Zheng , Rob Herring , Julian Calaby Subject: Re: [RFC PATCH v2 03/14] ARM: sunxi: add Allwinner ARMv5 SoCs Message-ID: <20181120084245.bnjdaf647e6tdlku@flea> References: <8f07fac854eaaea63e199fe0e80cf20004dffbdf.1542546735.git.mesihkilinc@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="f4q6buea7vbu6n7w" Content-Disposition: inline In-Reply-To: <8f07fac854eaaea63e199fe0e80cf20004dffbdf.1542546735.git.mesihkilinc@gmail.com> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --f4q6buea7vbu6n7w Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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). >=20 > 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 >=20 > 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 > =20 > endif > =20 > +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. > +++ 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[] =3D { > + "allwinner,suniv-f1c100s", > + NULL, > +}; > + > +DT_MACHINE_START(SUNXI_DT, "Allwinner suniv Family") > + .dt_compat =3D suniv_board_dt_compat, > +MACHINE_END Do we really need a separate file for that? Maxime --=20 Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com --f4q6buea7vbu6n7w Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCW/PJBQAKCRDj7w1vZxhR xYLpAP9rCPbc1QsZM0YP5XXJlABPGK4Zg27MF0Ul2TZafIW9FwEArf/W5NzApR+d G/uBrwKajJEKBB5Jh2P4rZBA1CZ0gA0= =HggK -----END PGP SIGNATURE----- --f4q6buea7vbu6n7w--