From patchwork Tue Sep 12 13:31:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jinyu Tang X-Patchwork-Id: 13381676 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id E2DF1CA0ECF for ; Tue, 12 Sep 2023 13:32:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=cA6mvDfeWEnx7+NjhX86k4RHokE7P6uitVN8ekw0Fkw=; b=tLP5JHFVsHNpR0 9LBEqn8LAU8NUDRwMFxWJwdVPDj4/NE00GnQjNH23NhdhN2luHQCV+HrWp+qEcwAKLdtgoEX+9g+T CXye5Ayt0lsl31fbFv9Qx9OssvyQkpeW+MoiBH+EM6D2H1t0KYLs2sipFjUOR3Tv8uah1+97/1GYG vnC6vOHtpSw3xovoPwJzqWYMITNCTSIsmTrhLMBbLXgy71Pw4ZwMHJO9eo3J7K/wskjPvHXuDLJBB l0ptm1iLH2YAK2o49A0bbIjJDVGp5jg57mFaiFAfXEsLg9SwxkjOiWvgS76XJy3JosJwIK8YchiX5 me6OXb5vt6Zf4VNc/tzw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qg3VM-003RIB-0V; Tue, 12 Sep 2023 13:32:36 +0000 Received: from bg4.exmail.qq.com ([43.155.67.158]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qg3VC-003R1s-1O for linux-riscv@lists.infradead.org; Tue, 12 Sep 2023 13:32:29 +0000 X-QQ-mid: bizesmtpipv602t1694525493t476 Received: from localhost.localdomain ( [255.55.58.5]) by bizesmtp.qq.com (ESMTP) with id ; Tue, 12 Sep 2023 21:31:31 +0800 (CST) X-QQ-SSF: 01200000000000302000000A0000000 X-QQ-FEAT: n5ZZfu71JLxz6MwOEsrJsuqDcH7rEDQR0btq3jRrn7DHcQvGJ9LVMjdKmIjvh JCDktGeOKpmJZBOTGF5AyusOz1RPbqXIaM+xW3oBUwYNF+XjMgdTm37xKaYK/xl6O7j+2Zh sVfvh/bHB73yBUjDSy7VomzjLsl0c1zKxDjPinRcCrvHTpAaXpiXxcrYzpsOl0Pv9l+LXjQ dnMjpdkxDoZHR6uALLyruupAvTm0C9fNHKcF7K67PdiYIOQ+3asQkwGJY83M06PEQKpxBAV xh+zM1X97JhIoX+EORYPwL+Wwu2CVA1vL4mJQTZcqUuSkzl2+TTLc1fGerQl9FHuMKgrY0r fvZxKscTVAdHMhOW3g= X-QQ-GoodBg: 0 X-BIZMAIL-ID: 3363788168851752325 From: Jinyu Tang To: william.qiu@starfivetech.com, hal.feng@starfivetech.com, conor.dooley@microchip.com, palmer@dabbelt.com, apatel@ventanamicro.com Cc: ttjjyystupid@163.com, falcon@tinylab.org, wangjiexun@tinylab.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Jinyu Tang Subject: [PATCH v2] riscv: defconfig : add CONFIG_MMC_DW for starfive Date: Tue, 12 Sep 2023 21:31:28 +0800 Message-Id: <20230912133128.5247-1-tangjinyu@tinylab.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtpipv:tinylab.org:qybglogicsvrsz:qybglogicsvrsz3a-0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230912_063226_851642_93068A84 X-CRM114-Status: UNSURE ( 6.68 ) X-CRM114-Notice: Please train this message. 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: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org If these config not set, mmc can't run for jh7110, rootfs can't be found when using SD card. So set CONFIG_MMC_DW=y like arm64 defconfig, and set CONFIG_MMC_DW_STARFIVE=y for starfive. Then starfive vf2 board can start SD card rootfs with mainline defconfig and dtb. Signed-off-by: Jinyu Tang Reviewed-by: Conor Dooley --- v1 -> v2: Change the order of these by using savedefconfig, thanks to Conor Dooley. arch/riscv/configs/defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/riscv/configs/defconfig b/arch/riscv/configs/defconfig index ab86ec3b9..76c43a532 100644 --- a/arch/riscv/configs/defconfig +++ b/arch/riscv/configs/defconfig @@ -169,6 +169,8 @@ CONFIG_MMC_SDHCI=y CONFIG_MMC_SDHCI_PLTFM=y CONFIG_MMC_SDHCI_CADENCE=y CONFIG_MMC_SPI=y +CONFIG_MMC_DW=y +CONFIG_MMC_DW_STARFIVE=y CONFIG_MMC_SUNXI=y CONFIG_RTC_CLASS=y CONFIG_RTC_DRV_SUN6I=y