summaryrefslogtreecommitdiff
path: root/src/vendorcode/mediatek
diff options
context:
space:
mode:
Diffstat (limited to 'src/vendorcode/mediatek')
-rw-r--r--src/vendorcode/mediatek/mt8195/dramc/dramc_pi_main.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/vendorcode/mediatek/mt8195/dramc/dramc_pi_main.c b/src/vendorcode/mediatek/mt8195/dramc/dramc_pi_main.c
index f39023bd14..501f9d3785 100644
--- a/src/vendorcode/mediatek/mt8195/dramc/dramc_pi_main.c
+++ b/src/vendorcode/mediatek/mt8195/dramc/dramc_pi_main.c
@@ -229,8 +229,9 @@ void vSetVcoreByFreq(DRAMC_CTX_T *p)
}
#endif
- if (vcore)
- dramc_set_vcore_voltage(vcore);
+ if (CONFIG(MEDIATEK_DRAM_DVFS))
+ if (vcore)
+ dramc_set_vcore_voltage(vcore);
#if defined(DRAM_HQA)
if (vio18)
@@ -1884,7 +1885,7 @@ int Init_DRAM(DRAM_DRAM_TYPE_T dram_type, DRAM_CBT_MODE_EXTERN_T dram_cbt_mode_e
ett_fix_freq = 1; /* only 1600 & 4266 */
#endif
- if (CONFIG(MEDIATEK_DRAM_DVFS_LIMIT_FREQ_CNT))
+ if (!CONFIG(MEDIATEK_DRAM_DVFS))
ett_fix_freq = 0x1; // 4266, 1600
if (ett_fix_freq != 0xff)