irqs.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. /*
  2. * arch/arm/mach-ixp4xx/include/mach/irqs.h
  3. *
  4. * IRQ definitions for IXP4XX based systems
  5. *
  6. * Copyright (C) 2002 Intel Corporation.
  7. * Copyright (C) 2003 MontaVista Software, Inc.
  8. *
  9. * This program is free software; you can redistribute it and/or modify
  10. * it under the terms of the GNU General Public License version 2 as
  11. * published by the Free Software Foundation.
  12. *
  13. */
  14. #ifndef _ARCH_IXP4XX_IRQS_H_
  15. #define _ARCH_IXP4XX_IRQS_H_
  16. #define IRQ_IXP4XX_NPEA 0
  17. #define IRQ_IXP4XX_NPEB 1
  18. #define IRQ_IXP4XX_NPEC 2
  19. #define IRQ_IXP4XX_QM1 3
  20. #define IRQ_IXP4XX_QM2 4
  21. #define IRQ_IXP4XX_TIMER1 5
  22. #define IRQ_IXP4XX_GPIO0 6
  23. #define IRQ_IXP4XX_GPIO1 7
  24. #define IRQ_IXP4XX_PCI_INT 8
  25. #define IRQ_IXP4XX_PCI_DMA1 9
  26. #define IRQ_IXP4XX_PCI_DMA2 10
  27. #define IRQ_IXP4XX_TIMER2 11
  28. #define IRQ_IXP4XX_USB 12
  29. #define IRQ_IXP4XX_UART2 13
  30. #define IRQ_IXP4XX_TIMESTAMP 14
  31. #define IRQ_IXP4XX_UART1 15
  32. #define IRQ_IXP4XX_WDOG 16
  33. #define IRQ_IXP4XX_AHB_PMU 17
  34. #define IRQ_IXP4XX_XSCALE_PMU 18
  35. #define IRQ_IXP4XX_GPIO2 19
  36. #define IRQ_IXP4XX_GPIO3 20
  37. #define IRQ_IXP4XX_GPIO4 21
  38. #define IRQ_IXP4XX_GPIO5 22
  39. #define IRQ_IXP4XX_GPIO6 23
  40. #define IRQ_IXP4XX_GPIO7 24
  41. #define IRQ_IXP4XX_GPIO8 25
  42. #define IRQ_IXP4XX_GPIO9 26
  43. #define IRQ_IXP4XX_GPIO10 27
  44. #define IRQ_IXP4XX_GPIO11 28
  45. #define IRQ_IXP4XX_GPIO12 29
  46. #define IRQ_IXP4XX_SW_INT1 30
  47. #define IRQ_IXP4XX_SW_INT2 31
  48. #define IRQ_IXP4XX_USB_HOST 32
  49. #define IRQ_IXP4XX_I2C 33
  50. #define IRQ_IXP4XX_SSP 34
  51. #define IRQ_IXP4XX_TSYNC 35
  52. #define IRQ_IXP4XX_EAU_DONE 36
  53. #define IRQ_IXP4XX_SHA_DONE 37
  54. #define IRQ_IXP4XX_SWCP_PE 58
  55. #define IRQ_IXP4XX_QM_PE 60
  56. #define IRQ_IXP4XX_MCU_ECC 61
  57. #define IRQ_IXP4XX_EXP_PE 62
  58. #define _IXP4XX_GPIO_IRQ(n) (IRQ_IXP4XX_GPIO ## n)
  59. #define IXP4XX_GPIO_IRQ(n) _IXP4XX_GPIO_IRQ(n)
  60. /*
  61. * Only first 32 sources are valid if running on IXP42x systems
  62. */
  63. #if defined(CONFIG_CPU_IXP46X) || defined(CONFIG_CPU_IXP43X)
  64. #define NR_IRQS 64
  65. #else
  66. #define NR_IRQS 32
  67. #endif
  68. #define XSCALE_PMU_IRQ (IRQ_IXP4XX_XSCALE_PMU)
  69. #endif