From e40cbcf036817b882f745b8a49b8a23646469066 Mon Sep 17 00:00:00 2001 From: Sen Chu Date: Fri, 3 Feb 2023 16:20:32 +0800 Subject: [PATCH] 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 Signed-off-by: Liju-Clr Chen Reviewed-on: https://review.coreboot.org/c/coreboot/+/72748 Reviewed-by: Yidi Lin Reviewed-by: Rex-BC Chen Reviewed-by: Yu-Ping Wu Tested-by: build bot (Jenkins) --- src/mainboard/google/geralt/regulator.c | 4 ++++ 1 file changed, 4 insertions(+) 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);