irqs-7x30.h 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. /* Copyright (c) 2009, Code Aurora Forum. All rights reserved.
  2. *
  3. * Redistribution and use in source and binary forms, with or without
  4. * modification, are permitted provided that the following conditions are
  5. * met:
  6. * * Redistributions of source code must retain the above copyright
  7. * notice, this list of conditions and the following disclaimer.
  8. * * Redistributions in binary form must reproduce the above
  9. * copyright notice, this list of conditions and the following
  10. * disclaimer in the documentation and/or other materials provided
  11. * with the distribution.
  12. * * Neither the name of Code Aurora Forum, Inc. nor the names of its
  13. * contributors may be used to endorse or promote products derived
  14. * from this software without specific prior written permission.
  15. *
  16. * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
  17. * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  18. * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
  19. * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
  20. * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  21. * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  22. * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
  23. * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
  24. * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
  25. * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
  26. * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  27. *
  28. */
  29. #ifndef __ASM_ARCH_MSM_IRQS_7X30_H
  30. #define __ASM_ARCH_MSM_IRQS_7X30_H
  31. /* MSM ACPU Interrupt Numbers */
  32. #define INT_DEBUG_TIMER_EXP 0
  33. #define INT_GPT0_TIMER_EXP 1
  34. #define INT_GPT1_TIMER_EXP 2
  35. #define INT_WDT0_ACCSCSSBARK 3
  36. #define INT_WDT1_ACCSCSSBARK 4
  37. #define INT_AVS_SVIC 5
  38. #define INT_AVS_SVIC_SW_DONE 6
  39. #define INT_SC_DBG_RX_FULL 7
  40. #define INT_SC_DBG_TX_EMPTY 8
  41. #define INT_ARM11_PM 9
  42. #define INT_AVS_REQ_DOWN 10
  43. #define INT_AVS_REQ_UP 11
  44. #define INT_SC_ACG 12
  45. /* SCSS_VICFIQSTS0[13:15] are RESERVED */
  46. #define INT_L2_SVICCPUIRPTREQ 16
  47. #define INT_L2_SVICDMANSIRPTREQ 17
  48. #define INT_L2_SVICDMASIRPTREQ 18
  49. #define INT_L2_SVICSLVIRPTREQ 19
  50. #define INT_AD5A_MPROC_APPS_0 20
  51. #define INT_AD5A_MPROC_APPS_1 21
  52. #define INT_A9_M2A_0 22
  53. #define INT_A9_M2A_1 23
  54. #define INT_A9_M2A_2 24
  55. #define INT_A9_M2A_3 25
  56. #define INT_A9_M2A_4 26
  57. #define INT_A9_M2A_5 27
  58. #define INT_A9_M2A_6 28
  59. #define INT_A9_M2A_7 29
  60. #define INT_A9_M2A_8 30
  61. #define INT_A9_M2A_9 31
  62. #define INT_AXI_EBI1_SC (32 + 0)
  63. #define INT_IMEM_ERR (32 + 1)
  64. #define INT_AXI_EBI0_SC (32 + 2)
  65. #define INT_PBUS_SC_IRQC (32 + 3)
  66. #define INT_PERPH_BUS_BPM (32 + 4)
  67. #define INT_CC_TEMP_SENSE (32 + 5)
  68. #define INT_UXMC_EBI0 (32 + 6)
  69. #define INT_UXMC_EBI1 (32 + 7)
  70. #define INT_EBI2_OP_DONE (32 + 8)
  71. #define INT_EBI2_WR_ER_DONE (32 + 9)
  72. #define INT_TCSR_SPSS_CE (32 + 10)
  73. #define INT_EMDH (32 + 11)
  74. #define INT_PMDH (32 + 12)
  75. #define INT_MDC (32 + 13)
  76. #define INT_MIDI_TO_SUPSS (32 + 14)
  77. #define INT_LPA_2 (32 + 15)
  78. #define INT_GPIO_GROUP1_SECURE (32 + 16)
  79. #define INT_GPIO_GROUP2_SECURE (32 + 17)
  80. #define INT_GPIO_GROUP1 (32 + 18)
  81. #define INT_GPIO_GROUP2 (32 + 19)
  82. #define INT_MPRPH_SOFTRESET (32 + 20)
  83. #define INT_PWB_I2C (32 + 21)
  84. #define INT_PWB_I2C_2 (32 + 22)
  85. #define INT_TSSC_SAMPLE (32 + 23)
  86. #define INT_TSSC_PENUP (32 + 24)
  87. #define INT_TCHSCRN_SSBI (32 + 25)
  88. #define INT_FM_RDS (32 + 26)
  89. #define INT_KEYSENSE (32 + 27)
  90. #define INT_USB_OTG_HS (32 + 28)
  91. #define INT_USB_OTG_HS2 (32 + 29)
  92. #define INT_USB_OTG_HS3 (32 + 30)
  93. #define INT_CSI (32 + 31)
  94. #define INT_SPI_OUTPUT (64 + 0)
  95. #define INT_SPI_INPUT (64 + 1)
  96. #define INT_SPI_ERROR (64 + 2)
  97. #define INT_UART1 (64 + 3)
  98. #define INT_UART1_RX (64 + 4)
  99. #define INT_UART2 (64 + 5)
  100. #define INT_UART2_RX (64 + 6)
  101. #define INT_UART3 (64 + 7)
  102. #define INT_UART3_RX (64 + 8)
  103. #define INT_UART1DM_IRQ (64 + 9)
  104. #define INT_UART1DM_RX (64 + 10)
  105. #define INT_UART2DM_IRQ (64 + 11)
  106. #define INT_UART2DM_RX (64 + 12)
  107. #define INT_TSIF (64 + 13)
  108. #define INT_ADM_SC1 (64 + 14)
  109. #define INT_ADM_SC2 (64 + 15)
  110. #define INT_MDP (64 + 16)
  111. #define INT_VPE (64 + 17)
  112. #define INT_GRP_2D (64 + 18)
  113. #define INT_GRP_3D (64 + 19)
  114. #define INT_ROTATOR (64 + 20)
  115. #define INT_MFC720 (64 + 21)
  116. #define INT_JPEG (64 + 22)
  117. #define INT_VFE (64 + 23)
  118. #define INT_TV_ENC (64 + 24)
  119. #define INT_PMIC_SSBI (64 + 25)
  120. #define INT_MPM_1 (64 + 26)
  121. #define INT_TCSR_SPSS_SAMPLE (64 + 27)
  122. #define INT_TCSR_SPSS_PENUP (64 + 28)
  123. #define INT_MPM_2 (64 + 29)
  124. #define INT_SDC1_0 (64 + 30)
  125. #define INT_SDC1_1 (64 + 31)
  126. #define INT_SDC3_0 (96 + 0)
  127. #define INT_SDC3_1 (96 + 1)
  128. #define INT_SDC2_0 (96 + 2)
  129. #define INT_SDC2_1 (96 + 3)
  130. #define INT_SDC4_0 (96 + 4)
  131. #define INT_SDC4_1 (96 + 5)
  132. #define INT_PWB_QUP_IN (96 + 6)
  133. #define INT_PWB_QUP_OUT (96 + 7)
  134. #define INT_PWB_QUP_ERR (96 + 8)
  135. #define INT_SCSS_WDT0_BITE (96 + 9)
  136. /* SCSS_VICFIQSTS3[10:31] are RESERVED */
  137. /* Retrofit universal macro names */
  138. #define INT_ADM_AARM INT_ADM_SC2
  139. #define INT_USB_HS INT_USB_OTG_HS
  140. #define INT_USB_OTG INT_USB_OTG_HS
  141. #define INT_TCHSCRN1 INT_TSSC_SAMPLE
  142. #define INT_TCHSCRN2 INT_TSSC_PENUP
  143. #define INT_GP_TIMER_EXP INT_GPT0_TIMER_EXP
  144. #define INT_ADSP_A11 INT_AD5A_MPROC_APPS_0
  145. #define INT_ADSP_A9_A11 INT_AD5A_MPROC_APPS_1
  146. #define INT_MDDI_EXT INT_EMDH
  147. #define INT_MDDI_PRI INT_PMDH
  148. #define INT_MDDI_CLIENT INT_MDC
  149. #define INT_NAND_WR_ER_DONE INT_EBI2_WR_ER_DONE
  150. #define INT_NAND_OP_DONE INT_EBI2_OP_DONE
  151. #define NR_MSM_IRQS 128
  152. #define NR_GPIO_IRQS 182
  153. #define PMIC8058_IRQ_BASE (NR_MSM_IRQS + NR_GPIO_IRQS)
  154. #define NR_PMIC8058_GPIO_IRQS 40
  155. #define NR_PMIC8058_MPP_IRQS 12
  156. #define NR_PMIC8058_MISC_IRQS 8
  157. #define NR_PMIC8058_IRQS (NR_PMIC8058_GPIO_IRQS +\
  158. NR_PMIC8058_MPP_IRQS +\
  159. NR_PMIC8058_MISC_IRQS)
  160. #define NR_BOARD_IRQS NR_PMIC8058_IRQS
  161. #endif /* __ASM_ARCH_MSM_IRQS_7X30_H */