Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Bin Meng | 8ee2957 | 2016-05-07 07:46:33 -0700 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2016, Bin Meng <bmeng.cn@gmail.com> |
Bin Meng | 8ee2957 | 2016-05-07 07:46:33 -0700 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | /* Power Button */ |
| 7 | Device (PWRB) |
| 8 | { |
| 9 | Name(_HID, EISAID("PNP0C0C")) |
| 10 | } |
Bin Meng | 5d2a588 | 2016-08-01 20:53:53 -0700 | [diff] [blame] | 11 | |
| 12 | /* PS/2 keyboard and mouse */ |
| 13 | Scope (\_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 | } |