<p>frank vibrans has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/21994">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">(WIP) soc/amd/stoneyridge: Add PSP-to-BIOS handler to SMI<br><br>Modify SMI handler to handle PSP-to-BIOS communication SMIs. They<br>are characterized and enabled by the config value HAVE_PSP2C_MBOX.<br><br>TODO: Change the PSP-to-BIOS communication initialization mechanism<br>to use the command APM_CNT_GNVS_UPDATE that is not currently in place.<br><br>Change-Id: I3ad6fdaf36ee46be4585b4e7ece1e36492fa3248<br>Signed-off-by: Frank Vibrans <frank.vibrans@scarletltd.com><br>---<br>M src/soc/amd/stoneyridge/smihandler.c<br>1 file changed, 10 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/94/21994/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/src/soc/amd/stoneyridge/smihandler.c b/src/soc/amd/stoneyridge/smihandler.c<br>index f9bd8d7..8ff41d0 100644<br>--- a/src/soc/amd/stoneyridge/smihandler.c<br>+++ b/src/soc/amd/stoneyridge/smihandler.c<br>@@ -18,6 +18,7 @@<br> #include <console/console.h><br> #include <cpu/x86/smm.h><br> #include <delay.h><br>+#include <amdblocks/psp.h><br> #include <soc/smi.h><br> #include <soc/southbridge.h><br> <br>@@ -37,6 +38,12 @@<br>               reg32 &= ~(1 << 0);   /* clear SCI_EN */<br>            outl(ACPI_PM1_CNT_BLK, reg32);<br>                break;<br>+#if IS_ENABLED(CONFIG_HAVE_PSP2C_MBOX)<br>+      case APM_CNT_PSP_SMM_INIT:<br>+           psp_smm_init();<br>+              break;<br>+<br>+#endif<br>    }<br> <br>  mainboard_smi_apmc(cmd);<br>@@ -53,6 +60,9 @@<br>  */<br> struct smi_sources_t smi_sources[] = {<br>    { .type = SMITYPE_SMI_CMD_PORT, .handler = sb_apmc_smi_handler },<br>+#if IS_ENABLED(CONFIG_HAVE_PSP2C_MBOX)<br>+   { .type = SMITYPE_FAKE0, .handler = psp_p2cmbox_event },<br>+#endif<br> };<br> <br> static void process_smi_sci(void)<br></pre><p>To view, visit <a href="https://review.coreboot.org/21994">change 21994</a>. To unsubscribe, visit <a href="https://review.coreboot.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://review.coreboot.org/21994"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: coreboot </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I3ad6fdaf36ee46be4585b4e7ece1e36492fa3248 </div>
<div style="display:none"> Gerrit-Change-Number: 21994 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: frank vibrans <frank.vibrans@scarletltd.com> </div>