coreboot/src/commonlib
Wenbin Mei a49460c6b6 soc/mediatek: pass access mode to the payload
Some eMMCs (for example, Kingston-EMMC64G-TX29-HP) may enter the ready
state by sending CMD1 twice. If it is in the ready state, then the
payload (for example, depthcharge) will not send CMD1, but the access
mode is only available from the response of CMD1.

Therefore, we need to pass the access mode to the payload by defining
the following types:

- MMC_STATUS_CMD1_READY: in ready state and access mode is byte mode.
- MMC_STATUS_CMD1_READY_HCS: in ready state and access mode is sector
  mode.

BUG=b:234672726
BRANCH=cherry
TEST=boot ok

Signed-off-by: Wenbin Mei <wenbin.mei@mediatek.com>
Change-Id: Iad905781d8ba0105911cf87a6b845cd8df57521e
Reviewed-on: https://review.coreboot.org/c/coreboot/+/65054
Reviewed-by: Yidi Lin <yidilin@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
2022-06-12 22:28:37 +00:00
..
bsd commonlib: Clean up compiler.h 2022-06-07 12:34:35 +00:00
include/commonlib soc/mediatek: pass access mode to the payload 2022-06-12 22:28:37 +00:00
storage treewide: Remove "ERROR: "/"WARN: " prefixes from log messages 2022-02-07 23:29:09 +00:00
fsp_relocate.c commonlib: Replace 'stdlib' with 'stddef' 2022-04-24 18:31:14 +00:00
iobuf.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
Makefile.inc cbfs: Remove deprecated APIs 2021-12-06 12:36:45 +00:00
mem_pool.c commonlib/mem_pool: Allow configuring the alignment 2021-11-04 10:33:52 +00:00
region.c commonlib/region: Turn addrspace_32bit into a more official API 2021-04-21 02:06:26 +00:00
sort.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00