irqs.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /*
  2. * arch/arm/mach-loki/include/mach/irqs.h
  3. *
  4. * IRQ definitions for Marvell Loki (88RC8480) SoCs
  5. *
  6. * This file is licensed under the terms of the GNU General Public
  7. * License version 2. This program is licensed "as is" without any
  8. * warranty of any kind, whether express or implied.
  9. */
  10. #ifndef __ASM_ARCH_IRQS_H
  11. #define __ASM_ARCH_IRQS_H
  12. #include "loki.h" /* need GPIO_MAX */
  13. /*
  14. * Interrupt Controller
  15. */
  16. #define IRQ_LOKI_PCIE_A_CPU_DRBL 0
  17. #define IRQ_LOKI_CPU_PCIE_A_DRBL 1
  18. #define IRQ_LOKI_PCIE_B_CPU_DRBL 2
  19. #define IRQ_LOKI_CPU_PCIE_B_DRBL 3
  20. #define IRQ_LOKI_COM_A_ERR 6
  21. #define IRQ_LOKI_COM_A_IN 7
  22. #define IRQ_LOKI_COM_A_OUT 8
  23. #define IRQ_LOKI_COM_B_ERR 9
  24. #define IRQ_LOKI_COM_B_IN 10
  25. #define IRQ_LOKI_COM_B_OUT 11
  26. #define IRQ_LOKI_DMA_A 12
  27. #define IRQ_LOKI_DMA_B 13
  28. #define IRQ_LOKI_SAS_A 14
  29. #define IRQ_LOKI_SAS_B 15
  30. #define IRQ_LOKI_DDR 16
  31. #define IRQ_LOKI_XOR 17
  32. #define IRQ_LOKI_BRIDGE 18
  33. #define IRQ_LOKI_PCIE_A_ERR 20
  34. #define IRQ_LOKI_PCIE_A_INT 21
  35. #define IRQ_LOKI_PCIE_B_ERR 22
  36. #define IRQ_LOKI_PCIE_B_INT 23
  37. #define IRQ_LOKI_GBE_A_INT 24
  38. #define IRQ_LOKI_GBE_B_INT 25
  39. #define IRQ_LOKI_DEV_ERR 26
  40. #define IRQ_LOKI_UART0 27
  41. #define IRQ_LOKI_UART1 28
  42. #define IRQ_LOKI_TWSI 29
  43. #define IRQ_LOKI_GPIO_23_0 30
  44. #define IRQ_LOKI_GPIO_25_24 31
  45. /*
  46. * Loki General Purpose Pins
  47. */
  48. #define IRQ_LOKI_GPIO_START 32
  49. #define NR_GPIO_IRQS GPIO_MAX
  50. #define NR_IRQS (IRQ_LOKI_GPIO_START + NR_GPIO_IRQS)
  51. #endif