mb/google/skywalker: Add eMMC configuration

Skywalker reference design supports multiple storage types, such as UFS
and eMMC. We only need to configure eMMC if the board storage type is
eMMC.

BUG=b:379008996
BRANCH=none
TEST=build pass

Signed-off-by: Vince Liu <vince-wl.liu@mediatek.corp-partner.google.com>
Change-Id: I7c3a2e3f7acf75d57d72cda3c9d2e83b77c72f0e
Reviewed-on: https://review.coreboot.org/c/coreboot/+/87922
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Yidi Lin <yidilin@google.com>
This commit is contained in:
Vince Liu 2025-05-22 17:09:01 +08:00 committed by Yidi Lin
commit 0a41779e2e

View file

@ -86,6 +86,9 @@ enum mtk_storage_type mainboard_get_storage_type(void)
static void mainboard_init(struct device *dev)
{
if (mainboard_get_storage_type() == STORAGE_EMMC)
mtk_msdc_configure_emmc(true);
dpm_init();
setup_usb_host();
spm_init();