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 <leroy.p.leahy@intel.com>
Reviewed-on: https://review.coreboot.org/19211
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin Roth <martinroth@google.com>
This commit is contained in:
Lee Leahy
2017-04-01 20:33:58 -07:00
parent 52f29743b1
commit 16bc9bab2a
8 changed files with 403 additions and 0 deletions

View File

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