Rex-BC Chen has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/59342 )
Change subject: mb/google/corsola: Initialize SPM ......................................................................
mb/google/corsola: Initialize SPM
This patch adds support for SPM. 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 rex-bc.chen@mediatek.com Change-Id: I822417f7a679107760b202dd43fb79d1934940bd --- M src/mainboard/google/corsola/mainboard.c 1 file changed, 5 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/42/59342/1
diff --git a/src/mainboard/google/corsola/mainboard.c b/src/mainboard/google/corsola/mainboard.c index 75b8bb5..2ea81e8 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 <console/console.h> #include <device/device.h> #include <soc/msdc.h> +#include <soc/spm.h> #include <soc/usb.h>
static void mainboard_init(struct device *dev) @@ -9,6 +11,9 @@ 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)