blob: 852965cb8749d6f09029ce9127c477972a001e34 [file] [log] [blame]
Angel Pons210a0082020-04-02 23:48:24 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Duncan Laurief5d688a2018-10-15 15:22:21 -07002
3/* Scope is \_SB.PCI0.LPCB */
4
5Device (SIO)
6{
7 Name (_UID, 0)
8 Name (_ADR, 0)
9
10 Device (COM1)
11 {
12 Name (_HID, EisaId ("PNP0501"))
13 Name (_UID, 1)
Duncan Laurief5d688a2018-10-15 15:22:21 -070014
15 Method (_STA, 0, NotSerialized)
16 {
Julius Wernercd49cce2019-03-05 16:53:33 -080017#if CONFIG(DRIVERS_UART_8250IO)
Duncan Laurief5d688a2018-10-15 15:22:21 -070018 Return (0x0f)
19#else
Felix Singer42efd7f2022-12-26 09:38:45 +010020 Return (0)
Duncan Laurief5d688a2018-10-15 15:22:21 -070021#endif
22 }
23
24 Name (_CRS, ResourceTemplate ()
25 {
26 IO (Decode16, 0x03F8, 0x3F8, 0x08, 0x08)
27 IRQNoFlags () {4}
28 })
Duncan Laurief5d688a2018-10-15 15:22:21 -070029 }
Matt DeVillierd7d55152022-05-23 17:12:28 -050030}
Duncan Laurief5d688a2018-10-15 15:22:21 -070031
Matt DeVillierd7d55152022-05-23 17:12:28 -050032Scope (\_SB.PCI0)
33{
Duncan Laurief5d688a2018-10-15 15:22:21 -070034 Device (PS2K)
35 {
36 Name (_HID, EisaId ("PNP0303"))
37 Name (_CID, EisaId ("PNP030B"))
38 Name (_UID, 0)
Duncan Laurief5d688a2018-10-15 15:22:21 -070039
40 Method (_STA, 0, NotSerialized)
41 {
42#ifdef SIO_EC_ENABLE_PS2K
43 Return (0x0f)
44#else
Felix Singer42efd7f2022-12-26 09:38:45 +010045 Return (0)
Duncan Laurief5d688a2018-10-15 15:22:21 -070046#endif
47 }
48
49 Name (_CRS, ResourceTemplate()
50 {
51 IO (Decode16, 0x60, 0x60, 0x01, 0x01)
52 IO (Decode16, 0x64, 0x64, 0x01, 0x01)
53 IRQ (Edge, ActiveHigh, Exclusive) {1}
54 })
Duncan Laurief5d688a2018-10-15 15:22:21 -070055 }
56
57 Device (PS2M)
58 {
59 Name (_HID, EisaId ("PNP0F13"))
60 Name (_UID, 0)
Duncan Laurief5d688a2018-10-15 15:22:21 -070061
62 Method (_STA, 0, NotSerialized)
63 {
64#ifdef SIO_EC_ENABLE_PS2M
65 Return (0x0f)
66#else
Felix Singer42efd7f2022-12-26 09:38:45 +010067 Return (0)
Duncan Laurief5d688a2018-10-15 15:22:21 -070068#endif
69 }
70
71 Name (_CRS, ResourceTemplate()
72 {
73 IRQ (Edge, ActiveHigh, Exclusive) {12}
74 })
Duncan Laurief5d688a2018-10-15 15:22:21 -070075 }
76}