From 259306a296ed9d8ccc87214eb930ffd15f23640e Mon Sep 17 00:00:00 2001 From: Jarried Lin Date: Fri, 7 Feb 2025 15:36:31 +0800 Subject: [PATCH] mb/google/rauru: Deassert PCIe PERST# earlier in romstage Reorder the PCIe reset before mtk_dram_init to overlap the de-assert time with the DRAM initialization process. This change helps to optimize the initialization sequence and reduce overall boot time. BRANCH=rauru TEST=Build pass BUG=b:391333055 Change-Id: I24b254ff3a3cbe6d9a60a8e6afea2c621e0a07e2 Signed-off-by: Jarried Lin Reviewed-on: https://review.coreboot.org/c/coreboot/+/86311 Tested-by: build bot (Jenkins) Reviewed-by: Yu-Ping Wu Reviewed-by: Yidi Lin --- src/mainboard/google/rauru/romstage.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/mainboard/google/rauru/romstage.c b/src/mainboard/google/rauru/romstage.c index 7860dfd092..584af61d0f 100644 --- a/src/mainboard/google/rauru/romstage.c +++ b/src/mainboard/google/rauru/romstage.c @@ -47,11 +47,10 @@ void platform_romstage_main(void) clk_buf_init(); if (CONFIG(RTC)) rtc_boot(); + if (CONFIG(PCI)) + mtk_pcie_deassert_perst(); mtk_dram_init(); modem_power_down(); dvfs_init(); thermal_init(); - - if (CONFIG(PCI)) - mtk_pcie_deassert_perst(); }