summaryrefslogtreecommitdiff
path: root/src/soc/mediatek
diff options
context:
space:
mode:
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)