irq.h 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. /*
  2. * File: include/asm-blackfin/mach-bf533/defBF532.h
  3. * Based on:
  4. * Author:
  5. *
  6. * Created:
  7. * Description:
  8. *
  9. * Rev:
  10. *
  11. * Modified:
  12. *
  13. * Bugs: Enter bugs at http://blackfin.uclinux.org/
  14. *
  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)
  18. * any later version.
  19. *
  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.
  24. *
  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.
  29. */
  30. #ifndef _BF533_IRQ_H_
  31. #define _BF533_IRQ_H_
  32. /*
  33. * Interrupt source definitions
  34. Event Source Core Event Name
  35. Core Emulation **
  36. Events (highest priority) EMU 0
  37. Reset RST 1
  38. NMI NMI 2
  39. Exception EVX 3
  40. Reserved -- 4
  41. Hardware Error IVHW 5
  42. Core Timer IVTMR 6 *
  43. PLL Wakeup Interrupt IVG7 7
  44. DMA Error (generic) IVG7 8
  45. PPI Error Interrupt IVG7 9
  46. SPORT0 Error Interrupt IVG7 10
  47. SPORT1 Error Interrupt IVG7 11
  48. SPI Error Interrupt IVG7 12
  49. UART Error Interrupt IVG7 13
  50. RTC Interrupt IVG8 14
  51. DMA0 Interrupt (PPI) IVG8 15
  52. DMA1 (SPORT0 RX) IVG9 16
  53. DMA2 (SPORT0 TX) IVG9 17
  54. DMA3 (SPORT1 RX) IVG9 18
  55. DMA4 (SPORT1 TX) IVG9 19
  56. DMA5 (PPI) IVG10 20
  57. DMA6 (UART RX) IVG10 21
  58. DMA7 (UART TX) IVG10 22
  59. Timer0 IVG11 23
  60. Timer1 IVG11 24
  61. Timer2 IVG11 25
  62. PF Interrupt A IVG12 26
  63. PF Interrupt B IVG12 27
  64. DMA8/9 Interrupt IVG13 28
  65. DMA10/11 Interrupt IVG13 29
  66. Watchdog Timer IVG13 30
  67. Softirq IVG14 31
  68. System Call --
  69. (lowest priority) IVG15 32 *
  70. */
  71. #define SYS_IRQS 31
  72. #define NR_PERI_INTS 24
  73. /* The ABSTRACT IRQ definitions */
  74. /** the first seven of the following are fixed, the rest you change if you need to **/
  75. #define IRQ_EMU 0 /*Emulation */
  76. #define IRQ_RST 1 /*reset */
  77. #define IRQ_NMI 2 /*Non Maskable */
  78. #define IRQ_EVX 3 /*Exception */
  79. #define IRQ_UNUSED 4 /*- unused interrupt*/
  80. #define IRQ_HWERR 5 /*Hardware Error */
  81. #define IRQ_CORETMR 6 /*Core timer */
  82. #define IRQ_PLL_WAKEUP 7 /*PLL Wakeup Interrupt */
  83. #define IRQ_DMA_ERROR 8 /*DMA Error (general) */
  84. #define IRQ_PPI_ERROR 9 /*PPI Error Interrupt */
  85. #define IRQ_SPORT0_ERROR 10 /*SPORT0 Error Interrupt */
  86. #define IRQ_SPORT1_ERROR 11 /*SPORT1 Error Interrupt */
  87. #define IRQ_SPI_ERROR 12 /*SPI Error Interrupt */
  88. #define IRQ_UART_ERROR 13 /*UART Error Interrupt */
  89. #define IRQ_RTC 14 /*RTC Interrupt */
  90. #define IRQ_PPI 15 /*DMA0 Interrupt (PPI) */
  91. #define IRQ_SPORT0_RX 16 /*DMA1 Interrupt (SPORT0 RX) */
  92. #define IRQ_SPORT0_TX 17 /*DMA2 Interrupt (SPORT0 TX) */
  93. #define IRQ_SPORT1_RX 18 /*DMA3 Interrupt (SPORT1 RX) */
  94. #define IRQ_SPORT1_TX 19 /*DMA4 Interrupt (SPORT1 TX) */
  95. #define IRQ_SPI 20 /*DMA5 Interrupt (SPI) */
  96. #define IRQ_UART_RX 21 /*DMA6 Interrupt (UART RX) */
  97. #define IRQ_UART_TX 22 /*DMA7 Interrupt (UART TX) */
  98. #define IRQ_TMR0 23 /*Timer 0 */
  99. #define IRQ_TMR1 24 /*Timer 1 */
  100. #define IRQ_TMR2 25 /*Timer 2 */
  101. #define IRQ_PROG_INTA 26 /*Programmable Flags A (8) */
  102. #define IRQ_PROG_INTB 27 /*Programmable Flags B (8) */
  103. #define IRQ_MEM_DMA0 28 /*DMA8/9 Interrupt (Memory DMA Stream 0) */
  104. #define IRQ_MEM_DMA1 29 /*DMA10/11 Interrupt (Memory DMA Stream 1) */
  105. #define IRQ_WATCH 30 /*Watch Dog Timer */
  106. #define IRQ_PF0 33
  107. #define IRQ_PF1 34
  108. #define IRQ_PF2 35
  109. #define IRQ_PF3 36
  110. #define IRQ_PF4 37
  111. #define IRQ_PF5 38
  112. #define IRQ_PF6 39
  113. #define IRQ_PF7 40
  114. #define IRQ_PF8 41
  115. #define IRQ_PF9 42
  116. #define IRQ_PF10 43
  117. #define IRQ_PF11 44
  118. #define IRQ_PF12 45
  119. #define IRQ_PF13 46
  120. #define IRQ_PF14 47
  121. #define IRQ_PF15 48
  122. #define GPIO_IRQ_BASE IRQ_PF0
  123. #define NR_IRQS (IRQ_PF15+1)
  124. #define IVG7 7
  125. #define IVG8 8
  126. #define IVG9 9
  127. #define IVG10 10
  128. #define IVG11 11
  129. #define IVG12 12
  130. #define IVG13 13
  131. #define IVG14 14
  132. #define IVG15 15
  133. /* IAR0 BIT FIELDS*/
  134. #define RTC_ERROR_POS 28
  135. #define UART_ERROR_POS 24
  136. #define SPORT1_ERROR_POS 20
  137. #define SPI_ERROR_POS 16
  138. #define SPORT0_ERROR_POS 12
  139. #define PPI_ERROR_POS 8
  140. #define DMA_ERROR_POS 4
  141. #define PLLWAKE_ERROR_POS 0
  142. /* IAR1 BIT FIELDS*/
  143. #define DMA7_UARTTX_POS 28
  144. #define DMA6_UARTRX_POS 24
  145. #define DMA5_SPI_POS 20
  146. #define DMA4_SPORT1TX_POS 16
  147. #define DMA3_SPORT1RX_POS 12
  148. #define DMA2_SPORT0TX_POS 8
  149. #define DMA1_SPORT0RX_POS 4
  150. #define DMA0_PPI_POS 0
  151. /* IAR2 BIT FIELDS*/
  152. #define WDTIMER_POS 28
  153. #define MEMDMA1_POS 24
  154. #define MEMDMA0_POS 20
  155. #define PFB_POS 16
  156. #define PFA_POS 12
  157. #define TIMER2_POS 8
  158. #define TIMER1_POS 4
  159. #define TIMER0_POS 0
  160. #endif /* _BF533_IRQ_H_ */