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:
parent
94c858ed86
commit
a838eef33b
3 changed files with 17 additions and 16 deletions
|
@ -27,13 +27,11 @@ config SDMMC_VOLUME_NAME
|
||||||
|
|
||||||
config SDMMC_SUBSYS
|
config SDMMC_SUBSYS
|
||||||
bool "SDMMC access via SD subsystem"
|
bool "SDMMC access via SD subsystem"
|
||||||
select SD_STACK
|
|
||||||
select SDMMC_STACK
|
select SDMMC_STACK
|
||||||
select SDHC
|
|
||||||
default y
|
default y
|
||||||
depends on DT_HAS_ZEPHYR_SDMMC_DISK_ENABLED
|
depends on DT_HAS_ZEPHYR_SDMMC_DISK_ENABLED
|
||||||
help
|
help
|
||||||
Enable SDMMC access via SD subsystem
|
Enable SDMMC access via SD subsystem.
|
||||||
|
|
||||||
config SDMMC_STM32
|
config SDMMC_STM32
|
||||||
bool "STM32 SDMMC driver"
|
bool "STM32 SDMMC driver"
|
||||||
|
|
|
@ -3,17 +3,7 @@
|
||||||
|
|
||||||
# SD stack configuration options
|
# SD stack configuration options
|
||||||
|
|
||||||
menuconfig SD_STACK
|
menu "SD"
|
||||||
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"
|
|
||||||
|
|
||||||
config SDMMC_STACK
|
config SDMMC_STACK
|
||||||
bool "SDMMC protocol support"
|
bool "SDMMC protocol support"
|
||||||
|
@ -26,6 +16,19 @@ config SDIO_STACK
|
||||||
help
|
help
|
||||||
Enable SDIO protocol support. Required for SD I/O cards to function.
|
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
|
config SD_INIT_TIMEOUT
|
||||||
int "Timeout while initializing SD card"
|
int "Timeout while initializing SD card"
|
||||||
default 1500
|
default 1500
|
||||||
|
@ -83,3 +86,5 @@ config SD_UHS_PROTOCOL
|
||||||
reduce code size, at the cost of data transfer speeds.
|
reduce code size, at the cost of data transfer speeds.
|
||||||
|
|
||||||
endif # SD_STACK
|
endif # SD_STACK
|
||||||
|
|
||||||
|
endmenu
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
CONFIG_TEST=y
|
CONFIG_TEST=y
|
||||||
CONFIG_ZTEST=y
|
CONFIG_ZTEST=y
|
||||||
CONFIG_SDHC=y
|
|
||||||
CONFIG_SD_STACK=y
|
|
||||||
CONFIG_SDMMC_STACK=y
|
CONFIG_SDMMC_STACK=y
|
||||||
CONFIG_LOG=y
|
CONFIG_LOG=y
|
||||||
CONFIG_ZTEST_NEW_API=y
|
CONFIG_ZTEST_NEW_API=y
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue