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

@ -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