diff options
author | Wenbin Mei <wenbin.mei@mediatek.com> | 2021-11-05 10:05:11 +0800 |
---|---|---|
committer | Hung-Te Lin <hungte@chromium.org> | 2021-11-16 08:01:27 +0000 |
commit | 1cbcfc13eb95dbd39c85f4c7b366b1369d1f73e8 (patch) | |
tree | 0cab28e12bb992e8dd4399717dba2f2656fa19c6 /src/soc/mediatek/common | |
parent | f3b2c157f561d8311f47474444166859df08d282 (diff) | |
download | coreboot-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.h | 8 |
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 */ |