Received: by 2002:a05:6a10:6d25:0:0:0:0 with SMTP id gq37csp1651539pxb; Mon, 13 Sep 2021 02:23:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwd84sKWoReW7JQLgO9VBOtNszQiMf3XAn/+fSc1KuEENuwjlMs3EEpBlE3Uf1QrkWrMb/c X-Received: by 2002:a05:6402:1157:: with SMTP id g23mr12086471edw.90.1631525029226; Mon, 13 Sep 2021 02:23:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631525029; cv=none; d=google.com; s=arc-20160816; b=wyCo1fzY2Y4H7U8DWSa+R/8CBSUDBgRbDcpxWA95s5aBg2krmJJa4YySz5ABmKFtup K0Q9gPIvESC//kv1JnZ7ZBgymnuigUHgNGo1igEacMwAlruwjzfd1EtgE3XYcgcZQ80m eDJAfZKS6gdzWHeLkXxiRei1Q8A5i3IZNQJBp5v2kasVVqb+d9o7QeaM/q/bUY2PM4m6 GBw9hH1DZvMwUdzQnVY8iqJTNv25T7qZ/SGYbYpglakSpMC/k3IrEje4Drwqkt/xWT1p 3S7HsEYVgokjMDW92hdfbcguO2ZMMmajlaQ0QajBYwHhT2jC5Ms9RdPuoBfYSRRB7gIz ypOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=WonbdUnISqtDsl/IG1RnVzgieuOQ/9XfOrwXVPG/S0w=; b=ygTDNhE3yXRig3z7pasQgqhp7VzN36Ld0qIkWqd1zEJNSVAP9Hqu1gHuejhnCrx2/E Rh5QXPDBM5z+nG28V4xQcjQ6Av3kCQu4Pw4rTzslzruMgT20YVVirlpjlRcCwkCawkI+ PCCyNX8lc/OeT77F4xT/WchrZn5A+tSvkeKDQPvq1ubqTe05feE+jYYQzCSK3hWzsrcd GphszeKmqQokHWF9Yg+PW8rERoHKclCjJYHQYg8ym3vUaWJEccDo4CL/RFh7fFGVM0pu CJwzOIQIOXQSL7HIB8eRfuCHxgnOB290f1JVxHZbDQuv7spHgNrDNWg9F0687wkCl9G5 CQ3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cBxOc+qt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id yc17si7275758ejb.381.2021.09.13.02.23.24; Mon, 13 Sep 2021 02:23:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cBxOc+qt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238446AbhIMJVz (ORCPT + 99 others); Mon, 13 Sep 2021 05:21:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:46200 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236022AbhIMJVz (ORCPT ); Mon, 13 Sep 2021 05:21:55 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 907286108C for ; Mon, 13 Sep 2021 09:20:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1631524838; bh=tfo4VT9tevF5EcHGadDEEin7sfPHUCanQbDTfYb3Vf8=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=cBxOc+qtt5DHPfsNN6ZhPycytvYHxXsn2o5RkLGEUsXrdLnmmJpT6kVmMBHxgB/I4 1voj1iU6JNM3dD6y4DZOArD5lGfgSDFyB4y7TKGCUTSpuYWubBlTU/z1aQZ5MDcgM9 mRuUf8IZoYDXTiBr8Sf7F76Zi9jFaUeE0+SkimSsIIvlxDRY0iBZkkOc8mPWL/7aPL v8hqWeKjamlmw9UgIM9mDFBJua00iunE4sROQwi3489CTcciTBmKImX9itgauGK+A2 pxi0pmkIlBLumDKyeDV4zqhXpwe3v1K1OCZVC980O/HE42lrNkrMVj5UX4FWteq6oO btDIMw74sFHrA== Received: by mail-lj1-f173.google.com with SMTP id i28so16033115ljm.7 for ; Mon, 13 Sep 2021 02:20:38 -0700 (PDT) X-Gm-Message-State: AOAM531H1GyvhVMCtrui4EaayafqHEqfKjZa8AJUC/oI4TXsg/YNYDL2 vSXa7SFbTW0HGVUyyjKnx6k6kbBbvgP8+/oP2Io= X-Received: by 2002:a2e:a4d1:: with SMTP id p17mr9437403ljm.82.1631524836885; Mon, 13 Sep 2021 02:20:36 -0700 (PDT) MIME-Version: 1.0 References: <20210911092139.79607-1-guoren@kernel.org> <20210911092139.79607-7-guoren@kernel.org> <20210913084520.kkbsupogkzv226x3@gilmour> In-Reply-To: <20210913084520.kkbsupogkzv226x3@gilmour> From: Guo Ren Date: Mon, 13 Sep 2021 17:20:25 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC PATCH V4 6/6] riscv: soc: Add Allwinner SoC kconfig option To: Maxime Ripard Cc: Anup Patel , Atish Patra , Palmer Dabbelt , =?UTF-8?Q?Christoph_M=C3=BCllner?= , philipp.tomsich@vrull.eu, Christoph Hellwig , liush , wefu@redhat.com, =?UTF-8?B?V2VpIFd1ICjlkLTkvJ8p?= , Drew Fustini , linux-riscv , Linux Kernel Mailing List , taiten.peng@canonical.com, aniket.ponkshe@canonical.com, heinrich.schuchardt@canonical.com, gordan.markus@canonical.com, Guo Ren , Chen-Yu Tsai Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 13, 2021 at 4:45 PM Maxime Ripard wrote: > > Hi, > > On Sat, Sep 11, 2021 at 05:21:39PM +0800, guoren@kernel.org wrote: > > From: Liu Shaohua > > > > Add Allwinner kconfig option which selects SoC specific and common > > drivers that is required for this SoC. > > > > 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. > > > > Signed-off-by: Liu Shaohua > > Signed-off-by: Guo Ren > > Signed-off-by: Wei Fu > > Cc: Anup Patel > > Cc: Atish Patra > > Cc: Christoph Hellwig > > Cc: Chen-Yu Tsai > > Cc: Drew Fustini > > Cc: Maxime Ripard > > Cc: Palmer Dabbelt > > Cc: Wei Wu > > --- > > arch/riscv/Kconfig.socs | 15 +++++++++++++++ > > arch/riscv/configs/defconfig | 1 + > > 2 files changed, 16 insertions(+) > > > > diff --git a/arch/riscv/Kconfig.socs b/arch/riscv/Kconfig.socs > > index 30676ebb16eb..8721c000ef23 100644 > > --- a/arch/riscv/Kconfig.socs > > +++ b/arch/riscv/Kconfig.socs > > @@ -70,4 +70,19 @@ config SOC_CANAAN_K210_DTB_SOURCE > > > > endif > > > > +config SOC_SUNXI > > + bool "Allwinner SoCs" > > + depends on MMU > > + select DWMAC_GENERIC > > + select ERRATA_THEAD > > + select RISCV_DMA_NONCOHERENT > > + select RISCV_ERRATA_ALTERNATIVE > > + 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. > > + > > I'm not sure we should select the drivers there. We could very well > imagine a board without UART, or even more so without ethernet. We just want people could bring D1 up easier, 8250 is the basic component. > > These options should be in the defconfig. > > Maxime -- Best Regards Guo Ren ML: https://lore.kernel.org/linux-csky/