[coreboot-gerrit] Change in coreboot[master]: (WIP) soc/amd/stoneyridge: Add PSP-to-BIOS handler to SMI
frank vibrans (Code Review)
gerrit at coreboot.org
Thu Oct 12 18:36:42 CEST 2017
frank vibrans has uploaded this change for review. ( https://review.coreboot.org/21994
Change subject: (WIP) soc/amd/stoneyridge: Add PSP-to-BIOS handler to SMI
......................................................................
(WIP) soc/amd/stoneyridge: Add PSP-to-BIOS handler to SMI
Modify SMI handler to handle PSP-to-BIOS communication SMIs. They
are characterized and enabled by the config value HAVE_PSP2C_MBOX.
TODO: Change the PSP-to-BIOS communication initialization mechanism
to use the command APM_CNT_GNVS_UPDATE that is not currently in place.
Change-Id: I3ad6fdaf36ee46be4585b4e7ece1e36492fa3248
Signed-off-by: Frank Vibrans <frank.vibrans at scarletltd.com>
---
M src/soc/amd/stoneyridge/smihandler.c
1 file changed, 10 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/94/21994/1
diff --git a/src/soc/amd/stoneyridge/smihandler.c b/src/soc/amd/stoneyridge/smihandler.c
index f9bd8d7..8ff41d0 100644
--- a/src/soc/amd/stoneyridge/smihandler.c
+++ b/src/soc/amd/stoneyridge/smihandler.c
@@ -18,6 +18,7 @@
#include <console/console.h>
#include <cpu/x86/smm.h>
#include <delay.h>
+#include <amdblocks/psp.h>
#include <soc/smi.h>
#include <soc/southbridge.h>
@@ -37,6 +38,12 @@
reg32 &= ~(1 << 0); /* clear SCI_EN */
outl(ACPI_PM1_CNT_BLK, reg32);
break;
+#if IS_ENABLED(CONFIG_HAVE_PSP2C_MBOX)
+ case APM_CNT_PSP_SMM_INIT:
+ psp_smm_init();
+ break;
+
+#endif
}
mainboard_smi_apmc(cmd);
@@ -53,6 +60,9 @@
*/
struct smi_sources_t smi_sources[] = {
{ .type = SMITYPE_SMI_CMD_PORT, .handler = sb_apmc_smi_handler },
+#if IS_ENABLED(CONFIG_HAVE_PSP2C_MBOX)
+ { .type = SMITYPE_FAKE0, .handler = psp_p2cmbox_event },
+#endif
};
static void process_smi_sci(void)
--
To view, visit https://review.coreboot.org/21994
To unsubscribe, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I3ad6fdaf36ee46be4585b4e7ece1e36492fa3248
Gerrit-Change-Number: 21994
Gerrit-PatchSet: 1
Gerrit-Owner: frank vibrans <frank.vibrans at scarletltd.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20171012/f702afdd/attachment.html>
More information about the coreboot-gerrit
mailing list