2 * file: include/asm-blackfin/mach-bf537/irq.h
8 * system mmr register map
14 * bugs: enter bugs at http://blackfin.uclinux.org/
16 * this program is free software; you can redistribute it and/or modify
17 * it under the terms of the gnu general public license as published by
18 * the free software foundation; either version 2, or (at your option)
21 * this program is distributed in the hope that it will be useful,
22 * but without any warranty; without even the implied warranty of
23 * merchantability or fitness for a particular purpose. see the
24 * gnu general public license for more details.
26 * you should have received a copy of the gnu general public license
27 * along with this program; see the file copying.
28 * if not, write to the free software foundation,
29 * 59 temple place - suite 330, boston, ma 02111-1307, usa.
36 * Interrupt source definitions
37 * Event Source Core Event Name
39 * Events (highest priority) EMU 0
44 * Hardware Error IVHW 5
50 * (lowest priority) IVG15
54 #define NR_PERI_INTS 32
56 /* The ABSTRACT IRQ definitions */
57 /** the first seven of the following are fixed, the rest you change if you need to **/
58 #define IRQ_EMU 0 /*Emulation */
59 #define IRQ_RST 1 /*reset */
60 #define IRQ_NMI 2 /*Non Maskable */
61 #define IRQ_EVX 3 /*Exception */
62 #define IRQ_UNUSED 4 /*- unused interrupt*/
63 #define IRQ_HWERR 5 /*Hardware Error */
64 #define IRQ_CORETMR 6 /*Core timer */
66 #define IRQ_PLL_WAKEUP 7 /*PLL Wakeup Interrupt */
67 #define IRQ_DMA_ERROR 8 /*DMA Error (general) */
68 #define IRQ_GENERIC_ERROR 9 /*GENERIC Error Interrupt */
69 #define IRQ_RTC 10 /*RTC Interrupt */
70 #define IRQ_PPI 11 /*DMA0 Interrupt (PPI) */
71 #define IRQ_SPORT0_RX 12 /*DMA3 Interrupt (SPORT0 RX) */
72 #define IRQ_SPORT0_TX 13 /*DMA4 Interrupt (SPORT0 TX) */
73 #define IRQ_SPORT1_RX 14 /*DMA5 Interrupt (SPORT1 RX) */
74 #define IRQ_SPORT1_TX 15 /*DMA6 Interrupt (SPORT1 TX) */
75 #define IRQ_TWI 16 /*TWI Interrupt */
76 #define IRQ_SPI 17 /*DMA7 Interrupt (SPI) */
77 #define IRQ_UART0_RX 18 /*DMA8 Interrupt (UART0 RX) */
78 #define IRQ_UART0_TX 19 /*DMA9 Interrupt (UART0 TX) */
79 #define IRQ_UART1_RX 20 /*DMA10 Interrupt (UART1 RX) */
80 #define IRQ_UART1_TX 21 /*DMA11 Interrupt (UART1 TX) */
81 #define IRQ_CAN_RX 22 /*CAN Receive Interrupt */
82 #define IRQ_CAN_TX 23 /*CAN Transmit Interrupt */
83 #define IRQ_MAC_RX 24 /*DMA1 (Ethernet RX) Interrupt */
84 #define IRQ_MAC_TX 25 /*DMA2 (Ethernet TX) Interrupt */
85 #define IRQ_TMR0 26 /*Timer 0 */
86 #define IRQ_TMR1 27 /*Timer 1 */
87 #define IRQ_TMR2 28 /*Timer 2 */
88 #define IRQ_TMR3 29 /*Timer 3 */
89 #define IRQ_TMR4 30 /*Timer 4 */
90 #define IRQ_TMR5 31 /*Timer 5 */
91 #define IRQ_TMR6 32 /*Timer 6 */
92 #define IRQ_TMR7 33 /*Timer 7 */
93 #define IRQ_PROG_INTA 34 /* PF Ports F&G (PF15:0) Interrupt A */
94 #define IRQ_PORTG_INTB 35 /* PF Port G (PF15:0) Interrupt B */
95 #define IRQ_MEM_DMA0 36 /*(Memory DMA Stream 0) */
96 #define IRQ_MEM_DMA1 37 /*(Memory DMA Stream 1) */
97 #define IRQ_PROG_INTB 38 /* PF Ports F (PF15:0) Interrupt B */
98 #define IRQ_WATCH 38 /*Watch Dog Timer */
100 #define IRQ_PPI_ERROR 42 /*PPI Error Interrupt */
101 #define IRQ_CAN_ERROR 43 /*CAN Error Interrupt */
102 #define IRQ_MAC_ERROR 44 /*PPI Error Interrupt */
103 #define IRQ_SPORT0_ERROR 45 /*SPORT0 Error Interrupt */
104 #define IRQ_SPORT1_ERROR 46 /*SPORT1 Error Interrupt */
105 #define IRQ_SPI_ERROR 47 /*SPI Error Interrupt */
106 #define IRQ_UART0_ERROR 48 /*UART Error Interrupt */
107 #define IRQ_UART1_ERROR 49 /*UART Error Interrupt */
160 #define GPIO_IRQ_BASE IRQ_PF0
162 #define NR_IRQS (IRQ_PH15+1)
175 #define IRQ_PLL_WAKEUP_POS 0
176 #define IRQ_DMA_ERROR_POS 4
177 #define IRQ_ERROR_POS 8
178 #define IRQ_RTC_POS 12
179 #define IRQ_PPI_POS 16
180 #define IRQ_SPORT0_RX_POS 20
181 #define IRQ_SPORT0_TX_POS 24
182 #define IRQ_SPORT1_RX_POS 28
185 #define IRQ_SPORT1_TX_POS 0
186 #define IRQ_TWI_POS 4
187 #define IRQ_SPI_POS 8
188 #define IRQ_UART0_RX_POS 12
189 #define IRQ_UART0_TX_POS 16
190 #define IRQ_UART1_RX_POS 20
191 #define IRQ_UART1_TX_POS 24
192 #define IRQ_CAN_RX_POS 28
195 #define IRQ_CAN_TX_POS 0
196 #define IRQ_MAC_RX_POS 4
197 #define IRQ_MAC_TX_POS 8
198 #define IRQ_TMR0_POS 12
199 #define IRQ_TMR1_POS 16
200 #define IRQ_TMR2_POS 20
201 #define IRQ_TMR3_POS 24
202 #define IRQ_TMR4_POS 28
205 #define IRQ_TMR5_POS 0
206 #define IRQ_TMR6_POS 4
207 #define IRQ_TMR7_POS 8
208 #define IRQ_PROG_INTA_POS 12
209 #define IRQ_PORTG_INTB_POS 16
210 #define IRQ_MEM_DMA0_POS 20
211 #define IRQ_MEM_DMA1_POS 24
212 #define IRQ_WATCH_POS 28
214 #endif /* _BF537_IRQ_H_ */