Hung-Te Lin submitted this change.
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>
---
M src/vendorcode/mediatek/mt8195/dramc/dramc_pi_main.c
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/vendorcode/mediatek/mt8195/dramc/dramc_pi_main.c b/src/vendorcode/mediatek/mt8195/dramc/dramc_pi_main.c
index b5de592..b5b9ae1 100644
--- a/src/vendorcode/mediatek/mt8195/dramc/dramc_pi_main.c
+++ b/src/vendorcode/mediatek/mt8195/dramc/dramc_pi_main.c
@@ -1882,6 +1882,9 @@
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;
To view, visit change 56849. To unsubscribe, or for help writing mail filters, visit settings.