From 9e3e0f560b3c6c3714473685d3b3866baf4f400d Mon Sep 17 00:00:00 2001 From: Rex-BC Chen Date: Thu, 3 Jun 2021 11:41:07 +0800 Subject: mb/google/cherry: Initialize SPM This patch adds support for SPM. This adds 43ms to the boot time. TEST=program counter of SPM is correct value after booting up. Signed-off-by: Dawei Chien Signed-off-by: Edward-JW Yang Signed-off-by: Rex-BC Chen Change-Id: I5f17f6d51fc9ad2d23c71c3c5cd29fdc777dc071 Reviewed-on: https://review.coreboot.org/c/coreboot/+/55154 Reviewed-by: Yu-Ping Wu Reviewed-by: Rex-BC Chen Tested-by: build bot (Jenkins) --- src/mainboard/google/cherry/mainboard.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/mainboard/google') diff --git a/src/mainboard/google/cherry/mainboard.c b/src/mainboard/google/cherry/mainboard.c index 2607a2dfb4..04f4293308 100644 --- a/src/mainboard/google/cherry/mainboard.c +++ b/src/mainboard/google/cherry/mainboard.c @@ -11,6 +11,7 @@ #include #include #include +#include #include #include "gpio.h" @@ -124,6 +125,9 @@ static void mainboard_init(struct device *dev) configure_sdcard(); setup_usb_host(); + if (spm_init()) + printk(BIOS_ERR, "spm init failed, system suspend may not work\n"); + register_reset_to_bl31(); } -- cgit v1.2.3