summaryrefslogtreecommitdiff
path: root/src/soc/mediatek
diff options
context:
space:
mode:
authorHsin-Hsiung Wang <hsin-hsiung.wang@mediatek.com>2020-11-27 12:31:12 +0800
committerHung-Te Lin <hungte@chromium.org>2020-12-16 06:29:40 +0000
commit04de09986bb02b3d5b9aece996710112194c2ff3 (patch)
tree3ac43dbc195f42681e9bac2ddc0b6d1b92f6cd3a /src/soc/mediatek
parentdac4fa6ded89e104ace5283b519be2a70ff60e0b (diff)
soc/mediatek/mt8192: Correct return value of VM18 voltage
The voltage of vm18 should be microvolt instead of millivolt. BUG=b:155253454 BRANCH=none TEST=boot asurada correctly Signed-off-by: Hsin-Hsiung Wang <hsin-hsiung.wang@mediatek.com> Change-Id: Iea5b46c1df358dc350506d29cc033d01631b37b0 Reviewed-on: https://review.coreboot.org/c/coreboot/+/48110 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Diffstat (limited to 'src/soc/mediatek')
-rw-r--r--src/soc/mediatek/mt8192/mt6359p.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/soc/mediatek/mt8192/mt6359p.c b/src/soc/mediatek/mt8192/mt6359p.c
index 1646e534e4..a8e93ca7c6 100644
--- a/src/soc/mediatek/mt8192/mt6359p.c
+++ b/src/soc/mediatek/mt8192/mt6359p.c
@@ -417,7 +417,7 @@ u32 mt6359p_get_vm18_voltage(void)
reg_vol = 100 * mt6359p_read_field(PMIC_VM18_ANA_CON0, 0xF, VM18_VOL_REG_SHIFT);
reg_cali = 10 * mt6359p_read_field(PMIC_VM18_ANA_CON0, 0xF, 0);
- return 600 + reg_vol + reg_cali;
+ return 1000 * (VM18_VOL_OFFSET + reg_vol + reg_cali);
}
static void init_pmif_arb(void)