]> git.baikalelectronics.ru Git - arm-tf.git/commitdiff
fix(mt8186): fix the DRAM voltage after the system resumes
authorAllen-KH Cheng <allen-kh.cheng@mediatek.corp-partner.google.com>
Tue, 8 Nov 2022 10:40:27 +0000 (18:40 +0800)
committerLiju-Clr Chen <liju-clr.chen@mediatek.com>
Mon, 14 Nov 2022 01:55:07 +0000 (09:55 +0800)
The DRAM power supply must sustain at 0.8V after the system resumes.
Otherwise, unexpected errors would occur. Therefore, we update the
DRAM voltage to 0.8v in PMIC voltage wrap table.

BUG=b:253537849
TEST=Suspend Resume Test

Signed-off-by: Allen-KH Cheng <allen-kh.cheng@mediatek.corp-partner.google.com>
Change-Id: Idd42d5a2d646468822e391e48d01d870c3b7f0d3

plat/mediatek/mt8186/drivers/spm/mt_spm_pmic_wrap.c

index 849ffb7e1eaaafc59bc653ac7ac68188979ee114..c0000ed740db3b4de555ff587660538ee5004ca6 100644 (file)
@@ -51,10 +51,10 @@ static struct pmic_wrap_setting pw66 = {
        .addr = { {0UL, 0UL} },
        .set[PMIC_WRAP_PHASE_ALLINONE] = {
                ._[CMD_0] = { BUCK_VCORE_ELR0_66, VOLT_TO_PMIC_VAL_66(80000), },
-               ._[CMD_1] = { BUCK_VCORE_ELR0_66, VOLT_TO_PMIC_VAL_66(75000), },
-               ._[CMD_2] = { BUCK_VCORE_ELR0_66, VOLT_TO_PMIC_VAL_66(70000), },
-               ._[CMD_3] = { BUCK_VCORE_ELR0_66, VOLT_TO_PMIC_VAL_66(65000), },
-               ._[CMD_4] = { BUCK_VCORE_ELR0_66, VOLT_TO_PMIC_VAL_66(60000), },
+               ._[CMD_1] = { BUCK_VCORE_ELR0_66, VOLT_TO_PMIC_VAL_66(80000), },
+               ._[CMD_2] = { BUCK_VCORE_ELR0_66, VOLT_TO_PMIC_VAL_66(80000), },
+               ._[CMD_3] = { BUCK_VCORE_ELR0_66, VOLT_TO_PMIC_VAL_66(80000), },
+               ._[CMD_4] = { BUCK_VCORE_ELR0_66, VOLT_TO_PMIC_VAL_66(80000), },
                ._[CMD_5] = { TOP_SPI_CON0_66, 0x1, },
                ._[CMD_6] = { TOP_SPI_CON0_66, 0x0, },
                .nr_idx = NR_IDX_ALL,