Yidi Lin has submitted this change. ( https://review.coreboot.org/c/coreboot/+/85565?usp=email )
(
10 is the latest approved patch-set. No files were changed between the latest approved patch-set and the submitted one. )Change subject: mb/google/rauru: Add SD card configurations ......................................................................
mb/google/rauru: Add SD card configurations
Rauru reference design has SD card interfaces, so we configure it in mainboard_init() in ramstage.
BUG=b:317009620 TEST=Build pass. Check storage in depthcharge. firmware-shell: storage init * 0: UFS LUN 0 1: removable mtk_mmc
Change-Id: Ia9f12df85c5f9f9d134990edcf82bf0df9ea995d Signed-off-by: Andy-ld Lu andy-ld.lu@mediatek.corp-partner.google.com Reviewed-on: https://review.coreboot.org/c/coreboot/+/85565 Reviewed-by: Yidi Lin yidilin@google.com Reviewed-by: Yu-Ping Wu yupingso@google.com Tested-by: build bot (Jenkins) no-reply@coreboot.org --- M src/mainboard/google/rauru/Kconfig M src/mainboard/google/rauru/mainboard.c 2 files changed, 6 insertions(+), 0 deletions(-)
Approvals: build bot (Jenkins): Verified Yu-Ping Wu: Looks good to me, approved Yidi Lin: Looks good to me, approved
diff --git a/src/mainboard/google/rauru/Kconfig b/src/mainboard/google/rauru/Kconfig index a85f303..18a1699 100644 --- a/src/mainboard/google/rauru/Kconfig +++ b/src/mainboard/google/rauru/Kconfig @@ -30,6 +30,8 @@ select I2C_TPM if VBOOT select MAINBOARD_HAS_TPM2 if VBOOT select TPM_GOOGLE_TI50 if VBOOT + select COMMONLIB_STORAGE + select COMMONLIB_STORAGE_MMC
config MAINBOARD_DIR string diff --git a/src/mainboard/google/rauru/mainboard.c b/src/mainboard/google/rauru/mainboard.c index 9c238c7..c1a4347 100644 --- a/src/mainboard/google/rauru/mainboard.c +++ b/src/mainboard/google/rauru/mainboard.c @@ -9,6 +9,7 @@ #include <soc/dpm_v2.h> #include <soc/gpio_common.h> #include <soc/i2c.h> +#include <soc/msdc.h> #include <soc/pcie.h> #include <soc/usb.h>
@@ -55,6 +56,9 @@ power_on_fpmcu(); configure_audio();
+ if (CONFIG(RAURU_SDCARD_INIT)) + mtk_msdc_configure_sdcard(); + if (dpm_init()) printk(BIOS_ERR, "dpm init failed, DVFS may not work\n");