From 784e2fc10ea90f17cd619ab03a2f267800583b7b Mon Sep 17 00:00:00 2001 From: Jarried Lin Date: Thu, 16 Jan 2025 14:28:42 +0800 Subject: [PATCH] mb/google/rauru: Run mtk-fsp in romstage Run mtk_fsp_romstage.elf (MediaTek firmware support package for romstage) in romstage to support power switch. BUG=b:373797027 TEST=build pass, boot ok. Load and run mtk_fsp with following logs: [DEBUG] FMAP: area FW_MAIN_A found @ 402000 (1527552 bytes) [INFO ] CBFS: Found 'fallback/mtk_fsp_romstage' @0xfc280 size 0x6bd in mcache @0x00122518 [INFO ] VB2:vb2_digest_init() 1725 bytes, hash algo 2, HW acceleration enabled [INFO ] _start: MediaTek FSP_ROMSTAGE interface version: 1.0 [INFO ] mtk_fsp_load_and_run: run fallback/mtk_fsp_romstage at phase 0x30 done Change-Id: Id223152e0bda71e99e72b34c91fea8f8841e824b Signed-off-by: Jarried Lin Reviewed-on: https://review.coreboot.org/c/coreboot/+/86015 Reviewed-by: Yu-Ping Wu Reviewed-by: Yidi Lin Tested-by: build bot (Jenkins) --- src/mainboard/google/rauru/romstage.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mainboard/google/rauru/romstage.c b/src/mainboard/google/rauru/romstage.c index d82e152cee..32c8a61a29 100644 --- a/src/mainboard/google/rauru/romstage.c +++ b/src/mainboard/google/rauru/romstage.c @@ -9,6 +9,7 @@ #include #include #include +#include #include #include #include @@ -34,6 +35,8 @@ void platform_romstage_main(void) mt6316_init(); raise_little_cpu_freq(); mt6373_init(); + mtk_fsp_init(ROMSTAGE_INIT); + mtk_fsp_load_and_run(); mt6685_init(); srclken_rc_init(); clk_buf_init();