irqs-eb.h 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. /*
  2. * arch/arm/mach-realview/include/mach/irqs-eb.h
  3. *
  4. * Copyright (C) 2007 ARM Limited
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License version 2 as
  8. * published by the Free Software Foundation.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this program; if not, write to the Free Software
  17. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
  18. * MA 02110-1301, USA.
  19. */
  20. #ifndef __MACH_IRQS_EB_H
  21. #define __MACH_IRQS_EB_H
  22. #define IRQ_EB_GIC_START 32
  23. /*
  24. * RealView EB interrupt sources
  25. */
  26. #define IRQ_EB_WDOG (IRQ_EB_GIC_START + 0) /* Watchdog timer */
  27. #define IRQ_EB_SOFT (IRQ_EB_GIC_START + 1) /* Software interrupt */
  28. #define IRQ_EB_COMMRx (IRQ_EB_GIC_START + 2) /* Debug Comm Rx interrupt */
  29. #define IRQ_EB_COMMTx (IRQ_EB_GIC_START + 3) /* Debug Comm Tx interrupt */
  30. #define IRQ_EB_TIMER0_1 (IRQ_EB_GIC_START + 4) /* Timer 0 and 1 */
  31. #define IRQ_EB_TIMER2_3 (IRQ_EB_GIC_START + 5) /* Timer 2 and 3 */
  32. #define IRQ_EB_GPIO0 (IRQ_EB_GIC_START + 6) /* GPIO 0 */
  33. #define IRQ_EB_GPIO1 (IRQ_EB_GIC_START + 7) /* GPIO 1 */
  34. #define IRQ_EB_GPIO2 (IRQ_EB_GIC_START + 8) /* GPIO 2 */
  35. /* 9 reserved */
  36. #define IRQ_EB_RTC (IRQ_EB_GIC_START + 10) /* Real Time Clock */
  37. #define IRQ_EB_SSP (IRQ_EB_GIC_START + 11) /* Synchronous Serial Port */
  38. #define IRQ_EB_UART0 (IRQ_EB_GIC_START + 12) /* UART 0 on development chip */
  39. #define IRQ_EB_UART1 (IRQ_EB_GIC_START + 13) /* UART 1 on development chip */
  40. #define IRQ_EB_UART2 (IRQ_EB_GIC_START + 14) /* UART 2 on development chip */
  41. #define IRQ_EB_UART3 (IRQ_EB_GIC_START + 15) /* UART 3 on development chip */
  42. #define IRQ_EB_SCI (IRQ_EB_GIC_START + 16) /* Smart Card Interface */
  43. #define IRQ_EB_MMCI0A (IRQ_EB_GIC_START + 17) /* Multimedia Card 0A */
  44. #define IRQ_EB_MMCI0B (IRQ_EB_GIC_START + 18) /* Multimedia Card 0B */
  45. #define IRQ_EB_AACI (IRQ_EB_GIC_START + 19) /* Audio Codec */
  46. #define IRQ_EB_KMI0 (IRQ_EB_GIC_START + 20) /* Keyboard/Mouse port 0 */
  47. #define IRQ_EB_KMI1 (IRQ_EB_GIC_START + 21) /* Keyboard/Mouse port 1 */
  48. #define IRQ_EB_CHARLCD (IRQ_EB_GIC_START + 22) /* Character LCD */
  49. #define IRQ_EB_CLCD (IRQ_EB_GIC_START + 23) /* CLCD controller */
  50. #define IRQ_EB_DMA (IRQ_EB_GIC_START + 24) /* DMA controller */
  51. #define IRQ_EB_PWRFAIL (IRQ_EB_GIC_START + 25) /* Power failure */
  52. #define IRQ_EB_PISMO (IRQ_EB_GIC_START + 26) /* PISMO interface */
  53. #define IRQ_EB_DoC (IRQ_EB_GIC_START + 27) /* Disk on Chip memory controller */
  54. #define IRQ_EB_ETH (IRQ_EB_GIC_START + 28) /* Ethernet controller */
  55. #define IRQ_EB_USB (IRQ_EB_GIC_START + 29) /* USB controller */
  56. #define IRQ_EB_TSPEN (IRQ_EB_GIC_START + 30) /* Touchscreen pen */
  57. #define IRQ_EB_TSKPAD (IRQ_EB_GIC_START + 31) /* Touchscreen keypad */
  58. /*
  59. * RealView EB + ARM11MPCore interrupt sources (primary GIC on the core tile)
  60. */
  61. #define IRQ_EB11MP_AACI (IRQ_EB_GIC_START + 0)
  62. #define IRQ_EB11MP_TIMER0_1 (IRQ_EB_GIC_START + 1)
  63. #define IRQ_EB11MP_TIMER2_3 (IRQ_EB_GIC_START + 2)
  64. #define IRQ_EB11MP_USB (IRQ_EB_GIC_START + 3)
  65. #define IRQ_EB11MP_UART0 (IRQ_EB_GIC_START + 4)
  66. #define IRQ_EB11MP_UART1 (IRQ_EB_GIC_START + 5)
  67. #define IRQ_EB11MP_RTC (IRQ_EB_GIC_START + 6)
  68. #define IRQ_EB11MP_KMI0 (IRQ_EB_GIC_START + 7)
  69. #define IRQ_EB11MP_KMI1 (IRQ_EB_GIC_START + 8)
  70. #define IRQ_EB11MP_ETH (IRQ_EB_GIC_START + 9)
  71. #define IRQ_EB11MP_EB_IRQ1 (IRQ_EB_GIC_START + 10) /* main GIC */
  72. #define IRQ_EB11MP_EB_IRQ2 (IRQ_EB_GIC_START + 11) /* tile GIC */
  73. #define IRQ_EB11MP_EB_FIQ1 (IRQ_EB_GIC_START + 12) /* main GIC */
  74. #define IRQ_EB11MP_EB_FIQ2 (IRQ_EB_GIC_START + 13) /* tile GIC */
  75. #define IRQ_EB11MP_MMCI0A (IRQ_EB_GIC_START + 14)
  76. #define IRQ_EB11MP_MMCI0B (IRQ_EB_GIC_START + 15)
  77. #define IRQ_EB11MP_PMU_CPU0 (IRQ_EB_GIC_START + 17)
  78. #define IRQ_EB11MP_PMU_CPU1 (IRQ_EB_GIC_START + 18)
  79. #define IRQ_EB11MP_PMU_CPU2 (IRQ_EB_GIC_START + 19)
  80. #define IRQ_EB11MP_PMU_CPU3 (IRQ_EB_GIC_START + 20)
  81. #define IRQ_EB11MP_PMU_SCU0 (IRQ_EB_GIC_START + 21)
  82. #define IRQ_EB11MP_PMU_SCU1 (IRQ_EB_GIC_START + 22)
  83. #define IRQ_EB11MP_PMU_SCU2 (IRQ_EB_GIC_START + 23)
  84. #define IRQ_EB11MP_PMU_SCU3 (IRQ_EB_GIC_START + 24)
  85. #define IRQ_EB11MP_PMU_SCU4 (IRQ_EB_GIC_START + 25)
  86. #define IRQ_EB11MP_PMU_SCU5 (IRQ_EB_GIC_START + 26)
  87. #define IRQ_EB11MP_PMU_SCU6 (IRQ_EB_GIC_START + 27)
  88. #define IRQ_EB11MP_PMU_SCU7 (IRQ_EB_GIC_START + 28)
  89. #define IRQ_EB11MP_L220_EVENT (IRQ_EB_GIC_START + 29)
  90. #define IRQ_EB11MP_L220_SLAVE (IRQ_EB_GIC_START + 30)
  91. #define IRQ_EB11MP_L220_DECODE (IRQ_EB_GIC_START + 31)
  92. #define IRQ_EB11MP_UART2 -1
  93. #define IRQ_EB11MP_UART3 -1
  94. #define IRQ_EB11MP_CLCD -1
  95. #define IRQ_EB11MP_DMA -1
  96. #define IRQ_EB11MP_WDOG -1
  97. #define IRQ_EB11MP_GPIO0 -1
  98. #define IRQ_EB11MP_GPIO1 -1
  99. #define IRQ_EB11MP_GPIO2 -1
  100. #define IRQ_EB11MP_SCI -1
  101. #define IRQ_EB11MP_SSP -1
  102. #define NR_GIC_EB11MP 2
  103. /*
  104. * Only define NR_IRQS if less than NR_IRQS_EB
  105. */
  106. #define NR_IRQS_EB (IRQ_EB_GIC_START + 96)
  107. #if defined(CONFIG_MACH_REALVIEW_EB) \
  108. && (!defined(NR_IRQS) || (NR_IRQS < NR_IRQS_EB))
  109. #undef NR_IRQS
  110. #define NR_IRQS NR_IRQS_EB
  111. #endif
  112. #if defined(CONFIG_REALVIEW_EB_ARM11MP) || defined(CONFIG_REALVIEW_EB_A9MP) \
  113. && (!defined(MAX_GIC_NR) || (MAX_GIC_NR < NR_GIC_EB11MP))
  114. #undef MAX_GIC_NR
  115. #define MAX_GIC_NR NR_GIC_EB11MP
  116. #endif
  117. #endif /* __MACH_IRQS_EB_H */