irqs.h 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. /*
  2. * arch/arm/mach-spear6xx/include/mach/irqs.h
  3. *
  4. * IRQ helper macros for SPEAr6xx machine family
  5. *
  6. * Copyright (C) 2009 ST Microelectronics
  7. * Rajeev Kumar<rajeev-dlh.kumar@st.com>
  8. *
  9. * This file is licensed under the terms of the GNU General Public
  10. * License version 2. This program is licensed "as is" without any
  11. * warranty of any kind, whether express or implied.
  12. */
  13. #ifndef __MACH_IRQS_H
  14. #define __MACH_IRQS_H
  15. /* IRQ definitions */
  16. /* VIC 1 */
  17. #define IRQ_INTRCOMM_SW_IRQ 0
  18. #define IRQ_INTRCOMM_CPU_1 1
  19. #define IRQ_INTRCOMM_CPU_2 2
  20. #define IRQ_INTRCOMM_RAS2A11_1 3
  21. #define IRQ_INTRCOMM_RAS2A11_2 4
  22. #define IRQ_INTRCOMM_RAS2A12_1 5
  23. #define IRQ_INTRCOMM_RAS2A12_2 6
  24. #define IRQ_GEN_RAS_0 7
  25. #define IRQ_GEN_RAS_1 8
  26. #define IRQ_GEN_RAS_2 9
  27. #define IRQ_GEN_RAS_3 10
  28. #define IRQ_GEN_RAS_4 11
  29. #define IRQ_GEN_RAS_5 12
  30. #define IRQ_GEN_RAS_6 13
  31. #define IRQ_GEN_RAS_7 14
  32. #define IRQ_GEN_RAS_8 15
  33. #define IRQ_CPU_GPT1_1 16
  34. #define IRQ_CPU_GPT1_2 17
  35. #define IRQ_LOCAL_GPIO 18
  36. #define IRQ_PLL_UNLOCK 19
  37. #define IRQ_JPEG 20
  38. #define IRQ_FSMC 21
  39. #define IRQ_IRDA 22
  40. #define IRQ_RESERVED 23
  41. #define IRQ_UART_0 24
  42. #define IRQ_UART_1 25
  43. #define IRQ_SSP_1 26
  44. #define IRQ_SSP_2 27
  45. #define IRQ_I2C 28
  46. #define IRQ_GEN_RAS_9 29
  47. #define IRQ_GEN_RAS_10 30
  48. #define IRQ_GEN_RAS_11 31
  49. /* VIC 2 */
  50. #define IRQ_APPL_GPT1_1 32
  51. #define IRQ_APPL_GPT1_2 33
  52. #define IRQ_APPL_GPT2_1 34
  53. #define IRQ_APPL_GPT2_2 35
  54. #define IRQ_APPL_GPIO 36
  55. #define IRQ_APPL_SSP 37
  56. #define IRQ_APPL_ADC 38
  57. #define IRQ_APPL_RESERVED 39
  58. #define IRQ_AHB_EXP_MASTER 40
  59. #define IRQ_DDR_CONTROLLER 41
  60. #define IRQ_BASIC_DMA 42
  61. #define IRQ_BASIC_RESERVED1 43
  62. #define IRQ_BASIC_SMI 44
  63. #define IRQ_BASIC_CLCD 45
  64. #define IRQ_EXP_AHB_1 46
  65. #define IRQ_EXP_AHB_2 47
  66. #define IRQ_BASIC_GPT1_1 48
  67. #define IRQ_BASIC_GPT1_2 49
  68. #define IRQ_BASIC_RTC 50
  69. #define IRQ_BASIC_GPIO 51
  70. #define IRQ_BASIC_WDT 52
  71. #define IRQ_BASIC_RESERVED 53
  72. #define IRQ_AHB_EXP_SLAVE 54
  73. #define IRQ_GMAC_1 55
  74. #define IRQ_GMAC_2 56
  75. #define IRQ_USB_DEV 57
  76. #define IRQ_USB_H_OHCI_0 58
  77. #define IRQ_USB_H_EHCI_0 59
  78. #define IRQ_USB_H_OHCI_1 60
  79. #define IRQ_USB_H_EHCI_1 61
  80. #define IRQ_EXP_AHB_3 62
  81. #define IRQ_EXP_AHB_4 63
  82. #define IRQ_VIC_END 64
  83. /* GPIO pins virtual irqs */
  84. #define SPEAR_GPIO_INT_BASE IRQ_VIC_END
  85. #define SPEAR_GPIO0_INT_BASE SPEAR_GPIO_INT_BASE
  86. #define SPEAR_GPIO1_INT_BASE (SPEAR_GPIO0_INT_BASE + 8)
  87. #define SPEAR_GPIO2_INT_BASE (SPEAR_GPIO1_INT_BASE + 8)
  88. #define SPEAR_GPIO_INT_END (SPEAR_GPIO2_INT_BASE + 8)
  89. #define VIRTUAL_IRQS (SPEAR_GPIO_INT_END - IRQ_VIC_END)
  90. #define NR_IRQS (IRQ_VIC_END + VIRTUAL_IRQS)
  91. #endif /* __MACH_IRQS_H */