<p>Marc Jones has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/22398">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">soc/amd/stoneyridge: Add GNVS variables for thermal control<br><br>BUG=b:67999819<br><br>Change-Id: I78db830c14092f5e918657e62bf38ab7124b1646<br>Signed-off-by: Marc Jones <marcj303@gmail.com><br>---<br>M src/soc/amd/stoneyridge/acpi/globalnvs.asl<br>M src/soc/amd/stoneyridge/include/soc/nvs.h<br>2 files changed, 13 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/98/22398/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/src/soc/amd/stoneyridge/acpi/globalnvs.asl b/src/soc/amd/stoneyridge/acpi/globalnvs.asl<br>index bf0ed55..7e696aa 100644<br>--- a/src/soc/amd/stoneyridge/acpi/globalnvs.asl<br>+++ b/src/soc/amd/stoneyridge/acpi/globalnvs.asl<br>@@ -41,6 +41,12 @@<br>    PRT0,   32,     // 0x25 - 0x28 - PERST_0 Address<br>      SCDP,   8,      // 0x29 - SD_CD GPIO portid<br>   SCDO,   8,      // 0x2A - GPIO pad offset relative to the community<br>+  TMPS,   8,      // 0x2B - Temperature Sensor ID<br>+      TLVL,   8,      // 0x2C - Throttle Level Limit<br>+       FLVL,   8,      // 0x2D - Current FAN Level<br>+  TCRT,   8,      // 0x2E - Critical Threshold<br>+ TPSV,   8,      // 0x2F - Passive Threshold<br>+  TMAX,   8,      // 0x30 - CPU Tj_max<br>  /* ChromeOS stuff (0x100 -> 0xfff, size 0xeff) */<br>  Offset (0x100),<br>       #include <vendorcode/google/chromeos/acpi/gnvs.asl><br>diff --git a/src/soc/amd/stoneyridge/include/soc/nvs.h b/src/soc/amd/stoneyridge/include/soc/nvs.h<br>index 623c554..b4f7213 100644<br>--- a/src/soc/amd/stoneyridge/include/soc/nvs.h<br>+++ b/src/soc/amd/stoneyridge/include/soc/nvs.h<br>@@ -44,7 +44,13 @@<br>    uint32_t        prt0; /* 0x25 - 0x28 - PERST_0 Address */<br>     uint8_t         scdp; /* 0x29 - SD_CD GPIO portid */<br>  uint8_t         scdo; /* 0x2A - GPIO pad offset relative to the community */<br>- uint8_t         unused[213];<br>+ uint8_t         tmps; /* 0x2B - Temperature Sensor ID */<br>+     uint8_t         tlvl; /* 0x2C - Throttle Level Limit */<br>+      uint8_t         flvl; /* 0x2D - Current FAN Level */<br>+ uint8_t         tcrt; /* 0x2E - Critical Threshold */<br>+        uint8_t         tpsv; /* 0x2F - Passive Threshold */<br>+ uint8_t         tmax; /* 0x30 - CPU Tj_max */<br>+        uint8_t         unused[207];<br> <br>       /* ChromeOS specific (0x100 - 0xfff) */<br>       chromeos_acpi_t chromeos;<br></pre><p>To view, visit <a href="https://review.coreboot.org/22398">change 22398</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/22398"/><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: I78db830c14092f5e918657e62bf38ab7124b1646 </div>
<div style="display:none"> Gerrit-Change-Number: 22398 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Marc Jones <marc@marcjonesconsulting.com> </div>