tests: sd: Adds MMC test and Kconfigs
Adds MMC test and Kconfigs for MMC Note: MMC not yet implemented as of this commit Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
This commit is contained in:
parent
cad243d59e
commit
fea01b4254
6 changed files with 290 additions and 1 deletions
|
@ -5,6 +5,11 @@
|
|||
|
||||
menu "SD"
|
||||
|
||||
config MMC_STACK
|
||||
bool "MMC protocol support"
|
||||
help
|
||||
Enable MMC protocol support. Required for eMMC cards to function.
|
||||
|
||||
config SDMMC_STACK
|
||||
bool "SDMMC protocol support"
|
||||
help
|
||||
|
@ -18,7 +23,7 @@ config SDIO_STACK
|
|||
|
||||
config SD_STACK
|
||||
bool
|
||||
default y if SDMMC_STACK || SDIO_STACK
|
||||
default y if MMC_STACK || SDMMC_STACK || SDIO_STACK
|
||||
select SDHC
|
||||
help
|
||||
Enable SD card support.
|
||||
|
@ -65,6 +70,8 @@ config SD_BUFFER_SIZE
|
|||
# If SDHC required buffer alignment, we need a full block size in
|
||||
# internal buffer
|
||||
default 512 if SDHC_BUFFER_ALIGNMENT != 1
|
||||
# If MMC is being used, need 512 bytes to read EXT_CSD
|
||||
default 512 if MMC_STACK
|
||||
# Otherwise, we only need 64 bytes to read SD switch function
|
||||
default 64
|
||||
help
|
||||
|
@ -85,6 +92,12 @@ config SD_UHS_PROTOCOL
|
|||
Enable support for ultra high speed SD cards. This can be disabled to
|
||||
reduce code size, at the cost of data transfer speeds.
|
||||
|
||||
config MMC_RCA
|
||||
hex "MMC Relative card address"
|
||||
default 2
|
||||
help
|
||||
Relative card address to publish to MMC card.
|
||||
|
||||
endif # SD_STACK
|
||||
|
||||
endmenu
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue