<p>Daniel Kurtz has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/26930">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">amd/stoneyridge: Set SCI_MAP for SCI enabled GPIOs.<br><br>By default we use a 1:1 mapping between GEVENT bits and the corresponding<br>SCI_MAP entry.  However, we still must program the SCI_MAP entries<br>with the GEVENT number.<br><br>Signed-off-by: Daniel Kurtz <djkurtz@chromium.org><br><br>BUG=b:109759838<br>TEST=(1) powerd_dbus_suspend<br>     (2) move finger on touchpad for ~1 second<br>   => system resumes from S3<br><br>Change-Id: Ie7be45264f9bfec56efc47a03071fdb924d16b6a<br>---<br>M src/soc/amd/stoneyridge/gpio.c<br>1 file changed, 5 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/30/26930/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/soc/amd/stoneyridge/gpio.c b/src/soc/amd/stoneyridge/gpio.c</span><br><span>index 1b7f055..b09e79d 100644</span><br><span>--- a/src/soc/amd/stoneyridge/gpio.c</span><br><span>+++ b/src/soc/amd/stoneyridge/gpio.c</span><br><span>@@ -235,6 +235,7 @@</span><br><span>          gpio_ptr = (uint32_t *)gpio_get_address(gpio);</span><br><span> </span><br><span>           if (control_flags & GPIO_SPECIAL_FLAG) {</span><br><span style="color: hsl(120, 100%, 40%);">+                  uint8_t *sci_map;</span><br><span>                    gevent_num = get_gpio_gevent(gpio);</span><br><span>                  if (gevent_num < 0) {</span><br><span>                             printk(BIOS_WARNING, "Warning: GPIO pin %d has"</span><br><span>@@ -267,6 +268,10 @@</span><br><span>                             edge_level |= bit_edge << gevent_num;</span><br><span>                          direction |= bit_level << gevent_num;</span><br><span>                          mask |= (1 << gevent_num);</span><br><span style="color: hsl(120, 100%, 40%);">+                              sci_map = (uint8_t*)(uintptr_t)(APU_SMI_BASE +</span><br><span style="color: hsl(120, 100%, 40%);">+                                                SMI_SCI_MAP(gevent_num));</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+                           write8(sci_map, gevent_num);</span><br><span>                                 break;</span><br><span>                       default:</span><br><span>                             printk(BIOS_WARNING, "Error, flags 0x%08x\n",</span><br><span></span><br></pre><p>To view, visit <a href="https://review.coreboot.org/26930">change 26930</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/26930"/><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: Ie7be45264f9bfec56efc47a03071fdb924d16b6a </div>
<div style="display:none"> Gerrit-Change-Number: 26930 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Daniel Kurtz <djkurtz@google.com> </div>
<div style="display:none"> Gerrit-Reviewer: Daniel Kurtz <djkurtz@chromium.org> </div>