From 8ab9f5647004e03a9809634749b44f54d4f8064a Mon Sep 17 00:00:00 2001 From: Zeroway Lin Date: Fri, 29 Nov 2024 15:33:05 +0800 Subject: [PATCH] mb/google/skywalker: Set up SPM in mainboard Enable SPM booting process in mainboard. BUG=b:379008996 BRANCH=none TEST=build pass, spm init log: [INFO ] CBFS: Found 'spm_firmware.pm' @0x197c0 size 0x2e56 in mcache @0xffffeb20 [DEBUG] read SPI 0x41b7f8 0x2e56: 1793 us, 6615 KB/s, 52.920 Mbps [DEBUG] SPM: binary array size = 0xdd3 [DEBUG] spm_kick_im_to_fetch: ptr = 0x4900001e [DEBUG] mtk_init_mcu: Loaded (and reset) spm_firmware.pm in 39 msecs (14224 bytes) Signed-off-by: Zeroway Lin Change-Id: Ie49cf0aea8bfaf507fff3cb8a8fc550634f83cbd Reviewed-on: https://review.coreboot.org/c/coreboot/+/87760 Reviewed-by: Yu-Ping Wu Tested-by: build bot (Jenkins) Reviewed-by: Yidi Lin --- src/mainboard/google/skywalker/mainboard.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mainboard/google/skywalker/mainboard.c b/src/mainboard/google/skywalker/mainboard.c index 44549f46e5..d786f473d0 100644 --- a/src/mainboard/google/skywalker/mainboard.c +++ b/src/mainboard/google/skywalker/mainboard.c @@ -2,12 +2,14 @@ #include #include +#include #include static void mainboard_init(struct device *dev) { dpm_init(); setup_usb_host(); + spm_init(); } static void mainboard_enable(struct device *dev)