mb/google/skywalker: Turn off UFS power for eMMC SKUs

On MT8189, UFS power is enabled by default. For SKUs that use eMMC for
storage and do not need UFS, it is necessary to disable UFS power;
otherwise, the system will fail to suspend properly. Disabling UFS
power in these cases both saves power and ensures correct suspend
functionality.

BUG=b:430421429
BRANCH=skywalker
TEST=Suspend flow works correctly, and SoC power consumption is 34 mW,
     meeting expectations on Anakin.

Signed-off-by: Vince Liu <vince-wl.liu@mediatek.corp-partner.google.com>
Change-Id: Ie932a939f663e159e098fd13c7e26e9a2089e7bd
Reviewed-on: https://review.coreboot.org/c/coreboot/+/88977
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Reviewed-by: Yidi Lin <yidilin@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Vince Liu 2025-08-27 15:31:50 +08:00 committed by Yu-Ping Wu
commit 7896f4950c

View file

@ -88,8 +88,10 @@ enum mtk_storage_type mainboard_get_storage_type(void)
static void mainboard_init(struct device *dev)
{
if (mainboard_get_storage_type() == STORAGE_EMMC)
if (mainboard_get_storage_type() == STORAGE_EMMC) {
mtk_msdc_configure_emmc(true);
mtcmos_ufs_power_off();
}
dpm_init();
setup_usb_host();