intel/common/block/scs: Add ability to send early CMD0, CMD1
commitb7fe7a1a8e033706f39c0fded5901f0f1dce7cfb
authorBora Guvendik <bora.guvendik@intel.com>
Fri, 9 Mar 2018 00:32:43 +0000 (8 16:32 -0800)
committerPatrick Georgi <pgeorgi@google.com>
Thu, 23 May 2019 09:04:31 +0000 (23 09:04 +0000)
tree5314407da68c4d247914b49594f39feb940d3ab3
parentc72dc05acc12c65614079bd0de25809b80456141
intel/common/block/scs: Add ability to send early CMD0, CMD1

In order to improve boot time with emmc, add ability to send CMD0
and CMD1 early in romstage. This way, by the time system boots to
payload, we are ready to continue with emmc setup and we don't need
to send CMD0 in payload again, and wait for card to reset and be ready.

BUG=b:78106689
TESTS = Boot to OS
Force early_mmc_wake_hw() to return error, recover in payload
Force an error in payload, make sure system can recover/boot

Change-Id: I3488b077bf5100a1e0f2c879fb1436105607d25e
Signed-off-by: Bora Guvendik <bora.guvendik@intel.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/25068
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Lijian Zhao <lijian.zhao@intel.com>
src/commonlib/include/commonlib/cbmem_id.h
src/soc/intel/common/block/include/intelblocks/early_mmc.h [new file with mode: 0644]
src/soc/intel/common/block/scs/Kconfig
src/soc/intel/common/block/scs/Makefile.inc
src/soc/intel/common/block/scs/early_mmc.c [new file with mode: 0644]