m527xsim.h 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /****************************************************************************/
  3. /*
  4. * m527xsim.h -- ColdFire 5270/5271 System Integration Module support.
  5. *
  6. * (C) Copyright 2004, Greg Ungerer (gerg@snapgear.com)
  7. */
  8. /****************************************************************************/
  9. #ifndef m527xsim_h
  10. #define m527xsim_h
  11. /****************************************************************************/
  12. #define CPU_NAME "COLDFIRE(m527x)"
  13. #define CPU_INSTR_PER_JIFFY 3
  14. #define MCF_BUSCLK (MCF_CLK / 2)
  15. #include <asm/m52xxacr.h>
  16. /*
  17. * Define the 5270/5271 SIM register set addresses.
  18. */
  19. #define MCFICM_INTC0 (MCF_IPSBAR + 0x0c00) /* Base for Interrupt Ctrl 0 */
  20. #define MCFICM_INTC1 (MCF_IPSBAR + 0x0d00) /* Base for Interrupt Ctrl 1 */
  21. #define MCFINTC_IPRH 0x00 /* Interrupt pending 32-63 */
  22. #define MCFINTC_IPRL 0x04 /* Interrupt pending 1-31 */
  23. #define MCFINTC_IMRH 0x08 /* Interrupt mask 32-63 */
  24. #define MCFINTC_IMRL 0x0c /* Interrupt mask 1-31 */
  25. #define MCFINTC_INTFRCH 0x10 /* Interrupt force 32-63 */
  26. #define MCFINTC_INTFRCL 0x14 /* Interrupt force 1-31 */
  27. #define MCFINTC_IRLR 0x18 /* */
  28. #define MCFINTC_IACKL 0x19 /* */
  29. #define MCFINTC_ICR0 0x40 /* Base ICR register */
  30. #define MCFINT_VECBASE 64 /* Vector base number */
  31. #define MCFINT_UART0 13 /* Interrupt number for UART0 */
  32. #define MCFINT_UART1 14 /* Interrupt number for UART1 */
  33. #define MCFINT_UART2 15 /* Interrupt number for UART2 */
  34. #define MCFINT_I2C0 17 /* Interrupt number for I2C */
  35. #define MCFINT_QSPI 18 /* Interrupt number for QSPI */
  36. #define MCFINT_FECRX0 23 /* Interrupt number for FEC0 */
  37. #define MCFINT_FECTX0 27 /* Interrupt number for FEC0 */
  38. #define MCFINT_FECENTC0 29 /* Interrupt number for FEC0 */
  39. #define MCFINT_PIT1 36 /* Interrupt number for PIT1 */
  40. #define MCFINT2_VECBASE 128 /* Vector base number 2 */
  41. #define MCFINT2_FECRX1 23 /* Interrupt number for FEC1 */
  42. #define MCFINT2_FECTX1 27 /* Interrupt number for FEC1 */
  43. #define MCFINT2_FECENTC1 29 /* Interrupt number for FEC1 */
  44. #define MCF_IRQ_UART0 (MCFINT_VECBASE + MCFINT_UART0)
  45. #define MCF_IRQ_UART1 (MCFINT_VECBASE + MCFINT_UART1)
  46. #define MCF_IRQ_UART2 (MCFINT_VECBASE + MCFINT_UART2)
  47. #define MCF_IRQ_FECRX0 (MCFINT_VECBASE + MCFINT_FECRX0)
  48. #define MCF_IRQ_FECTX0 (MCFINT_VECBASE + MCFINT_FECTX0)
  49. #define MCF_IRQ_FECENTC0 (MCFINT_VECBASE + MCFINT_FECENTC0)
  50. #define MCF_IRQ_FECRX1 (MCFINT2_VECBASE + MCFINT2_FECRX1)
  51. #define MCF_IRQ_FECTX1 (MCFINT2_VECBASE + MCFINT2_FECTX1)
  52. #define MCF_IRQ_FECENTC1 (MCFINT2_VECBASE + MCFINT2_FECENTC1)
  53. #define MCF_IRQ_QSPI (MCFINT_VECBASE + MCFINT_QSPI)
  54. #define MCF_IRQ_PIT1 (MCFINT_VECBASE + MCFINT_PIT1)
  55. #define MCF_IRQ_I2C0 (MCFINT_VECBASE + MCFINT_I2C0)
  56. /*
  57. * SDRAM configuration registers.
  58. */
  59. #ifdef CONFIG_M5271
  60. #define MCFSIM_DCR (MCF_IPSBAR + 0x40) /* Control */
  61. #define MCFSIM_DACR0 (MCF_IPSBAR + 0x48) /* Base address 0 */
  62. #define MCFSIM_DMR0 (MCF_IPSBAR + 0x4c) /* Address mask 0 */
  63. #define MCFSIM_DACR1 (MCF_IPSBAR + 0x50) /* Base address 1 */
  64. #define MCFSIM_DMR1 (MCF_IPSBAR + 0x54) /* Address mask 1 */
  65. #endif
  66. #ifdef CONFIG_M5275
  67. #define MCFSIM_DMR (MCF_IPSBAR + 0x40) /* Mode */
  68. #define MCFSIM_DCR (MCF_IPSBAR + 0x44) /* Control */
  69. #define MCFSIM_DCFG1 (MCF_IPSBAR + 0x48) /* Configuration 1 */
  70. #define MCFSIM_DCFG2 (MCF_IPSBAR + 0x4c) /* Configuration 2 */
  71. #define MCFSIM_DBAR0 (MCF_IPSBAR + 0x50) /* Base address 0 */
  72. #define MCFSIM_DMR0 (MCF_IPSBAR + 0x54) /* Address mask 0 */
  73. #define MCFSIM_DBAR1 (MCF_IPSBAR + 0x58) /* Base address 1 */
  74. #define MCFSIM_DMR1 (MCF_IPSBAR + 0x5c) /* Address mask 1 */
  75. #endif
  76. /*
  77. * DMA unit base addresses.
  78. */
  79. #define MCFDMA_BASE0 (MCF_IPSBAR + 0x100)
  80. #define MCFDMA_BASE1 (MCF_IPSBAR + 0x140)
  81. #define MCFDMA_BASE2 (MCF_IPSBAR + 0x180)
  82. #define MCFDMA_BASE3 (MCF_IPSBAR + 0x1C0)
  83. /*
  84. * UART module.
  85. */
  86. #define MCFUART_BASE0 (MCF_IPSBAR + 0x200)
  87. #define MCFUART_BASE1 (MCF_IPSBAR + 0x240)
  88. #define MCFUART_BASE2 (MCF_IPSBAR + 0x280)
  89. /*
  90. * FEC ethernet module.
  91. */
  92. #define MCFFEC_BASE0 (MCF_IPSBAR + 0x1000)
  93. #define MCFFEC_SIZE0 0x800
  94. #ifdef CONFIG_M5275
  95. #define MCFFEC_BASE1 (MCF_IPSBAR + 0x1800)
  96. #define MCFFEC_SIZE1 0x800
  97. #endif
  98. /*
  99. * QSPI module.
  100. */
  101. #define MCFQSPI_BASE (MCF_IPSBAR + 0x340)
  102. #define MCFQSPI_SIZE 0x40
  103. #ifdef CONFIG_M5271
  104. #define MCFQSPI_CS0 91
  105. #define MCFQSPI_CS1 92
  106. #define MCFQSPI_CS2 99
  107. #define MCFQSPI_CS3 103
  108. #endif
  109. #ifdef CONFIG_M5275
  110. #define MCFQSPI_CS0 59
  111. #define MCFQSPI_CS1 60
  112. #define MCFQSPI_CS2 61
  113. #define MCFQSPI_CS3 62
  114. #endif
  115. /*
  116. * GPIO module.
  117. */
  118. #ifdef CONFIG_M5271
  119. #define MCFGPIO_PODR_ADDR (MCF_IPSBAR + 0x100000)
  120. #define MCFGPIO_PODR_DATAH (MCF_IPSBAR + 0x100001)
  121. #define MCFGPIO_PODR_DATAL (MCF_IPSBAR + 0x100002)
  122. #define MCFGPIO_PODR_BUSCTL (MCF_IPSBAR + 0x100003)
  123. #define MCFGPIO_PODR_BS (MCF_IPSBAR + 0x100004)
  124. #define MCFGPIO_PODR_CS (MCF_IPSBAR + 0x100005)
  125. #define MCFGPIO_PODR_SDRAM (MCF_IPSBAR + 0x100006)
  126. #define MCFGPIO_PODR_FECI2C (MCF_IPSBAR + 0x100007)
  127. #define MCFGPIO_PODR_UARTH (MCF_IPSBAR + 0x100008)
  128. #define MCFGPIO_PODR_UARTL (MCF_IPSBAR + 0x100009)
  129. #define MCFGPIO_PODR_QSPI (MCF_IPSBAR + 0x10000A)
  130. #define MCFGPIO_PODR_TIMER (MCF_IPSBAR + 0x10000B)
  131. #define MCFGPIO_PDDR_ADDR (MCF_IPSBAR + 0x100010)
  132. #define MCFGPIO_PDDR_DATAH (MCF_IPSBAR + 0x100011)
  133. #define MCFGPIO_PDDR_DATAL (MCF_IPSBAR + 0x100012)
  134. #define MCFGPIO_PDDR_BUSCTL (MCF_IPSBAR + 0x100013)
  135. #define MCFGPIO_PDDR_BS (MCF_IPSBAR + 0x100014)
  136. #define MCFGPIO_PDDR_CS (MCF_IPSBAR + 0x100015)
  137. #define MCFGPIO_PDDR_SDRAM (MCF_IPSBAR + 0x100016)
  138. #define MCFGPIO_PDDR_FECI2C (MCF_IPSBAR + 0x100017)
  139. #define MCFGPIO_PDDR_UARTH (MCF_IPSBAR + 0x100018)
  140. #define MCFGPIO_PDDR_UARTL (MCF_IPSBAR + 0x100019)
  141. #define MCFGPIO_PDDR_QSPI (MCF_IPSBAR + 0x10001A)
  142. #define MCFGPIO_PDDR_TIMER (MCF_IPSBAR + 0x10001B)
  143. #define MCFGPIO_PPDSDR_ADDR (MCF_IPSBAR + 0x100020)
  144. #define MCFGPIO_PPDSDR_DATAH (MCF_IPSBAR + 0x100021)
  145. #define MCFGPIO_PPDSDR_DATAL (MCF_IPSBAR + 0x100022)
  146. #define MCFGPIO_PPDSDR_BUSCTL (MCF_IPSBAR + 0x100023)
  147. #define MCFGPIO_PPDSDR_BS (MCF_IPSBAR + 0x100024)
  148. #define MCFGPIO_PPDSDR_CS (MCF_IPSBAR + 0x100025)
  149. #define MCFGPIO_PPDSDR_SDRAM (MCF_IPSBAR + 0x100026)
  150. #define MCFGPIO_PPDSDR_FECI2C (MCF_IPSBAR + 0x100027)
  151. #define MCFGPIO_PPDSDR_UARTH (MCF_IPSBAR + 0x100028)
  152. #define MCFGPIO_PPDSDR_UARTL (MCF_IPSBAR + 0x100029)
  153. #define MCFGPIO_PPDSDR_QSPI (MCF_IPSBAR + 0x10002A)
  154. #define MCFGPIO_PPDSDR_TIMER (MCF_IPSBAR + 0x10002B)
  155. #define MCFGPIO_PCLRR_ADDR (MCF_IPSBAR + 0x100030)
  156. #define MCFGPIO_PCLRR_DATAH (MCF_IPSBAR + 0x100031)
  157. #define MCFGPIO_PCLRR_DATAL (MCF_IPSBAR + 0x100032)
  158. #define MCFGPIO_PCLRR_BUSCTL (MCF_IPSBAR + 0x100033)
  159. #define MCFGPIO_PCLRR_BS (MCF_IPSBAR + 0x100034)
  160. #define MCFGPIO_PCLRR_CS (MCF_IPSBAR + 0x100035)
  161. #define MCFGPIO_PCLRR_SDRAM (MCF_IPSBAR + 0x100036)
  162. #define MCFGPIO_PCLRR_FECI2C (MCF_IPSBAR + 0x100037)
  163. #define MCFGPIO_PCLRR_UARTH (MCF_IPSBAR + 0x100038)
  164. #define MCFGPIO_PCLRR_UARTL (MCF_IPSBAR + 0x100039)
  165. #define MCFGPIO_PCLRR_QSPI (MCF_IPSBAR + 0x10003A)
  166. #define MCFGPIO_PCLRR_TIMER (MCF_IPSBAR + 0x10003B)
  167. /*
  168. * Generic GPIO support
  169. */
  170. #define MCFGPIO_PODR MCFGPIO_PODR_ADDR
  171. #define MCFGPIO_PDDR MCFGPIO_PDDR_ADDR
  172. #define MCFGPIO_PPDR MCFGPIO_PPDSDR_ADDR
  173. #define MCFGPIO_SETR MCFGPIO_PPDSDR_ADDR
  174. #define MCFGPIO_CLRR MCFGPIO_PCLRR_ADDR
  175. #define MCFGPIO_PIN_MAX 100
  176. #define MCFGPIO_IRQ_MAX 8
  177. #define MCFGPIO_IRQ_VECBASE MCFINT_VECBASE
  178. /*
  179. * Port Pin Assignment registers.
  180. */
  181. #define MCFGPIO_PAR_AD (MCF_IPSBAR + 0x100040)
  182. #define MCFGPIO_PAR_BUSCTL (MCF_IPSBAR + 0x100042)
  183. #define MCFGPIO_PAR_BS (MCF_IPSBAR + 0x100044)
  184. #define MCFGPIO_PAR_CS (MCF_IPSBAR + 0x100045)
  185. #define MCFGPIO_PAR_SDRAM (MCF_IPSBAR + 0x100046)
  186. #define MCFGPIO_PAR_FECI2C (MCF_IPSBAR + 0x100047)
  187. #define MCFGPIO_PAR_UART (MCF_IPSBAR + 0x100048)
  188. #define MCFGPIO_PAR_QSPI (MCF_IPSBAR + 0x10004A)
  189. #define MCFGPIO_PAR_TIMER (MCF_IPSBAR + 0x10004C)
  190. #define UART0_ENABLE_MASK 0x000f
  191. #define UART1_ENABLE_MASK 0x0ff0
  192. #define UART2_ENABLE_MASK 0x3000
  193. #endif /* CONFIG_M5271 */
  194. #ifdef CONFIG_M5275
  195. #define MCFGPIO_PODR_BUSCTL (MCF_IPSBAR + 0x100004)
  196. #define MCFGPIO_PODR_ADDR (MCF_IPSBAR + 0x100005)
  197. #define MCFGPIO_PODR_CS (MCF_IPSBAR + 0x100008)
  198. #define MCFGPIO_PODR_FEC0H (MCF_IPSBAR + 0x10000A)
  199. #define MCFGPIO_PODR_FEC0L (MCF_IPSBAR + 0x10000B)
  200. #define MCFGPIO_PODR_FECI2C (MCF_IPSBAR + 0x10000C)
  201. #define MCFGPIO_PODR_QSPI (MCF_IPSBAR + 0x10000D)
  202. #define MCFGPIO_PODR_SDRAM (MCF_IPSBAR + 0x10000E)
  203. #define MCFGPIO_PODR_TIMERH (MCF_IPSBAR + 0x10000F)
  204. #define MCFGPIO_PODR_TIMERL (MCF_IPSBAR + 0x100010)
  205. #define MCFGPIO_PODR_UARTL (MCF_IPSBAR + 0x100011)
  206. #define MCFGPIO_PODR_FEC1H (MCF_IPSBAR + 0x100012)
  207. #define MCFGPIO_PODR_FEC1L (MCF_IPSBAR + 0x100013)
  208. #define MCFGPIO_PODR_BS (MCF_IPSBAR + 0x100014)
  209. #define MCFGPIO_PODR_IRQ (MCF_IPSBAR + 0x100015)
  210. #define MCFGPIO_PODR_USBH (MCF_IPSBAR + 0x100016)
  211. #define MCFGPIO_PODR_USBL (MCF_IPSBAR + 0x100017)
  212. #define MCFGPIO_PODR_UARTH (MCF_IPSBAR + 0x100018)
  213. #define MCFGPIO_PDDR_BUSCTL (MCF_IPSBAR + 0x100020)
  214. #define MCFGPIO_PDDR_ADDR (MCF_IPSBAR + 0x100021)
  215. #define MCFGPIO_PDDR_CS (MCF_IPSBAR + 0x100024)
  216. #define MCFGPIO_PDDR_FEC0H (MCF_IPSBAR + 0x100026)
  217. #define MCFGPIO_PDDR_FEC0L (MCF_IPSBAR + 0x100027)
  218. #define MCFGPIO_PDDR_FECI2C (MCF_IPSBAR + 0x100028)
  219. #define MCFGPIO_PDDR_QSPI (MCF_IPSBAR + 0x100029)
  220. #define MCFGPIO_PDDR_SDRAM (MCF_IPSBAR + 0x10002A)
  221. #define MCFGPIO_PDDR_TIMERH (MCF_IPSBAR + 0x10002B)
  222. #define MCFGPIO_PDDR_TIMERL (MCF_IPSBAR + 0x10002C)
  223. #define MCFGPIO_PDDR_UARTL (MCF_IPSBAR + 0x10002D)
  224. #define MCFGPIO_PDDR_FEC1H (MCF_IPSBAR + 0x10002E)
  225. #define MCFGPIO_PDDR_FEC1L (MCF_IPSBAR + 0x10002F)
  226. #define MCFGPIO_PDDR_BS (MCF_IPSBAR + 0x100030)
  227. #define MCFGPIO_PDDR_IRQ (MCF_IPSBAR + 0x100031)
  228. #define MCFGPIO_PDDR_USBH (MCF_IPSBAR + 0x100032)
  229. #define MCFGPIO_PDDR_USBL (MCF_IPSBAR + 0x100033)
  230. #define MCFGPIO_PDDR_UARTH (MCF_IPSBAR + 0x100034)
  231. #define MCFGPIO_PPDSDR_BUSCTL (MCF_IPSBAR + 0x10003C)
  232. #define MCFGPIO_PPDSDR_ADDR (MCF_IPSBAR + 0x10003D)
  233. #define MCFGPIO_PPDSDR_CS (MCF_IPSBAR + 0x100040)
  234. #define MCFGPIO_PPDSDR_FEC0H (MCF_IPSBAR + 0x100042)
  235. #define MCFGPIO_PPDSDR_FEC0L (MCF_IPSBAR + 0x100043)
  236. #define MCFGPIO_PPDSDR_FECI2C (MCF_IPSBAR + 0x100044)
  237. #define MCFGPIO_PPDSDR_QSPI (MCF_IPSBAR + 0x100045)
  238. #define MCFGPIO_PPDSDR_SDRAM (MCF_IPSBAR + 0x100046)
  239. #define MCFGPIO_PPDSDR_TIMERH (MCF_IPSBAR + 0x100047)
  240. #define MCFGPIO_PPDSDR_TIMERL (MCF_IPSBAR + 0x100048)
  241. #define MCFGPIO_PPDSDR_UARTL (MCF_IPSBAR + 0x100049)
  242. #define MCFGPIO_PPDSDR_FEC1H (MCF_IPSBAR + 0x10004A)
  243. #define MCFGPIO_PPDSDR_FEC1L (MCF_IPSBAR + 0x10004B)
  244. #define MCFGPIO_PPDSDR_BS (MCF_IPSBAR + 0x10004C)
  245. #define MCFGPIO_PPDSDR_IRQ (MCF_IPSBAR + 0x10004D)
  246. #define MCFGPIO_PPDSDR_USBH (MCF_IPSBAR + 0x10004E)
  247. #define MCFGPIO_PPDSDR_USBL (MCF_IPSBAR + 0x10004F)
  248. #define MCFGPIO_PPDSDR_UARTH (MCF_IPSBAR + 0x100050)
  249. #define MCFGPIO_PCLRR_BUSCTL (MCF_IPSBAR + 0x100058)
  250. #define MCFGPIO_PCLRR_ADDR (MCF_IPSBAR + 0x100059)
  251. #define MCFGPIO_PCLRR_CS (MCF_IPSBAR + 0x10005C)
  252. #define MCFGPIO_PCLRR_FEC0H (MCF_IPSBAR + 0x10005E)
  253. #define MCFGPIO_PCLRR_FEC0L (MCF_IPSBAR + 0x10005F)
  254. #define MCFGPIO_PCLRR_FECI2C (MCF_IPSBAR + 0x100060)
  255. #define MCFGPIO_PCLRR_QSPI (MCF_IPSBAR + 0x100061)
  256. #define MCFGPIO_PCLRR_SDRAM (MCF_IPSBAR + 0x100062)
  257. #define MCFGPIO_PCLRR_TIMERH (MCF_IPSBAR + 0x100063)
  258. #define MCFGPIO_PCLRR_TIMERL (MCF_IPSBAR + 0x100064)
  259. #define MCFGPIO_PCLRR_UARTL (MCF_IPSBAR + 0x100065)
  260. #define MCFGPIO_PCLRR_FEC1H (MCF_IPSBAR + 0x100066)
  261. #define MCFGPIO_PCLRR_FEC1L (MCF_IPSBAR + 0x100067)
  262. #define MCFGPIO_PCLRR_BS (MCF_IPSBAR + 0x100068)
  263. #define MCFGPIO_PCLRR_IRQ (MCF_IPSBAR + 0x100069)
  264. #define MCFGPIO_PCLRR_USBH (MCF_IPSBAR + 0x10006A)
  265. #define MCFGPIO_PCLRR_USBL (MCF_IPSBAR + 0x10006B)
  266. #define MCFGPIO_PCLRR_UARTH (MCF_IPSBAR + 0x10006C)
  267. /*
  268. * Generic GPIO support
  269. */
  270. #define MCFGPIO_PODR MCFGPIO_PODR_BUSCTL
  271. #define MCFGPIO_PDDR MCFGPIO_PDDR_BUSCTL
  272. #define MCFGPIO_PPDR MCFGPIO_PPDSDR_BUSCTL
  273. #define MCFGPIO_SETR MCFGPIO_PPDSDR_BUSCTL
  274. #define MCFGPIO_CLRR MCFGPIO_PCLRR_BUSCTL
  275. #define MCFGPIO_PIN_MAX 148
  276. #define MCFGPIO_IRQ_MAX 8
  277. #define MCFGPIO_IRQ_VECBASE MCFINT_VECBASE
  278. /*
  279. * Port Pin Assignment registers.
  280. */
  281. #define MCFGPIO_PAR_AD (MCF_IPSBAR + 0x100070)
  282. #define MCFGPIO_PAR_CS (MCF_IPSBAR + 0x100071)
  283. #define MCFGPIO_PAR_BUSCTL (MCF_IPSBAR + 0x100072)
  284. #define MCFGPIO_PAR_USB (MCF_IPSBAR + 0x100076)
  285. #define MCFGPIO_PAR_FEC0HL (MCF_IPSBAR + 0x100078)
  286. #define MCFGPIO_PAR_FEC1HL (MCF_IPSBAR + 0x100079)
  287. #define MCFGPIO_PAR_TIMER (MCF_IPSBAR + 0x10007A)
  288. #define MCFGPIO_PAR_UART (MCF_IPSBAR + 0x10007C)
  289. #define MCFGPIO_PAR_QSPI (MCF_IPSBAR + 0x10007E)
  290. #define MCFGPIO_PAR_SDRAM (MCF_IPSBAR + 0x100080)
  291. #define MCFGPIO_PAR_FECI2C (MCF_IPSBAR + 0x100082)
  292. #define MCFGPIO_PAR_BS (MCF_IPSBAR + 0x100084)
  293. #define UART0_ENABLE_MASK 0x000f
  294. #define UART1_ENABLE_MASK 0x00f0
  295. #define UART2_ENABLE_MASK 0x3f00
  296. #endif /* CONFIG_M5275 */
  297. /*
  298. * PIT timer base addresses.
  299. */
  300. #define MCFPIT_BASE1 (MCF_IPSBAR + 0x150000)
  301. #define MCFPIT_BASE2 (MCF_IPSBAR + 0x160000)
  302. #define MCFPIT_BASE3 (MCF_IPSBAR + 0x170000)
  303. #define MCFPIT_BASE4 (MCF_IPSBAR + 0x180000)
  304. /*
  305. * EPort
  306. */
  307. #define MCFEPORT_EPPAR (MCF_IPSBAR + 0x130000)
  308. #define MCFEPORT_EPDDR (MCF_IPSBAR + 0x130002)
  309. #define MCFEPORT_EPIER (MCF_IPSBAR + 0x130003)
  310. #define MCFEPORT_EPDR (MCF_IPSBAR + 0x130004)
  311. #define MCFEPORT_EPPDR (MCF_IPSBAR + 0x130005)
  312. #define MCFEPORT_EPFR (MCF_IPSBAR + 0x130006)
  313. /*
  314. * Reset Control Unit (relative to IPSBAR).
  315. */
  316. #define MCF_RCR (MCF_IPSBAR + 0x110000)
  317. #define MCF_RSR (MCF_IPSBAR + 0x110001)
  318. #define MCF_RCR_SWRESET 0x80 /* Software reset bit */
  319. #define MCF_RCR_FRCSTOUT 0x40 /* Force external reset */
  320. /*
  321. * I2C module.
  322. */
  323. #define MCFI2C_BASE0 (MCF_IPSBAR + 0x300)
  324. #define MCFI2C_SIZE0 0x40
  325. /****************************************************************************/
  326. #endif /* m527xsim_h */