| /* SPDX-License-Identifier: GPL-2.0-or-later */ |
| |
| #include <soc/irq.h> |
| |
| Name (PICP, Package () { |
| /* PCI Bridge */ |
| /* cAVS, SMBus, GbE, Nothpeak */ |
| Package(){0x001FFFFF, 0, 0, cAVS_INTA_IRQ }, |
| Package(){0x001FFFFF, 1, 0, SMBUS_INTB_IRQ }, |
| Package(){0x001FFFFF, 2, 0, GbE_INTC_IRQ }, |
| Package(){0x001FFFFF, 3, 0, TRACE_HUB_INTD_IRQ }, |
| /* SerialIo and SCS */ |
| Package(){0x001EFFFF, 0, 0, LPSS_UART0_IRQ }, |
| Package(){0x001EFFFF, 1, 0, LPSS_UART1_IRQ }, |
| Package(){0x001EFFFF, 2, 0, LPSS_SPI0_IRQ }, |
| Package(){0x001EFFFF, 3, 0, LPSS_SPI1_IRQ }, |
| /* PCI Express Port 9-16 */ |
| Package(){0x001DFFFF, 0, 0, PCIE_9_IRQ }, |
| Package(){0x001DFFFF, 1, 0, PCIE_10_IRQ }, |
| Package(){0x001DFFFF, 2, 0, PCIE_11_IRQ }, |
| Package(){0x001DFFFF, 3, 0, PCIE_12_IRQ }, |
| /* PCI Express Port 1-8 */ |
| Package(){0x001CFFFF, 0, 0, PCIE_1_IRQ }, |
| Package(){0x001CFFFF, 1, 0, PCIE_2_IRQ }, |
| Package(){0x001CFFFF, 2, 0, PCIE_3_IRQ }, |
| Package(){0x001CFFFF, 3, 0, PCIE_4_IRQ }, |
| #if CONFIG(SOC_INTEL_CANNONLAKE_PCH_H) |
| /* PCI Express Port 17-24 */ |
| Package(){0x001BFFFF, 0, 0, PCIE_17_IRQ }, |
| Package(){0x001BFFFF, 1, 0, PCIE_18_IRQ }, |
| Package(){0x001BFFFF, 2, 0, PCIE_19_IRQ }, |
| Package(){0x001BFFFF, 3, 0, PCIE_20_IRQ }, |
| #endif |
| /* eMMC */ |
| Package(){0x001AFFFF, 0, 0, eMMC_IRQ }, |
| /* SerialIo */ |
| Package(){0x0019FFFF, 0, 0, LPSS_I2C4_IRQ }, |
| Package(){0x0019FFFF, 1, 0, LPSS_I2C5_IRQ }, |
| Package(){0x0019FFFF, 2, 0, LPSS_UART2_IRQ }, |
| /* SATA controller */ |
| Package(){0x0017FFFF, 0, 0, SATA_IRQ }, |
| /* CSME (HECI, IDE-R, Keyboard and Text redirection */ |
| Package(){0x0016FFFF, 0, 0, HECI_1_IRQ }, |
| Package(){0x0016FFFF, 1, 0, HECI_2_IRQ }, |
| Package(){0x0016FFFF, 2, 0, IDER_IRQ }, |
| Package(){0x0016FFFF, 3, 0, KT_IRQ }, |
| /* SerialIo */ |
| Package(){0x0015FFFF, 0, 0, LPSS_I2C0_IRQ }, |
| Package(){0x0015FFFF, 1, 0, LPSS_I2C1_IRQ }, |
| Package(){0x0015FFFF, 2, 0, LPSS_I2C2_IRQ }, |
| Package(){0x0015FFFF, 3, 0, LPSS_I2C3_IRQ }, |
| /* D20: xHCI, OTG, SRAM, CNVi WiFi */ |
| Package(){0x0014FFFF, 0, 0, XHCI_IRQ }, |
| Package(){0x0014FFFF, 1, 0, OTG_IRQ }, |
| Package(){0x0014FFFF, 2, 0, PMC_SRAM_IRQ }, |
| Package(){0x0014FFFF, 3, 0, CNViWIFI_IRQ }, |
| /* Integrated Sensor Hub */ |
| Package(){0x0013FFFF, 0, 0, ISH_IRQ }, |
| /* Thermal */ |
| Package(){0x0012FFFF, 0, 0, THERMAL_IRQ }, |
| /* Host Bridge */ |
| /* Root Port D1F0 */ |
| Package(){0x0001FFFF, 0, 0, PEG_RP_INTA_IRQ }, |
| Package(){0x0001FFFF, 1, 0, PEG_RP_INTB_IRQ }, |
| Package(){0x0001FFFF, 2, 0, PEG_RP_INTC_IRQ }, |
| Package(){0x0001FFFF, 3, 0, PEG_RP_INTD_IRQ }, |
| /* SA IGFX Device */ |
| Package(){0x0002FFFF, 0, 0, IGFX_IRQ }, |
| /* SA Thermal Device */ |
| Package(){0x0004FFFF, 0, 0, SA_THERMAL_IRQ }, |
| /* SA IPU Device */ |
| Package(){0x0005FFFF, 0, 0, IPU_IRQ }, |
| /* SA GNA Device */ |
| Package(){0x0008FFFF, 0, 0, GNA_IRQ }, |
| }) |
| |
| Name (PICN, Package () { |
| /* |
| * If the setting change in pch_pirq_init(), then |
| * please make the same static IRQ changes here as well. |
| */ |
| /* D31: cAVS, SMBus, GbE, Nothpeak */ |
| Package () { 0x001FFFFF, 0, 0, 11 }, |
| Package () { 0x001FFFFF, 1, 0, 10 }, |
| Package () { 0x001FFFFF, 2, 0, 11 }, |
| Package () { 0x001FFFFF, 3, 0, 11 }, |
| /* D30: Can't use PIC*/ |
| /* D29: PCI Express Port 9-16 */ |
| Package () { 0x001DFFFF, 0, 0, 11 }, |
| Package () { 0x001DFFFF, 1, 0, 10 }, |
| Package () { 0x001DFFFF, 2, 0, 11 }, |
| Package () { 0x001DFFFF, 3, 0, 11 }, |
| /* D28: PCI Express Port 1-8 */ |
| Package () { 0x001CFFFF, 0, 0, 11 }, |
| Package () { 0x001CFFFF, 1, 0, 10 }, |
| Package () { 0x001CFFFF, 2, 0, 11 }, |
| Package () { 0x001CFFFF, 3, 0, 11 }, |
| #if CONFIG(SOC_INTEL_CANNONLAKE_PCH_H) |
| /* D27: PCI Express Port 17-24 */ |
| Package () { 0x001BFFFF, 0, 0, 11 }, |
| Package () { 0x001BFFFF, 1, 0, 10 }, |
| Package () { 0x001BFFFF, 2, 0, 11 }, |
| Package () { 0x001BFFFF, 3, 0, 11 }, |
| #endif |
| /* D25: Can't use PIC*/ |
| /* D23 */ |
| Package () { 0x0017FFFF, 0, 0, 11 }, |
| /* D22: CSME (HECI, IDE-R, KT redirection */ |
| Package () { 0x0016FFFF, 0, 0, 11 }, |
| Package () { 0x0016FFFF, 1, 0, 10 }, |
| Package () { 0x0016FFFF, 2, 0, 11 }, |
| Package () { 0x0016FFFF, 3, 0, 11 }, |
| /* D21: Can't use PIC*/ |
| /* D20: xHCI, OTG, SRAM, CNVi WiFi */ |
| Package () { 0x0014FFFF, 0, 0, 11 }, |
| Package () { 0x0014FFFF, 1, 0, 10 }, |
| Package () { 0x0014FFFF, 2, 0, 11 }, |
| Package () { 0x0014FFFF, 3, 0, 11 }, |
| /* D19: Can't use PIC*/ |
| /* Thermal */ |
| Package () { 0x0012FFFF, 0, 0, 11 }, |
| /* P.E.G. Root Port D1F0 */ |
| Package () { 0x0001FFFF, 0, 0, 11 }, |
| Package () { 0x0001FFFF, 1, 0, 10 }, |
| Package () { 0x0001FFFF, 2, 0, 11 }, |
| Package () { 0x0001FFFF, 3, 0, 11 }, |
| /* SA IGFX Device */ |
| Package () { 0x0002FFFF, 0, 0, 11 }, |
| /* SA Thermal Device */ |
| Package () { 0x0004FFFF, 0, 0, 11 }, |
| /* SA IPU Device */ |
| Package () { 0x0005FFFF, 0, 0, 11 }, |
| /* SA GNA Device */ |
| Package () { 0x0008FFFF, 0, 0, 11 }, |
| }) |
| |
| Method (_PRT) |
| { |
| If (PICM) { |
| Return (^PICP) |
| } Else { |
| Return (^PICN) |
| } |
| } |