blob: 2ab938a8d8d49182c421f51af0e0edd90641a6e2 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Bin Meng8ee29572016-05-07 07:46:33 -07002/*
3 * Copyright (C) 2016, Bin Meng <bmeng.cn@gmail.com>
Bin Meng8ee29572016-05-07 07:46:33 -07004 */
5
6/* Power Button */
7Device (PWRB)
8{
9 Name(_HID, EISAID("PNP0C0C"))
10}
Bin Meng5d2a5882016-08-01 20:53:53 -070011
12/* PS/2 keyboard and mouse */
13Scope (\_SB.PCI0.LPCB)
14{
15 /* 8042 Keyboard */
16 Device (PS2K)
17 {
18 Name(_HID, EISAID("PNP0303"))
19 Name(_CRS, ResourceTemplate()
20 {
21 IO(Decode16, 0x60, 0x60, 0x00, 0x01)
22 IO(Decode16, 0x64, 0x64, 0x00, 0x01)
23 IRQNoFlags() { 1 }
24 })
25
26 Method(_STA, 0, Serialized)
27 {
28 Return (STA_VISIBLE)
29 }
30 }
31
32 /* 8042 Mouse */
33 Device (PS2M)
34 {
35 Name(_HID, EISAID("PNP0F03"))
36 Name(_CRS, ResourceTemplate()
37 {
38 IO(Decode16, 0x60, 0x60, 0x00, 0x01)
39 IO(Decode16, 0x64, 0x64, 0x00, 0x01)
40 IRQNoFlags() { 12 }
41 })
42
43 Method(_STA, 0, Serialized)
44 {
45 Return (STA_VISIBLE)
46 }
47 }
48}