<p>Marshall Dawson has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/21882">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">amd/stoneyridge: Add function to find PmControl register<br><br>Find the PmControl register's I/O address by checking the hardware in<br>PMx62.  Don't rely on the address being the coreboot default.  PmControl<br>is the first register in the AcpiPm1CntBlk.<br><br>Change-Id: Ibb608dcaa7801af067d6edd86f92c117c2ac08a6<br>Signed-off-by: Marshall Dawson <marshalldawson3rd@gmail.com><br>---<br>M src/soc/amd/stoneyridge/include/soc/southbridge.h<br>M src/soc/amd/stoneyridge/sb_util.c<br>2 files changed, 6 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/82/21882/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/src/soc/amd/stoneyridge/include/soc/southbridge.h b/src/soc/amd/stoneyridge/include/soc/southbridge.h<br>index ebfee24..d506af9 100644<br>--- a/src/soc/amd/stoneyridge/include/soc/southbridge.h<br>+++ b/src/soc/amd/stoneyridge/include/soc/southbridge.h<br>@@ -202,6 +202,7 @@<br> u32 smi_read32(u8 reg);<br> void smi_write16(u8 reg, u16 value);<br> void smi_write32(u8 reg, u32 value);<br>+uint16_t pm_acpi_pm_cnt_blk(void);<br> int s3_load_nvram_early(int size, u32 *old_dword, int nvram_pos);<br> void s3_resume_init_data(void *FchParams);<br> int s3_save_nvram_early(u32 dword, int size, int  nvram_pos);<br>diff --git a/src/soc/amd/stoneyridge/sb_util.c b/src/soc/amd/stoneyridge/sb_util.c<br>index 87bff70..bdb199a 100644<br>--- a/src/soc/amd/stoneyridge/sb_util.c<br>+++ b/src/soc/amd/stoneyridge/sb_util.c<br>@@ -64,3 +64,8 @@<br> {<br>        write16((void *)(APU_SMI_BASE + offset), value);<br> }<br>+<br>+uint16_t pm_acpi_pm_cnt_blk(void)<br>+{<br>+      return pm_read16(PM1_CNT_BLK);<br>+}<br></pre><p>To view, visit <a href="https://review.coreboot.org/21882">change 21882</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/21882"/><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: Ibb608dcaa7801af067d6edd86f92c117c2ac08a6 </div>
<div style="display:none"> Gerrit-Change-Number: 21882 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Marshall Dawson <marshalldawson3rd@gmail.com> </div>