vc/mediatek/mt8195: Optimize DRAM init time by disabling Vcore setting

Remove the unnecessary Vcore setting for the DVFS feature.

Signed-off-by: Ryan Chuang <ryan.chuang@mediatek.corp-partner.google.com>
Change-Id: If3c28e57a559a7ec04319c1a489138817e44ec4a
Reviewed-on: https://review.coreboot.org/c/coreboot/+/56907
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
This commit is contained in:
Ryan Chuang 2021-08-10 10:08:49 +08:00 committed by Nick Vaccaro
parent 909f2d04a0
commit 4572727547
1 changed files with 4 additions and 3 deletions

View File

@ -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)