irqs.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. /*
  2. *
  3. * arch/arm/mach-u300/include/mach/irqs.h
  4. *
  5. *
  6. * Copyright (C) 2006-2012 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 1
  14. #define IRQ_U300_INTCON1_START 33
  15. /* These are on INTCON0 - 30 lines */
  16. #define IRQ_U300_IRQ0_EXT 1
  17. #define IRQ_U300_IRQ1_EXT 2
  18. #define IRQ_U300_DMA 3
  19. #define IRQ_U300_VIDEO_ENC_0 4
  20. #define IRQ_U300_VIDEO_ENC_1 5
  21. #define IRQ_U300_AAIF_RX 6
  22. #define IRQ_U300_AAIF_TX 7
  23. #define IRQ_U300_AAIF_VGPIO 8
  24. #define IRQ_U300_AAIF_WAKEUP 9
  25. #define IRQ_U300_PCM_I2S0_FRAME 10
  26. #define IRQ_U300_PCM_I2S0_FIFO 11
  27. #define IRQ_U300_PCM_I2S1_FRAME 12
  28. #define IRQ_U300_PCM_I2S1_FIFO 13
  29. #define IRQ_U300_XGAM_GAMCON 14
  30. #define IRQ_U300_XGAM_CDI 15
  31. #define IRQ_U300_XGAM_CDICON 16
  32. #define IRQ_U300_XGAM_PDI 18
  33. #define IRQ_U300_XGAM_PDICON 19
  34. #define IRQ_U300_XGAM_GAMEACC 20
  35. #define IRQ_U300_XGAM_MCIDCT 21
  36. #define IRQ_U300_APEX 22
  37. #define IRQ_U300_UART0 23
  38. #define IRQ_U300_SPI 24
  39. #define IRQ_U300_TIMER_APP_OS 25
  40. #define IRQ_U300_TIMER_APP_DD 26
  41. #define IRQ_U300_TIMER_APP_GP1 27
  42. #define IRQ_U300_TIMER_APP_GP2 28
  43. #define IRQ_U300_TIMER_OS 29
  44. #define IRQ_U300_TIMER_MS 30
  45. #define IRQ_U300_KEYPAD_KEYBF 31
  46. #define IRQ_U300_KEYPAD_KEYBR 32
  47. /* These are on INTCON1 - 32 lines */
  48. #define IRQ_U300_GPIO_PORT0 33
  49. #define IRQ_U300_GPIO_PORT1 34
  50. #define IRQ_U300_GPIO_PORT2 35
  51. /* These are for DB3150, DB3200 and DB3350 */
  52. #define IRQ_U300_WDOG 36
  53. #define IRQ_U300_EVHIST 37
  54. #define IRQ_U300_MSPRO 38
  55. #define IRQ_U300_MMCSD_MCIINTR0 39
  56. #define IRQ_U300_MMCSD_MCIINTR1 40
  57. #define IRQ_U300_I2C0 41
  58. #define IRQ_U300_I2C1 42
  59. #define IRQ_U300_RTC 43
  60. #define IRQ_U300_NFIF 44
  61. #define IRQ_U300_NFIF2 45
  62. /* The DB3350-specific interrupt lines */
  63. #define IRQ_U300_ISP_F0 46
  64. #define IRQ_U300_ISP_F1 47
  65. #define IRQ_U300_ISP_F2 48
  66. #define IRQ_U300_ISP_F3 49
  67. #define IRQ_U300_ISP_F4 50
  68. #define IRQ_U300_GPIO_PORT3 51
  69. #define IRQ_U300_SYSCON_PLL_LOCK 52
  70. #define IRQ_U300_UART1 53
  71. #define IRQ_U300_GPIO_PORT4 54
  72. #define IRQ_U300_GPIO_PORT5 55
  73. #define IRQ_U300_GPIO_PORT6 56
  74. #define U300_VIC_IRQS_END 57
  75. /* Maximum 8*7 GPIO lines */
  76. #ifdef CONFIG_PINCTRL_COH901
  77. #define IRQ_U300_GPIO_BASE (U300_VIC_IRQS_END)
  78. #define IRQ_U300_GPIO_END (IRQ_U300_GPIO_BASE + 56)
  79. #else
  80. #define IRQ_U300_GPIO_END (U300_VIC_IRQS_END)
  81. #endif
  82. #define NR_IRQS_U300 (IRQ_U300_GPIO_END - IRQ_U300_INTCON0_START)
  83. #endif