Attention is currently required from: DAWEI CHIEN. Hello DAWEI CHIEN,
I'd like you to do a code review. Please visit
https://review.coreboot.org/c/coreboot/+/55141
to review the following change.
Change subject: mb/google/cherry: add SPM loader init ......................................................................
mb/google/cherry: add SPM loader init
This patch adds support for loading spm firmware from cbfs to spm sram.
TEST=program counter of SPM is correct value after booting up.
Signed-off-by: Dawei Chien dawei.chien@mediatek.com Signed-off-by: Edward-JW Yang edward-jw.yang@mediatek.corp-partner.google.com Change-Id: I91787666f6b1421c065212e1f96619fdb2b966d7 --- M src/mainboard/google/cherry/mainboard.c 1 file changed, 4 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/41/55141/1
diff --git a/src/mainboard/google/cherry/mainboard.c b/src/mainboard/google/cherry/mainboard.c index 2607a2d..04f4293 100644 --- a/src/mainboard/google/cherry/mainboard.c +++ b/src/mainboard/google/cherry/mainboard.c @@ -11,6 +11,7 @@ #include <soc/i2c.h> #include <soc/mt6360.h> #include <soc/regulator.h> +#include <soc/spm.h> #include <soc/usb.h>
#include "gpio.h" @@ -124,6 +125,9 @@ configure_sdcard(); setup_usb_host();
+ if (spm_init()) + printk(BIOS_ERR, "spm init failed, system suspend may not work\n"); + register_reset_to_bl31(); }