irq-mapping.h 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. /*
  2. * irq.h: IRQ mappings for PNX833X.
  3. *
  4. * Copyright 2008 NXP Semiconductors
  5. * Chris Steel <chris.steel@nxp.com>
  6. * Daniel Laird <daniel.j.laird@nxp.com>
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation; either version 2 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program; if not, write to the Free Software
  20. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  21. */
  22. #ifndef __ASM_MIPS_MACH_PNX833X_IRQ_MAPPING_H
  23. #define __ASM_MIPS_MACH_PNX833X_IRQ_MAPPING_H
  24. /*
  25. * The "IRQ numbers" are completely virtual.
  26. *
  27. * In PNX8330/1, we have 48 interrupt lines, numbered from 1 to 48.
  28. * Let's use numbers 1..48 for PIC interrupts, number 0 for timer interrupt,
  29. * numbers 49..64 for (virtual) GPIO interrupts.
  30. *
  31. * In PNX8335, we have 57 interrupt lines, numbered from 1 to 57,
  32. * connected to PIC, which uses core hardware interrupt 2, and also
  33. * a timer interrupt through hardware interrupt 5.
  34. * Let's use numbers 1..64 for PIC interrupts, number 0 for timer interrupt,
  35. * numbers 65..80 for (virtual) GPIO interrupts.
  36. *
  37. */
  38. #include <irq.h>
  39. #define PNX833X_TIMER_IRQ (MIPS_CPU_IRQ_BASE + 7)
  40. /* Interrupts supported by PIC */
  41. #define PNX833X_PIC_I2C0_INT (PNX833X_PIC_IRQ_BASE + 1)
  42. #define PNX833X_PIC_I2C1_INT (PNX833X_PIC_IRQ_BASE + 2)
  43. #define PNX833X_PIC_UART0_INT (PNX833X_PIC_IRQ_BASE + 3)
  44. #define PNX833X_PIC_UART1_INT (PNX833X_PIC_IRQ_BASE + 4)
  45. #define PNX833X_PIC_TS_IN0_DV_INT (PNX833X_PIC_IRQ_BASE + 5)
  46. #define PNX833X_PIC_TS_IN0_DMA_INT (PNX833X_PIC_IRQ_BASE + 6)
  47. #define PNX833X_PIC_GPIO_INT (PNX833X_PIC_IRQ_BASE + 7)
  48. #define PNX833X_PIC_AUDIO_DEC_INT (PNX833X_PIC_IRQ_BASE + 8)
  49. #define PNX833X_PIC_VIDEO_DEC_INT (PNX833X_PIC_IRQ_BASE + 9)
  50. #define PNX833X_PIC_CONFIG_INT (PNX833X_PIC_IRQ_BASE + 10)
  51. #define PNX833X_PIC_AOI_INT (PNX833X_PIC_IRQ_BASE + 11)
  52. #define PNX833X_PIC_SYNC_INT (PNX833X_PIC_IRQ_BASE + 12)
  53. #define PNX8330_PIC_SPU_INT (PNX833X_PIC_IRQ_BASE + 13)
  54. #define PNX8335_PIC_SATA_INT (PNX833X_PIC_IRQ_BASE + 13)
  55. #define PNX833X_PIC_OSD_INT (PNX833X_PIC_IRQ_BASE + 14)
  56. #define PNX833X_PIC_DISP1_INT (PNX833X_PIC_IRQ_BASE + 15)
  57. #define PNX833X_PIC_DEINTERLACER_INT (PNX833X_PIC_IRQ_BASE + 16)
  58. #define PNX833X_PIC_DISPLAY2_INT (PNX833X_PIC_IRQ_BASE + 17)
  59. #define PNX833X_PIC_VC_INT (PNX833X_PIC_IRQ_BASE + 18)
  60. #define PNX833X_PIC_SC_INT (PNX833X_PIC_IRQ_BASE + 19)
  61. #define PNX833X_PIC_IDE_INT (PNX833X_PIC_IRQ_BASE + 20)
  62. #define PNX833X_PIC_IDE_DMA_INT (PNX833X_PIC_IRQ_BASE + 21)
  63. #define PNX833X_PIC_TS_IN1_DV_INT (PNX833X_PIC_IRQ_BASE + 22)
  64. #define PNX833X_PIC_TS_IN1_DMA_INT (PNX833X_PIC_IRQ_BASE + 23)
  65. #define PNX833X_PIC_SGDX_DMA_INT (PNX833X_PIC_IRQ_BASE + 24)
  66. #define PNX833X_PIC_TS_OUT_INT (PNX833X_PIC_IRQ_BASE + 25)
  67. #define PNX833X_PIC_IR_INT (PNX833X_PIC_IRQ_BASE + 26)
  68. #define PNX833X_PIC_VMSP1_INT (PNX833X_PIC_IRQ_BASE + 27)
  69. #define PNX833X_PIC_VMSP2_INT (PNX833X_PIC_IRQ_BASE + 28)
  70. #define PNX833X_PIC_PIBC_INT (PNX833X_PIC_IRQ_BASE + 29)
  71. #define PNX833X_PIC_TS_IN0_TRD_INT (PNX833X_PIC_IRQ_BASE + 30)
  72. #define PNX833X_PIC_SGDX_TPD_INT (PNX833X_PIC_IRQ_BASE + 31)
  73. #define PNX833X_PIC_USB_INT (PNX833X_PIC_IRQ_BASE + 32)
  74. #define PNX833X_PIC_TS_IN1_TRD_INT (PNX833X_PIC_IRQ_BASE + 33)
  75. #define PNX833X_PIC_CLOCK_INT (PNX833X_PIC_IRQ_BASE + 34)
  76. #define PNX833X_PIC_SGDX_PARSER_INT (PNX833X_PIC_IRQ_BASE + 35)
  77. #define PNX833X_PIC_VMSP_DMA_INT (PNX833X_PIC_IRQ_BASE + 36)
  78. #if defined(CONFIG_SOC_PNX8335)
  79. #define PNX8335_PIC_MIU_INT (PNX833X_PIC_IRQ_BASE + 37)
  80. #define PNX8335_PIC_AVCHIP_IRQ_INT (PNX833X_PIC_IRQ_BASE + 38)
  81. #define PNX8335_PIC_SYNC_HD_INT (PNX833X_PIC_IRQ_BASE + 39)
  82. #define PNX8335_PIC_DISP_HD_INT (PNX833X_PIC_IRQ_BASE + 40)
  83. #define PNX8335_PIC_DISP_SCALER_INT (PNX833X_PIC_IRQ_BASE + 41)
  84. #define PNX8335_PIC_OSD_HD1_INT (PNX833X_PIC_IRQ_BASE + 42)
  85. #define PNX8335_PIC_DTL_WRITER_Y_INT (PNX833X_PIC_IRQ_BASE + 43)
  86. #define PNX8335_PIC_DTL_WRITER_C_INT (PNX833X_PIC_IRQ_BASE + 44)
  87. #define PNX8335_PIC_DTL_EMULATOR_Y_IR_INT (PNX833X_PIC_IRQ_BASE + 45)
  88. #define PNX8335_PIC_DTL_EMULATOR_C_IR_INT (PNX833X_PIC_IRQ_BASE + 46)
  89. #define PNX8335_PIC_DENC_TTX_INT (PNX833X_PIC_IRQ_BASE + 47)
  90. #define PNX8335_PIC_MMI_SIF0_INT (PNX833X_PIC_IRQ_BASE + 48)
  91. #define PNX8335_PIC_MMI_SIF1_INT (PNX833X_PIC_IRQ_BASE + 49)
  92. #define PNX8335_PIC_MMI_CDMMU_INT (PNX833X_PIC_IRQ_BASE + 50)
  93. #define PNX8335_PIC_PIBCS_INT (PNX833X_PIC_IRQ_BASE + 51)
  94. #define PNX8335_PIC_ETHERNET_INT (PNX833X_PIC_IRQ_BASE + 52)
  95. #define PNX8335_PIC_VMSP1_0_INT (PNX833X_PIC_IRQ_BASE + 53)
  96. #define PNX8335_PIC_VMSP1_1_INT (PNX833X_PIC_IRQ_BASE + 54)
  97. #define PNX8335_PIC_VMSP1_DMA_INT (PNX833X_PIC_IRQ_BASE + 55)
  98. #define PNX8335_PIC_TDGR_DE_INT (PNX833X_PIC_IRQ_BASE + 56)
  99. #define PNX8335_PIC_IR1_IRQ_INT (PNX833X_PIC_IRQ_BASE + 57)
  100. #endif
  101. /* GPIO interrupts */
  102. #define PNX833X_GPIO_0_INT (PNX833X_GPIO_IRQ_BASE + 0)
  103. #define PNX833X_GPIO_1_INT (PNX833X_GPIO_IRQ_BASE + 1)
  104. #define PNX833X_GPIO_2_INT (PNX833X_GPIO_IRQ_BASE + 2)
  105. #define PNX833X_GPIO_3_INT (PNX833X_GPIO_IRQ_BASE + 3)
  106. #define PNX833X_GPIO_4_INT (PNX833X_GPIO_IRQ_BASE + 4)
  107. #define PNX833X_GPIO_5_INT (PNX833X_GPIO_IRQ_BASE + 5)
  108. #define PNX833X_GPIO_6_INT (PNX833X_GPIO_IRQ_BASE + 6)
  109. #define PNX833X_GPIO_7_INT (PNX833X_GPIO_IRQ_BASE + 7)
  110. #define PNX833X_GPIO_8_INT (PNX833X_GPIO_IRQ_BASE + 8)
  111. #define PNX833X_GPIO_9_INT (PNX833X_GPIO_IRQ_BASE + 9)
  112. #define PNX833X_GPIO_10_INT (PNX833X_GPIO_IRQ_BASE + 10)
  113. #define PNX833X_GPIO_11_INT (PNX833X_GPIO_IRQ_BASE + 11)
  114. #define PNX833X_GPIO_12_INT (PNX833X_GPIO_IRQ_BASE + 12)
  115. #define PNX833X_GPIO_13_INT (PNX833X_GPIO_IRQ_BASE + 13)
  116. #define PNX833X_GPIO_14_INT (PNX833X_GPIO_IRQ_BASE + 14)
  117. #define PNX833X_GPIO_15_INT (PNX833X_GPIO_IRQ_BASE + 15)
  118. #endif