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
58 #if CONFIG(SOC_INTEL_TIGERLAKE_PCH_H)
69 Case (Package () { 2, 6, 10, 14
70 #if CONFIG(SOC_INTEL_TIGERLAKE_PCH_H)
81 Case (Package () { 3, 7, 11, 15
82 #if CONFIG(SOC_INTEL_TIGERLAKE_PCH_H)
93 Case (Package () { 4, 8, 12, 16
94 #if CONFIG(SOC_INTEL_TIGERLAKE_PCH_H)
117 Name (_ADR, 0x00060000)
119 OperationRegion (RPCS, PCI_Config, 0x4c, 4)
120 Field (RPCS, AnyAcc, NoLock, Preserve)
123 RPPN, 8, /* Root Port Number */
132 #if CONFIG(SOC_INTEL_TIGERLAKE_PCH_H)
135 Name (_ADR, 0x00010000)
137 OperationRegion (RPCS, PCI_Config, 0x4c, 4)
138 Field (RPCS, AnyAcc, NoLock, Preserve)
141 RPPN, 8, /* Root Port Number */
152 Name (_ADR, 0x00010001)
154 OperationRegion (RPCS, PCI_Config, 0x4c, 4)
155 Field (RPCS, AnyAcc, NoLock, Preserve)
158 RPPN, 8, /* Root Port Number */
169 Name (_ADR, 0x00010002)
171 OperationRegion (RPCS, PCI_Config, 0x4c, 4)
172 Field (RPCS, AnyAcc, NoLock, Preserve)
175 RPPN, 8, /* Root Port Number */
187 Name (_ADR, 0x001C0000)
189 OperationRegion (RPCS, PCI_Config, 0x4c, 4)
190 Field (RPCS, AnyAcc, NoLock, Preserve)
193 RPPN, 8, /* Root Port Number */
204 Name (_ADR, 0x001C0001)
206 OperationRegion (RPCS, PCI_Config, 0x4c, 4)
207 Field (RPCS, AnyAcc, NoLock, Preserve)
210 RPPN, 8, /* Root Port Number */
221 Name (_ADR, 0x001C0002)
223 OperationRegion (RPCS, PCI_Config, 0x4c, 4)
224 Field (RPCS, AnyAcc, NoLock, Preserve)
227 RPPN, 8, /* Root Port Number */
238 Name (_ADR, 0x001C0003)
240 OperationRegion (RPCS, PCI_Config, 0x4c, 4)
241 Field (RPCS, AnyAcc, NoLock, Preserve)
244 RPPN, 8, /* Root Port Number */
255 Name (_ADR, 0x001C0004)
257 OperationRegion (RPCS, PCI_Config, 0x4c, 4)
258 Field (RPCS, AnyAcc, NoLock, Preserve)
261 RPPN, 8, /* Root Port Number */
272 Name (_ADR, 0x001C0005)
274 OperationRegion (RPCS, PCI_Config, 0x4c, 4)
275 Field (RPCS, AnyAcc, NoLock, Preserve)
278 RPPN, 8, /* Root Port Number */
289 Name (_ADR, 0x001C0006)
291 OperationRegion (RPCS, PCI_Config, 0x4c, 4)
292 Field (RPCS, AnyAcc, NoLock, Preserve)
295 RPPN, 8, /* Root Port Number */
306 Name (_ADR, 0x001C0007)
308 OperationRegion (RPCS, PCI_Config, 0x4c, 4)
309 Field (RPCS, AnyAcc, NoLock, Preserve)
312 RPPN, 8, /* Root Port Number */
323 Name (_ADR, 0x001D0000)
325 OperationRegion (RPCS, PCI_Config, 0x4c, 4)
326 Field (RPCS, AnyAcc, NoLock, Preserve)
329 RPPN, 8, /* Root Port Number */
340 Name (_ADR, 0x001D0001)
342 OperationRegion (RPCS, PCI_Config, 0x4c, 4)
343 Field (RPCS, AnyAcc, NoLock, Preserve)
346 RPPN, 8, /* Root Port Number */
357 Name (_ADR, 0x001D0002)
359 OperationRegion (RPCS, PCI_Config, 0x4c, 4)
360 Field (RPCS, AnyAcc, NoLock, Preserve)
363 RPPN, 8, /* Root Port Number */
374 Name (_ADR, 0x001D0003)
376 OperationRegion (RPCS, PCI_Config, 0x4c, 4)
377 Field (RPCS, AnyAcc, NoLock, Preserve)
380 RPPN, 8, /* Root Port Number */
389 #if CONFIG(SOC_INTEL_TIGERLAKE_PCH_H)
392 Name (_ADR, 0x001B0000)
394 OperationRegion (RPCS, PCI_Config, 0x4c, 4)
395 Field (RPCS, AnyAcc, NoLock, Preserve)
398 RPPN, 8, /* Root Port Number */
409 Name (_ADR, 0x001B0001)
411 OperationRegion (RPCS, PCI_Config, 0x4c, 4)
412 Field (RPCS, AnyAcc, NoLock, Preserve)
415 RPPN, 8, /* Root Port Number */
426 Name (_ADR, 0x001B0002)
428 OperationRegion (RPCS, PCI_Config, 0x4c, 4)
429 Field (RPCS, AnyAcc, NoLock, Preserve)
432 RPPN, 8, /* Root Port Number */
443 Name (_ADR, 0x001B0003)
445 OperationRegion (RPCS, PCI_Config, 0x4c, 4)
446 Field (RPCS, AnyAcc, NoLock, Preserve)
449 RPPN, 8, /* Root Port Number */
460 Name (_ADR, 0x001B0004)
462 OperationRegion (RPCS, PCI_Config, 0x4c, 4)
463 Field (RPCS, AnyAcc, NoLock, Preserve)
466 RPPN, 8, /* Root Port Number */
477 Name (_ADR, 0x001B0005)
479 OperationRegion (RPCS, PCI_Config, 0x4c, 4)
480 Field (RPCS, AnyAcc, NoLock, Preserve)
483 RPPN, 8, /* Root Port Number */
494 Name (_ADR, 0x001B0006)
496 OperationRegion (RPCS, PCI_Config, 0x4c, 4)
497 Field (RPCS, AnyAcc, NoLock, Preserve)
500 RPPN, 8, /* Root Port Number */
511 Name (_ADR, 0x001B0007)
513 OperationRegion (RPCS, PCI_Config, 0x4c, 4)
514 Field (RPCS, AnyAcc, NoLock, Preserve)
517 RPPN, 8, /* Root Port Number */
525 #endif /* CONFIG(SOC_INTEL_TIGERLAKE_PCH_H) */
529 Name (_ADR, 0x00140002)
534 Name (_ADR, 0x00160000)