sd: Changed KConfig Structure

Changed KConfig structure for SD:
- Better Menu Interface
- Changed symbol dependency structure

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
This commit is contained in:
Declan Snyder 2022-08-29 16:43:30 -05:00 committed by Carles Cufí
commit a838eef33b
3 changed files with 17 additions and 16 deletions

View file

@ -27,13 +27,11 @@ config SDMMC_VOLUME_NAME
config SDMMC_SUBSYS
bool "SDMMC access via SD subsystem"
select SD_STACK
select SDMMC_STACK
select SDHC
default y
depends on DT_HAS_ZEPHYR_SDMMC_DISK_ENABLED
help
Enable SDMMC access via SD subsystem
Enable SDMMC access via SD subsystem.
config SDMMC_STM32
bool "STM32 SDMMC driver"

View file

@ -3,17 +3,7 @@
# SD stack configuration options
menuconfig SD_STACK
bool "SD Card Support"
select SDHC
help
Enable SD card support
if SD_STACK
module = SD
module-str = SD stack
source "subsys/logging/Kconfig.template.log_config"
menu "SD"
config SDMMC_STACK
bool "SDMMC protocol support"
@ -26,6 +16,19 @@ config SDIO_STACK
help
Enable SDIO protocol support. Required for SD I/O cards to function.
config SD_STACK
bool
default y if SDMMC_STACK || SDIO_STACK
select SDHC
help
Enable SD card support.
if SD_STACK
module = SD
module-str = SD stack
source "subsys/logging/Kconfig.template.log_config"
config SD_INIT_TIMEOUT
int "Timeout while initializing SD card"
default 1500
@ -83,3 +86,5 @@ config SD_UHS_PROTOCOL
reduce code size, at the cost of data transfer speeds.
endif # SD_STACK
endmenu

View file

@ -1,7 +1,5 @@
CONFIG_TEST=y
CONFIG_ZTEST=y
CONFIG_SDHC=y
CONFIG_SD_STACK=y
CONFIG_SDMMC_STACK=y
CONFIG_LOG=y
CONFIG_ZTEST_NEW_API=y