<p>Duncan Laurie has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/29125">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">ec/google/wilco: Add ACPI SuperIO devices<br><br>Add ACPI devices for the basic SuperIO functionality provided by the EC<br>for PS/2 keyboard, PS/2 mouse (trackpad emulation), and legacy UART.<br><br>The specific defines to enable these devices should be declared by the<br>mainboard before including this ASL, the same as the Chrome EC behavior.<br><br>Change-Id: I910940ebf26b8758ab12d695e1eba9c668c640c6<br>Signed-off-by: Duncan Laurie <dlaurie@google.com><br>---<br>A src/ec/google/wilco/acpi/superio.asl<br>1 file changed, 117 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/25/29125/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/ec/google/wilco/acpi/superio.asl b/src/ec/google/wilco/acpi/superio.asl</span><br><span>new file mode 100644</span><br><span>index 0000000..a8cea78</span><br><span>--- /dev/null</span><br><span>+++ b/src/ec/google/wilco/acpi/superio.asl</span><br><span>@@ -0,0 +1,117 @@</span><br><span style="color: hsl(120, 100%, 40%);">+/*</span><br><span style="color: hsl(120, 100%, 40%);">+ * This file is part of the coreboot project.</span><br><span style="color: hsl(120, 100%, 40%);">+ *</span><br><span style="color: hsl(120, 100%, 40%);">+ * Copyright 2018 Google LLC</span><br><span style="color: hsl(120, 100%, 40%);">+ *</span><br><span style="color: hsl(120, 100%, 40%);">+ * This program is free software; you can redistribute it and/or</span><br><span style="color: hsl(120, 100%, 40%);">+ * modify it under the terms of the GNU General Public License as</span><br><span style="color: hsl(120, 100%, 40%);">+ * published by the Free Software Foundation; version 2 of</span><br><span style="color: hsl(120, 100%, 40%);">+ * the License.</span><br><span style="color: hsl(120, 100%, 40%);">+ *</span><br><span style="color: hsl(120, 100%, 40%);">+ * This program is distributed in the hope that it will be useful,</span><br><span style="color: hsl(120, 100%, 40%);">+ * but WITHOUT ANY WARRANTY; without even the implied warranty of</span><br><span style="color: hsl(120, 100%, 40%);">+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span><br><span style="color: hsl(120, 100%, 40%);">+ * GNU General Public License for more details.</span><br><span style="color: hsl(120, 100%, 40%);">+ */</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+/* Scope is \_SB.PCI0.LPCB */</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+Device (SIO)</span><br><span style="color: hsl(120, 100%, 40%);">+{</span><br><span style="color: hsl(120, 100%, 40%);">+   Name (_UID, 0)</span><br><span style="color: hsl(120, 100%, 40%);">+        Name (_ADR, 0)</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+      Device (COM1)</span><br><span style="color: hsl(120, 100%, 40%);">+ {</span><br><span style="color: hsl(120, 100%, 40%);">+             Name (_HID, EisaId ("PNP0501"))</span><br><span style="color: hsl(120, 100%, 40%);">+             Name (_UID, 1)</span><br><span style="color: hsl(120, 100%, 40%);">+                Name (_ADR, 0)</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+              Method (_STA, 0, NotSerialized)</span><br><span style="color: hsl(120, 100%, 40%);">+               {</span><br><span style="color: hsl(120, 100%, 40%);">+#ifdef SIO_EC_ENABLE_COM1</span><br><span style="color: hsl(120, 100%, 40%);">+                  Return (0x0f)</span><br><span style="color: hsl(120, 100%, 40%);">+#else</span><br><span style="color: hsl(120, 100%, 40%);">+                  Return (Zero)</span><br><span style="color: hsl(120, 100%, 40%);">+#endif</span><br><span style="color: hsl(120, 100%, 40%);">+         }</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+           Name (_CRS, ResourceTemplate ()</span><br><span style="color: hsl(120, 100%, 40%);">+               {</span><br><span style="color: hsl(120, 100%, 40%);">+                     IO (Decode16, 0x03F8, 0x3F8, 0x08, 0x08)</span><br><span style="color: hsl(120, 100%, 40%);">+                      IRQNoFlags () {4}</span><br><span style="color: hsl(120, 100%, 40%);">+             })</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+          Name (_PRS, ResourceTemplate ()</span><br><span style="color: hsl(120, 100%, 40%);">+               {</span><br><span style="color: hsl(120, 100%, 40%);">+                     StartDependentFn (0, 0) {</span><br><span style="color: hsl(120, 100%, 40%);">+                             IO (Decode16, 0x03F8, 0x3F8, 0x08, 0x08)</span><br><span style="color: hsl(120, 100%, 40%);">+                              IRQNoFlags () {4}</span><br><span style="color: hsl(120, 100%, 40%);">+                     }</span><br><span style="color: hsl(120, 100%, 40%);">+                     EndDependentFn ()</span><br><span style="color: hsl(120, 100%, 40%);">+             })</span><br><span style="color: hsl(120, 100%, 40%);">+    }</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+   Device (PS2K)</span><br><span style="color: hsl(120, 100%, 40%);">+ {</span><br><span style="color: hsl(120, 100%, 40%);">+             Name (_HID, EisaId ("PNP0303"))</span><br><span style="color: hsl(120, 100%, 40%);">+             Name (_CID, EisaId ("PNP030B"))</span><br><span style="color: hsl(120, 100%, 40%);">+             Name (_UID, 0)</span><br><span style="color: hsl(120, 100%, 40%);">+                Name (_ADR, 0)</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+              Method (_STA, 0, NotSerialized)</span><br><span style="color: hsl(120, 100%, 40%);">+               {</span><br><span style="color: hsl(120, 100%, 40%);">+#ifdef SIO_EC_ENABLE_PS2K</span><br><span style="color: hsl(120, 100%, 40%);">+                  Return (0x0f)</span><br><span style="color: hsl(120, 100%, 40%);">+#else</span><br><span style="color: hsl(120, 100%, 40%);">+                  Return (Zero)</span><br><span style="color: hsl(120, 100%, 40%);">+#endif</span><br><span style="color: hsl(120, 100%, 40%);">+         }</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+           Name (_CRS, ResourceTemplate()</span><br><span style="color: hsl(120, 100%, 40%);">+                {</span><br><span style="color: hsl(120, 100%, 40%);">+                     IO (Decode16, 0x60, 0x60, 0x01, 0x01)</span><br><span style="color: hsl(120, 100%, 40%);">+                 IO (Decode16, 0x64, 0x64, 0x01, 0x01)</span><br><span style="color: hsl(120, 100%, 40%);">+                 IRQ (Edge, ActiveHigh, Exclusive) {1}</span><br><span style="color: hsl(120, 100%, 40%);">+         })</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+          Name (_PRS, ResourceTemplate()</span><br><span style="color: hsl(120, 100%, 40%);">+                {</span><br><span style="color: hsl(120, 100%, 40%);">+                     StartDependentFn (0, 0) {</span><br><span style="color: hsl(120, 100%, 40%);">+                             IO (Decode16, 0x60, 0x60, 0x01, 0x01)</span><br><span style="color: hsl(120, 100%, 40%);">+                         IO (Decode16, 0x64, 0x64, 0x01, 0x01)</span><br><span style="color: hsl(120, 100%, 40%);">+                         IRQ (Edge, ActiveHigh, Exclusive) {1}</span><br><span style="color: hsl(120, 100%, 40%);">+                 }</span><br><span style="color: hsl(120, 100%, 40%);">+                     EndDependentFn ()</span><br><span style="color: hsl(120, 100%, 40%);">+             })</span><br><span style="color: hsl(120, 100%, 40%);">+    }</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+   Device (PS2M)</span><br><span style="color: hsl(120, 100%, 40%);">+ {</span><br><span style="color: hsl(120, 100%, 40%);">+             Name (_HID, EisaId ("PNP0F13"))</span><br><span style="color: hsl(120, 100%, 40%);">+             Name (_UID, 0)</span><br><span style="color: hsl(120, 100%, 40%);">+                Name (_ADR, 0)</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+              Method (_STA, 0, NotSerialized)</span><br><span style="color: hsl(120, 100%, 40%);">+               {</span><br><span style="color: hsl(120, 100%, 40%);">+#ifdef SIO_EC_ENABLE_PS2M</span><br><span style="color: hsl(120, 100%, 40%);">+                  Return (0x0f)</span><br><span style="color: hsl(120, 100%, 40%);">+#else</span><br><span style="color: hsl(120, 100%, 40%);">+                  Return (Zero)</span><br><span style="color: hsl(120, 100%, 40%);">+#endif</span><br><span style="color: hsl(120, 100%, 40%);">+         }</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+           Name (_CRS, ResourceTemplate()</span><br><span style="color: hsl(120, 100%, 40%);">+                {</span><br><span style="color: hsl(120, 100%, 40%);">+                     IRQ (Edge, ActiveHigh, Exclusive) {12}</span><br><span style="color: hsl(120, 100%, 40%);">+                })</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+          Name (_PRS, ResourceTemplate()</span><br><span style="color: hsl(120, 100%, 40%);">+                {</span><br><span style="color: hsl(120, 100%, 40%);">+                     StartDependentFn (0, 0) {</span><br><span style="color: hsl(120, 100%, 40%);">+                             IRQ (Edge, ActiveHigh, Exclusive) {12}</span><br><span style="color: hsl(120, 100%, 40%);">+                        }</span><br><span style="color: hsl(120, 100%, 40%);">+                     EndDependentFn ()</span><br><span style="color: hsl(120, 100%, 40%);">+             })</span><br><span style="color: hsl(120, 100%, 40%);">+    }</span><br><span style="color: hsl(120, 100%, 40%);">+}</span><br><span></span><br></pre><p>To view, visit <a href="https://review.coreboot.org/29125">change 29125</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/29125"/><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: I910940ebf26b8758ab12d695e1eba9c668c640c6 </div>
<div style="display:none"> Gerrit-Change-Number: 29125 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Duncan Laurie <dlaurie@chromium.org> </div>