irqs.h 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. /*
  2. *
  3. * arch/arm/mach-u300/include/mach/irqs.h
  4. *
  5. *
  6. * Copyright (C) 2006-2009 ST-Ericsson AB
  7. * License terms: GNU General Public License (GPL) version 2
  8. * IRQ channel definitions for the U300 platforms.
  9. * Author: Linus Walleij <linus.walleij@stericsson.com>
  10. */
  11. #ifndef __MACH_IRQS_H
  12. #define __MACH_IRQS_H
  13. #define IRQ_U300_INTCON0_START 0
  14. #define IRQ_U300_INTCON1_START 32
  15. /* These are on INTCON0 - 30 lines */
  16. #define IRQ_U300_IRQ0_EXT 0
  17. #define IRQ_U300_IRQ1_EXT 1
  18. #define IRQ_U300_DMA 2
  19. #define IRQ_U300_VIDEO_ENC_0 3
  20. #define IRQ_U300_VIDEO_ENC_1 4
  21. #define IRQ_U300_AAIF_RX 5
  22. #define IRQ_U300_AAIF_TX 6
  23. #define IRQ_U300_AAIF_VGPIO 7
  24. #define IRQ_U300_AAIF_WAKEUP 8
  25. #define IRQ_U300_PCM_I2S0_FRAME 9
  26. #define IRQ_U300_PCM_I2S0_FIFO 10
  27. #define IRQ_U300_PCM_I2S1_FRAME 11
  28. #define IRQ_U300_PCM_I2S1_FIFO 12
  29. #define IRQ_U300_XGAM_GAMCON 13
  30. #define IRQ_U300_XGAM_CDI 14
  31. #define IRQ_U300_XGAM_CDICON 15
  32. #if defined(CONFIG_MACH_U300_BS2X) || defined(CONFIG_MACH_U300_BS330)
  33. /* MMIACC not used on the DB3210 or DB3350 chips */
  34. #define IRQ_U300_XGAM_MMIACC 16
  35. #endif
  36. #define IRQ_U300_XGAM_PDI 17
  37. #define IRQ_U300_XGAM_PDICON 18
  38. #define IRQ_U300_XGAM_GAMEACC 19
  39. #define IRQ_U300_XGAM_MCIDCT 20
  40. #define IRQ_U300_APEX 21
  41. #define IRQ_U300_UART0 22
  42. #define IRQ_U300_SPI 23
  43. #define IRQ_U300_TIMER_APP_OS 24
  44. #define IRQ_U300_TIMER_APP_DD 25
  45. #define IRQ_U300_TIMER_APP_GP1 26
  46. #define IRQ_U300_TIMER_APP_GP2 27
  47. #define IRQ_U300_TIMER_OS 28
  48. #define IRQ_U300_TIMER_MS 29
  49. #define IRQ_U300_KEYPAD_KEYBF 30
  50. #define IRQ_U300_KEYPAD_KEYBR 31
  51. /* These are on INTCON1 - 32 lines */
  52. #define IRQ_U300_GPIO_PORT0 32
  53. #define IRQ_U300_GPIO_PORT1 33
  54. #define IRQ_U300_GPIO_PORT2 34
  55. #if defined(CONFIG_MACH_U300_BS2X) || defined(CONFIG_MACH_U300_BS330) || \
  56. defined(CONFIG_MACH_U300_BS335)
  57. /* These are for DB3150, DB3200 and DB3350 */
  58. #define IRQ_U300_WDOG 35
  59. #define IRQ_U300_EVHIST 36
  60. #define IRQ_U300_MSPRO 37
  61. #define IRQ_U300_MMCSD_MCIINTR0 38
  62. #define IRQ_U300_MMCSD_MCIINTR1 39
  63. #define IRQ_U300_I2C0 40
  64. #define IRQ_U300_I2C1 41
  65. #define IRQ_U300_RTC 42
  66. #define IRQ_U300_NFIF 43
  67. #define IRQ_U300_NFIF2 44
  68. #endif
  69. /* DB3150 and DB3200 have only 45 IRQs */
  70. #if defined(CONFIG_MACH_U300_BS2X) || defined(CONFIG_MACH_U300_BS330)
  71. #define U300_NR_IRQS 45
  72. #endif
  73. /* The DB3350-specific interrupt lines */
  74. #ifdef CONFIG_MACH_U300_BS335
  75. #define IRQ_U300_ISP_F0 45
  76. #define IRQ_U300_ISP_F1 46
  77. #define IRQ_U300_ISP_F2 47
  78. #define IRQ_U300_ISP_F3 48
  79. #define IRQ_U300_ISP_F4 49
  80. #define IRQ_U300_GPIO_PORT3 50
  81. #define IRQ_U300_SYSCON_PLL_LOCK 51
  82. #define IRQ_U300_UART1 52
  83. #define IRQ_U300_GPIO_PORT4 53
  84. #define IRQ_U300_GPIO_PORT5 54
  85. #define IRQ_U300_GPIO_PORT6 55
  86. #define U300_NR_IRQS 56
  87. #endif
  88. /* The DB3210-specific interrupt lines */
  89. #ifdef CONFIG_MACH_U300_BS365
  90. #define IRQ_U300_GPIO_PORT3 35
  91. #define IRQ_U300_GPIO_PORT4 36
  92. #define IRQ_U300_WDOG 37
  93. #define IRQ_U300_EVHIST 38
  94. #define IRQ_U300_MSPRO 39
  95. #define IRQ_U300_MMCSD_MCIINTR0 40
  96. #define IRQ_U300_MMCSD_MCIINTR1 41
  97. #define IRQ_U300_I2C0 42
  98. #define IRQ_U300_I2C1 43
  99. #define IRQ_U300_RTC 44
  100. #define IRQ_U300_NFIF 45
  101. #define IRQ_U300_NFIF2 46
  102. #define IRQ_U300_SYSCON_PLL_LOCK 47
  103. #define U300_NR_IRQS 48
  104. #endif
  105. #define NR_IRQS U300_NR_IRQS
  106. #endif