2 * Copyright 2005-2008 Analog Devices Inc.
4 * Licensed under the GPL-2 or later
11 * Interrupt source definitions
12 * Event Source Core Event Name
14 * Events (highest priority) EMU 0
19 * Hardware Error IVHW 5
25 * (lowest priority) IVG15
29 #define NR_PERI_INTS 32
31 /* The ABSTRACT IRQ definitions */
32 /** the first seven of the following are fixed, the rest you change if you need to **/
33 #define IRQ_EMU 0 /*Emulation */
34 #define IRQ_RST 1 /*reset */
35 #define IRQ_NMI 2 /*Non Maskable */
36 #define IRQ_EVX 3 /*Exception */
37 #define IRQ_UNUSED 4 /*- unused interrupt*/
38 #define IRQ_HWERR 5 /*Hardware Error */
39 #define IRQ_CORETMR 6 /*Core timer */
41 #define IRQ_PLL_WAKEUP 7 /*PLL Wakeup Interrupt */
42 #define IRQ_DMA_ERROR 8 /*DMA Error (general) */
43 #define IRQ_GENERIC_ERROR 9 /*GENERIC Error Interrupt */
44 #define IRQ_RTC 10 /*RTC Interrupt */
45 #define IRQ_PPI 11 /*DMA0 Interrupt (PPI) */
46 #define IRQ_SPORT0_RX 12 /*DMA3 Interrupt (SPORT0 RX) */
47 #define IRQ_SPORT0_TX 13 /*DMA4 Interrupt (SPORT0 TX) */
48 #define IRQ_SPORT1_RX 14 /*DMA5 Interrupt (SPORT1 RX) */
49 #define IRQ_SPORT1_TX 15 /*DMA6 Interrupt (SPORT1 TX) */
50 #define IRQ_TWI 16 /*TWI Interrupt */
51 #define IRQ_SPI 17 /*DMA7 Interrupt (SPI) */
52 #define IRQ_UART0_RX 18 /*DMA8 Interrupt (UART0 RX) */
53 #define IRQ_UART0_TX 19 /*DMA9 Interrupt (UART0 TX) */
54 #define IRQ_UART1_RX 20 /*DMA10 Interrupt (UART1 RX) */
55 #define IRQ_UART1_TX 21 /*DMA11 Interrupt (UART1 TX) */
56 #define IRQ_CAN_RX 22 /*CAN Receive Interrupt */
57 #define IRQ_CAN_TX 23 /*CAN Transmit Interrupt */
58 #define IRQ_MAC_RX 24 /*DMA1 (Ethernet RX) Interrupt */
59 #define IRQ_MAC_TX 25 /*DMA2 (Ethernet TX) Interrupt */
60 #define IRQ_TIMER0 26 /*Timer 0 */
61 #define IRQ_TIMER1 27 /*Timer 1 */
62 #define IRQ_TIMER2 28 /*Timer 2 */
63 #define IRQ_TIMER3 29 /*Timer 3 */
64 #define IRQ_TIMER4 30 /*Timer 4 */
65 #define IRQ_TIMER5 31 /*Timer 5 */
66 #define IRQ_TIMER6 32 /*Timer 6 */
67 #define IRQ_TIMER7 33 /*Timer 7 */
68 #define IRQ_PROG_INTA 34 /* PF Ports F&G (PF15:0) Interrupt A */
69 #define IRQ_PORTG_INTB 35 /* PF Port G (PF15:0) Interrupt B */
70 #define IRQ_MEM_DMA0 36 /*(Memory DMA Stream 0) */
71 #define IRQ_MEM_DMA1 37 /*(Memory DMA Stream 1) */
72 #define IRQ_PROG_INTB 38 /* PF Ports F (PF15:0) Interrupt B */
73 #define IRQ_WATCH 38 /*Watch Dog Timer */
75 #define IRQ_PPI_ERROR 42 /*PPI Error Interrupt */
76 #define IRQ_CAN_ERROR 43 /*CAN Error Interrupt */
77 #define IRQ_MAC_ERROR 44 /*PPI Error Interrupt */
78 #define IRQ_SPORT0_ERROR 45 /*SPORT0 Error Interrupt */
79 #define IRQ_SPORT1_ERROR 46 /*SPORT1 Error Interrupt */
80 #define IRQ_SPI_ERROR 47 /*SPI Error Interrupt */
81 #define IRQ_UART0_ERROR 48 /*UART Error Interrupt */
82 #define IRQ_UART1_ERROR 49 /*UART Error Interrupt */
135 #define GPIO_IRQ_BASE IRQ_PF0
137 #define NR_IRQS (IRQ_PH15+1)
150 #define IRQ_PLL_WAKEUP_POS 0
151 #define IRQ_DMA_ERROR_POS 4
152 #define IRQ_ERROR_POS 8
153 #define IRQ_RTC_POS 12
154 #define IRQ_PPI_POS 16
155 #define IRQ_SPORT0_RX_POS 20
156 #define IRQ_SPORT0_TX_POS 24
157 #define IRQ_SPORT1_RX_POS 28
160 #define IRQ_SPORT1_TX_POS 0
161 #define IRQ_TWI_POS 4
162 #define IRQ_SPI_POS 8
163 #define IRQ_UART0_RX_POS 12
164 #define IRQ_UART0_TX_POS 16
165 #define IRQ_UART1_RX_POS 20
166 #define IRQ_UART1_TX_POS 24
167 #define IRQ_CAN_RX_POS 28
170 #define IRQ_CAN_TX_POS 0
171 #define IRQ_MAC_RX_POS 4
172 #define IRQ_MAC_TX_POS 8
173 #define IRQ_TIMER0_POS 12
174 #define IRQ_TIMER1_POS 16
175 #define IRQ_TIMER2_POS 20
176 #define IRQ_TIMER3_POS 24
177 #define IRQ_TIMER4_POS 28
180 #define IRQ_TIMER5_POS 0
181 #define IRQ_TIMER6_POS 4
182 #define IRQ_TIMER7_POS 8
183 #define IRQ_PROG_INTA_POS 12
184 #define IRQ_PORTG_INTB_POS 16
185 #define IRQ_MEM_DMA0_POS 20
186 #define IRQ_MEM_DMA1_POS 24
187 #define IRQ_WATCH_POS 28
189 #endif /* _BF537_IRQ_H_ */