mx1.h 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. /*
  2. * Copyright (C) 1997,1998 Russell King
  3. * Copyright (C) 1999 ARM Limited
  4. * Copyright 2004-2007 Freescale Semiconductor, Inc. All Rights Reserved.
  5. * Copyright (c) 2008 Paulius Zaleckas <paulius.zaleckas@teltonika.lt>
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License version 2 as
  9. * published by the Free Software Foundation.
  10. */
  11. #ifndef __ASM_ARCH_MXC_MX1_H__
  12. #define __ASM_ARCH_MXC_MX1_H__
  13. #include <mach/vmalloc.h>
  14. /*
  15. * Memory map
  16. */
  17. #define IMX_IO_PHYS 0x00200000
  18. #define IMX_IO_SIZE 0x00100000
  19. #define IMX_IO_BASE VMALLOC_END
  20. #define IMX_CS0_PHYS 0x10000000
  21. #define IMX_CS0_SIZE 0x02000000
  22. #define IMX_CS1_PHYS 0x12000000
  23. #define IMX_CS1_SIZE 0x01000000
  24. #define IMX_CS2_PHYS 0x13000000
  25. #define IMX_CS2_SIZE 0x01000000
  26. #define IMX_CS3_PHYS 0x14000000
  27. #define IMX_CS3_SIZE 0x01000000
  28. #define IMX_CS4_PHYS 0x15000000
  29. #define IMX_CS4_SIZE 0x01000000
  30. #define IMX_CS5_PHYS 0x16000000
  31. #define IMX_CS5_SIZE 0x01000000
  32. /*
  33. * Register BASEs, based on OFFSETs
  34. */
  35. #define AIPI1_BASE_ADDR (0x00000 + IMX_IO_PHYS)
  36. #define WDT_BASE_ADDR (0x01000 + IMX_IO_PHYS)
  37. #define TIM1_BASE_ADDR (0x02000 + IMX_IO_PHYS)
  38. #define TIM2_BASE_ADDR (0x03000 + IMX_IO_PHYS)
  39. #define RTC_BASE_ADDR (0x04000 + IMX_IO_PHYS)
  40. #define LCDC_BASE_ADDR (0x05000 + IMX_IO_PHYS)
  41. #define UART1_BASE_ADDR (0x06000 + IMX_IO_PHYS)
  42. #define UART2_BASE_ADDR (0x07000 + IMX_IO_PHYS)
  43. #define PWM_BASE_ADDR (0x08000 + IMX_IO_PHYS)
  44. #define DMA_BASE_ADDR (0x09000 + IMX_IO_PHYS)
  45. #define AIPI2_BASE_ADDR (0x10000 + IMX_IO_PHYS)
  46. #define SIM_BASE_ADDR (0x11000 + IMX_IO_PHYS)
  47. #define USBD_BASE_ADDR (0x12000 + IMX_IO_PHYS)
  48. #define SPI1_BASE_ADDR (0x13000 + IMX_IO_PHYS)
  49. #define MMC_BASE_ADDR (0x14000 + IMX_IO_PHYS)
  50. #define ASP_BASE_ADDR (0x15000 + IMX_IO_PHYS)
  51. #define BTA_BASE_ADDR (0x16000 + IMX_IO_PHYS)
  52. #define I2C_BASE_ADDR (0x17000 + IMX_IO_PHYS)
  53. #define SSI_BASE_ADDR (0x18000 + IMX_IO_PHYS)
  54. #define SPI2_BASE_ADDR (0x19000 + IMX_IO_PHYS)
  55. #define MSHC_BASE_ADDR (0x1A000 + IMX_IO_PHYS)
  56. #define CCM_BASE_ADDR (0x1B000 + IMX_IO_PHYS)
  57. #define SCM_BASE_ADDR (0x1B804 + IMX_IO_PHYS)
  58. #define GPIO_BASE_ADDR (0x1C000 + IMX_IO_PHYS)
  59. #define EIM_BASE_ADDR (0x20000 + IMX_IO_PHYS)
  60. #define SDRAMC_BASE_ADDR (0x21000 + IMX_IO_PHYS)
  61. #define MMA_BASE_ADDR (0x22000 + IMX_IO_PHYS)
  62. #define AVIC_BASE_ADDR (0x23000 + IMX_IO_PHYS)
  63. #define CSI_BASE_ADDR (0x24000 + IMX_IO_PHYS)
  64. /* macro to get at IO space when running virtually */
  65. #define IO_ADDRESS(x) ((x) - IMX_IO_PHYS + IMX_IO_BASE)
  66. /* define macros needed for entry-macro.S */
  67. #define AVIC_IO_ADDRESS(x) IO_ADDRESS(x)
  68. /* fixed interrput numbers */
  69. #define INT_SOFTINT 0
  70. #define CSI_INT 6
  71. #define DSPA_MAC_INT 7
  72. #define DSPA_INT 8
  73. #define COMP_INT 9
  74. #define MSHC_XINT 10
  75. #define GPIO_INT_PORTA 11
  76. #define GPIO_INT_PORTB 12
  77. #define GPIO_INT_PORTC 13
  78. #define LCDC_INT 14
  79. #define SIM_INT 15
  80. #define SIM_DATA_INT 16
  81. #define RTC_INT 17
  82. #define RTC_SAMINT 18
  83. #define UART2_MINT_PFERR 19
  84. #define UART2_MINT_RTS 20
  85. #define UART2_MINT_DTR 21
  86. #define UART2_MINT_UARTC 22
  87. #define UART2_MINT_TX 23
  88. #define UART2_MINT_RX 24
  89. #define UART1_MINT_PFERR 25
  90. #define UART1_MINT_RTS 26
  91. #define UART1_MINT_DTR 27
  92. #define UART1_MINT_UARTC 28
  93. #define UART1_MINT_TX 29
  94. #define UART1_MINT_RX 30
  95. #define VOICE_DAC_INT 31
  96. #define VOICE_ADC_INT 32
  97. #define PEN_DATA_INT 33
  98. #define PWM_INT 34
  99. #define SDHC_INT 35
  100. #define I2C_INT 39
  101. #define CSPI_INT 41
  102. #define SSI_TX_INT 42
  103. #define SSI_TX_ERR_INT 43
  104. #define SSI_RX_INT 44
  105. #define SSI_RX_ERR_INT 45
  106. #define TOUCH_INT 46
  107. #define USBD_INT0 47
  108. #define USBD_INT1 48
  109. #define USBD_INT2 49
  110. #define USBD_INT3 50
  111. #define USBD_INT4 51
  112. #define USBD_INT5 52
  113. #define USBD_INT6 53
  114. #define BTSYS_INT 55
  115. #define BTTIM_INT 56
  116. #define BTWUI_INT 57
  117. #define TIM2_INT 58
  118. #define TIM1_INT 59
  119. #define DMA_ERR 60
  120. #define DMA_INT 61
  121. #define GPIO_INT_PORTD 62
  122. #define WDT_INT 63
  123. /* DMA */
  124. #define DMA_REQ_UART3_T 2
  125. #define DMA_REQ_UART3_R 3
  126. #define DMA_REQ_SSI2_T 4
  127. #define DMA_REQ_SSI2_R 5
  128. #define DMA_REQ_CSI_STAT 6
  129. #define DMA_REQ_CSI_R 7
  130. #define DMA_REQ_MSHC 8
  131. #define DMA_REQ_DSPA_DCT_DOUT 9
  132. #define DMA_REQ_DSPA_DCT_DIN 10
  133. #define DMA_REQ_DSPA_MAC 11
  134. #define DMA_REQ_EXT 12
  135. #define DMA_REQ_SDHC 13
  136. #define DMA_REQ_SPI1_R 14
  137. #define DMA_REQ_SPI1_T 15
  138. #define DMA_REQ_SSI_T 16
  139. #define DMA_REQ_SSI_R 17
  140. #define DMA_REQ_ASP_DAC 18
  141. #define DMA_REQ_ASP_ADC 19
  142. #define DMA_REQ_USP_EP(x) (20 + (x))
  143. #define DMA_REQ_SPI2_R 26
  144. #define DMA_REQ_SPI2_T 27
  145. #define DMA_REQ_UART2_T 28
  146. #define DMA_REQ_UART2_R 29
  147. #define DMA_REQ_UART1_T 30
  148. #define DMA_REQ_UART1_R 31
  149. #endif /* __ASM_ARCH_MXC_MX1_H__ */