2 * File: include/asm-blackfin/mach-bf533/defBF532.h
13 * Bugs: Enter bugs at http://blackfin.uclinux.org/
15 * This program is free software; you can redistribute it and/or modify
16 * it under the terms of the GNU General Public License as published by
17 * the Free Software Foundation; either version 2, or (at your option)
20 * This program is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 * GNU General Public License for more details.
25 * You should have received a copy of the GNU General Public License
26 * along with this program; see the file COPYING.
27 * If not, write to the Free Software Foundation,
28 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
35 * Interrupt source definitions
36 Event Source Core Event Name
38 Events (highest priority) EMU 0
45 PLL Wakeup Interrupt IVG7 7
46 DMA Error (generic) IVG7 8
47 PPI Error Interrupt IVG7 9
48 SPORT0 Error Interrupt IVG7 10
49 SPORT1 Error Interrupt IVG7 11
50 SPI Error Interrupt IVG7 12
51 UART Error Interrupt IVG7 13
53 DMA0 Interrupt (PPI) IVG8 15
54 DMA1 (SPORT0 RX) IVG9 16
55 DMA2 (SPORT0 TX) IVG9 17
56 DMA3 (SPORT1 RX) IVG9 18
57 DMA4 (SPORT1 TX) IVG9 19
59 DMA6 (UART RX) IVG10 21
60 DMA7 (UART TX) IVG10 22
64 PF Interrupt A IVG12 26
65 PF Interrupt B IVG12 27
66 DMA8/9 Interrupt IVG13 28
67 DMA10/11 Interrupt IVG13 29
68 Watchdog Timer IVG13 30
72 (lowest priority) IVG15 32 *
75 #define NR_PERI_INTS 24
77 /* The ABSTRACT IRQ definitions */
78 /** the first seven of the following are fixed, the rest you change if you need to **/
79 #define IRQ_EMU 0 /*Emulation */
80 #define IRQ_RST 1 /*reset */
81 #define IRQ_NMI 2 /*Non Maskable */
82 #define IRQ_EVX 3 /*Exception */
83 #define IRQ_UNUSED 4 /*- unused interrupt*/
84 #define IRQ_HWERR 5 /*Hardware Error */
85 #define IRQ_CORETMR 6 /*Core timer */
87 #define IRQ_PLL_WAKEUP 7 /*PLL Wakeup Interrupt */
88 #define IRQ_DMA_ERROR 8 /*DMA Error (general) */
89 #define IRQ_PPI_ERROR 9 /*PPI Error Interrupt */
90 #define IRQ_SPORT0_ERROR 10 /*SPORT0 Error Interrupt */
91 #define IRQ_SPORT1_ERROR 11 /*SPORT1 Error Interrupt */
92 #define IRQ_SPI_ERROR 12 /*SPI Error Interrupt */
93 #define IRQ_UART_ERROR 13 /*UART Error Interrupt */
94 #define IRQ_RTC 14 /*RTC Interrupt */
95 #define IRQ_PPI 15 /*DMA0 Interrupt (PPI) */
96 #define IRQ_SPORT0_RX 16 /*DMA1 Interrupt (SPORT0 RX) */
97 #define IRQ_SPORT0_TX 17 /*DMA2 Interrupt (SPORT0 TX) */
98 #define IRQ_SPORT1_RX 18 /*DMA3 Interrupt (SPORT1 RX) */
99 #define IRQ_SPORT1_TX 19 /*DMA4 Interrupt (SPORT1 TX) */
100 #define IRQ_SPI 20 /*DMA5 Interrupt (SPI) */
101 #define IRQ_UART_RX 21 /*DMA6 Interrupt (UART RX) */
102 #define IRQ_UART_TX 22 /*DMA7 Interrupt (UART TX) */
103 #define IRQ_TMR0 23 /*Timer 0 */
104 #define IRQ_TMR1 24 /*Timer 1 */
105 #define IRQ_TMR2 25 /*Timer 2 */
106 #define IRQ_PROG_INTA 26 /*Programmable Flags A (8) */
107 #define IRQ_PROG_INTB 27 /*Programmable Flags B (8) */
108 #define IRQ_MEM_DMA0 28 /*DMA8/9 Interrupt (Memory DMA Stream 0) */
109 #define IRQ_MEM_DMA1 29 /*DMA10/11 Interrupt (Memory DMA Stream 1) */
110 #define IRQ_WATCH 30 /*Watch Dog Timer */
129 #define GPIO_IRQ_BASE IRQ_PF0
131 #define NR_IRQS (IRQ_PF15+1)
144 #define RTC_ERROR_POS 28
145 #define UART_ERROR_POS 24
146 #define SPORT1_ERROR_POS 20
147 #define SPI_ERROR_POS 16
148 #define SPORT0_ERROR_POS 12
149 #define PPI_ERROR_POS 8
150 #define DMA_ERROR_POS 4
151 #define PLLWAKE_ERROR_POS 0
154 #define DMA7_UARTTX_POS 28
155 #define DMA6_UARTRX_POS 24
156 #define DMA5_SPI_POS 20
157 #define DMA4_SPORT1TX_POS 16
158 #define DMA3_SPORT1RX_POS 12
159 #define DMA2_SPORT0TX_POS 8
160 #define DMA1_SPORT0RX_POS 4
161 #define DMA0_PPI_POS 0
164 #define WDTIMER_POS 28
165 #define MEMDMA1_POS 24
166 #define MEMDMA0_POS 20
173 #endif /* _BF533_IRQ_H_ */