[PATCH] riscv: defconfig: Add MMC support for Kendryte K230

q691800735@163.com posted 1 patch 2 weeks, 2 days ago
arch/riscv/configs/defconfig | 1 +
1 file changed, 1 insertion(+)
[PATCH] riscv: defconfig: Add MMC support for Kendryte K230
Posted by q691800735@163.com 2 weeks, 2 days ago
From: jybruceupup <q691800735@163.com>

Add dedicated driver `sdhci-of-kendryte.c` for Kendryte K230's DWC MSHC
SD/eMMC controller, enabling boot-essential external storage access.

Enable driver in defconfig: `CONFIG_MMC_SDHCI_OF_DWCMSHC_KENDRYTE=y`
- DT-matched ("canaan,k230-dw-mshc")
- Uses upstream sdhci-pltfm framework
- No impact on other RISC-V platforms
- Supports K230-based boards (e.g., CanMV DongshanPi)

Signed-off-by: jybruceupup <q691800735@163.com>
---
 arch/riscv/configs/defconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/riscv/configs/defconfig b/arch/riscv/configs/defconfig
index fc2725cbc..5848ec2b9 100644
--- a/arch/riscv/configs/defconfig
+++ b/arch/riscv/configs/defconfig
@@ -232,6 +232,7 @@ CONFIG_MMC=y
 CONFIG_MMC_SDHCI=y
 CONFIG_MMC_SDHCI_PLTFM=y
 CONFIG_MMC_SDHCI_OF_DWCMSHC=y
+CONFIG_MMC_SDHCI_OF_DWCMSHC_KENDRYTE=y
 CONFIG_MMC_SDHCI_OF_K1=y
 CONFIG_MMC_SDHCI_CADENCE=y
 CONFIG_MMC_SPI=y
-- 
2.52.0
Re: [PATCH] riscv: defconfig: Add MMC support for Kendryte K230
Posted by Conor Dooley 2 weeks, 2 days ago
On Wed, Dec 03, 2025 at 05:26:14PM +0800, q691800735@163.com wrote:
> From: jybruceupup <q691800735@163.com>
> 
> Add dedicated driver `sdhci-of-kendryte.c` for Kendryte K230's DWC MSHC
> SD/eMMC controller, enabling boot-essential external storage access.
> 
> Enable driver in defconfig: `CONFIG_MMC_SDHCI_OF_DWCMSHC_KENDRYTE=y`
> - DT-matched ("canaan,k230-dw-mshc")
> - Uses upstream sdhci-pltfm framework
> - No impact on other RISC-V platforms
> - Supports K230-based boards (e.g., CanMV DongshanPi)
> 
> Signed-off-by: jybruceupup <q691800735@163.com>
> ---
>  arch/riscv/configs/defconfig | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/arch/riscv/configs/defconfig b/arch/riscv/configs/defconfig
> index fc2725cbc..5848ec2b9 100644
> --- a/arch/riscv/configs/defconfig
> +++ b/arch/riscv/configs/defconfig
> @@ -232,6 +232,7 @@ CONFIG_MMC=y
>  CONFIG_MMC_SDHCI=y
>  CONFIG_MMC_SDHCI_PLTFM=y
>  CONFIG_MMC_SDHCI_OF_DWCMSHC=y
> +CONFIG_MMC_SDHCI_OF_DWCMSHC_KENDRYTE=y

This symbol does not exist in upstream linux, nor has any patch been
sent that adds it.

This patch should be in a series that adds the related driver changes.

>  CONFIG_MMC_SDHCI_OF_K1=y
>  CONFIG_MMC_SDHCI_CADENCE=y
>  CONFIG_MMC_SPI=y
> -- 
> 2.52.0
>