Skip to content

Commit 3b2456d

Browse files
decsnystephanosio
authored andcommitted
drivers: disk: Default SDMMC Kconfig based on DT
Set default of DISK_DRIVER_SDMMC Kconfig based on the devicetree. This should avoid having to set the kconfig at the board level in order to use sdmmc. Signed-off-by: Declan Snyder <[email protected]>
1 parent e0fb044 commit 3b2456d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/disk/Kconfig.sdmmc

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ DT_STM32_SDMMC_HAS_DMA := $(dt_nodelabel_has_prop,sdmmc,dmas)
66

77
config DISK_DRIVER_SDMMC
88
bool "SDMMC card driver"
9+
default y if DT_HAS_ZEPHYR_SDMMC_DISK_ENABLED
910
help
1011
SDMMC card driver.
1112

0 commit comments

Comments
 (0)