From df062044fd1cc8a02e0f76ab806851eeabc1b4f6 Mon Sep 17 00:00:00 2001 From: Wenbin Mei Date: Thu, 25 Mar 2021 14:37:35 +0800 Subject: 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 Change-Id: I54a7749ed167c00cd631a76af7c67c654c7bc725 Reviewed-on: https://review.coreboot.org/c/coreboot/+/51966 Tested-by: build bot (Jenkins) Reviewed-by: Hung-Te Lin Reviewed-by: Yu-Ping Wu --- src/commonlib/include/commonlib/sd_mmc_ctrlr.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/commonlib/include') 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; -- cgit v1.2.3