summaryrefslogtreecommitdiff
path: root/src/mainboard/google/cherry
diff options
context:
space:
mode:
authorRex-BC Chen <rex-bc.chen@mediatek.com>2021-07-13 17:18:40 +0800
committerFelix Held <felix-coreboot@felixheld.de>2021-07-21 15:46:09 +0000
commitcd67657dea6e4c5ca1f068ebf16623924e1b001d (patch)
treee0ac58cfd1083027ee31008cb227f68943c61b5b /src/mainboard/google/cherry
parent881df06124844957fa68fac289f862a5d87a2e86 (diff)
soc/mediatek/mt8195: redefine mt6360_regulator_id
On MT8195 platforms with BC1.2, we have to use EC to control MT6360 so the mt6360_regulator_id is redefined to match the numbers defined in EC driver. Signed-off-by: Rex-BC Chen <rex-bc.chen@mediatek.com> Change-Id: I9437edb9776442759ce04c31d315c3760078ffb3 Reviewed-on: https://review.coreboot.org/c/coreboot/+/56434 Reviewed-by: Yu-Ping Wu <yupingso@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/google/cherry')
-rw-r--r--src/mainboard/google/cherry/regulator.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mainboard/google/cherry/regulator.c b/src/mainboard/google/cherry/regulator.c
index e7da942616..b59a643069 100644
--- a/src/mainboard/google/cherry/regulator.c
+++ b/src/mainboard/google/cherry/regulator.c
@@ -13,9 +13,9 @@ static int get_mt6360_regulator_id(enum mtk_regulator regulator)
{
switch (regulator) {
case MTK_REGULATOR_VDD2:
- return MT6360_PMIC_BUCK1;
+ return MT6360_BUCK1;
case MTK_REGULATOR_VDDQ:
- return MT6360_PMIC_BUCK2;
+ return MT6360_BUCK2;
default:
break;
}