summaryrefslogtreecommitdiff
path: root/src/mainboard/google/corsola
diff options
context:
space:
mode:
authorRex-BC Chen <rex-bc.chen@mediatek.corp-partner.google.com>2021-11-10 20:44:12 +0800
committerHung-Te Lin <hungte@chromium.org>2021-11-17 10:31:14 +0000
commitad5fda5fbf1ce5b1f009930992bb7f8280dd063c (patch)
treefa35f8dddd3617f25d95ae0a53c179d98cdb0af3 /src/mainboard/google/corsola
parentbade5caedb859d87fd01f08b99598906e14a7deb (diff)
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 <rex-bc.chen@mediatek.com> Change-Id: I822417f7a679107760b202dd43fb79d1934940bd Reviewed-on: https://review.coreboot.org/c/coreboot/+/59342 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Diffstat (limited to 'src/mainboard/google/corsola')
-rw-r--r--src/mainboard/google/corsola/mainboard.c5
1 files changed, 5 insertions, 0 deletions
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 <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 @@ 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)