immap_5441x.h 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387
  1. /*
  2. * MCF5441x Internal Memory Map
  3. *
  4. * Copyright 2010-2012 Freescale Semiconductor, Inc.
  5. * TsiChung Liew (Tsi-Chung.Liew@freescale.com)
  6. *
  7. * See file CREDITS for list of people who contributed to this
  8. * project.
  9. *
  10. * This program is free software; you can redistribute it and/or
  11. * modify it under the terms of the GNU General Public License as
  12. * published by the Free Software Foundation; either version 2 of
  13. * the License, or (at your option) any later version.
  14. *
  15. * This program is distributed in the hope that it will be useful,
  16. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18. * GNU General Public License for more details.
  19. *
  20. * You should have received a copy of the GNU General Public License
  21. * along with this program; if not, write to the Free Software
  22. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  23. * MA 02111-1307 USA
  24. */
  25. #ifndef __IMMAP_5441X__
  26. #define __IMMAP_5441X__
  27. /* Module Base Addresses */
  28. #define MMAP_XBS 0xFC004000
  29. #define MMAP_FBCS 0xFC008000
  30. #define MMAP_CAN0 0xFC020000
  31. #define MMAP_CAN1 0xFC024000
  32. #define MMAP_I2C1 0xFC038000
  33. #define MMAP_DSPI1 0xFC03C000
  34. #define MMAP_SCM 0xFC040000
  35. #define MMAP_PM 0xFC04002C
  36. #define MMAP_EDMA 0xFC044000
  37. #define MMAP_INTC0 0xFC048000
  38. #define MMAP_INTC1 0xFC04C000
  39. #define MMAP_INTC2 0xFC050000
  40. #define MMAP_IACK 0xFC054000
  41. #define MMAP_I2C0 0xFC058000
  42. #define MMAP_DSPI0 0xFC05C000
  43. #define MMAP_UART0 0xFC060000
  44. #define MMAP_UART1 0xFC064000
  45. #define MMAP_UART2 0xFC068000
  46. #define MMAP_UART3 0xFC06C000
  47. #define MMAP_DTMR0 0xFC070000
  48. #define MMAP_DTMR1 0xFC074000
  49. #define MMAP_DTMR2 0xFC078000
  50. #define MMAP_DTMR3 0xFC07C000
  51. #define MMAP_PIT0 0xFC080000
  52. #define MMAP_PIT1 0xFC084000
  53. #define MMAP_PIT2 0xFC088000
  54. #define MMAP_PIT3 0xFC08C000
  55. #define MMAP_EPORT0 0xFC090000
  56. #define MMAP_ADC 0xFC094000
  57. #define MMAP_DAC0 0xFC098000
  58. #define MMAP_DAC1 0xFC09C000
  59. #define MMAP_RRTC 0xFC0A8000
  60. #define MMAP_SIM 0xFC0AC000
  61. #define MMAP_USBOTG 0xFC0B0000
  62. #define MMAP_USBEHCI 0xFC0B4000
  63. #define MMAP_SDRAM 0xFC0B8000
  64. #define MMAP_SSI0 0xFC0BC000
  65. #define MMAP_PLL 0xFC0C0000
  66. #define MMAP_RNG 0xFC0C4000
  67. #define MMAP_SSI1 0xFC0C8000
  68. #define MMAP_ESDHC 0xFC0CC000
  69. #define MMAP_FEC0 0xFC0D4000
  70. #define MMAP_FEC1 0xFC0D8000
  71. #define MMAP_L2_SW0 0xFC0DC000
  72. #define MMAP_L2_SW1 0xFC0E0000
  73. #define MMAP_NFC_RAM 0xFC0FC000
  74. #define MMAP_NFC 0xFC0FF000
  75. #define MMAP_1WIRE 0xEC008000
  76. #define MMAP_I2C2 0xEC010000
  77. #define MMAP_I2C3 0xEC014000
  78. #define MMAP_I2C4 0xEC018000
  79. #define MMAP_I2C5 0xEC01C000
  80. #define MMAP_DSPI2 0xEC038000
  81. #define MMAP_DSPI3 0xEC03C000
  82. #define MMAP_UART4 0xEC060000
  83. #define MMAP_UART5 0xEC064000
  84. #define MMAP_UART6 0xEC068000
  85. #define MMAP_UART7 0xEC06C000
  86. #define MMAP_UART8 0xEC070000
  87. #define MMAP_UART9 0xEC074000
  88. #define MMAP_RCM 0xEC090000
  89. #define MMAP_CCM 0xEC090000
  90. #define MMAP_GPIO 0xEC094000
  91. #include <asm/coldfire/crossbar.h>
  92. #include <asm/coldfire/dspi.h>
  93. #include <asm/coldfire/edma.h>
  94. #include <asm/coldfire/eport.h>
  95. #include <asm/coldfire/flexbus.h>
  96. #include <asm/coldfire/flexcan.h>
  97. #include <asm/coldfire/intctrl.h>
  98. #include <asm/coldfire/ssi.h>
  99. /* Serial Boot Facility (SBF) */
  100. typedef struct sbf {
  101. u8 resv0[0x18];
  102. u16 sbfsr; /* Serial Boot Facility Status */
  103. u8 resv1[0x6];
  104. u16 sbfcr; /* Serial Boot Facility Control */
  105. } sbf_t;
  106. /* Reset Controller Module (RCM) */
  107. typedef struct rcm {
  108. u8 rcr;
  109. u8 rsr;
  110. } rcm_t;
  111. /* Chip Configuration Module (CCM) */
  112. typedef struct ccm {
  113. u8 ccm_resv0[0x4]; /* 0x00 */
  114. u16 ccr; /* 0x04 Chip Configuration */
  115. u8 resv1[0x2]; /* 0x06 */
  116. u16 rcon; /* 0x08 Reset Configuration */
  117. u16 cir; /* 0x0A Chip Identification */
  118. u8 resv2[0x2]; /* 0x0C */
  119. u16 misccr; /* 0x0E Miscellaneous Control */
  120. u16 cdrh; /* 0x10 Clock Divider */
  121. u16 cdrl; /* 0x12 Clock Divider */
  122. u16 uocsr; /* 0x14 USB On-the-Go Controller Status */
  123. u16 uhcsr; /* 0x16 */
  124. u16 misccr3; /* 0x18 */
  125. u16 misccr2; /* 0x1A */
  126. u16 adctsr; /* 0x1C */
  127. u16 dactsr; /* 0x1E */
  128. u16 sbfsr; /* 0x20 */
  129. u16 sbfcr; /* 0x22 */
  130. u32 fnacr; /* 0x24 */
  131. } ccm_t;
  132. /* General Purpose I/O Module (GPIO) */
  133. typedef struct gpio {
  134. u8 podr_a; /* 0x00 */
  135. u8 podr_b; /* 0x01 */
  136. u8 podr_c; /* 0x02 */
  137. u8 podr_d; /* 0x03 */
  138. u8 podr_e; /* 0x04 */
  139. u8 podr_f; /* 0x05 */
  140. u8 podr_g; /* 0x06 */
  141. u8 podr_h; /* 0x07 */
  142. u8 podr_i; /* 0x08 */
  143. u8 podr_j; /* 0x09 */
  144. u8 podr_k; /* 0x0A */
  145. u8 rsvd0; /* 0x0B */
  146. u8 pddr_a; /* 0x0C */
  147. u8 pddr_b; /* 0x0D */
  148. u8 pddr_c; /* 0x0E */
  149. u8 pddr_d; /* 0x0F */
  150. u8 pddr_e; /* 0x10 */
  151. u8 pddr_f; /* 0x11 */
  152. u8 pddr_g; /* 0x12 */
  153. u8 pddr_h; /* 0x13 */
  154. u8 pddr_i; /* 0x14 */
  155. u8 pddr_j; /* 0x15 */
  156. u8 pddr_k; /* 0x16 */
  157. u8 rsvd1; /* 0x17 */
  158. u8 ppdsdr_a; /* 0x18 */
  159. u8 ppdsdr_b; /* 0x19 */
  160. u8 ppdsdr_c; /* 0x1A */
  161. u8 ppdsdr_d; /* 0x1B */
  162. u8 ppdsdr_e; /* 0x1C */
  163. u8 ppdsdr_f; /* 0x1D */
  164. u8 ppdsdr_g; /* 0x1E */
  165. u8 ppdsdr_h; /* 0x1F */
  166. u8 ppdsdr_i; /* 0x20 */
  167. u8 ppdsdr_j; /* 0x21 */
  168. u8 ppdsdr_k; /* 0x22 */
  169. u8 rsvd2; /* 0x23 */
  170. u8 pclrr_a; /* 0x24 */
  171. u8 pclrr_b; /* 0x25 */
  172. u8 pclrr_c; /* 0x26 */
  173. u8 pclrr_d; /* 0x27 */
  174. u8 pclrr_e; /* 0x28 */
  175. u8 pclrr_f; /* 0x29 */
  176. u8 pclrr_g; /* 0x2A */
  177. u8 pclrr_h; /* 0x2B */
  178. u8 pclrr_i; /* 0x2C */
  179. u8 pclrr_j; /* 0x2D */
  180. u8 pclrr_k; /* 0x2E */
  181. u8 rsvd3; /* 0x2F */
  182. u16 pcr_a; /* 0x30 */
  183. u16 pcr_b; /* 0x32 */
  184. u16 pcr_c; /* 0x34 */
  185. u16 pcr_d; /* 0x36 */
  186. u16 pcr_e; /* 0x38 */
  187. u16 pcr_f; /* 0x3A */
  188. u16 pcr_g; /* 0x3C */
  189. u16 pcr_h; /* 0x3E */
  190. u16 pcr_i; /* 0x40 */
  191. u16 pcr_j; /* 0x42 */
  192. u16 pcr_k; /* 0x44 */
  193. u16 rsvd4; /* 0x46 */
  194. u8 par_fbctl; /* 0x48 */
  195. u8 par_be; /* 0x49 */
  196. u8 par_cs; /* 0x4A */
  197. u8 par_cani2c; /* 0x4B */
  198. u8 par_irqh; /* 0x4C */
  199. u8 par_irql; /* 0x4D */
  200. u8 par_dspi0; /* 0x4E */
  201. u8 par_dspiow; /* 0x4F */
  202. u8 par_timer; /* 0x50 */
  203. u8 par_uart2; /* 0x51 */
  204. u8 par_uart1; /* 0x52 */
  205. u8 par_uart0; /* 0x53 */
  206. u8 par_sdhch; /* 0x54 */
  207. u8 par_sdhcl; /* 0x55 */
  208. u8 par_simp0h; /* 0x56 */
  209. u8 par_simp1h; /* 0x57 */
  210. u8 par_ssi0h; /* 0x58 */
  211. u8 par_ssi0l; /* 0x59 */
  212. u8 par_dbg1h; /* 0x5A */
  213. u8 par_dbg0h; /* 0x5B */
  214. u8 par_dbgl; /* 0x5C */
  215. u8 rsvd5; /* 0x5D */
  216. u8 par_fec; /* 0x5E */
  217. u8 rsvd6; /* 0x5F */
  218. u8 mscr_sdram; /* 0x60 */
  219. u8 rsvd7[3]; /* 0x61-0x63 */
  220. u8 srcr_fb1; /* 0x64 */
  221. u8 srcr_fb2; /* 0x65 */
  222. u8 srcr_fb3; /* 0x66 */
  223. u8 srcr_fb4; /* 0x67 */
  224. u8 srcr_dspiow; /* 0x68 */
  225. u8 srcr_cani2c; /* 0x69 */
  226. u8 srcr_irq; /* 0x6A */
  227. u8 srcr_timer; /* 0x6B */
  228. u8 srcr_uart; /* 0x6C */
  229. u8 srcr_fec; /* 0x6D */
  230. u8 srcr_sdhc; /* 0x6E */
  231. u8 srcr_simp0; /* 0x6F */
  232. u8 srcr_ssi0; /* 0x70 */
  233. u8 rsvd8[3]; /* 0x71-0x73 */
  234. u16 urts_pol; /* 0x74 */
  235. u16 ucts_pol; /* 0x76 */
  236. u16 utxd_wom; /* 0x78 */
  237. u32 urxd_wom; /* 0x7c */
  238. u32 hcr1; /* 0x80 */
  239. u32 hcr0; /* 0x84 */
  240. } gpio_t;
  241. /* SDRAM Controller (SDRAMC) */
  242. typedef struct sdramc {
  243. u32 cr00; /* 0x00 */
  244. u32 cr01; /* 0x04 */
  245. u32 cr02; /* 0x08 */
  246. u32 cr03; /* 0x0C */
  247. u32 cr04; /* 0x10 */
  248. u32 cr05; /* 0x14 */
  249. u32 cr06; /* 0x18 */
  250. u32 cr07; /* 0x1C */
  251. u32 cr08; /* 0x20 */
  252. u32 cr09; /* 0x24 */
  253. u32 cr10; /* 0x28 */
  254. u32 cr11; /* 0x2C */
  255. u32 cr12; /* 0x30 */
  256. u32 cr13; /* 0x34 */
  257. u32 cr14; /* 0x38 */
  258. u32 cr15; /* 0x3C */
  259. u32 cr16; /* 0x40 */
  260. u32 cr17; /* 0x44 */
  261. u32 cr18; /* 0x48 */
  262. u32 cr19; /* 0x4C */
  263. u32 cr20; /* 0x50 */
  264. u32 cr21; /* 0x54 */
  265. u32 cr22; /* 0x58 */
  266. u32 cr23; /* 0x5C */
  267. u32 cr24; /* 0x60 */
  268. u32 cr25; /* 0x64 */
  269. u32 cr26; /* 0x68 */
  270. u32 cr27; /* 0x6C */
  271. u32 cr28; /* 0x70 */
  272. u32 cr29; /* 0x74 */
  273. u32 cr30; /* 0x78 */
  274. u32 cr31; /* 0x7C */
  275. u32 cr32; /* 0x80 */
  276. u32 cr33; /* 0x84 */
  277. u32 cr34; /* 0x88 */
  278. u32 cr35; /* 0x8C */
  279. u32 cr36; /* 0x90 */
  280. u32 cr37; /* 0x94 */
  281. u32 cr38; /* 0x98 */
  282. u32 cr39; /* 0x9C */
  283. u32 cr40; /* 0xA0 */
  284. u32 cr41; /* 0xA4 */
  285. u32 cr42; /* 0xA8 */
  286. u32 cr43; /* 0xAC */
  287. u32 cr44; /* 0xB0 */
  288. u32 cr45; /* 0xB4 */
  289. u32 cr46; /* 0xB8 */
  290. u32 cr47; /* 0xBC */
  291. u32 cr48; /* 0xC0 */
  292. u32 cr49; /* 0xC4 */
  293. u32 cr50; /* 0xC8 */
  294. u32 cr51; /* 0xCC */
  295. u32 cr52; /* 0xD0 */
  296. u32 cr53; /* 0xD4 */
  297. u32 cr54; /* 0xD8 */
  298. u32 cr55; /* 0xDC */
  299. u32 cr56; /* 0xE0 */
  300. u32 cr57; /* 0xE4 */
  301. u32 cr58; /* 0xE8 */
  302. u32 cr59; /* 0xEC */
  303. u32 cr60; /* 0xF0 */
  304. u32 cr61; /* 0xF4 */
  305. u32 cr62; /* 0xF8 */
  306. u32 cr63; /* 0xFC */
  307. u32 rsvd3[32]; /* 0xF4-0x1A8 */
  308. u32 rcrcr; /* 0x180 */
  309. u32 swrcr; /* 0x184 */
  310. u32 rcr; /* 0x188 */
  311. u32 msovr; /* 0x18C */
  312. u32 rcrdbg; /* 0x190 */
  313. u32 sl0adj; /* 0x194 */
  314. u32 sl1adj; /* 0x198 */
  315. u32 sl2adj; /* 0x19C */
  316. u32 sl3adj; /* 0x1A0 */
  317. u32 sl4adj; /* 0x1A4 */
  318. u32 flight_tm; /* 0x1A8 */
  319. u32 padcr; /* 0x1AC */
  320. } sdramc_t;
  321. /* Phase Locked Loop (PLL) */
  322. typedef struct pll {
  323. u32 pcr; /* Control */
  324. u32 pdr; /* Divider */
  325. u32 psr; /* Status */
  326. } pll_t;
  327. typedef struct scm {
  328. u8 rsvd1[19]; /* 0x00 - 0x12 */
  329. u8 wcr; /* 0x13 */
  330. u16 rsvd2; /* 0x14 - 0x15 */
  331. u16 cwcr; /* 0x16 */
  332. u8 rsvd3[3]; /* 0x18 - 0x1A */
  333. u8 cwsr; /* 0x1B */
  334. u8 rsvd4[3]; /* 0x1C - 0x1E */
  335. u8 scmisr; /* 0x1F */
  336. u32 rsvd5; /* 0x20 - 0x23 */
  337. u32 bcr; /* 0x24 */
  338. u8 rsvd6[72]; /* 0x28 - 0x6F */
  339. u32 cfadr; /* 0x70 */
  340. u8 rsvd7; /* 0x74 */
  341. u8 cfier; /* 0x75 */
  342. u8 cfloc; /* 0x76 */
  343. u8 cfatr; /* 0x77 */
  344. u32 rsvd8; /* 0x78 - 0x7B */
  345. u32 cfdtr; /* 0x7C */
  346. } scm_t;
  347. typedef struct pm {
  348. u8 pmsr0; /* */
  349. u8 pmcr0;
  350. u8 pmsr1;
  351. u8 pmcr1;
  352. u32 pmhr0;
  353. u32 pmlr0;
  354. u32 pmhr1;
  355. u32 pmlr1;
  356. } pm_t;
  357. #endif /* __IMMAP_5441X__ */