1 /* SPDX-License-Identifier: GPL-2.0-only */
3 /* SuperIO control port */
6 /* SuperIO control map */
7 OperationRegion (SPIM, SystemIO, SPIO, 0x02)
8 Field (SPIM, ByteAcc, NoLock, Preserve) {
13 /* SuperIO control registers */
14 IndexField (SIOI, SIOD, ByteAcc, NoLock, Preserve) {
16 CR2A, 8, /* Pin function selection */
19 Device (PS2K) // Keyboard
21 Name(_HID, EISAID("PNP0303"))
22 Name(_CID, EISAID("PNP030B"))
24 Name(_CRS, ResourceTemplate()
26 IO (Decode16, 0x60, 0x60, 0x01, 0x01)
27 IO (Decode16, 0x64, 0x64, 0x01, 0x01)
28 IRQ (Edge, ActiveHigh, Exclusive) { 0x01 } // IRQ 1
37 Device (PS2M) // Mouse
39 Name(_HID, EISAID("PNP0F13"))
40 Name(_CRS, ResourceTemplate()
42 IRQ (Edge, ActiveHigh, Exclusive) { 0x0c } // IRQ 12
47 /* Access SuperIO ACPI device */
51 /* Read Pin56 function select */
52 And(CR2A, 0x2, Local0)
54 /* Restore default SuperIO access */
58 /* Mouse function selected */