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 <jarried.lin@mediatek.corp-partner.google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/86311
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Reviewed-by: Yidi Lin <yidilin@google.com>
This commit is contained in:
Jarried Lin 2025-02-07 15:36:31 +08:00 committed by Yidi Lin
commit 259306a296

View file

@ -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();
}