mx23.h 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. /*
  2. * Copyright (C) 2009-2010 Freescale Semiconductor, Inc. All Rights Reserved.
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation; either version 2 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License along
  15. * with this program; if not, write to the Free Software Foundation, Inc.,
  16. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  17. */
  18. #ifndef __MACH_MX23_H__
  19. #define __MACH_MX23_H__
  20. #include <mach/mxs.h>
  21. /*
  22. * OCRAM
  23. */
  24. #define MX23_OCRAM_BASE_ADDR 0x00000000
  25. #define MX23_OCRAM_SIZE SZ_32K
  26. /*
  27. * IO
  28. */
  29. #define MX23_IO_BASE_ADDR 0x80000000
  30. #define MX23_IO_SIZE SZ_1M
  31. #define MX23_ICOLL_BASE_ADDR (MX23_IO_BASE_ADDR + 0x000000)
  32. #define MX23_APBH_DMA_BASE_ADDR (MX23_IO_BASE_ADDR + 0x004000)
  33. #define MX23_BCH_BASE_ADDR (MX23_IO_BASE_ADDR + 0x00a000)
  34. #define MX23_GPMI_BASE_ADDR (MX23_IO_BASE_ADDR + 0x00c000)
  35. #define MX23_SSP1_BASE_ADDR (MX23_IO_BASE_ADDR + 0x010000)
  36. #define MX23_PINCTRL_BASE_ADDR (MX23_IO_BASE_ADDR + 0x018000)
  37. #define MX23_DIGCTL_BASE_ADDR (MX23_IO_BASE_ADDR + 0x01c000)
  38. #define MX23_ETM_BASE_ADDR (MX23_IO_BASE_ADDR + 0x020000)
  39. #define MX23_APBX_DMA_BASE_ADDR (MX23_IO_BASE_ADDR + 0x024000)
  40. #define MX23_DCP_BASE_ADDR (MX23_IO_BASE_ADDR + 0x028000)
  41. #define MX23_PXP_BASE_ADDR (MX23_IO_BASE_ADDR + 0x02a000)
  42. #define MX23_OCOTP_BASE_ADDR (MX23_IO_BASE_ADDR + 0x02c000)
  43. #define MX23_AXI_AHB0_BASE_ADDR (MX23_IO_BASE_ADDR + 0x02e000)
  44. #define MX23_LCDIF_BASE_ADDR (MX23_IO_BASE_ADDR + 0x030000)
  45. #define MX23_SSP2_BASE_ADDR (MX23_IO_BASE_ADDR + 0x034000)
  46. #define MX23_TVENC_BASE_ADDR (MX23_IO_BASE_ADDR + 0x038000)
  47. #define MX23_CLKCTRL_BASE_ADDR (MX23_IO_BASE_ADDR + 0x040000)
  48. #define MX23_SAIF0_BASE_ADDR (MX23_IO_BASE_ADDR + 0x042000)
  49. #define MX23_POWER_BASE_ADDR (MX23_IO_BASE_ADDR + 0x044000)
  50. #define MX23_SAIF1_BASE_ADDR (MX23_IO_BASE_ADDR + 0x046000)
  51. #define MX23_AUDIOOUT_BASE_ADDR (MX23_IO_BASE_ADDR + 0x048000)
  52. #define MX23_AUDIOIN_BASE_ADDR (MX23_IO_BASE_ADDR + 0x04c000)
  53. #define MX23_LRADC_BASE_ADDR (MX23_IO_BASE_ADDR + 0x050000)
  54. #define MX23_SPDIF_BASE_ADDR (MX23_IO_BASE_ADDR + 0x054000)
  55. #define MX23_I2C_BASE_ADDR (MX23_IO_BASE_ADDR + 0x058000)
  56. #define MX23_RTC_BASE_ADDR (MX23_IO_BASE_ADDR + 0x05c000)
  57. #define MX23_PWM_BASE_ADDR (MX23_IO_BASE_ADDR + 0x064000)
  58. #define MX23_TIMROT_BASE_ADDR (MX23_IO_BASE_ADDR + 0x068000)
  59. #define MX23_AUART1_BASE_ADDR (MX23_IO_BASE_ADDR + 0x06c000)
  60. #define MX23_AUART2_BASE_ADDR (MX23_IO_BASE_ADDR + 0x06e000)
  61. #define MX23_DUART_BASE_ADDR (MX23_IO_BASE_ADDR + 0x070000)
  62. #define MX23_USBPHY_BASE_ADDR (MX23_IO_BASE_ADDR + 0x07c000)
  63. #define MX23_USBCTRL_BASE_ADDR (MX23_IO_BASE_ADDR + 0x080000)
  64. #define MX23_DRAM_BASE_ADDR (MX23_IO_BASE_ADDR + 0x0e0000)
  65. #define MX23_IO_P2V(x) MXS_IO_P2V(x)
  66. #define MX23_IO_ADDRESS(x) IOMEM(MX23_IO_P2V(x))
  67. /*
  68. * IRQ
  69. */
  70. #define MX23_INT_DUART 0
  71. #define MX23_INT_COMMS_RX 1
  72. #define MX23_INT_COMMS_TX 1
  73. #define MX23_INT_SSP2_ERROR 2
  74. #define MX23_INT_VDD5V 3
  75. #define MX23_INT_HEADPHONE_SHORT 4
  76. #define MX23_INT_DAC_DMA 5
  77. #define MX23_INT_DAC_ERROR 6
  78. #define MX23_INT_ADC_DMA 7
  79. #define MX23_INT_ADC_ERROR 8
  80. #define MX23_INT_SPDIF_DMA 9
  81. #define MX23_INT_SAIF2_DMA 9
  82. #define MX23_INT_SPDIF_ERROR 10
  83. #define MX23_INT_SAIF1_IRQ 10
  84. #define MX23_INT_SAIF2_IRQ 10
  85. #define MX23_INT_USB_CTRL 11
  86. #define MX23_INT_USB_WAKEUP 12
  87. #define MX23_INT_GPMI_DMA 13
  88. #define MX23_INT_SSP1_DMA 14
  89. #define MX23_INT_SSP1_ERROR 15
  90. #define MX23_INT_GPIO0 16
  91. #define MX23_INT_GPIO1 17
  92. #define MX23_INT_GPIO2 18
  93. #define MX23_INT_SAIF1_DMA 19
  94. #define MX23_INT_SSP2_DMA 20
  95. #define MX23_INT_ECC8_IRQ 21
  96. #define MX23_INT_RTC_ALARM 22
  97. #define MX23_INT_AUART1_TX_DMA 23
  98. #define MX23_INT_AUART1 24
  99. #define MX23_INT_AUART1_RX_DMA 25
  100. #define MX23_INT_I2C_DMA 26
  101. #define MX23_INT_I2C_ERROR 27
  102. #define MX23_INT_TIMER0 28
  103. #define MX23_INT_TIMER1 29
  104. #define MX23_INT_TIMER2 30
  105. #define MX23_INT_TIMER3 31
  106. #define MX23_INT_BATT_BRNOUT 32
  107. #define MX23_INT_VDDD_BRNOUT 33
  108. #define MX23_INT_VDDIO_BRNOUT 34
  109. #define MX23_INT_VDD18_BRNOUT 35
  110. #define MX23_INT_TOUCH_DETECT 36
  111. #define MX23_INT_LRADC_CH0 37
  112. #define MX23_INT_LRADC_CH1 38
  113. #define MX23_INT_LRADC_CH2 39
  114. #define MX23_INT_LRADC_CH3 40
  115. #define MX23_INT_LRADC_CH4 41
  116. #define MX23_INT_LRADC_CH5 42
  117. #define MX23_INT_LRADC_CH6 43
  118. #define MX23_INT_LRADC_CH7 44
  119. #define MX23_INT_LCDIF_DMA 45
  120. #define MX23_INT_LCDIF_ERROR 46
  121. #define MX23_INT_DIGCTL_DEBUG_TRAP 47
  122. #define MX23_INT_RTC_1MSEC 48
  123. #define MX23_INT_DRI_DMA 49
  124. #define MX23_INT_DRI_ATTENTION 50
  125. #define MX23_INT_GPMI_ATTENTION 51
  126. #define MX23_INT_IR 52
  127. #define MX23_INT_DCP_VMI 53
  128. #define MX23_INT_DCP 54
  129. #define MX23_INT_BCH 56
  130. #define MX23_INT_PXP 57
  131. #define MX23_INT_AUART2_TX_DMA 58
  132. #define MX23_INT_AUART2 59
  133. #define MX23_INT_AUART2_RX_DMA 60
  134. #define MX23_INT_VDAC_DETECT 61
  135. #define MX23_INT_VDD5V_DROOP 64
  136. #define MX23_INT_DCDC4P2_BO 65
  137. /*
  138. * APBH DMA
  139. */
  140. #define MX23_DMA_SSP1 1
  141. #define MX23_DMA_SSP2 2
  142. #define MX23_DMA_GPMI0 4
  143. #define MX23_DMA_GPMI1 5
  144. #define MX23_DMA_GPMI2 6
  145. #define MX23_DMA_GPMI3 7
  146. /*
  147. * APBX DMA
  148. */
  149. #define MX23_DMA_ADC 0
  150. #define MX23_DMA_DAC 1
  151. #define MX23_DMA_SPDIF 2
  152. #define MX23_DMA_I2C 3
  153. #define MX23_DMA_SAIF0 4
  154. #define MX23_DMA_UART0_RX 6
  155. #define MX23_DMA_UART0_TX 7
  156. #define MX23_DMA_UART1_RX 8
  157. #define MX23_DMA_UART1_TX 9
  158. #define MX23_DMA_SAIF1 10
  159. #endif /* __MACH_MX23_H__ */