<p>Richard Spiegel has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/26217">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">mb/google/kahlee/dsdt.asl: Add method _SWS<br><br>_SWS is the recommended method of wake source retrieval. Now that PM1I and<br>GPEI are available at NVS, add the method _SWS to kahlee/grunt ACPI code.<br><br>BUG=b:76020953<br>TEST=Build grunt<br><br>Change-Id: I5930438af40e6f9177462582cafb65401d9c60f4<br>Signed-off-by: Richard Spiegel <richard.spiegel@silverbackltd.com><br>---<br>M src/mainboard/google/kahlee/dsdt.asl<br>A src/soc/amd/stoneyridge/acpi/acpi_wake_source.asl<br>2 files changed, 35 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/17/26217/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/mainboard/google/kahlee/dsdt.asl b/src/mainboard/google/kahlee/dsdt.asl</span><br><span>index db81393..e5276d3 100644</span><br><span>--- a/src/mainboard/google/kahlee/dsdt.asl</span><br><span>+++ b/src/mainboard/google/kahlee/dsdt.asl</span><br><span>@@ -45,6 +45,9 @@</span><br><span>      /* Contains the Sleep methods (WAK, PTS, GTS, etc.) */</span><br><span>       #include <variant/acpi/sleep.asl></span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+   /* Contains _SWS methods */</span><br><span style="color: hsl(120, 100%, 40%);">+   #include <acpi_wake_source.asl></span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span>      /* System Bus */</span><br><span>     Scope(\_SB) { /* Start \_SB scope */</span><br><span>                 /* global utility methods expected within the \_SB scope */</span><br><span>diff --git a/src/soc/amd/stoneyridge/acpi/acpi_wake_source.asl b/src/soc/amd/stoneyridge/acpi/acpi_wake_source.asl</span><br><span>new file mode 100644</span><br><span>index 0000000..fa01802</span><br><span>--- /dev/null</span><br><span>+++ b/src/soc/amd/stoneyridge/acpi/acpi_wake_source.asl</span><br><span>@@ -0,0 +1,32 @@</span><br><span style="color: hsl(120, 100%, 40%);">+/*</span><br><span style="color: hsl(120, 100%, 40%);">+ * This file is part of the coreboot project.</span><br><span style="color: hsl(120, 100%, 40%);">+ *</span><br><span style="color: hsl(120, 100%, 40%);">+ * Copyright (C) 2015 Google Inc.</span><br><span style="color: hsl(120, 100%, 40%);">+ *</span><br><span style="color: hsl(120, 100%, 40%);">+ * This program is free software; you can redistribute it and/or modify</span><br><span style="color: hsl(120, 100%, 40%);">+ * it under the terms of the GNU General Public License as published by</span><br><span style="color: hsl(120, 100%, 40%);">+ * the Free Software Foundation; version 2 of the License.</span><br><span style="color: hsl(120, 100%, 40%);">+ *</span><br><span style="color: hsl(120, 100%, 40%);">+ * This program is distributed in the hope that it will be useful,</span><br><span style="color: hsl(120, 100%, 40%);">+ * but WITHOUT ANY WARRANTY; without even the implied warranty of</span><br><span style="color: hsl(120, 100%, 40%);">+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span><br><span style="color: hsl(120, 100%, 40%);">+ * GNU General Public License for more details.</span><br><span style="color: hsl(120, 100%, 40%);">+ */</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+Scope (\_SB)</span><br><span style="color: hsl(120, 100%, 40%);">+{</span><br><span style="color: hsl(120, 100%, 40%);">+       Method (_SWS)</span><br><span style="color: hsl(120, 100%, 40%);">+ {</span><br><span style="color: hsl(120, 100%, 40%);">+             /* Index into PM1 for device that caused wake */</span><br><span style="color: hsl(120, 100%, 40%);">+              Return (\PM1I)</span><br><span style="color: hsl(120, 100%, 40%);">+        }</span><br><span style="color: hsl(120, 100%, 40%);">+}</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+Scope (\_GPE)</span><br><span style="color: hsl(120, 100%, 40%);">+{</span><br><span style="color: hsl(120, 100%, 40%);">+      Method (_SWS)</span><br><span style="color: hsl(120, 100%, 40%);">+ {</span><br><span style="color: hsl(120, 100%, 40%);">+             /* Index into GPE for device that caused wake */</span><br><span style="color: hsl(120, 100%, 40%);">+              Return (\GPEI)</span><br><span style="color: hsl(120, 100%, 40%);">+        }</span><br><span style="color: hsl(120, 100%, 40%);">+}</span><br><span></span><br></pre><p>To view, visit <a href="https://review.coreboot.org/26217">change 26217</a>. To unsubscribe, or for help writing mail filters, 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/26217"/><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: I5930438af40e6f9177462582cafb65401d9c60f4 </div>
<div style="display:none"> Gerrit-Change-Number: 26217 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Richard Spiegel <richard.spiegel@silverbackltd.com> </div>