summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSen Chu <sen.chu@mediatek.corp-partner.google.com>2023-02-03 16:20:32 +0800
committerFelix Held <felix-coreboot@felixheld.de>2023-02-08 15:41:11 +0000
commite40cbcf036817b882f745b8a49b8a23646469066 (patch)
treeaec08ece40d8abb68ab8b09f256f4e4a69cb0db7 /src
parent012701970faaec35195ff705dfc9956404c8c516 (diff)
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>
Diffstat (limited to 'src')
-rw-r--r--src/mainboard/google/geralt/regulator.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mainboard/google/geralt/regulator.c b/src/mainboard/google/geralt/regulator.c
index 6089af90d6..f3b440751f 100644
--- a/src/mainboard/google/geralt/regulator.c
+++ b/src/mainboard/google/geralt/regulator.c
@@ -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);