mb/google/geralt: Add support for VM18 in regulator.c

Add regulator VM18 support to supply power for BOE_TV110C9M_LL0.

BUG=b:244208960
TEST=test firmware display pass for BOE_TV110C9M_LL0 on Geralt.

Change-Id: I13bafbe10a18a18e253575fd107c9b415f28ef01
Signed-off-by: Sen Chu <sen.chu@mediatek.corp-partner.google.com>
Signed-off-by: Liju-Clr Chen <liju-clr.chen@mediatek.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/72748
Reviewed-by: Yidi Lin <yidilin@google.com>
Reviewed-by: Rex-BC Chen <rex-bc.chen@mediatek.com>
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Sen Chu 2023-02-03 16:20:32 +08:00 committed by Felix Held
parent 012701970f
commit e40cbcf036

View file

@ -19,6 +19,8 @@ static int get_mt6359p_regulator_id(enum mtk_regulator regulator)
return MT6359P_PA;
case MTK_REGULATOR_VMC:
return MT6359P_SIM1;
case MTK_REGULATOR_VDD18:
return MT6359P_VM18;
default:
return MTK_REGULATOR_INVALID;
}
@ -70,6 +72,8 @@ int mainboard_enable_regulator(enum mtk_regulator regulator, bool enable)
mt6359p_enable_vsim1(enable);
else if (id == MT6359P_PA)
mt6359p_enable_vpa(enable);
else if (id == MT6359P_VM18)
mt6359p_enable_vm18(enable);
else
printk(BIOS_INFO, "No need to enable regulator ID: %d\n", regulator);