Subrata Banik | b8df689 | 2019-11-01 18:26:56 +0530 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
Wonkyu Kim | 8406179 | 2020-01-07 23:40:58 -0800 | [diff] [blame^] | 4 | * Copyright (C) 2020 Intel Corp. |
Subrata Banik | b8df689 | 2019-11-01 18:26:56 +0530 | [diff] [blame] | 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License as published by |
| 8 | * the Free Software Foundation; either version 2 of the License, or |
| 9 | * (at your option) any later version. |
| 10 | * |
| 11 | * This program is distributed in the hope that it will be useful, |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | * GNU General Public License for more details. |
| 15 | */ |
| 16 | |
| 17 | #include <soc/irq.h> |
| 18 | |
| 19 | Name (PICP, Package () { |
Wonkyu Kim | 8406179 | 2020-01-07 23:40:58 -0800 | [diff] [blame^] | 20 | /* D31:HSA, SMBUS, TraceHUB */ |
| 21 | Package(){0x001FFFFF, 3, 0, HDA_IRQ }, |
| 22 | Package(){0x001FFFFF, 4, 0, SMBUS_IRQ }, |
| 23 | Package(){0x001FFFFF, 7, 0, TRACEHUB_IRQ }, |
| 24 | /* D30: UART0, UART1, SPI0, SPI1 */ |
Subrata Banik | b8df689 | 2019-11-01 18:26:56 +0530 | [diff] [blame] | 25 | Package(){0x001EFFFF, 0, 0, LPSS_UART0_IRQ }, |
| 26 | Package(){0x001EFFFF, 1, 0, LPSS_UART1_IRQ }, |
| 27 | Package(){0x001EFFFF, 2, 0, LPSS_SPI0_IRQ }, |
| 28 | Package(){0x001EFFFF, 3, 0, LPSS_SPI1_IRQ }, |
Wonkyu Kim | 8406179 | 2020-01-07 23:40:58 -0800 | [diff] [blame^] | 29 | /* D29: RP9 ~ RP12 */ |
Subrata Banik | b8df689 | 2019-11-01 18:26:56 +0530 | [diff] [blame] | 30 | Package(){0x001DFFFF, 0, 0, PCIE_9_IRQ }, |
| 31 | Package(){0x001DFFFF, 1, 0, PCIE_10_IRQ }, |
| 32 | Package(){0x001DFFFF, 2, 0, PCIE_11_IRQ }, |
| 33 | Package(){0x001DFFFF, 3, 0, PCIE_12_IRQ }, |
Wonkyu Kim | 8406179 | 2020-01-07 23:40:58 -0800 | [diff] [blame^] | 34 | /* D28: RP1 ~ RP8 */ |
Subrata Banik | b8df689 | 2019-11-01 18:26:56 +0530 | [diff] [blame] | 35 | Package(){0x001CFFFF, 0, 0, PCIE_1_IRQ }, |
| 36 | Package(){0x001CFFFF, 1, 0, PCIE_2_IRQ }, |
| 37 | Package(){0x001CFFFF, 2, 0, PCIE_3_IRQ }, |
| 38 | Package(){0x001CFFFF, 3, 0, PCIE_4_IRQ }, |
Wonkyu Kim | 8406179 | 2020-01-07 23:40:58 -0800 | [diff] [blame^] | 39 | Package(){0x001CFFFF, 4, 0, PCIE_5_IRQ }, |
| 40 | Package(){0x001CFFFF, 5, 0, PCIE_6_IRQ }, |
| 41 | Package(){0x001CFFFF, 6, 0, PCIE_7_IRQ }, |
| 42 | Package(){0x001CFFFF, 7, 0, PCIE_8_IRQ }, |
| 43 | /* D25: I2C4, I2C5, UART2 */ |
Subrata Banik | b8df689 | 2019-11-01 18:26:56 +0530 | [diff] [blame] | 44 | Package(){0x0019FFFF, 0, 0, LPSS_I2C4_IRQ }, |
| 45 | Package(){0x0019FFFF, 1, 0, LPSS_I2C5_IRQ }, |
| 46 | Package(){0x0019FFFF, 2, 0, LPSS_UART2_IRQ }, |
Wonkyu Kim | 8406179 | 2020-01-07 23:40:58 -0800 | [diff] [blame^] | 47 | /* D23: SATA */ |
Subrata Banik | b8df689 | 2019-11-01 18:26:56 +0530 | [diff] [blame] | 48 | Package(){0x0017FFFF, 0, 0, SATA_IRQ }, |
Wonkyu Kim | 8406179 | 2020-01-07 23:40:58 -0800 | [diff] [blame^] | 49 | /* D22: CSME */ |
Subrata Banik | b8df689 | 2019-11-01 18:26:56 +0530 | [diff] [blame] | 50 | Package(){0x0016FFFF, 0, 0, HECI_1_IRQ }, |
| 51 | Package(){0x0016FFFF, 1, 0, HECI_2_IRQ }, |
Wonkyu Kim | 8406179 | 2020-01-07 23:40:58 -0800 | [diff] [blame^] | 52 | Package(){0x0016FFFF, 4, 0, HECI_3_IRQ }, |
| 53 | Package(){0x0016FFFF, 5, 0, HECI_4_IRQ }, |
| 54 | /* D21: I2C0 ~ I2C3 */ |
Subrata Banik | b8df689 | 2019-11-01 18:26:56 +0530 | [diff] [blame] | 55 | Package(){0x0015FFFF, 0, 0, LPSS_I2C0_IRQ }, |
| 56 | Package(){0x0015FFFF, 1, 0, LPSS_I2C1_IRQ }, |
| 57 | Package(){0x0015FFFF, 2, 0, LPSS_I2C2_IRQ }, |
| 58 | Package(){0x0015FFFF, 3, 0, LPSS_I2C3_IRQ }, |
Wonkyu Kim | 8406179 | 2020-01-07 23:40:58 -0800 | [diff] [blame^] | 59 | /* D20: xHCI, xDCI, SRAM, CNVI_WIFI */ |
| 60 | Package(){0x0014FFFF, 0, 0, xHCI_IRQ }, |
| 61 | Package(){0x0014FFFF, 1, 0, xDCI_IRQ }, |
| 62 | Package(){0x0014FFFF, 3, 0, CNVI_WIFI_IRQ }, |
| 63 | /* D19: SPI3 */ |
| 64 | Package(){0x0013FFFF, 0, 0, LPSS_SPI3_IRQ }, |
| 65 | /* D18: ISH, SPI2 */ |
| 66 | Package(){0x0012FFFF, 0, 0, ISH_IRQ }, |
| 67 | Package(){0x0012FFFF, 6, 0, LPSS_SPI2_IRQ }, |
| 68 | /* D16: CNVI_BT, TCH0, TCH1 */ |
| 69 | Package(){0x0010FFFF, 2, 0, CNVI_BT_IRQ }, |
| 70 | Package(){0x0010FFFF, 6, 0, THC0_IRQ }, |
| 71 | Package(){0x0010FFFF, 7, 0, THC1_IRQ }, |
| 72 | /* D13: xHCI, xDCI */ |
| 73 | Package(){0x000DFFFF, 0, 0, xHCI_IRQ }, |
| 74 | Package(){0x000DFFFF, 1, 0, xDCI_IRQ }, |
| 75 | /* D8: GNA */ |
Subrata Banik | b8df689 | 2019-11-01 18:26:56 +0530 | [diff] [blame] | 76 | Package(){0x0008FFFF, 0, 0, GNA_IRQ }, |
Wonkyu Kim | 8406179 | 2020-01-07 23:40:58 -0800 | [diff] [blame^] | 77 | /* D7: TBT PCIe */ |
| 78 | Package(){0x0007FFFF, 0, 0, TBT_PCIe0_IRQ }, |
| 79 | Package(){0x0007FFFF, 1, 0, TBT_PCIe1_IRQ }, |
| 80 | Package(){0x0007FFFF, 2, 0, TBT_PCIe2_IRQ }, |
| 81 | Package(){0x0007FFFF, 3, 0, TBT_PCIe3_IRQ }, |
| 82 | /* D6: PEG60 */ |
| 83 | Package(){0x0006FFFF, 0, 0, PEG_IRQ }, |
| 84 | /* D5: IPU Device */ |
| 85 | Package(){0x0005FFFF, 0, 0, IPU_IRQ }, |
| 86 | /* D4: Thermal Device */ |
| 87 | Package(){0x0004FFFF, 0, 0, THERMAL_IRQ }, |
| 88 | /* D2: IGFX */ |
| 89 | Package(){0x0002FFFF, 0, 0, IGFX_IRQ }, |
Subrata Banik | b8df689 | 2019-11-01 18:26:56 +0530 | [diff] [blame] | 90 | }) |
| 91 | |
| 92 | Name (PICN, Package () { |
Wonkyu Kim | 8406179 | 2020-01-07 23:40:58 -0800 | [diff] [blame^] | 93 | /* D31:HSA, SMBUS, TraceHUB*/ |
Subrata Banik | b8df689 | 2019-11-01 18:26:56 +0530 | [diff] [blame] | 94 | Package () { 0x001FFFFF, 3, 0, 11 }, |
Wonkyu Kim | 8406179 | 2020-01-07 23:40:58 -0800 | [diff] [blame^] | 95 | Package () { 0x001FFFFF, 4, 0, 11 }, |
| 96 | Package () { 0x001FFFFF, 7, 0, 11 }, |
| 97 | /* D30: UART0, UART1, SPI0, SPI1 */ |
| 98 | Package () { 0x001EFFFF, 0, 0, 11 }, |
| 99 | Package () { 0x001EFFFF, 1, 0, 10 }, |
| 100 | Package () { 0x001EFFFF, 2, 0, 11 }, |
| 101 | Package () { 0x001EFFFF, 3, 0, 11 }, |
| 102 | /* D29: RP9 ~ RP12 */ |
Subrata Banik | b8df689 | 2019-11-01 18:26:56 +0530 | [diff] [blame] | 103 | Package () { 0x001DFFFF, 0, 0, 11 }, |
| 104 | Package () { 0x001DFFFF, 1, 0, 10 }, |
| 105 | Package () { 0x001DFFFF, 2, 0, 11 }, |
| 106 | Package () { 0x001DFFFF, 3, 0, 11 }, |
Wonkyu Kim | 8406179 | 2020-01-07 23:40:58 -0800 | [diff] [blame^] | 107 | /* D28: RP1 ~ RP8 */ |
Subrata Banik | b8df689 | 2019-11-01 18:26:56 +0530 | [diff] [blame] | 108 | Package () { 0x001CFFFF, 0, 0, 11 }, |
| 109 | Package () { 0x001CFFFF, 1, 0, 10 }, |
| 110 | Package () { 0x001CFFFF, 2, 0, 11 }, |
| 111 | Package () { 0x001CFFFF, 3, 0, 11 }, |
Wonkyu Kim | 8406179 | 2020-01-07 23:40:58 -0800 | [diff] [blame^] | 112 | Package () { 0x001CFFFF, 4, 0, 11 }, |
| 113 | Package () { 0x001CFFFF, 5, 0, 10 }, |
| 114 | Package () { 0x001CFFFF, 6, 0, 11 }, |
| 115 | Package () { 0x001CFFFF, 7, 0, 11 }, |
| 116 | /* D25: I2C4, I2C5, UART2 */ |
| 117 | Package(){0x0019FFFF, 0, 0, 11 }, |
| 118 | Package(){0x0019FFFF, 1, 0, 10 }, |
| 119 | Package(){0x0019FFFF, 2, 0, 11 }, |
| 120 | /* D23: SATA */ |
Subrata Banik | b8df689 | 2019-11-01 18:26:56 +0530 | [diff] [blame] | 121 | Package () { 0x0017FFFF, 0, 0, 11 }, |
Wonkyu Kim | 8406179 | 2020-01-07 23:40:58 -0800 | [diff] [blame^] | 122 | /* D22: CSME */ |
| 123 | Package(){0x0016FFFF, 0, 0, 11 }, |
| 124 | Package(){0x0016FFFF, 1, 0, 10 }, |
| 125 | Package(){0x0016FFFF, 4, 0, 11 }, |
| 126 | Package(){0x0016FFFF, 5, 0, 11 }, |
| 127 | /* D21: I2C0 ~ I2C3 */ |
| 128 | Package(){0x0015FFFF, 0, 0, 11 }, |
| 129 | Package(){0x0015FFFF, 1, 0, 10 }, |
| 130 | Package(){0x0015FFFF, 2, 0, 11 }, |
| 131 | Package(){0x0015FFFF, 3, 0, 11 }, |
| 132 | /* D19: SPI3 */ |
| 133 | Package(){0x0013FFFF, 0, 0, 11 }, |
| 134 | /* D18: ISH, SPI2 */ |
| 135 | Package(){0x0012FFFF, 0, 0, 11 }, |
| 136 | Package(){0x0012FFFF, 6, 0, 11 },, |
| 137 | /* D16: CNVI_BT, TCH0, TCH1 */ |
| 138 | Package(){0x0010FFFF, 2, 0, 11 }, |
| 139 | Package(){0x0010FFFF, 6, 0, 11 }, |
| 140 | Package(){0x0010FFFF, 7, 0, 10 }, |
| 141 | /* D13: xHCI, xDCI */ |
| 142 | Package(){0x000DFFFF, 0, 0, 11 }, |
| 143 | Package(){0x000DFFFF, 1, 0, 10 }, |
| 144 | /* D8: GNA */ |
| 145 | Package(){0x0008FFFF, 0, 0, 11 }, |
| 146 | /* D7: TBT PCIe */ |
| 147 | Package(){0x0007FFFF, 0, 0, 11 }, |
| 148 | Package(){0x0007FFFF, 1, 0, 10 }, |
| 149 | Package(){0x0007FFFF, 2, 0, 11 }, |
| 150 | Package(){0x0007FFFF, 3, 0, 11 }, |
| 151 | /* D6: PEG60 */ |
| 152 | Package(){0x0006FFFF, 0, 0, 11 }, |
| 153 | /* D5: IPU Device */ |
| 154 | Package(){0x0005FFFF, 0, 0, 11 }, |
| 155 | /* D4: Thermal Device */ |
| 156 | Package(){0x0004FFFF, 0, 0, 11 }, |
| 157 | /* D2: IGFX */ |
| 158 | Package(){0x0002FFFF, 0, 0, 11 }, |
Subrata Banik | b8df689 | 2019-11-01 18:26:56 +0530 | [diff] [blame] | 159 | }) |
| 160 | |
| 161 | Method (_PRT) |
| 162 | { |
| 163 | If (PICM) { |
| 164 | Return (^PICP) |
| 165 | } Else { |
| 166 | Return (^PICN) |
| 167 | } |
| 168 | } |