irqs.h 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. /*
  2. * IRQ definitions for Marvell MV78xx0 SoCs
  3. *
  4. * This file is licensed under the terms of the GNU General Public
  5. * License version 2. This program is licensed "as is" without any
  6. * warranty of any kind, whether express or implied.
  7. */
  8. #ifndef __ASM_ARCH_IRQS_H
  9. #define __ASM_ARCH_IRQS_H
  10. /*
  11. * MV78xx0 Low Interrupt Controller
  12. */
  13. #define IRQ_MV78XX0_ERR 0
  14. #define IRQ_MV78XX0_SPI 1
  15. #define IRQ_MV78XX0_I2C_0 2
  16. #define IRQ_MV78XX0_I2C_1 3
  17. #define IRQ_MV78XX0_IDMA_0 4
  18. #define IRQ_MV78XX0_IDMA_1 5
  19. #define IRQ_MV78XX0_IDMA_2 6
  20. #define IRQ_MV78XX0_IDMA_3 7
  21. #define IRQ_MV78XX0_TIMER_0 8
  22. #define IRQ_MV78XX0_TIMER_1 9
  23. #define IRQ_MV78XX0_TIMER_2 10
  24. #define IRQ_MV78XX0_TIMER_3 11
  25. #define IRQ_MV78XX0_UART_0 12
  26. #define IRQ_MV78XX0_UART_1 13
  27. #define IRQ_MV78XX0_UART_2 14
  28. #define IRQ_MV78XX0_UART_3 15
  29. #define IRQ_MV78XX0_USB_0 16
  30. #define IRQ_MV78XX0_USB_1 17
  31. #define IRQ_MV78XX0_USB_2 18
  32. #define IRQ_MV78XX0_CRYPTO 19
  33. #define IRQ_MV78XX0_SDIO_0 20
  34. #define IRQ_MV78XX0_SDIO_1 21
  35. #define IRQ_MV78XX0_XOR_0 22
  36. #define IRQ_MV78XX0_XOR_1 23
  37. #define IRQ_MV78XX0_I2S_0 24
  38. #define IRQ_MV78XX0_I2S_1 25
  39. #define IRQ_MV78XX0_SATA 26
  40. #define IRQ_MV78XX0_TDMI 27
  41. /*
  42. * MV78xx0 High Interrupt Controller
  43. */
  44. #define IRQ_MV78XX0_PCIE_00 32
  45. #define IRQ_MV78XX0_PCIE_01 33
  46. #define IRQ_MV78XX0_PCIE_02 34
  47. #define IRQ_MV78XX0_PCIE_03 35
  48. #define IRQ_MV78XX0_PCIE_10 36
  49. #define IRQ_MV78XX0_PCIE_11 37
  50. #define IRQ_MV78XX0_PCIE_12 38
  51. #define IRQ_MV78XX0_PCIE_13 39
  52. #define IRQ_MV78XX0_GE00_SUM 40
  53. #define IRQ_MV78XX0_GE00_RX 41
  54. #define IRQ_MV78XX0_GE00_TX 42
  55. #define IRQ_MV78XX0_GE00_MISC 43
  56. #define IRQ_MV78XX0_GE01_SUM 44
  57. #define IRQ_MV78XX0_GE01_RX 45
  58. #define IRQ_MV78XX0_GE01_TX 46
  59. #define IRQ_MV78XX0_GE01_MISC 47
  60. #define IRQ_MV78XX0_GE10_SUM 48
  61. #define IRQ_MV78XX0_GE10_RX 49
  62. #define IRQ_MV78XX0_GE10_TX 50
  63. #define IRQ_MV78XX0_GE10_MISC 51
  64. #define IRQ_MV78XX0_GE11_SUM 52
  65. #define IRQ_MV78XX0_GE11_RX 53
  66. #define IRQ_MV78XX0_GE11_TX 54
  67. #define IRQ_MV78XX0_GE11_MISC 55
  68. #define IRQ_MV78XX0_GPIO_0_7 56
  69. #define IRQ_MV78XX0_GPIO_8_15 57
  70. #define IRQ_MV78XX0_GPIO_16_23 58
  71. #define IRQ_MV78XX0_GPIO_24_31 59
  72. #define IRQ_MV78XX0_DB_IN 60
  73. #define IRQ_MV78XX0_DB_OUT 61
  74. /*
  75. * MV78xx0 Error Interrupt Controller
  76. */
  77. #define IRQ_MV78XX0_GE_ERR 70
  78. /*
  79. * MV78XX0 General Purpose Pins
  80. */
  81. #define IRQ_MV78XX0_GPIO_START 96
  82. #define NR_GPIO_IRQS 32
  83. #define MV78XX0_NR_IRQS (IRQ_MV78XX0_GPIO_START + NR_GPIO_IRQS)
  84. #endif