Marshall Dawson has uploaded this change for review. ( https://review.coreboot.org/21751
Change subject: WIP amd/stoneyridge: Add placeholder for SlpTyp handler in SMI ......................................................................
WIP amd/stoneyridge: Add placeholder for SlpTyp handler in SMI
The S3 suspend flow involves trapping on a SlpTyp request, writing resume data to flash, then notifying the PSP of the S3 request.
Change-Id: I88d413cdbfc2daf44e8d1142c6532f7034795ead Signed-off-by: Marshall Dawson marshalldawson3rd@gmail.com --- M src/soc/amd/stoneyridge/smihandler.c 1 file changed, 6 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/51/21751/1
diff --git a/src/soc/amd/stoneyridge/smihandler.c b/src/soc/amd/stoneyridge/smihandler.c index 8551631..2c2bac9 100644 --- a/src/soc/amd/stoneyridge/smihandler.c +++ b/src/soc/amd/stoneyridge/smihandler.c @@ -41,6 +41,11 @@ mainboard_smi_apmc(cmd); }
+static void sb_slp_typ_handler(void) +{ + /* TODO: Insert S3 pre here */ +} + int southbridge_io_trap_handler(int smif) { return 0; @@ -52,6 +57,7 @@ */ struct smi_sources_t smi_sources[] = { {SMITYPE_SMI_CMD_PORT, sb_apmc_smi_handler}, + {SMITYPE_SLP_TYP, sb_slp_typ_handler}, };
static void process_smi_sci(void)