<p>Marshall Dawson has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/22407">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">amd/stoneyridge: Add generic IMC sleep and wakeup<br><br>Hudson code, the basis for soc//stoneyridge southbridge, has typically<br>contained direct calls to vendorcode/amd//ImcLib.c.  In an effort to<br>keep #include files clean in other stoneyridge files, put the new calls<br>into imc.c.<br><br>Change-Id: I830d5431635ac4acaf3c3c974cb452847dc147cd<br>Signed-off-by: Marshall Dawson <marshalldawson3rd@gmail.com><br>---<br>M src/soc/amd/stoneyridge/imc.c<br>M src/soc/amd/stoneyridge/include/soc/imc.h<br>2 files changed, 12 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/07/22407/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/src/soc/amd/stoneyridge/imc.c b/src/soc/amd/stoneyridge/imc.c<br>index 6a5b5d8..a42a9e0 100644<br>--- a/src/soc/amd/stoneyridge/imc.c<br>+++ b/src/soc/amd/stoneyridge/imc.c<br>@@ -78,3 +78,13 @@<br>       WriteECmsg(MSG_SYS_TO_IMC, AccessWidth8, &FunNum, &StdHeader);<br>        WaitForEcLDN9MailboxCmdAck(&StdHeader);<br> }<br>+<br>+void imc_sleep(void)<br>+{<br>+        ImcSleep(NULL);<br>+}<br>+<br>+void imc_wakeup(void)<br>+{<br>+   ImcWakeup(NULL);<br>+}<br>diff --git a/src/soc/amd/stoneyridge/include/soc/imc.h b/src/soc/amd/stoneyridge/include/soc/imc.h<br>index d613409..079df79 100644<br>--- a/src/soc/amd/stoneyridge/include/soc/imc.h<br>+++ b/src/soc/amd/stoneyridge/include/soc/imc.h<br>@@ -18,5 +18,7 @@<br> <br> void imc_reg_init(void);<br> void enable_imc_thermal_zone(void);<br>+void imc_sleep(void);<br>+void imc_wakeup(void);<br> <br> #endif<br></pre><p>To view, visit <a href="https://review.coreboot.org/22407">change 22407</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/22407"/><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: I830d5431635ac4acaf3c3c974cb452847dc147cd </div>
<div style="display:none"> Gerrit-Change-Number: 22407 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Marshall Dawson <marshalldawson3rd@gmail.com> </div>