<p>Marshall Dawson has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/22414">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">amd/stoneyridge: Implement vboot_platform_is_resuming<br><br>Change-Id: I23882ad8cd93fbc25acd8a07eca6a78b6bafc191<br>Signed-off-by: Marshall Dawson <marshalldawson3rd@gmail.com><br>---<br>M src/soc/amd/stoneyridge/Makefile.inc<br>M src/soc/amd/stoneyridge/pmutil.c<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/14/22414/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/src/soc/amd/stoneyridge/Makefile.inc b/src/soc/amd/stoneyridge/Makefile.inc<br>index a4cdcf5..f2a9d8d 100644<br>--- a/src/soc/amd/stoneyridge/Makefile.inc<br>+++ b/src/soc/amd/stoneyridge/Makefile.inc<br>@@ -58,6 +58,7 @@<br> romstage-$(CONFIG_STONEYRIDGE_UART) += uart.c<br> romstage-y += tsc_freq.c<br> <br>+verstage-y += sb_util.c<br> verstage-y += pmutil.c<br> verstage-y += reset.c<br> verstage-$(CONFIG_STONEYRIDGE_UART) += uart.c<br>diff --git a/src/soc/amd/stoneyridge/pmutil.c b/src/soc/amd/stoneyridge/pmutil.c<br>index 89d3640..25c9ec1 100644<br>--- a/src/soc/amd/stoneyridge/pmutil.c<br>+++ b/src/soc/amd/stoneyridge/pmutil.c<br>@@ -13,6 +13,9 @@<br>  * GNU General Public License for more details.<br>  */<br> <br>+#include <arch/acpi.h><br>+#include <soc/southbridge.h><br>+#include <security/vboot/vboot_common.h><br> #include <security/vboot/vbnv.h><br> <br> int vbnv_cmos_failed(void)<br>@@ -20,3 +23,11 @@<br>      /* FIXME: RTC failure checking not supported. */<br>      return 0;<br> }<br>+<br>+int vboot_platform_is_resuming(void)<br>+{<br>+  if (!(inw(pm_acpi_pm_evt_blk()) & WAK_STS))<br>+              return 0;<br>+<br>+ return acpi_sleep_from_pm1(inw(pm_acpi_pm_cnt_blk())) == ACPI_S3;<br>+}<br></pre><p>To view, visit <a href="https://review.coreboot.org/22414">change 22414</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/22414"/><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: I23882ad8cd93fbc25acd8a07eca6a78b6bafc191 </div>
<div style="display:none"> Gerrit-Change-Number: 22414 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Marshall Dawson <marshalldawson3rd@gmail.com> </div>