1 /* SPDX-License-Identifier: GPL-2.0-only */
3 /* Intel PCH PCIe support */
5 Method (IRQM, 1, Serialized) {
7 /* Interrupt Map INTA->INTA, INTB->INTB, INTC->INTC, INTD->INTD */
8 Name (IQAA, Package () {
9 Package () { 0x0000ffff, 0, 0, 16 },
10 Package () { 0x0000ffff, 1, 0, 17 },
11 Package () { 0x0000ffff, 2, 0, 18 },
12 Package () { 0x0000ffff, 3, 0, 19 } })
13 Name (IQAP, Package () {
14 Package () { 0x0000ffff, 0, 0, 11 },
15 Package () { 0x0000ffff, 1, 0, 10 },
16 Package () { 0x0000ffff, 2, 0, 11 },
17 Package () { 0x0000ffff, 3, 0, 11 } })
19 /* Interrupt Map INTA->INTB, INTB->INTC, INTC->INTD, INTD->INTA */
20 Name (IQBA, Package () {
21 Package () { 0x0000ffff, 0, 0, 17 },
22 Package () { 0x0000ffff, 1, 0, 18 },
23 Package () { 0x0000ffff, 2, 0, 19 },
24 Package () { 0x0000ffff, 3, 0, 16 } })
25 Name (IQBP, Package () {
26 Package () { 0x0000ffff, 0, 0, 10 },
27 Package () { 0x0000ffff, 1, 0, 11 },
28 Package () { 0x0000ffff, 2, 0, 11 },
29 Package () { 0x0000ffff, 3, 0, 11 } })
31 /* Interrupt Map INTA->INTC, INTB->INTD, INTC->INTA, INTD->INTB */
32 Name (IQCA, Package () {
33 Package () { 0x0000ffff, 0, 0, 18 },
34 Package () { 0x0000ffff, 1, 0, 19 },
35 Package () { 0x0000ffff, 2, 0, 16 },
36 Package () { 0x0000ffff, 3, 0, 17 } })
37 Name (IQCP, Package () {
38 Package () { 0x0000ffff, 0, 0, 11 },
39 Package () { 0x0000ffff, 1, 0, 11 },
40 Package () { 0x0000ffff, 2, 0, 11 },
41 Package () { 0x0000ffff, 3, 0, 10 } })
43 /* Interrupt Map INTA->INTD, INTB->INTA, INTC->INTB, INTD->INTC */
44 Name (IQDA, Package () {
45 Package () { 0x0000ffff, 0, 0, 19 },
46 Package () { 0x0000ffff, 1, 0, 16 },
47 Package () { 0x0000ffff, 2, 0, 17 },
48 Package () { 0x0000ffff, 3, 0, 18 } })
49 Name (IQDP, Package () {
50 Package () { 0x0000ffff, 0, 0, 11 },
51 Package () { 0x0000ffff, 1, 0, 11 },
52 Package () { 0x0000ffff, 2, 0, 10 },
53 Package () { 0x0000ffff, 3, 0, 11 } })
55 Switch (ToInteger (Arg0))
57 Case (Package () { 1, 5, 9, 13, 17, 21, 25 }) {
65 Case (Package () { 2, 6, 10, 14, 18, 22, 26 }) {
73 Case (Package () { 3, 7, 11, 15, 19, 23, 27 }) {
81 Case (Package () { 4, 8, 12, 16, 20, 24, 28 }) {
101 Name (_ADR, 0x001C0000)
103 OperationRegion (RPCS, PCI_Config, 0x4c, 4)
104 Field (RPCS, AnyAcc, NoLock, Preserve)
107 RPPN, 8, /* Root Port Number */
118 Name (_ADR, 0x001C0001)
120 OperationRegion (RPCS, PCI_Config, 0x4c, 4)
121 Field (RPCS, AnyAcc, NoLock, Preserve)
124 RPPN, 8, /* Root Port Number */
135 Name (_ADR, 0x001C0002)
137 OperationRegion (RPCS, PCI_Config, 0x4c, 4)
138 Field (RPCS, AnyAcc, NoLock, Preserve)
141 RPPN, 8, /* Root Port Number */
152 Name (_ADR, 0x001C0003)
154 OperationRegion (RPCS, PCI_Config, 0x4c, 4)
155 Field (RPCS, AnyAcc, NoLock, Preserve)
158 RPPN, 8, /* Root Port Number */
169 Name (_ADR, 0x001C0004)
171 OperationRegion (RPCS, PCI_Config, 0x4c, 4)
172 Field (RPCS, AnyAcc, NoLock, Preserve)
175 RPPN, 8, /* Root Port Number */
186 Name (_ADR, 0x001C0005)
188 OperationRegion (RPCS, PCI_Config, 0x4c, 4)
189 Field (RPCS, AnyAcc, NoLock, Preserve)
192 RPPN, 8, /* Root Port Number */
203 Name (_ADR, 0x001C0006)
205 OperationRegion (RPCS, PCI_Config, 0x4c, 4)
206 Field (RPCS, AnyAcc, NoLock, Preserve)
209 RPPN, 8, /* Root Port Number */
220 Name (_ADR, 0x001C0007)
222 OperationRegion (RPCS, PCI_Config, 0x4c, 4)
223 Field (RPCS, AnyAcc, NoLock, Preserve)
226 RPPN, 8, /* Root Port Number */
237 Name (_ADR, 0x001D0000)
239 OperationRegion (RPCS, PCI_Config, 0x4c, 4)
240 Field (RPCS, AnyAcc, NoLock, Preserve)
243 RPPN, 8, /* Root Port Number */
254 Name (_ADR, 0x001D0001)
256 OperationRegion (RPCS, PCI_Config, 0x4c, 4)
257 Field (RPCS, AnyAcc, NoLock, Preserve)
260 RPPN, 8, /* Root Port Number */
271 Name (_ADR, 0x001D0002)
273 OperationRegion (RPCS, PCI_Config, 0x4c, 4)
274 Field (RPCS, AnyAcc, NoLock, Preserve)
277 RPPN, 8, /* Root Port Number */
288 Name (_ADR, 0x001D0003)
290 OperationRegion (RPCS, PCI_Config, 0x4c, 4)
291 Field (RPCS, AnyAcc, NoLock, Preserve)
294 RPPN, 8, /* Root Port Number */
303 #if CONFIG(SOC_INTEL_ALDERLAKE_PCH_S)
304 #include "pcie_pch_s.asl"
308 #if CONFIG(SOC_INTEL_ALDERLAKE_PCH_P)
311 Name (_ADR, 0x00060000)
315 #if CONFIG(SOC_INTEL_ALDERLAKE_PCH_P)
318 Name (_ADR, 0x00060002)
323 Name (_ADR, 0x00010000)
329 Name (_ADR, 0x00140002)
334 Name (_ADR, 0x00160000)