4 /* Interrupt controller memory map */
5 #define OMAP3_DM37XX_INTR_BASE 0x48200000 /* INTCPS physical address */
8 /* Interrupt controller memory map */
9 #define OMAP3_AM335X_INTR_BASE 0x48200000 /* INTCPS physical address */
11 /* Interrupt controller registers */
12 #define OMAP3_INTCPS_REVISION 0x000 /* IP revision code */
13 #define OMAP3_INTCPS_SYSCONFIG 0x010 /* Controls params */
14 #define OMAP3_INTCPS_SYSSTATUS 0x014 /* Status */
15 #define OMAP3_INTCPS_SIR_IRQ 0x040 /* Active IRQ number */
16 #define OMAP3_INTCPS_SIR_FIQ 0x044 /* Active FIQ number */
17 #define OMAP3_INTCPS_CONTROL 0x048 /* New int agreement bits */
18 #define OMAP3_INTCPS_PROTECTION 0x04C /* Protection for other regs */
19 #define OMAP3_INTCPS_IDLE 0x050 /* Clock auto-idle/gating */
20 #define OMAP3_INTCPS_IRQ_PRIORITY 0x060 /* Active IRQ priority level */
21 #define OMAP3_INTCPS_FIQ_PRIORITY 0x064 /* Active FIQ priority level */
22 #define OMAP3_INTCPS_THRESHOLD 0x068 /* Priority threshold */
23 #define OMAP3_INTCPS_ITR0 0x080 /* Raw pre-masking interrupt status */
24 #define OMAP3_INTCPS_MIR0 0x084 /* Interrupt mask */
25 #define OMAP3_INTCPS_MIR_CLEAR0 0x088 /* Clear interrupt mask bits */
26 #define OMAP3_INTCPS_MIR_SET0 0x08C /* Set interrupt mask bits */
27 #define OMAP3_INTCPS_ISR_SET0 0x090 /* Set software int bits */
28 #define OMAP3_INTCPS_ISR_CLEAR0 0x094 /* Clear software int bits */
29 #define OMAP3_INTCPS_PENDING_IRQ0 0x098 /* IRQ status post-masking */
30 #define OMAP3_INTCPS_PENDING_FIQ0 0x09C /* FIQ status post-masking */
31 #define OMAP3_INTCPS_ILR0 0x100 /* Priority for interrupts */
34 #define OMAP3_INTR_ITR(base,n) \
35 (base + OMAP3_INTCPS_ITR0 + 0x20 * (n))
36 #define OMAP3_INTR_MIR(base,n) \
37 (base + OMAP3_INTCPS_MIR0 + 0x20 * (n))
38 #define OMAP3_INTR_MIR_CLEAR(base,n) \
39 (base + OMAP3_INTCPS_MIR_CLEAR0 + 0x20 * (n))
40 #define OMAP3_INTR_MIR_SET(base,n) \
41 (base + OMAP3_INTCPS_MIR_SET0 + 0x20 * (n))
42 #define OMAP3_INTR_ISR_SET(base,n) \
43 (base + OMAP3_INTCPS_ISR_SET0 + 0x20 * (n))
44 #define OMAP3_INTR_ISR_CLEAR(base,n) \
45 (base + OMAP3_INTCPS_ISR_CLEAR0 + 0x20 * (n))
46 #define OMAP3_INTR_PENDING_IRQ(base,n) \
47 (base + OMAP3_INTCPS_PENDING_IRQ0 + 0x20 * (n))
48 #define OMAP3_INTR_PENDING_FIQ(base,n) \
49 (base + OMAP3_INTCPS_PENDING_FIQ0 + 0x20 * (n))
50 #define OMAP3_INTR_ILR(base,m) \
51 (base + OMAP3_INTCPS_ILR0 + 0x4 * (m))
53 #define OMAP3_INTR_ACTIVEIRQ_MASK 0x7f /* Active IRQ mask for SIR_IRQ */
54 #define OMAP3_INTR_NEWIRQAGR 0x1 /* New IRQ Generation */
59 #define OMAP3_DM337X_NR_IRQ_VECTORS 96
61 /* Interrupt mappings */
62 #define OMAP3_MCBSP2_ST_IRQ 4 /* Sidestone McBSP2 overflow */
63 #define OMAP3_MCBSP3_ST_IRQ 5 /* Sidestone McBSP3 overflow */
64 #define OMAP3_SYS_NIRQ 7 /* External source (active low) */
65 #define OMAP3_SMX_DBG_IRQ 9 /* L3 interconnect error for debug */
66 #define OMAP3_SMX_APP_IRQ 10 /* L3 interconnect error for application */
67 #define OMAP3_PRCM_IRQ 11 /* PRCM module */
68 #define OMAP3_SDMA0_IRQ 12 /* System DMA request 0 */
69 #define OMAP3_SDMA1_IRQ 13 /* System DMA request 1 */
70 #define OMAP3_SDMA2_IRQ 14 /* System DMA request 2 */
71 #define OMAP3_SDMA3_IRQ 15 /* System DMA request 3 */
72 #define OMAP3_MCBSP1_IRQ 16 /* McBSP module 1 */
73 #define OMAP3_MCBSP2_IRQ 17 /* McBSP module 2 */
74 #define OMAP3_GPMC_IRQ 20 /* General-purpose memory controller */
75 #define OMAP3_SGX_IRQ 21 /* 2D/3D graphics module */
76 #define OMAP3_MCBSP3_IRQ 22 /* McBSP module 3 */
77 #define OMAP3_MCBSP4_IRQ 23 /* McBSP module 4 */
78 #define OMAP3_CAM0_IRQ 24 /* Camera interface request 0 */
79 #define OMAP3_DSS_IRQ 25 /* Display subsystem module */
80 #define OMAP3_MAIL_U0_IRQ 26 /* Mailbox user 0 request */
81 #define OMAP3_MCBSP5_IRQ 27 /* McBSP module 5 */
82 #define OMAP3_IVA2_MMU_IRQ 28 /* IVA2 MMU */
83 #define OMAP3_GPIO1_IRQ 29 /* GPIO module 1 */
84 #define OMAP3_GPIO2_IRQ 30 /* GPIO module 2 */
85 #define OMAP3_GPIO3_IRQ 31 /* GPIO module 3 */
86 #define OMAP3_GPIO4_IRQ 32 /* GPIO module 4 */
87 #define OMAP3_GPIO5_IRQ 33 /* GPIO module 5 */
88 #define OMAP3_GPIO6_IRQ 34 /* GPIO module 6 */
89 #define OMAP3_WDT3_IRQ 36 /* Watchdog timer module 3 overflow */
90 #define OMAP3_GPT1_IRQ 37 /* General-purpose timer module 1 */
91 #define OMAP3_GPT2_IRQ 38 /* General-purpose timer module 2 */
92 #define OMAP3_GPT3_IRQ 39 /* General-purpose timer module 3 */
93 #define OMAP3_GPT4_IRQ 40 /* General-purpose timer module 4 */
94 #define OMAP3_GPT5_IRQ 41 /* General-purpose timer module 5 */
95 #define OMAP3_GPT6_IRQ 42 /* General-purpose timer module 6 */
96 #define OMAP3_GPT7_IRQ 43 /* General-purpose timer module 7 */
97 #define OMAP3_GPT8_IRQ 44 /* General-purpose timer module 8 */
98 #define OMAP3_GPT9_IRQ 45 /* General-purpose timer module 9 */
99 #define OMAP3_GPT10_IRQ 46 /* General-purpose timer module 10 */
100 #define OMAP3_GPT11_IRQ 47 /* General-purpose timer module 11 */
101 #define OMAP3_SPI4_IRQ 48 /* McSPI module 4 */
102 #define OMAP3_MCBSP4_TX_IRQ 54 /* McBSP module 4 transmit */
103 #define OMAP3_MCBSP4_RX_IRQ 55 /* McBSP module 4 receive */
104 #define OMAP3_I2C1_IRQ 56 /* I2C module 1 */
105 #define OMAP3_I2C2_IRQ 57 /* I2C module 2 */
106 #define OMAP3_HDQ_IRQ 58 /* HDQ/1-Wire */
107 #define OMAP3_MCBSP1_TX_IRQ 59 /* McBSP module 1 transmit */
108 #define OMAP3_MCBSP1_RX_IRQ 60 /* McBSP module 1 receive */
109 #define OMAP3_I2C3_IRQ 61 /* I2C module 3 */
110 #define OMAP3_MCBSP2_TX_IRQ 62 /* McBSP module 2 transmit */
111 #define OMAP3_MCBSP2_RX_IRQ 63 /* McBSP module 2 receive */
112 #define OMAP3_SPI1_IRQ 65 /* McSPI module 1 */
113 #define OMAP3_SPI2_IRQ 66 /* McSPI module 2 */
114 #define OMAP3_UART1_IRQ 72 /* UART module 1 */
115 #define OMAP3_UART2_IRQ 73 /* UART module 2 */
116 #define OMAP3_PBIAS_IRQ 75 /* Merged interrupt for PBIASlite 1/2 */
117 #define OMAP3_OHCI_IRQ 76 /* OHCI HSUSB MP Host Interrupt */
118 #define OMAP3_EHCI_IRQ 77 /* EHCI HSUSB MP Host Interrupt */
119 #define OMAP3_TLL_IRQ 78 /* HSUSB MP TLL Interrupt */
120 #define OMAP3_MCBSP5_TX_IRQ 81 /* McBSP module 5 transmit */
121 #define OMAP3_MCBSP5_RX_IRQ 82 /* McBSP module 5 receive */
122 #define OMAP3_MMC1_IRQ 83 /* MMC/SD module 1 */
123 #define OMAP3_MMC2_IRQ 86 /* MMC/SD module 2 */
124 #define OMAP3_ICR_IRQ 87 /* MPU ICR */
125 #define OMAP3_D2DFRINT_IRQ 88 /* 3G coproc (in stacked modem config) */
126 #define OMAP3_MCBSP3_TX_IRQ 89 /* McBSP module 3 transmit */
127 #define OMAP3_MCBSP3_RX_IRQ 90 /* McBSP module 3 receive */
128 #define OMAP3_SPI3_IRQ 91 /* McSPI module 3 */
129 #define OMAP3_HSUSB_MC_IRQ 92 /* High-speed USB OTG */
130 #define OMAP3_HSUSB_DMA_IRQ 93 /* High-speed USB OTG DMA */
131 #define OMAP3_MMC3_IRQ 94 /* MMC/SD module 3 */
134 #define AM335X_INT_EMUINT 0 /* Emulation interrupt (EMUICINTR) */
135 #define AM335X_INT_COMMTX 1 /* CortexA8 COMMTX */
136 #define AM335X_INT_COMMRX 2 /* CortexA8 COMMRX */
137 #define AM335X_INT_BENCH 3 /* CortexA8 NPMUIRQ */
138 #define AM335X_INT_ELM_IRQ 4 /* Sinterrupt (Error location process completion) */
139 #define AM335X_INT_NMI 7 /* nmi_int */
140 #define AM335X_INT_L3DEBUG 9 /* l3_FlagMux_top_FlagOut1 */
141 #define AM335X_INT_L3APPINT 10 /* l3_FlagMux_top_FlagOut0 */
142 #define AM335X_INT_PRCMINT 11 /* irq_mpu */
143 #define AM335X_INT_EDMACOMPINT 12 /* tpcc_int_pend_po0 */
144 #define AM335X_INT_EDMAMPERR 13 /* tpcc_mpint_pend_po */
145 #define AM335X_INT_EDMAERRINT 14 /* tpcc_errint_pend_po */
146 #define AM335X_INT_ADC_TSC_GENINT 16 /* gen_intr_pend */
147 #define AM335X_INT_USBSSINT 17 /* usbss_intr_pend */
148 #define AM335X_INT_USB0 18 /* usb0_intr_pend */
149 #define AM335X_INT_USB1 19 /* usb1_intr_pend */
150 #define AM335X_INT_PRUSS1_EVTOUT0 20 /* pr1_host_intr0_intr_pend */
151 #define AM335X_INT_PRUSS1_EVTOUT1 21 /* pr1_host_intr1_intr_pend */
152 #define AM335X_INT_PRUSS1_EVTOUT2 22 /* pr1_host_intr2_intr_pend */
153 #define AM335X_INT_PRUSS1_EVTOUT3 23 /* pr1_host_intr3_intr_pend */
154 #define AM335X_INT_PRUSS1_EVTOUT4 24 /* pr1_host_intr4_intr_pend */
155 #define AM335X_INT_PRUSS1_EVTOUT5 25 /* pr1_host_intr5_intr_pend */
156 #define AM335X_INT_PRUSS1_EVTOUT6 26 /* pr1_host_intr6_intr_pend */
157 #define AM335X_INT_PRUSS1_EVTOUT7 27 /* pr1_host_intr7_intr_pend */
158 #define AM335X_INT_MMCSD1INT 28 /* MMCSD1 SINTERRUPTN */
159 #define AM335X_INT_MMCSD2INT 29 /* MMCSD2 SINTERRUPT */
160 #define AM335X_INT_I2C2INT 30 /* I2C2 POINTRPEND */
161 #define AM335X_INT_eCAP0INT 31 /* ecap_intr_intr_pend */
162 #define AM335X_INT_GPIOINT2A 32 /* GPIO 2 POINTRPEND1 */
163 #define AM335X_INT_GPIOINT2B 33 /* GPIO 2 POINTRPEND2 */
164 #define AM335X_INT_USBWAKEUP 34 /* USBSS slv0p_Swakeup */
165 #define AM335X_INT_LCDCINT 36 /* LCDC lcd_irq */
166 #define AM335X_INT_GFXINT 37 /* SGX530 THALIAIRQ */
167 #define AM335X_INT_ePWM2INT 39 /* (PWM Subsystem) epwm_intr_intr_pend */
168 #define AM335X_INT_3PGSWRXTHR0 40 /* (Ethernet) c0_rx_thresh_pend (RX_THRESH_PULSE) */
169 #define AM335X_INT_3PGSWRXINT0 41 /* CPSW (Ethernet) c0_rx_pend */
170 #define AM335X_INT_3PGSWTXINT0 42 /* CPSW (Ethernet) c0_tx_pend */
171 #define AM335X_INT_3PGSWMISC0 43 /* CPSW (Ethernet) c0_misc_pend */
172 #define AM335X_INT_UART3INT 44 /* UART3 niq */
173 #define AM335X_INT_UART4INT 45 /* UART4 niq */
174 #define AM335X_INT_UART5INT 46 /* UART5 niq */
175 #define AM335X_INT_eCAP1INT 47 /* (PWM Subsystem) ecap_intr_intr_pend */
176 #define AM335X_INT_DCAN0_INT0 52 /* DCAN0 dcan_intr0_intr_pend */
177 #define AM335X_INT_DCAN0_INT1 53 /* DCAN0 dcan_intr1_intr_pend */
178 #define AM335X_INT_DCAN0_PARITY 54 /* DCAN0 dcan_uerr_intr_pend */
179 #define AM335X_INT_DCAN1_INT0 55 /* DCAN1 dcan_intr0_intr_pend */
180 #define AM335X_INT_DCAN1_INT1 56 /* DCAN1 dcan_intr1_intr_pend */
181 #define AM335X_INT_DCAN1_PARITY 57 /* DCAN1 dcan_uerr_intr_pend */
182 #define AM335X_INT_ePWM0_TZINT 58 /* eHRPWM0 TZ interrupt (PWM epwm_tz_intr_pend Subsystem) */
183 #define AM335X_INT_ePWM1_TZINT 59 /* eHRPWM1 TZ interrupt (PWM epwm_tz_intr_pend Subsystem) */
184 #define AM335X_INT_ePWM2_TZINT 60 /* eHRPWM2 TZ interrupt (PWM epwm_tz_intr_pend Subsystem) */
185 #define AM335X_INT_eCAP2INT 61 /* eCAP2 (PWM Subsystem) ecap_intr_intr_pend */
186 #define AM335X_INT_GPIOINT3A 62 /* GPIO 3 POINTRPEND1 */
187 #define AM335X_INT_GPIOINT3B 63 /* GPIO 3 POINTRPEND2 */
188 #define AM335X_INT_MMCSD0INT 64 /* MMCSD0 SINTERRUPTN */
189 #define AM335X_INT_SPI0INT 65 /* McSPI0 SINTERRUPTN */
190 #define AM335X_INT_TINT0 66 /* Timer0 POINTR_PEND */
191 #define AM335X_INT_TINT1_1MS 67 /* DMTIMER_1ms POINTR_PEND */
192 #define AM335X_INT_TINT2 68 /* DMTIMER2 POINTR_PEND */
193 #define AM335X_INT_TINT3 69 /* DMTIMER3 POINTR_PEND */
194 #define AM335X_INT_I2C0INT 70 /* I2C0 POINTRPEND */
195 #define AM335X_INT_I2C1INT 71 /* I2C1 POINTRPEND */
196 #define AM335X_INT_UART0INT 72 /* UART0 niq */
197 #define AM335X_INT_UART1INT 73 /* UART1 niq */
198 #define AM335X_INT_UART2INT 74 /* UART2 niq */
199 #define AM335X_INT_RTCINT 75 /* RTC timer_intr_pend */
200 #define AM335X_INT_RTCALARMINT 76 /* RTC alarm_intr_pend */
201 #define AM335X_INT_MBINT0 77 /* Mailbox0 (mail_u0_irq) initiator_sinterrupt_q_n */
202 #define AM335X_INT_M3_TXEV 78 /* Wake M3 Subsystem TXEV */
203 #define AM335X_INT_eQEP0INT 79 /* eQEP0 (PWM Subsystem) eqep_intr_intr_pend */
204 #define AM335X_INT_MCATXINT0 80 /* McASP0 mcasp_x_intr_pend */
205 #define AM335X_INT_MCARXINT0 81 /* McASP0 mcasp_r_intr_pend */
206 #define AM335X_INT_MCATXINT1 82 /* McASP1 mcasp_x_intr_pend */
207 #define AM335X_INT_MCARXINT1 83 /* McASP1 mcasp_r_intr_pend */
208 #define AM335X_INT_ePWM0INT 86 /* (PWM Subsystem) epwm_intr_intr_pend */
209 #define AM335X_INT_ePWM1INT 87 /* (PWM Subsystem) epwm_intr_intr_pend */
210 #define AM335X_INT_eQEP1INT 88 /* (PWM Subsystem) eqep_intr_intr_pend */
211 #define AM335X_INT_eQEP2INT 89 /* (PWM Subsystem) eqep_intr_intr_pend */
212 #define AM335X_INT_DMA_INTR_PIN2 90 /* External DMA/Interrupt Pin2 pi_x_dma_event_intr2 (xdma_event_intr2) */
213 #define AM335X_INT_WDT1INT 91 /* (Public Watchdog) WDTIMER1 PO_INT_PEND */
214 #define AM335X_INT_TINT4 92 /* DMTIMER4 POINTR_PEN */
215 #define AM335X_INT_TINT5 93 /* DMTIMER5 POINTR_PEN */
216 #define AM335X_INT_TINT6 94 /* DMTIMER6 POINTR_PEND */
217 #define AM335X_INT_TINT7 95 /* DMTIMER7 POINTR_PEND */
218 #define AM335X_INT_GPIOINT0A 96 /* GPIO 0 POINTRPEND1 */
219 #define AM335X_INT_GPIOINT0B 97 /* GPIO 0 POINTRPEND2 */
220 #define AM335X_INT_GPIOINT1A 98 /* GPIO 1 POINTRPEND1 */
221 #define AM335X_INT_GPIOINT1B 99 /* GPIO 1 POINTRPEND2 */
222 #define AM335X_INT_GPMCINT 100 /* GPMC gpmc_sinterrupt */
223 #define AM335X_INT_DDRERR0 101 /* EMIF sys_err_intr_pend */
224 #define AM335X_INT_TCERRINT0 112 /* TPTC0 tptc_erint_pend_po */
225 #define AM335X_INT_TCERRINT1 113 /* TPTC1 tptc_erint_pend_po */
226 #define AM335X_INT_TCERRINT2 114 /* TPTC2 tptc_erint_pend_po */
227 #define AM335X_INT_ADC_TSC_PENINT 115 /* ADC_TSC pen_intr_pend */
228 #define AM335X_INT_SMRFLX_Sabertooth 120 /* Smart Reflex 0 intrpen */
229 #define AM335X_INT_SMRFLX_Core 121 /* Smart Reflex 1 intrpend */
230 #define AM335X_INT_DMA_INTR_PIN0 123 /* pi_x_dma_event_intr0 (xdma_event_intr0) */
231 #define AM335X_INT_DMA_INTR_PIN1 124 /* pi_x_dma_event_intr1 (xdma_event_intr1) */
232 #define AM335X_INT_SPI1INT 125 /* McSPI1 SINTERRUPTN */
234 #define OMAP3_AM335X_NR_IRQ_VECTORS 125
236 #endif /* _OMAP_INTR_H */