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>
This commit is contained in:
parent
e969a3df87
commit
b57308f437
2 changed files with 6 additions and 0 deletions
|
|
@ -30,6 +30,8 @@ config BOARD_SPECIFIC_OPTIONS
|
|||
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
|
||||
|
|
|
|||
|
|
@ -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 @@ static void mainboard_init(struct device *dev)
|
|||
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");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue