]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
x86: bayleybay: Add PS/2 keyboard and mouse to ASL file
authorBin Meng <bmeng.cn@gmail.com>
Tue, 2 Aug 2016 03:53:53 +0000 (20:53 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Tue, 16 Aug 2016 03:44:09 +0000 (11:44 +0800)
Without PS/2 keyboard and mouse in the ASL file, Windows does not
see them. No problem for Linux as it probes keyboard and mouse via
the legacy 8042 I/O port.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
board/intel/bayleybay/acpi/mainboard.asl

index 21785ea73b1008d24bd4001384dd67520c20156d..8b7ee3fba22493c5445c5621c6d361433419aad9 100644 (file)
@@ -9,3 +9,41 @@ Device (PWRB)
 {
        Name(_HID, EISAID("PNP0C0C"))
 }
+
+/* PS/2 keyboard and mouse */
+Scope (\_SB.PCI0.LPCB)
+{
+       /* 8042 Keyboard */
+       Device (PS2K)
+       {
+               Name(_HID, EISAID("PNP0303"))
+               Name(_CRS, ResourceTemplate()
+               {
+                       IO(Decode16, 0x60, 0x60, 0x00, 0x01)
+                       IO(Decode16, 0x64, 0x64, 0x00, 0x01)
+                       IRQNoFlags() { 1 }
+               })
+
+               Method(_STA, 0, Serialized)
+               {
+                       Return (STA_VISIBLE)
+               }
+       }
+
+       /* 8042 Mouse */
+       Device (PS2M)
+       {
+               Name(_HID, EISAID("PNP0F03"))
+               Name(_CRS, ResourceTemplate()
+               {
+                       IO(Decode16, 0x60, 0x60, 0x00, 0x01)
+                       IO(Decode16, 0x64, 0x64, 0x00, 0x01)
+                       IRQNoFlags() { 12 }
+               })
+
+               Method(_STA, 0, Serialized)
+               {
+                       Return (STA_VISIBLE)
+               }
+       }
+}