mb/google/skywalker: Use FW_CONFIG for storage and dual init support
Replace AUXADC with FW_CONFIG for storage type detection, and allow unprovisioned CBI to initialize both eMMC and UFS, providing greater flexibility for ODMs. BUG=b:469517374 TEST=boot successfully with both UFS and eMMC SKUs BRANCH=skywalker Signed-off-by: Vince Liu <vince-wl.liu@mediatek.corp-partner.google.com> Change-Id: I400d0a452a5c25b5f429b99bf0b62591ac6cbe1f Reviewed-on: https://review.coreboot.org/c/coreboot/+/90649 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Yidi Lin <yidilin@google.com> Reviewed-by: Yu-Ping Wu <yupingso@google.com>
This commit is contained in:
parent
4063a4c3f1
commit
25d159a7ec
1 changed files with 3 additions and 1 deletions
|
|
@ -124,7 +124,9 @@ static void mainboard_init(struct device *dev)
|
|||
{
|
||||
mt6359p_init_pmif_arb();
|
||||
|
||||
if (mainboard_get_storage_type() == STORAGE_EMMC) {
|
||||
if (!fw_config_is_provisioned()) {
|
||||
mtk_msdc_configure_emmc(true);
|
||||
} else if (fw_config_probe(FW_CONFIG(STORAGE, STORAGE_EMMC))) {
|
||||
mtk_msdc_configure_emmc(true);
|
||||
mtcmos_ufs_power_off();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue