<p>Simon Glass has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/27465">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">mb/google/kahlee/variants/grunt: Select low-power mode for WiFi<br><br>Put the PCIe clock pins in power-saving mode for the WiFi module to save<br>power.<br><br>Note: This currently does not appear to have any effect on grunt.<br><br>BUG=b:110041917<br>BRANCH=none<br>TEST=boot without this patch:<br>$ iotools mem_read32 0xfed80e00<br>0x0046f3ff<br><br>With this patch:<br>$ iotools mem_read32 0xfed80e00<br>0x0046f3f1<br><br>Change-Id: I389815bc36b8610a30b0cbb9d73262ad392e0181<br>Signed-off-by: Simon Glass <sjg@chromium.org><br>---<br>M src/mainboard/google/kahlee/mainboard.c<br>M src/soc/amd/stoneyridge/include/soc/southbridge.h<br>2 files changed, 10 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/65/27465/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/mainboard/google/kahlee/mainboard.c b/src/mainboard/google/kahlee/mainboard.c</span><br><span>index cf600d2..a5a8dd1 100644</span><br><span>--- a/src/mainboard/google/kahlee/mainboard.c</span><br><span>+++ b/src/mainboard/google/kahlee/mainboard.c</span><br><span>@@ -150,6 +150,12 @@</span><br><span>                       GPP_CLK2_CLOCK_REQ_MAP_MASK,</span><br><span>                         GPP_CLK2_CLOCK_REQ_MAP_CLK_REQ2 <<</span><br><span>                     GPP_CLK2_CLOCK_REQ_MAP_SHIFT);</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+      /* Same for the WiFi */</span><br><span style="color: hsl(120, 100%, 40%);">+       clrsetbits_le32((uint32_t *)(MISC_MMIO_BASE + GPP_CLK_CNTRL),</span><br><span style="color: hsl(120, 100%, 40%);">+                 GPP_CLK0_CLOCK_REQ_MAP_MASK,</span><br><span style="color: hsl(120, 100%, 40%);">+                  GPP_CLK0_CLOCK_REQ_MAP_CLK_REQ0 <<</span><br><span style="color: hsl(120, 100%, 40%);">+                      GPP_CLK0_CLOCK_REQ_MAP_SHIFT);</span><br><span> }</span><br><span> </span><br><span> /*************************************************</span><br><span>diff --git a/src/soc/amd/stoneyridge/include/soc/southbridge.h b/src/soc/amd/stoneyridge/include/soc/southbridge.h</span><br><span>index 3127f5c..2e95309 100644</span><br><span>--- a/src/soc/amd/stoneyridge/include/soc/southbridge.h</span><br><span>+++ b/src/soc/amd/stoneyridge/include/soc/southbridge.h</span><br><span>@@ -366,6 +366,10 @@</span><br><span> #define GPP_CLK2_CLOCK_REQ_MAP_MASK    (0xf << GPP_CLK2_CLOCK_REQ_MAP_SHIFT)</span><br><span> #define GPP_CLK2_CLOCK_REQ_MAP_CLK_REQ2  3</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+#define GPP_CLK0_CLOCK_REQ_MAP_SHIFT     0</span><br><span style="color: hsl(120, 100%, 40%);">+#define GPP_CLK0_CLOCK_REQ_MAP_MASK  (0xf << GPP_CLK0_CLOCK_REQ_MAP_SHIFT)</span><br><span style="color: hsl(120, 100%, 40%);">+#define GPP_CLK0_CLOCK_REQ_MAP_CLK_REQ0    1</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> struct stoneyridge_aoac {</span><br><span>     int enable;</span><br><span>  int status;</span><br><span></span><br></pre><p>To view, visit <a href="https://review.coreboot.org/27465">change 27465</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/27465"/><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: I389815bc36b8610a30b0cbb9d73262ad392e0181 </div>
<div style="display:none"> Gerrit-Change-Number: 27465 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Simon Glass <sjg@chromium.org> </div>