Received: by 2002:a05:6a10:6d25:0:0:0:0 with SMTP id gq37csp195781pxb; Sat, 11 Sep 2021 02:26:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzG8TnfolyKl1BeAZdVnVit3HzbRkz6neWMU48JkcvJFTJrealw8sXiWTCYG1Hgw258NWeS X-Received: by 2002:a17:906:3ce2:: with SMTP id d2mr2064287ejh.410.1631352408010; Sat, 11 Sep 2021 02:26:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631352408; cv=none; d=google.com; s=arc-20160816; b=IRAfKXluFwaPryOttDKWASHJPhAlUfpy3e3jFdmKkMBYwYPpkhH2WmgZJo1tDCB9/p ftWHnEHT49RJIwoCC6fuQJlqAp29St2VCOAU2BVUTTifpovSu2JhcOTFYlJYxPweiEWl h+JHI3WheKyJbkg43bH6WjyOm5Yw9B464f95muB2b0GiuthSFNeiTjbhe+INuhRT+9up vQUi5vJhJuO2qsFG7SqyqrP595LaTGy6EmuCH+cWiHWW8KesYqB4Dv7G8U9YtXyjTjZW yOAi8/Sdmu0AbZsIykM3BOVBVzqROeeec4bM3gnAqUIFp6587Ncc6t3aPqs8RVxmoagn mGKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=JPVt+x89O6/vS15TLfzRf6bgzLBn/Gmm+xxATPIXH04=; b=IWDpoOwMUQccvt5pJ6fq+x/ilabA6qypxzVzmQ3Oc4xI9ozzX2Nn9Tp8SyrShsKka0 dfjEZXVrdnKtUFAqQZtqzU9EDxYUEKsWiTNOiwYMuKR8Hz3m/1W0Jx4aH/fyvSnxHCqV ncsyI3yzvi96HJvx/9J2HkkT+VnOmatMymR2vtPnGILUlYAwE3CLjw3K9BObqkyI7KHb TRFxzOfblmiNJQt2XyvIMDT6delk1ppfJDg4BHBiDXSRLLH9+3sLScHMitPBHqHnFCnT cipv5tBWAAsxR2VJlY0KqHNb+iA58tQx4Z7eKKGBhVnU5YJbstLAZJWesSNDHiucLVH3 B+dQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DwTVSxsr; 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 z26si1837498ejc.230.2021.09.11.02.26.24; Sat, 11 Sep 2021 02:26:47 -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=DwTVSxsr; 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 S235573AbhIKJXp (ORCPT + 99 others); Sat, 11 Sep 2021 05:23:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:42720 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235598AbhIKJXm (ORCPT ); Sat, 11 Sep 2021 05:23:42 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6056761221; Sat, 11 Sep 2021 09:22:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1631352150; bh=cRNfFnfeWGtcYlgL0PiB2KFICmvm/APlEwTrrujZ2D4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DwTVSxsrXizDaf29KSNkLvVarSdmBDDs1X9JPPdiCw+yjKX+h2av4oPRu1n/F2fmB b77KfT4cmza+/EoQ+o5uxVYZff8Wr3WaU3N7o427j0MZmI8UpiWjR6FYn4ZKVICYlX HrZiFmwgslW4SKxAalSW90GoxGhe/YrmbCFHVxhSb3MI7F+QYbUQJJLyiWs6OiT3iO U1X53I/4wcF5qjm8Y4kIasLuAVS7LjtNS7m/uxohtGQa1pXW3Yygz9qOv7NPJA3DUc o/YH2LxMuKWeUrnMBDljTHk9+qu+VXNXDF8kSCboZCJuEcccTz5Pqf0DoYbVM5j+9n iSH6vrqlx8sZg== From: guoren@kernel.org To: anup.patel@wdc.com, atish.patra@wdc.com, palmerdabbelt@google.com, guoren@kernel.org, christoph.muellner@vrull.eu, philipp.tomsich@vrull.eu, hch@lst.de, liush@allwinnertech.com, wefu@redhat.com, lazyparser@gmail.com, drew@beagleboard.org Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, taiten.peng@canonical.com, aniket.ponkshe@canonical.com, heinrich.schuchardt@canonical.com, gordan.markus@canonical.com, Guo Ren , Chen-Yu Tsai , Maxime Ripard Subject: [RFC PATCH V4 6/6] riscv: soc: Add Allwinner SoC kconfig option Date: Sat, 11 Sep 2021 17:21:39 +0800 Message-Id: <20210911092139.79607-7-guoren@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210911092139.79607-1-guoren@kernel.org> References: <20210911092139.79607-1-guoren@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. + endmenu diff --git a/arch/riscv/configs/defconfig b/arch/riscv/configs/defconfig index bc68231a8fb7..a50f250fbdd8 100644 --- a/arch/riscv/configs/defconfig +++ b/arch/riscv/configs/defconfig @@ -15,6 +15,7 @@ CONFIG_BLK_DEV_INITRD=y CONFIG_EXPERT=y CONFIG_BPF_SYSCALL=y CONFIG_SOC_SIFIVE=y +CONFIG_SOC_SUNXI=y CONFIG_SOC_VIRT=y CONFIG_SOC_MICROCHIP_POLARFIRE=y CONFIG_SMP=y -- 2.25.1