summaryrefslogtreecommitdiff
path: root/src/commonlib
diff options
context:
space:
mode:
authorWenbin Mei <wenbin.mei@mediatek.com>2021-03-25 14:37:35 +0800
committerPatrick Georgi <pgeorgi@google.com>2021-04-09 06:05:12 +0000
commitdf062044fd1cc8a02e0f76ab806851eeabc1b4f6 (patch)
tree0e23944dc69ae72287e874b8922ea5d9d65d1da0 /src/commonlib
parentd382f3d39f8438179822c83bcf643927105dc9da (diff)
downloadcoreboot-df062044fd1cc8a02e0f76ab806851eeabc1b4f6.tar.xz
soc/mediatek: add new driver 'msdc' for eMMC
Add MTK host mmc driver support. MTK host controller supports eMMC5.1 spec. BUG=b:177389446 TEST=emerge-asurada coreboot BRANCH=asurada Signed-off-by: Wenbin Mei <wenbin.mei@mediatek.com> Change-Id: I54a7749ed167c00cd631a76af7c67c654c7bc725 Reviewed-on: https://review.coreboot.org/c/coreboot/+/51966 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Hung-Te Lin <hungte@chromium.org> Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Diffstat (limited to 'src/commonlib')
-rw-r--r--src/commonlib/include/commonlib/sd_mmc_ctrlr.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/commonlib/include/commonlib/sd_mmc_ctrlr.h b/src/commonlib/include/commonlib/sd_mmc_ctrlr.h
index 1b1dd51479..6ac274090f 100644
--- a/src/commonlib/include/commonlib/sd_mmc_ctrlr.h
+++ b/src/commonlib/include/commonlib/sd_mmc_ctrlr.h
@@ -13,6 +13,14 @@
#define CARD_TIMEOUT -19
#define CARD_IN_PROGRESS -20 /* operation is in progress */
+/* MMC status in CBMEM_ID_MMC_STATUS */
+enum {
+ MMC_STATUS_NEED_RESET = 0,
+ MMC_STATUS_CMD1_READY_OR_IN_PROGRESS,
+ MMC_STATUS_CMD1_READY,
+ MMC_STATUS_CMD1_IN_PROGRESS,
+};
+
struct mmc_command {
uint16_t cmdidx;