summaryrefslogtreecommitdiffstats
path: root/src/soc/mediatek/common
diff options
context:
space:
mode:
authorWenbin Mei <wenbin.mei@mediatek.com>2021-11-05 10:05:11 +0800
committerHung-Te Lin <hungte@chromium.org>2021-11-16 08:01:27 +0000
commit1cbcfc13eb95dbd39c85f4c7b366b1369d1f73e8 (patch)
tree0cab28e12bb992e8dd4399717dba2f2656fa19c6 /src/soc/mediatek/common
parentf3b2c157f561d8311f47474444166859df08d282 (diff)
downloadcoreboot-1cbcfc13eb95dbd39c85f4c7b366b1369d1f73e8.tar.gz
coreboot-1cbcfc13eb95dbd39c85f4c7b366b1369d1f73e8.tar.bz2
coreboot-1cbcfc13eb95dbd39c85f4c7b366b1369d1f73e8.zip
soc/mediatek/mt8186: Configure eMMC and SD Card
The Corsola reference design has both eMMC and SD Card interfaces so we have to configure both in RAM stage. TEST=build pass BUG=b:202871018 Signed-off-by: Wenbin Mei <wenbin.mei@mediatek.com> Change-Id: I2f26a8a11edd29a80a7195e3a324151d66ecb293 Reviewed-on: https://review.coreboot.org/c/coreboot/+/59292 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Diffstat (limited to 'src/soc/mediatek/common')
-rw-r--r--src/soc/mediatek/common/include/soc/msdc.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/soc/mediatek/common/include/soc/msdc.h b/src/soc/mediatek/common/include/soc/msdc.h
index 6208b72f6e72..f25c3d0276e8 100644
--- a/src/soc/mediatek/common/include/soc/msdc.h
+++ b/src/soc/mediatek/common/include/soc/msdc.h
@@ -1,7 +1,7 @@
/* SPDX-License-Identifier: GPL-2.0-or-later */
-#ifndef __MSDC_H_
-#define __MSDC_H_
+#ifndef SOC_MEDIATEK_COMMON_MSDC_H
+#define SOC_MEDIATEK_COMMON_MSDC_H
#include <commonlib/sd_mmc_ctrlr.h>
@@ -165,5 +165,7 @@ struct msdc_ctrlr {
#define msdc_error(format...) printk(BIOS_ERR, "ERROR: " format)
int mtk_emmc_early_init(void *base, void *top_base);
+void mtk_msdc_configure_emmc(void);
+void mtk_msdc_configure_sdcard(void);
-#endif // MTK_MMC_H_
+#endif /* SOC_MEDIATEK_COMMON_MSDC_H */