<p>Marshall Dawson has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/22410">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">amd/stoneyridge: Use the new generic acpi_sleep_from_pm1<br><br>Unhardcode the acpi_get_sleep_type() function and rely on the new<br>function in arch/acpi.h.<br><br>Change-Id: Icd49c44fae43effb9f082db354abd327cad9f1ad<br>Signed-off-by: Marshall Dawson <marshalldawson3rd@gmail.com><br>---<br>M src/soc/amd/stoneyridge/southbridge.c<br>1 file changed, 1 insertion(+), 3 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/10/22410/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/src/soc/amd/stoneyridge/southbridge.c b/src/soc/amd/stoneyridge/southbridge.c<br>index b947be1..a7d80c6 100644<br>--- a/src/soc/amd/stoneyridge/southbridge.c<br>+++ b/src/soc/amd/stoneyridge/southbridge.c<br>@@ -33,9 +33,7 @@<br> <br> int acpi_get_sleep_type(void)<br> {<br>-        u16 tmp = inw(ACPI_PM1_CNT_BLK);<br>-     tmp = ((tmp & (7 << 10)) >> 10);<br>-     return (int)tmp;<br>+     return acpi_sleep_from_pm1(inw(pm_acpi_pm_cnt_blk()));<br> }<br> <br> void sb_enable(device_t dev)<br></pre><p>To view, visit <a href="https://review.coreboot.org/22410">change 22410</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/22410"/><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: Icd49c44fae43effb9f082db354abd327cad9f1ad </div>
<div style="display:none"> Gerrit-Change-Number: 22410 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Marshall Dawson <marshalldawson3rd@gmail.com> </div>