From 16bc9bab2ab3b248f44bdf721ec83cdc21bcc32e Mon Sep 17 00:00:00 2001 From: Lee Leahy Date: Sat, 1 Apr 2017 20:33:58 -0700 Subject: soc/intel/quark: Add SD/MMC test support The SD/MMC test support consists of: * Add Kconfig value to enable the SD/MMC test support. * Add Kconfig value to enable the logging support. * Add SD/MMC controller init code and read block 0 from each partition. * Add logging code to snapshot the transactions with the SD/MMC device. * Add eMMC driver for ramstage to call test code. * Add romstage code to call test code. * Add bootblock code to call test code. TEST=Build and run on Galileo Gen2 Change-Id: I72785f0dcd466c05c1385cef166731219b583551 Signed-off-by: Lee Leahy Reviewed-on: https://review.coreboot.org/19211 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth --- src/soc/intel/quark/Kconfig | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/soc/intel/quark/Kconfig') diff --git a/src/soc/intel/quark/Kconfig b/src/soc/intel/quark/Kconfig index c697b561bd..7f95b7193a 100644 --- a/src/soc/intel/quark/Kconfig +++ b/src/soc/intel/quark/Kconfig @@ -304,4 +304,22 @@ config C_ENV_BOOTBLOCK_SIZE hex default 0x8000 +##### +# Test support +##### + +config STORAGE_TEST + bool "Test SD/MMC/eMMC card or device access" + default n + select DRIVERS_STORAGE + select SDHCI_CONTROLLER + help + Read block 0 from each parition of the storage device. User must + also enable one or both of DRIVERS_STORAGE_SD or DRIVERS_STORAGE_MMC. + +config STORAGE_LOG + bool "Log and display SD/MMC commands" + default n + depends on STORAGE_TEST + endif # SOC_INTEL_QUARK -- cgit v1.2.3