From ad5fda5fbf1ce5b1f009930992bb7f8280dd063c Mon Sep 17 00:00:00 2001 From: Rex-BC Chen Date: Wed, 10 Nov 2021 20:44:12 +0800 Subject: [PATCH] mb/google/corsola: Initialize SPM Initialize SPM (System Power Management) in RAM stage. This adds 55ms to the boot time. TEST=program counter of SPM is correct value(0x250) after booting up BUG=b:202871018 Signed-off-by: Rex-BC Chen Change-Id: I822417f7a679107760b202dd43fb79d1934940bd Reviewed-on: https://review.coreboot.org/c/coreboot/+/59342 Tested-by: build bot (Jenkins) Reviewed-by: Yu-Ping Wu --- src/mainboard/google/corsola/mainboard.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/mainboard/google/corsola/mainboard.c b/src/mainboard/google/corsola/mainboard.c index 75b8bb5e4b..2ea81e848e 100644 --- a/src/mainboard/google/corsola/mainboard.c +++ b/src/mainboard/google/corsola/mainboard.c @@ -1,7 +1,9 @@ /* SPDX-License-Identifier: GPL-2.0-only */ +#include #include #include +#include #include static void mainboard_init(struct device *dev) @@ -9,6 +11,9 @@ static void mainboard_init(struct device *dev) mtk_msdc_configure_emmc(true); mtk_msdc_configure_sdcard(); setup_usb_host(); + + if (spm_init()) + printk(BIOS_ERR, "spm init failed, system suspend may not work\n"); } static void mainboard_enable(struct device *dev)