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>
This commit is contained in:
Hsin-Hsiung Wang 2020-11-27 12:31:12 +08:00 committed by Hung-Te Lin
parent dac4fa6ded
commit 04de09986b
1 changed files with 1 additions and 1 deletions

View File

@ -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_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); 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) static void init_pmif_arb(void)