Ofir Cohen | 06789f1 | 2012-01-16 09:43:13 +0200 | [diff] [blame] | 1 | /* Copyright (c) 2011-2012, Code Aurora Forum. All rights reserved. |
Rohit Vaswani | 01c8631 | 2011-08-16 15:25:24 -0700 | [diff] [blame] | 2 | * |
| 3 | * This program is free software; you can redistribute it and/or modify |
| 4 | * it under the terms of the GNU General Public License version 2 and |
| 5 | * only version 2 as published by the Free Software Foundation. |
| 6 | * |
| 7 | * This program is distributed in the hope that it will be useful, |
| 8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 10 | * GNU General Public License for more details. |
| 11 | */ |
| 12 | |
| 13 | #ifndef __ASM_ARCH_MSM_IRQS_9615_H |
| 14 | #define __ASM_ARCH_MSM_IRQS_9615_H |
| 15 | |
| 16 | /* MSM ACPU Interrupt Numbers */ |
| 17 | |
| 18 | /* |
| 19 | * 0-15: STI/SGI (software triggered/generated interrupts) |
| 20 | * 16-31: PPI (private peripheral interrupts) |
| 21 | * 32+: SPI (shared peripheral interrupts) |
| 22 | */ |
| 23 | |
Rohit Vaswani | ead426f | 2012-01-05 20:24:52 -0800 | [diff] [blame] | 24 | #define FIQ_START 16 |
Rohit Vaswani | 01c8631 | 2011-08-16 15:25:24 -0700 | [diff] [blame] | 25 | #define GIC_PPI_START 16 |
| 26 | #define GIC_SPI_START 32 |
| 27 | |
| 28 | #define INT_DEBUG_TIMER_EXP (GIC_PPI_START + 1) |
| 29 | #define INT_GP_TIMER_EXP (GIC_PPI_START + 2) |
| 30 | #define INT_GP_TIMER2_EXP (GIC_PPI_START + 3) |
| 31 | #define WDT0_ACCSCSSNBARK_INT (GIC_PPI_START + 4) |
| 32 | #define WDT1_ACCSCSSNBARK_INT (GIC_PPI_START + 5) |
| 33 | #define AVS_SVICINT (GIC_PPI_START + 6) |
| 34 | #define AVS_SVICINTSWDONE (GIC_PPI_START + 7) |
| 35 | #define CPU_DBGCPUXCOMMRXFULL (GIC_PPI_START + 8) |
| 36 | #define CPU_DBGCPUXCOMMTXEMPTY (GIC_PPI_START + 9) |
| 37 | #define INT_ARMQC_PERFMON (GIC_PPI_START + 10) |
| 38 | #define SC_AVSCPUXDOWN (GIC_PPI_START + 11) |
| 39 | #define SC_AVSCPUXUP (GIC_PPI_START + 12) |
| 40 | #define SC_SICCPUXACGIRPTREQ (GIC_PPI_START + 13) |
| 41 | #define SC_SICCPUXEXTFAULTIRPTREQ (GIC_PPI_START + 14) |
| 42 | /* PPI 15 is unused */ |
| 43 | |
| 44 | #define APCC_QGICACGIRPTREQ (GIC_SPI_START + 0) |
| 45 | #define APCC_QGICL2PERFMONIRPTREQ (GIC_SPI_START + 1) |
| 46 | #define SC_SICL2PERFMONIRPTREQ APCC_QGICL2PERFMONIRPTREQ |
| 47 | #define APCC_QGICL2IRPTREQ (GIC_SPI_START + 2) |
| 48 | #define APCC_QGICMPUIRPTREQ (GIC_SPI_START + 3) |
| 49 | #define TLMM_MSM_DIR_CONN_IRQ_0 (GIC_SPI_START + 4) |
| 50 | #define TLMM_MSM_DIR_CONN_IRQ_1 (GIC_SPI_START + 5) |
| 51 | #define TLMM_MSM_DIR_CONN_IRQ_2 (GIC_SPI_START + 6) |
| 52 | #define TLMM_MSM_DIR_CONN_IRQ_3 (GIC_SPI_START + 7) |
| 53 | #define TLMM_MSM_DIR_CONN_IRQ_4 (GIC_SPI_START + 8) |
| 54 | #define TLMM_MSM_DIR_CONN_IRQ_5 (GIC_SPI_START + 9) |
| 55 | #define TLMM_MSM_DIR_CONN_IRQ_6 (GIC_SPI_START + 10) |
| 56 | #define TLMM_MSM_DIR_CONN_IRQ_7 (GIC_SPI_START + 11) |
| 57 | #define TLMM_MSM_DIR_CONN_IRQ_8 (GIC_SPI_START + 12) |
| 58 | #define TLMM_MSM_DIR_CONN_IRQ_9 (GIC_SPI_START + 13) |
| 59 | /* 14 Reserved */ |
| 60 | #define PM8018_SEC_IRQ_N (GIC_SPI_START + 15) |
| 61 | #define TLMM_MSM_SUMMARY_IRQ (GIC_SPI_START + 16) |
| 62 | #define SPDM_RT_1_IRQ (GIC_SPI_START + 17) |
| 63 | #define SPDM_DIAG_IRQ (GIC_SPI_START + 18) |
| 64 | #define RPM_APCC_CPU0_GP_HIGH_IRQ (GIC_SPI_START + 19) |
| 65 | #define RPM_APCC_CPU0_GP_MEDIUM_IRQ (GIC_SPI_START + 20) |
| 66 | #define RPM_APCC_CPU0_GP_LOW_IRQ (GIC_SPI_START + 21) |
| 67 | #define RPM_APCC_CPU0_WAKE_UP_IRQ (GIC_SPI_START + 22) |
| 68 | /* 23-28 Reserved */ |
| 69 | #define SSBI2_1_SC_CPU0_SECURE_IRQ (GIC_SPI_START + 29) |
| 70 | #define SSBI2_1_SC_CPU0_NON_SECURE_IRQ (GIC_SPI_START + 30) |
| 71 | /* 31 Reserved */ |
| 72 | #define MSMC_SC_PRI_CE_IRQ (GIC_SPI_START + 32) |
| 73 | #define SLIMBUS0_CORE_EE1_IRQ (GIC_SPI_START + 33) |
| 74 | #define SLIMBUS0_BAM_EE1_IRQ (GIC_SPI_START + 34) |
Rohit Vaswani | 56dd22a | 2011-11-11 16:21:28 -0800 | [diff] [blame] | 75 | #define Q6FW_WDOG_EXPIRED_IRQ (GIC_SPI_START + 35) |
| 76 | #define Q6SW_WDOG_EXPIRED_IRQ (GIC_SPI_START + 36) |
Jeff Hugo | 56b933a | 2011-09-28 14:42:05 -0600 | [diff] [blame] | 77 | #define MSS_TO_APPS_IRQ_0 (GIC_SPI_START + 37) |
| 78 | #define MSS_TO_APPS_IRQ_1 (GIC_SPI_START + 38) |
| 79 | #define MSS_TO_APPS_IRQ_2 (GIC_SPI_START + 39) |
| 80 | #define MSS_TO_APPS_IRQ_3 (GIC_SPI_START + 40) |
| 81 | #define MSS_TO_APPS_IRQ_4 (GIC_SPI_START + 41) |
| 82 | #define MSS_TO_APPS_IRQ_5 (GIC_SPI_START + 42) |
| 83 | #define MSS_TO_APPS_IRQ_6 (GIC_SPI_START + 43) |
| 84 | #define MSS_TO_APPS_IRQ_7 (GIC_SPI_START + 44) |
| 85 | #define MSS_TO_APPS_IRQ_8 (GIC_SPI_START + 45) |
| 86 | #define MSS_TO_APPS_IRQ_9 (GIC_SPI_START + 46) |
Rohit Vaswani | 01c8631 | 2011-08-16 15:25:24 -0700 | [diff] [blame] | 87 | /* 47-84 Reserved */ |
| 88 | #define LPASS_SCSS_AUDIO_IF_OUT0_IRQ (GIC_SPI_START + 85) |
| 89 | #define LPASS_SCSS_MIDI_IRQ (GIC_SPI_START + 86) |
| 90 | #define LPASS_Q6SS_WDOG_EXPIRED (GIC_SPI_START + 87) |
| 91 | #define LPASS_SCSS_GP_LOW_IRQ (GIC_SPI_START + 88) |
| 92 | #define LPASS_SCSS_GP_MEDIUM_IRQ (GIC_SPI_START + 89) |
| 93 | #define LPASS_SCSS_GP_HIGH_IRQ (GIC_SPI_START + 90) |
| 94 | #define TOP_IMEM_IRQ (GIC_SPI_START + 91) |
| 95 | #define FABRIC_SYS_IRQ (GIC_SPI_START + 92) |
| 96 | /* 93 Reserved */ |
| 97 | #define USB1_HS_BAM_IRQ (GIC_SPI_START + 94) |
| 98 | /* 95,96 unnamed */ |
| 99 | #define SDC2_BAM_IRQ (GIC_SPI_START + 97) |
| 100 | #define SDC1_BAM_IRQ (GIC_SPI_START + 98) |
| 101 | #define FABRIC_SPS_IRQ (GIC_SPI_START + 99) |
| 102 | #define USB1_HS_IRQ (GIC_SPI_START + 100) |
| 103 | /* 101,102 unnamed */ |
| 104 | #define SDC2_IRQ_0 (GIC_SPI_START + 103) |
| 105 | #define SDC1_IRQ_0 (GIC_SPI_START + 104) |
| 106 | #define SPS_BAM_DMA_IRQ (GIC_SPI_START + 105) |
| 107 | #define SPS_SEC_VIOL_IRQ (GIC_SPI_START + 106) |
| 108 | #define SPS_MTI_0 (GIC_SPI_START + 107) |
| 109 | #define SPS_MTI_1 (GIC_SPI_START + 108) |
| 110 | #define SPS_MTI_2 (GIC_SPI_START + 109) |
| 111 | #define SPS_MTI_3 (GIC_SPI_START + 110) |
| 112 | #define SPS_MTI_4 (GIC_SPI_START + 111) |
| 113 | #define SPS_MTI_5 (GIC_SPI_START + 112) |
| 114 | #define SPS_MTI_6 (GIC_SPI_START + 113) |
| 115 | #define SPS_MTI_7 (GIC_SPI_START + 114) |
| 116 | #define SPS_MTI_8 (GIC_SPI_START + 115) |
| 117 | #define SPS_MTI_9 (GIC_SPI_START + 116) |
| 118 | #define SPS_MTI_10 (GIC_SPI_START + 117) |
| 119 | #define SPS_MTI_11 (GIC_SPI_START + 118) |
| 120 | #define SPS_MTI_12 (GIC_SPI_START + 119) |
| 121 | #define SPS_MTI_13 (GIC_SPI_START + 120) |
| 122 | #define SPS_MTI_14 (GIC_SPI_START + 121) |
| 123 | #define SPS_MTI_15 (GIC_SPI_START + 122) |
| 124 | #define SPS_MTI_16 (GIC_SPI_START + 123) |
| 125 | #define SPS_MTI_17 (GIC_SPI_START + 124) |
| 126 | #define SPS_MTI_18 (GIC_SPI_START + 125) |
| 127 | #define SPS_MTI_19 (GIC_SPI_START + 126) |
| 128 | #define SPS_MTI_20 (GIC_SPI_START + 127) |
| 129 | #define SPS_MTI_21 (GIC_SPI_START + 128) |
| 130 | #define SPS_MTI_22 (GIC_SPI_START + 129) |
| 131 | #define SPS_MTI_23 (GIC_SPI_START + 130) |
| 132 | #define SPS_MTI_24 (GIC_SPI_START + 131) |
| 133 | #define SPS_MTI_25 (GIC_SPI_START + 132) |
| 134 | #define SPS_MTI_26 (GIC_SPI_START + 133) |
| 135 | #define SPS_MTI_27 (GIC_SPI_START + 134) |
| 136 | #define SPS_MTI_28 (GIC_SPI_START + 135) |
| 137 | #define SPS_MTI_29 (GIC_SPI_START + 136) |
| 138 | #define SPS_MTI_30 (GIC_SPI_START + 137) |
| 139 | #define SPS_MTI_31 (GIC_SPI_START + 138) |
| 140 | #define CSIPHY_0_4LN_IRQ (GIC_SPI_START + 139) |
| 141 | #define CSIPHY_1_2LN_IRQ (GIC_SPI_START + 140) |
| 142 | /* 141-145 Reserved */ |
| 143 | #define GSBI1_UARTDM_IRQ (GIC_SPI_START + 146) |
| 144 | #define GSBI1_QUP_IRQ (GIC_SPI_START + 147) |
| 145 | #define GSBI2_UARTDM_IRQ (GIC_SPI_START + 148) |
| 146 | #define GSBI2_QUP_IRQ (GIC_SPI_START + 149) |
| 147 | #define GSBI3_UARTDM_IRQ (GIC_SPI_START + 150) |
| 148 | #define GSBI3_QUP_IRQ (GIC_SPI_START + 151) |
| 149 | #define GSBI4_UARTDM_IRQ (GIC_SPI_START + 152) |
| 150 | #define GSBI4_QUP_IRQ (GIC_SPI_START + 153) |
| 151 | #define GSBI5_UARTDM_IRQ (GIC_SPI_START + 154) |
| 152 | #define GSBI5_QUP_IRQ (GIC_SPI_START + 155) |
| 153 | /* 156-167 Reserved */ |
| 154 | #define MSMC_SC_SEC_TMR_IRQ (GIC_SPI_START + 168) |
| 155 | #define MSMC_SC_SEC_WDOG_BARK_IRQ (GIC_SPI_START + 169) |
| 156 | #define ADM_0_SCSS_0_IRQ (GIC_SPI_START + 170) |
| 157 | #define ADM_0_SCSS_1_IRQ (GIC_SPI_START + 171) |
| 158 | #define ADM_0_SCSS_2_IRQ (GIC_SPI_START + 172) |
| 159 | #define ADM_0_SCSS_3_IRQ (GIC_SPI_START + 173) |
| 160 | /* 174 Reserved */ |
| 161 | #define CC_SCSS_WDT1CPU0BITEEXPIRED (GIC_SPI_START + 175) |
| 162 | /* 176 Reserved */ |
| 163 | #define CC_SCSS_WDT0CPU0BITEEXPIRED (GIC_SPI_START + 177) |
| 164 | #define TSENS_UPPER_LOWER_INT (GIC_SPI_START + 178) |
| 165 | /* 179-182 Reserved */ |
| 166 | #define XPU_SUMMARY_IRQ (GIC_SPI_START + 183) |
| 167 | #define BUS_EXCEPTION_SUMMARY_IRQ (GIC_SPI_START + 184) |
| 168 | #define HSDDRX_EBI1CH0_IRQ (GIC_SPI_START + 185) |
| 169 | /* 186-208 Reserved */ |
| 170 | #define A2_BAM_IRQ (GIC_SPI_START + 209) |
| 171 | /* 210-215 Reserved */ |
| 172 | #define QDSS_ETB_IRQ (GIC_SPI_START + 216) |
| 173 | /* 216 Reserved */ |
| 174 | #define QDSS_CTI2KPSS_CPU0_IRQ (GIC_SPI_START + 218) |
| 175 | #define TLMM_MSM_DIR_CONN_IRQ_16 (GIC_SPI_START + 219) |
| 176 | #define TLMM_MSM_DIR_CONN_IRQ_17 (GIC_SPI_START + 220) |
| 177 | #define TLMM_MSM_DIR_CONN_IRQ_18 (GIC_SPI_START + 221) |
| 178 | #define TLMM_MSM_DIR_CONN_IRQ_19 (GIC_SPI_START + 222) |
| 179 | #define TLMM_MSM_DIR_CONN_IRQ_20 (GIC_SPI_START + 223) |
| 180 | #define TLMM_MSM_DIR_CONN_IRQ_21 (GIC_SPI_START + 224) |
| 181 | #define MSM_SPARE0_IRQ (GIC_SPI_START + 225) |
| 182 | #define PMIC_SEC_IRQ_N (GIC_SPI_START + 226) |
Ofir Cohen | 010009b | 2012-01-26 16:49:17 +0200 | [diff] [blame] | 183 | #define USB_HSIC_BAM_IRQ (GIC_SPI_START + 231) |
Ofir Cohen | 06789f1 | 2012-01-16 09:43:13 +0200 | [diff] [blame] | 184 | #define USB_HSIC_IRQ (GIC_SPI_START + 232) |
Rohit Vaswani | 01c8631 | 2011-08-16 15:25:24 -0700 | [diff] [blame] | 185 | |
Ofir Cohen | 06789f1 | 2012-01-16 09:43:13 +0200 | [diff] [blame] | 186 | #define NR_MSM_IRQS 288 |
Rohit Vaswani | 01c8631 | 2011-08-16 15:25:24 -0700 | [diff] [blame] | 187 | #define NR_GPIO_IRQS 88 |
David Collins | fb88c43 | 2011-08-25 15:12:47 -0700 | [diff] [blame] | 188 | #define NR_PM8018_IRQS 256 |
Shiv Maliyappanahalli | 9ec55e9 | 2012-01-09 14:44:59 -0800 | [diff] [blame] | 189 | #define NR_WCD9XXX_IRQS 49 |
| 190 | #define NR_TABLA_IRQS NR_WCD9XXX_IRQS |
| 191 | #define NR_BOARD_IRQS (NR_PM8018_IRQS + NR_WCD9XXX_IRQS) |
Rohit Vaswani | 01c8631 | 2011-08-16 15:25:24 -0700 | [diff] [blame] | 192 | #define NR_TLMM_MSM_DIR_CONN_IRQ 8 /*Need to Verify this Count*/ |
| 193 | #define NR_MSM_GPIOS NR_GPIO_IRQS |
| 194 | |
| 195 | /* Backwards compatible IRQ macros. */ |
| 196 | #define INT_ADM_AARM ADM_0_SCSS_0_IRQ |
| 197 | |
| 198 | /* smd/smsm interrupts */ |
| 199 | #define INT_A9_M2A_0 MSS_TO_APPS_IRQ_0 |
| 200 | #define INT_A9_M2A_5 MSS_TO_APPS_IRQ_1 |
| 201 | #define INT_ADSP_A11 LPASS_SCSS_GP_HIGH_IRQ |
| 202 | #define INT_ADSP_A11_SMSM LPASS_SCSS_GP_MEDIUM_IRQ |
Rohit Vaswani | 01c8631 | 2011-08-16 15:25:24 -0700 | [diff] [blame] | 203 | |
| 204 | #endif |