irqs.h 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. /*
  2. * arch/arm/mach-w90x900/include/mach/irqs.h
  3. *
  4. * Copyright (c) 2008 Nuvoton technology corporation.
  5. *
  6. * Wan ZongShun <mcuos.com@gmail.com>
  7. *
  8. * Based on arch/arm/mach-s3c2410/include/mach/irqs.h
  9. *
  10. * This program is free software; you can redistribute it and/or modify
  11. * it under the terms of the GNU General Public License as published by
  12. * the Free Software Foundation;version 2 of the License.
  13. *
  14. */
  15. #ifndef __ASM_ARCH_IRQS_H
  16. #define __ASM_ARCH_IRQS_H
  17. /*
  18. * we keep the first set of CPU IRQs out of the range of
  19. * the ISA space, so that the PC104 has them to itself
  20. * and we don't end up having to do horrible things to the
  21. * standard ISA drivers....
  22. *
  23. */
  24. #define W90X900_IRQ(x) (x)
  25. /* Main cpu interrupts */
  26. #define IRQ_WDT W90X900_IRQ(1)
  27. #define IRQ_GROUP0 W90X900_IRQ(2)
  28. #define IRQ_GROUP1 W90X900_IRQ(3)
  29. #define IRQ_ACTL W90X900_IRQ(4)
  30. #define IRQ_LCD W90X900_IRQ(5)
  31. #define IRQ_RTC W90X900_IRQ(6)
  32. #define IRQ_UART0 W90X900_IRQ(7)
  33. #define IRQ_UART1 W90X900_IRQ(8)
  34. #define IRQ_UART2 W90X900_IRQ(9)
  35. #define IRQ_UART3 W90X900_IRQ(10)
  36. #define IRQ_UART4 W90X900_IRQ(11)
  37. #define IRQ_TIMER0 W90X900_IRQ(12)
  38. #define IRQ_TIMER1 W90X900_IRQ(13)
  39. #define IRQ_T_INT_GROUP W90X900_IRQ(14)
  40. #define IRQ_USBH W90X900_IRQ(15)
  41. #define IRQ_EMCTX W90X900_IRQ(16)
  42. #define IRQ_EMCRX W90X900_IRQ(17)
  43. #define IRQ_GDMAGROUP W90X900_IRQ(18)
  44. #define IRQ_DMAC W90X900_IRQ(19)
  45. #define IRQ_FMI W90X900_IRQ(20)
  46. #define IRQ_USBD W90X900_IRQ(21)
  47. #define IRQ_ATAPI W90X900_IRQ(22)
  48. #define IRQ_G2D W90X900_IRQ(23)
  49. #define IRQ_PCI W90X900_IRQ(24)
  50. #define IRQ_SCGROUP W90X900_IRQ(25)
  51. #define IRQ_I2CGROUP W90X900_IRQ(26)
  52. #define IRQ_SSP W90X900_IRQ(27)
  53. #define IRQ_PWM W90X900_IRQ(28)
  54. #define IRQ_KPI W90X900_IRQ(29)
  55. #define IRQ_P2SGROUP W90X900_IRQ(30)
  56. #define IRQ_ADC W90X900_IRQ(31)
  57. #define NR_IRQS (IRQ_ADC+1)
  58. /*for irq group*/
  59. #define IRQ_PS2_PORT0 0x10000000
  60. #define IRQ_PS2_PORT1 0x20000000
  61. #define IRQ_I2C_LINE0 0x04000000
  62. #define IRQ_I2C_LINE1 0x08000000
  63. #define IRQ_SC_CARD0 0x01000000
  64. #define IRQ_SC_CARD1 0x02000000
  65. #define IRQ_GDMA_CH0 0x00100000
  66. #define IRQ_GDMA_CH1 0x00200000
  67. #define IRQ_TIMER2 0x00010000
  68. #define IRQ_TIMER3 0x00020000
  69. #define IRQ_TIMER4 0x00040000
  70. #define IRQ_GROUP0_IRQ0 0x00000001
  71. #define IRQ_GROUP0_IRQ1 0x00000002
  72. #define IRQ_GROUP0_IRQ2 0x00000004
  73. #define IRQ_GROUP0_IRQ3 0x00000008
  74. #define IRQ_GROUP1_IRQ4 0x00000010
  75. #define IRQ_GROUP1_IRQ5 0x00000020
  76. #define IRQ_GROUP1_IRQ6 0x00000040
  77. #define IRQ_GROUP1_IRQ7 0x00000080
  78. #endif /* __ASM_ARCH_IRQ_H */