From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E633BC47082 for ; Mon, 7 Jun 2021 07:19:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C83BD6120F for ; Mon, 7 Jun 2021 07:19:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230131AbhFGHVR (ORCPT ); Mon, 7 Jun 2021 03:21:17 -0400 Received: from new3-smtp.messagingengine.com ([66.111.4.229]:48873 "EHLO new3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229436AbhFGHVN (ORCPT ); Mon, 7 Jun 2021 03:21:13 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.nyi.internal (Postfix) with ESMTP id 1C2B4580859; Mon, 7 Jun 2021 03:19:22 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Mon, 07 Jun 2021 03:19:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=1MtV7DMaXaVx7kK0l4uODe/8kJj 9XmsvH5dcusPCkGw=; b=mBnRj6qByI8qYZCklroL0lAGepN28NsxpSJjrBcB5sQ Fd9Psov/izy8WWxboZMQrjOwwJviIZQ1ylCuBAHUSkt8Ao6IPLlLSKhvj6mcVRD8 LJ6/qMfFntNQNPLP2a62nXZUY8NH253jQVw1M4YUkv4uKkDGM1F7bo90+bh6G1x5 bj0aDQbh0YyqRWRUOV5GKZ4I4w9KGgTIxrOj526n2CQdqJwMlVEjkuNXa48Gyq+K zyqEXFJtCh1G5QY3/g35qFlIJ8uGWKdvPASB+N6V+QlwVgonLN3gJwLlKpWGq6pb CeKKGy+wRrKhZ3pmMs9Kyrb32nbI/45NJ/orDN6+Urg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=1MtV7D MaXaVx7kK0l4uODe/8kJj9XmsvH5dcusPCkGw=; b=bmYOOfFKE/epxmVpWVbopE VYpCQV6oGT+5CyTeUxLZFc4z0mgApPY9MACKgKEovvnmMc+RXiHaZ/Ted/Ej6fic QRTnY2S4D9qWJG7LjaAvxBHEdK6X+A9vue/5+elM7kS9X0He6rmROFZkyr4Il3dH HlQHhutW7aZ1sUq5xYiGY/hF7Hk9mj/PlPznoN4e764vMfHOqPagcnRw8dGbe2fa FC9ghv6wu9aI8YHgTy8H2MTiZOfaSJG+FLESreO4U76f1II53+1KwmVOxt0/s2mJ eqgikwj++/p8qCwqXnWrrGE3X6/W+kSvAEn8+wC/c+C3mScl/e5WMPlvs4WRWShQ == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfedtiedgudduiecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvuffkfhggtggujgesghdtreertddtvdenucfhrhhomhepofgrgihi mhgvucftihhprghrugcuoehmrgigihhmvgestggvrhhnohdrthgvtghhqeenucggtffrrg htthgvrhhnpeelkeeghefhuddtleejgfeljeffheffgfeijefhgfeufefhtdevteegheei heegudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe hmrgigihhmvgestggvrhhnohdrthgvtghh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 7 Jun 2021 03:19:18 -0400 (EDT) Date: Mon, 7 Jun 2021 09:19:16 +0200 From: Maxime Ripard To: guoren@kernel.org Cc: anup.patel@wdc.com, palmerdabbelt@google.com, arnd@arndb.de, wens@csie.org, drew@beagleboard.org, liush@allwinnertech.com, lazyparser@gmail.com, wefu@redhat.com, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-sunxi@lists.linux.dev, Guo Ren , Atish Patra , Christoph Hellwig Subject: Re: [RFC PATCH v2 10/11] riscv: soc: Add Allwinner SoC kconfig option Message-ID: <20210607071916.kwdbtafbqp3icgia@gilmour> References: <1622970249-50770-1-git-send-email-guoren@kernel.org> <1622970249-50770-14-git-send-email-guoren@kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="jllkrmwwe7syrz3c" Content-Disposition: inline In-Reply-To: <1622970249-50770-14-git-send-email-guoren@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --jllkrmwwe7syrz3c Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Sun, Jun 06, 2021 at 09:04:08AM +0000, guoren@kernel.org wrote: > From: Guo Ren >=20 > Add Allwinner kconfig option which selects SoC specific and common > drivers that is required for this SoC. >=20 > Allwinner D1 uses custom PTE attributes to solve non-coherency SOC > interconnect issues for dma synchronization, so we set the default > value when SOC_SUNXI selected. >=20 > Signed-off-by: Guo Ren > Co-Developed-by: Liu Shaohua > Signed-off-by: Liu Shaohua > Cc: Anup Patel > Cc: Atish Patra > Cc: Christoph Hellwig > Cc: Chen-Yu Tsai > Cc: Drew Fustini > Cc: Maxime Ripard > Cc: Palmer Dabbelt > Cc: Wei Fu > Cc: Wei Wu > --- > arch/riscv/Kconfig.socs | 12 ++++++++++++ > arch/riscv/configs/defconfig | 1 + > 2 files changed, 13 insertions(+) >=20 > diff --git a/arch/riscv/Kconfig.socs b/arch/riscv/Kconfig.socs > index ed96376..055fb3e 100644 > --- a/arch/riscv/Kconfig.socs > +++ b/arch/riscv/Kconfig.socs > @@ -69,4 +69,16 @@ config SOC_CANAAN_K210_DTB_SOURCE > =20 > endif > =20 > +config SOC_SUNXI > + bool "Allwinner SoCs" > + depends on MMU > + select DWMAC_GENERIC > + select SERIAL_8250 > + select SERIAL_8250_CONSOLE > + select SERIAL_8250_DW > + select SIFIVE_PLIC > + select STMMAC_ETH > + help > + This enables support for Allwinner SoC platforms like the D1. > + We probably don't want to select DWMAC, STMMAC_ETH and the 8250 options, looks good otherwise. Maxime --jllkrmwwe7syrz3c Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCYL3IbwAKCRDj7w1vZxhR xdpIAP4ujY0W+0Oepl3WVbuQMtnV7QIHCkJ4/R3cBa41tsTA6gD/c1XIXK7VsiTZ YdTeyYZcEkyrsfdNoFrv3BUCBXRhlwU= =hNxN -----END PGP SIGNATURE----- --jllkrmwwe7syrz3c-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3F617C4743F for ; Mon, 7 Jun 2021 07:20:23 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 01D7861185 for ; Mon, 7 Jun 2021 07:20:22 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 01D7861185 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=cerno.tech Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: In-Reply-To:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Reply-To:Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date :Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=scVB+9ZtMOaHgnwcJq4SmT+g7A0BtUDZvDaj6WAdbVY=; b=S06D9aC5tuFgC7SfPdaBR+Js85 Y9RBnFMcWZI/O9VtrOSivksS7udSXLvaBqGZL7Fupeypa3WA9xI3YQ8lWKunK4bkoJFRlGpxcWp/W XPVfAZCuAr9z9h2kTsW+B5UF91gS3jO7icqHb7fvqCZvRI+VwaoexQQnM+9CUIA69VXonRs7YrBMY BjtlVVjqdfOWggX9zTUvfaVPyfvmZKtg4BSJIGeVVHeIuenV8PWtAz1h9J9ncVfJeWZFld1FU0/WR p10/nX4As8fQWCeHmByZqFpZFGVkVuKUhB8udn0UAwzeSRYkUK52cVAtr614dh6gb9s6NIg1zzDkY f5XRuIug==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lq9YK-002091-6S; Mon, 07 Jun 2021 07:20:04 +0000 Received: from new3-smtp.messagingengine.com ([66.111.4.229]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lq9Xj-001zj2-GD for linux-riscv@lists.infradead.org; Mon, 07 Jun 2021 07:19:32 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.nyi.internal (Postfix) with ESMTP id 1C2B4580859; Mon, 7 Jun 2021 03:19:22 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Mon, 07 Jun 2021 03:19:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=1MtV7DMaXaVx7kK0l4uODe/8kJj 9XmsvH5dcusPCkGw=; b=mBnRj6qByI8qYZCklroL0lAGepN28NsxpSJjrBcB5sQ Fd9Psov/izy8WWxboZMQrjOwwJviIZQ1ylCuBAHUSkt8Ao6IPLlLSKhvj6mcVRD8 LJ6/qMfFntNQNPLP2a62nXZUY8NH253jQVw1M4YUkv4uKkDGM1F7bo90+bh6G1x5 bj0aDQbh0YyqRWRUOV5GKZ4I4w9KGgTIxrOj526n2CQdqJwMlVEjkuNXa48Gyq+K zyqEXFJtCh1G5QY3/g35qFlIJ8uGWKdvPASB+N6V+QlwVgonLN3gJwLlKpWGq6pb CeKKGy+wRrKhZ3pmMs9Kyrb32nbI/45NJ/orDN6+Urg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=1MtV7D MaXaVx7kK0l4uODe/8kJj9XmsvH5dcusPCkGw=; b=bmYOOfFKE/epxmVpWVbopE VYpCQV6oGT+5CyTeUxLZFc4z0mgApPY9MACKgKEovvnmMc+RXiHaZ/Ted/Ej6fic QRTnY2S4D9qWJG7LjaAvxBHEdK6X+A9vue/5+elM7kS9X0He6rmROFZkyr4Il3dH HlQHhutW7aZ1sUq5xYiGY/hF7Hk9mj/PlPznoN4e764vMfHOqPagcnRw8dGbe2fa FC9ghv6wu9aI8YHgTy8H2MTiZOfaSJG+FLESreO4U76f1II53+1KwmVOxt0/s2mJ eqgikwj++/p8qCwqXnWrrGE3X6/W+kSvAEn8+wC/c+C3mScl/e5WMPlvs4WRWShQ == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfedtiedgudduiecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvuffkfhggtggujgesghdtreertddtvdenucfhrhhomhepofgrgihi mhgvucftihhprghrugcuoehmrgigihhmvgestggvrhhnohdrthgvtghhqeenucggtffrrg htthgvrhhnpeelkeeghefhuddtleejgfeljeffheffgfeijefhgfeufefhtdevteegheei heegudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe hmrgigihhmvgestggvrhhnohdrthgvtghh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 7 Jun 2021 03:19:18 -0400 (EDT) Date: Mon, 7 Jun 2021 09:19:16 +0200 From: Maxime Ripard To: guoren@kernel.org Cc: anup.patel@wdc.com, palmerdabbelt@google.com, arnd@arndb.de, wens@csie.org, drew@beagleboard.org, liush@allwinnertech.com, lazyparser@gmail.com, wefu@redhat.com, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-sunxi@lists.linux.dev, Guo Ren , Atish Patra , Christoph Hellwig Subject: Re: [RFC PATCH v2 10/11] riscv: soc: Add Allwinner SoC kconfig option Message-ID: <20210607071916.kwdbtafbqp3icgia@gilmour> References: <1622970249-50770-1-git-send-email-guoren@kernel.org> <1622970249-50770-14-git-send-email-guoren@kernel.org> MIME-Version: 1.0 In-Reply-To: <1622970249-50770-14-git-send-email-guoren@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210607_001927_662558_70418644 X-CRM114-Status: GOOD ( 18.26 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============6851655081708034395==" Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org --===============6851655081708034395== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="jllkrmwwe7syrz3c" Content-Disposition: inline --jllkrmwwe7syrz3c Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Sun, Jun 06, 2021 at 09:04:08AM +0000, guoren@kernel.org wrote: > From: Guo Ren >=20 > Add Allwinner kconfig option which selects SoC specific and common > drivers that is required for this SoC. >=20 > Allwinner D1 uses custom PTE attributes to solve non-coherency SOC > interconnect issues for dma synchronization, so we set the default > value when SOC_SUNXI selected. >=20 > Signed-off-by: Guo Ren > Co-Developed-by: Liu Shaohua > Signed-off-by: Liu Shaohua > Cc: Anup Patel > Cc: Atish Patra > Cc: Christoph Hellwig > Cc: Chen-Yu Tsai > Cc: Drew Fustini > Cc: Maxime Ripard > Cc: Palmer Dabbelt > Cc: Wei Fu > Cc: Wei Wu > --- > arch/riscv/Kconfig.socs | 12 ++++++++++++ > arch/riscv/configs/defconfig | 1 + > 2 files changed, 13 insertions(+) >=20 > diff --git a/arch/riscv/Kconfig.socs b/arch/riscv/Kconfig.socs > index ed96376..055fb3e 100644 > --- a/arch/riscv/Kconfig.socs > +++ b/arch/riscv/Kconfig.socs > @@ -69,4 +69,16 @@ config SOC_CANAAN_K210_DTB_SOURCE > =20 > endif > =20 > +config SOC_SUNXI > + bool "Allwinner SoCs" > + depends on MMU > + select DWMAC_GENERIC > + select SERIAL_8250 > + select SERIAL_8250_CONSOLE > + select SERIAL_8250_DW > + select SIFIVE_PLIC > + select STMMAC_ETH > + help > + This enables support for Allwinner SoC platforms like the D1. > + We probably don't want to select DWMAC, STMMAC_ETH and the 8250 options, looks good otherwise. Maxime --jllkrmwwe7syrz3c Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCYL3IbwAKCRDj7w1vZxhR xdpIAP4ujY0W+0Oepl3WVbuQMtnV7QIHCkJ4/R3cBa41tsTA6gD/c1XIXK7VsiTZ YdTeyYZcEkyrsfdNoFrv3BUCBXRhlwU= =hNxN -----END PGP SIGNATURE----- --jllkrmwwe7syrz3c-- --===============6851655081708034395== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv --===============6851655081708034395==--