vc/mediatek/mt8195: Optimize DRAM init time by limiting frequency count
Support the config MEDIATEK_DRAM_DVFS_LIMIT_FREQ_CNT to limit DRAM frequency counts to reduce DRAM initialization time by about 100ms. BUG=b:195274787 Signed-off-by: Ryan Chuang <ryan.chuang@mediatek.corp-partner.google.com> Change-Id: Ibcb9a50c24f428358ef682b64946d4c91ebd81d2 Reviewed-on: https://review.coreboot.org/c/coreboot/+/56849 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Rex-BC Chen <rex-bc.chen@mediatek.corp-partner.google.com> Reviewed-by: Yu-Ping Wu <yupingso@google.com>
This commit is contained in:
@ -1882,6 +1882,9 @@ 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))
|
||||
ett_fix_freq = 0x1; // 4266, 1600
|
||||
|
||||
if (ett_fix_freq != 0xff)
|
||||
gAndroid_DVFS_en = FALSE;
|
||||
|
||||
|
Reference in New Issue
Block a user