immap_547x_8x.h 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297
  1. /*
  2. * MCF547x_8x Internal Memory Map
  3. *
  4. * Copyright (C) 2004-2007 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_547x_8x__
  26. #define __IMMAP_547x_8x__
  27. #define MMAP_SIU (CFG_MBAR + 0x00000000)
  28. #define MMAP_SDRAM (CFG_MBAR + 0x00000100)
  29. #define MMAP_XARB (CFG_MBAR + 0x00000240)
  30. #define MMAP_FBCS (CFG_MBAR + 0x00000500)
  31. #define MMAP_INTC0 (CFG_MBAR + 0x00000700)
  32. #define MMAP_GPTMR (CFG_MBAR + 0x00000800)
  33. #define MMAP_SLT0 (CFG_MBAR + 0x00000900)
  34. #define MMAP_SLT1 (CFG_MBAR + 0x00000910)
  35. #define MMAP_GPIO (CFG_MBAR + 0x00000A00)
  36. #define MMAP_PCI (CFG_MBAR + 0x00000B00)
  37. #define MMAP_PCIARB (CFG_MBAR + 0x00000C00)
  38. #define MMAP_EXTDMA (CFG_MBAR + 0x00000D00)
  39. #define MMAP_EPORT (CFG_MBAR + 0x00000F00)
  40. #define MMAP_CTM (CFG_MBAR + 0x00007F00)
  41. #define MMAP_MCDMA (CFG_MBAR + 0x00008000)
  42. #define MMAP_SCPCI (CFG_MBAR + 0x00008400)
  43. #define MMAP_UART0 (CFG_MBAR + 0x00008600)
  44. #define MMAP_UART1 (CFG_MBAR + 0x00008700)
  45. #define MMAP_UART2 (CFG_MBAR + 0x00008800)
  46. #define MMAP_UART3 (CFG_MBAR + 0x00008900)
  47. #define MMAP_DSPI (CFG_MBAR + 0x00008A00)
  48. #define MMAP_I2C (CFG_MBAR + 0x00008F00)
  49. #define MMAP_FEC0 (CFG_MBAR + 0x00009000)
  50. #define MMAP_FEC1 (CFG_MBAR + 0x00009800)
  51. #define MMAP_CAN0 (CFG_MBAR + 0x0000A000)
  52. #define MMAP_CAN1 (CFG_MBAR + 0x0000A800)
  53. #define MMAP_USBD (CFG_MBAR + 0x0000B000)
  54. #define MMAP_SRAM (CFG_MBAR + 0x00010000)
  55. #define MMAP_SRAMCFG (CFG_MBAR + 0x0001FF00)
  56. #define MMAP_SEC (CFG_MBAR + 0x00020000)
  57. #include <asm/coldfire/flexbus.h>
  58. typedef struct siu {
  59. u32 mbar; /* 0x00 */
  60. u32 drv; /* 0x04 */
  61. u32 rsvd1[2]; /* 0x08 - 0x1F */
  62. u32 sbcr; /* 0x10 */
  63. u32 rsvd2[3]; /* 0x14 - 0x1F */
  64. u32 cs0cfg; /* 0x20 */
  65. u32 cs1cfg; /* 0x24 */
  66. u32 cs2cfg; /* 0x28 */
  67. u32 cs3cfg; /* 0x2C */
  68. u32 rsvd3[2]; /* 0x30 - 0x37 */
  69. u32 secsacr; /* 0x38 */
  70. u32 rsvd4[2]; /* 0x3C - 0x43 */
  71. u32 rsr; /* 0x44 */
  72. u32 rsvd5[2]; /* 0x48 - 0x4F */
  73. u32 jtagid; /* 0x50 */
  74. } siu_t;
  75. typedef struct sdram {
  76. u32 mode; /* 0x00 */
  77. u32 ctrl; /* 0x04 */
  78. u32 cfg1; /* 0x08 */
  79. u32 cfg2; /* 0x0c */
  80. } sdram_t;
  81. typedef struct xlb_arb {
  82. u32 cfg; /* 0x240 */
  83. u32 ver; /* 0x244 */
  84. u32 sr; /* 0x248 */
  85. u32 imr; /* 0x24c */
  86. u32 adrcap; /* 0x250 */
  87. u32 sigcap; /* 0x254 */
  88. u32 adrto; /* 0x258 */
  89. u32 datto; /* 0x25c */
  90. u32 busto; /* 0x260 */
  91. u32 prien; /* 0x264 */
  92. u32 pri; /* 0x268 */
  93. } xlbarb_t;
  94. typedef struct int0_ctrl {
  95. u32 iprh0; /* 0x00 */
  96. u32 iprl0; /* 0x04 */
  97. u32 imrh0; /* 0x08 */
  98. u32 imrl0; /* 0x0C */
  99. u32 frch0; /* 0x10 */
  100. u32 frcl0; /* 0x14 */
  101. u8 irlr; /* 0x18 */
  102. u8 iacklpr; /* 0x19 */
  103. u16 res1; /* 0x1A - 0x1B */
  104. u32 res2[9]; /* 0x1C - 0x3F */
  105. u8 icr0[64]; /* 0x40 - 0x7F */
  106. u32 res3[24]; /* 0x80 - 0xDF */
  107. u8 swiack0; /* 0xE0 */
  108. u8 res4[3]; /* 0xE1 - 0xE3 */
  109. u8 Lniack0_1; /* 0xE4 */
  110. u8 res5[3]; /* 0xE5 - 0xE7 */
  111. u8 Lniack0_2; /* 0xE8 */
  112. u8 res6[3]; /* 0xE9 - 0xEB */
  113. u8 Lniack0_3; /* 0xEC */
  114. u8 res7[3]; /* 0xED - 0xEF */
  115. u8 Lniack0_4; /* 0xF0 */
  116. u8 res8[3]; /* 0xF1 - 0xF3 */
  117. u8 Lniack0_5; /* 0xF4 */
  118. u8 res9[3]; /* 0xF5 - 0xF7 */
  119. u8 Lniack0_6; /* 0xF8 */
  120. u8 resa[3]; /* 0xF9 - 0xFB */
  121. u8 Lniack0_7; /* 0xFC */
  122. u8 resb[3]; /* 0xFD - 0xFF */
  123. } int0_t;
  124. typedef struct gptmr {
  125. u8 ocpw;
  126. u8 octict;
  127. u8 ctrl;
  128. u8 mode;
  129. u16 pre; /* Prescale */
  130. u16 cnt;
  131. u16 pwmwidth;
  132. u8 pwmop; /* Output Polarity */
  133. u8 pwmld; /* Immediate Update */
  134. u16 cap; /* Capture internal counter */
  135. u8 ovfpin; /* Ovf and Pin */
  136. u8 intr; /* Interrupts */
  137. } gptmr_t;
  138. typedef struct slt {
  139. u32 tcnt; /* 0x00 */
  140. u32 cr; /* 0x04 */
  141. u32 cnt; /* 0x08 */
  142. u32 sr; /* 0x0C */
  143. } slt_t;
  144. typedef struct gpio {
  145. /* Port Output Data Registers */
  146. u8 podr_fbctl; /*0x00 */
  147. u8 podr_fbcs; /*0x01 */
  148. u8 podr_dma; /*0x02 */
  149. u8 rsvd1; /*0x03 */
  150. u8 podr_fec0h; /*0x04 */
  151. u8 podr_fec0l; /*0x05 */
  152. u8 podr_fec1h; /*0x06 */
  153. u8 podr_fec1l; /*0x07 */
  154. u8 podr_feci2c; /*0x08 */
  155. u8 podr_pcibg; /*0x09 */
  156. u8 podr_pcibr; /*0x0A */
  157. u8 rsvd2; /*0x0B */
  158. u8 podr_psc3psc2; /*0x0C */
  159. u8 podr_psc1psc0; /*0x0D */
  160. u8 podr_dspi; /*0x0E */
  161. u8 rsvd3; /*0x0F */
  162. /* Port Data Direction Registers */
  163. u8 pddr_fbctl; /*0x10 */
  164. u8 pddr_fbcs; /*0x11 */
  165. u8 pddr_dma; /*0x12 */
  166. u8 rsvd4; /*0x13 */
  167. u8 pddr_fec0h; /*0x14 */
  168. u8 pddr_fec0l; /*0x15 */
  169. u8 pddr_fec1h; /*0x16 */
  170. u8 pddr_fec1l; /*0x17 */
  171. u8 pddr_feci2c; /*0x18 */
  172. u8 pddr_pcibg; /*0x19 */
  173. u8 pddr_pcibr; /*0x1A */
  174. u8 rsvd5; /*0x1B */
  175. u8 pddr_psc3psc2; /*0x1C */
  176. u8 pddr_psc1psc0; /*0x1D */
  177. u8 pddr_dspi; /*0x1E */
  178. u8 rsvd6; /*0x1F */
  179. /* Port Pin Data/Set Data Registers */
  180. u8 ppdsdr_fbctl; /*0x20 */
  181. u8 ppdsdr_fbcs; /*0x21 */
  182. u8 ppdsdr_dma; /*0x22 */
  183. u8 rsvd7; /*0x23 */
  184. u8 ppdsdr_fec0h; /*0x24 */
  185. u8 ppdsdr_fec0l; /*0x25 */
  186. u8 ppdsdr_fec1h; /*0x26 */
  187. u8 ppdsdr_fec1l; /*0x27 */
  188. u8 ppdsdr_feci2c; /*0x28 */
  189. u8 ppdsdr_pcibg; /*0x29 */
  190. u8 ppdsdr_pcibr; /*0x2A */
  191. u8 rsvd8; /*0x2B */
  192. u8 ppdsdr_psc3psc2; /*0x2C */
  193. u8 ppdsdr_psc1psc0; /*0x2D */
  194. u8 ppdsdr_dspi; /*0x2E */
  195. u8 rsvd9; /*0x2F */
  196. /* Port Clear Output Data Registers */
  197. u8 pclrr_fbctl; /*0x30 */
  198. u8 pclrr_fbcs; /*0x31 */
  199. u8 pclrr_dma; /*0x32 */
  200. u8 rsvd10; /*0x33 */
  201. u8 pclrr_fec0h; /*0x34 */
  202. u8 pclrr_fec0l; /*0x35 */
  203. u8 pclrr_fec1h; /*0x36 */
  204. u8 pclrr_fec1l; /*0x37 */
  205. u8 pclrr_feci2c; /*0x38 */
  206. u8 pclrr_pcibg; /*0x39 */
  207. u8 pclrr_pcibr; /*0x3A */
  208. u8 rsvd11; /*0x3B */
  209. u8 pclrr_psc3psc2; /*0x3C */
  210. u8 pclrr_psc1psc0; /*0x3D */
  211. u8 pclrr_dspi; /*0x3E */
  212. u8 rsvd12; /*0x3F */
  213. /* Pin Assignment Registers */
  214. u16 par_fbctl; /*0x40 */
  215. u8 par_fbcs; /*0x42 */
  216. u8 par_dma; /*0x43 */
  217. u16 par_feci2cirq; /*0x44 */
  218. u16 rsvd13; /*0x46 */
  219. u16 par_pcibg; /*0x48 */
  220. u16 par_pcibr; /*0x4A */
  221. u8 par_psc3; /*0x4C */
  222. u8 par_psc2; /*0x4D */
  223. u8 par_psc1; /*0x4E */
  224. u8 par_psc0; /*0x4F */
  225. u16 par_dspi; /*0x50 */
  226. u8 par_timer; /*0x52 */
  227. u8 rsvd14; /*0x53 */
  228. } gpio_t;
  229. typedef struct pci {
  230. u32 idr; /* 0x00 Device Id / Vendor Id */
  231. u32 scr; /* 0x04 Status / command */
  232. u32 ccrir; /* 0x08 Class Code / Revision Id */
  233. u32 cr1; /* 0x0c Configuration 1 */
  234. u32 bar0; /* 0x10 Base address register 0 */
  235. u32 bar1; /* 0x14 Base address register 1 */
  236. u32 bar2; /* 0x18 NA */
  237. u32 bar3; /* 0x1c NA */
  238. u32 bar4; /* 0x20 NA */
  239. u32 bar5; /* 0x24 NA */
  240. u32 ccpr; /* 0x28 Cardbus CIS Pointer */
  241. u32 sid; /* 0x2c Subsystem ID / Subsystem Vendor ID */
  242. u32 erbar; /* 0x30 Expansion ROM Base Address */
  243. u32 cpr; /* 0x34 Capabilities Pointer */
  244. u32 rsvd1; /* 0x38 */
  245. u32 cr2; /* 0x3c Configuration 2 */
  246. u32 rsvd2[8]; /* 0x40 - 0x5f */
  247. /* General control / status registers */
  248. u32 gscr; /* 0x60 Global Status / Control */
  249. u32 tbatr0a; /* 0x64 Target Base Adr Translation 0 */
  250. u32 tbatr1a; /* 0x68 Target Base Adr Translation 1 */
  251. u32 tcr1; /* 0x6c Target Control 1 Register */
  252. u32 iw0btar; /* 0x70 Initiator Win 0 Base/Translation adr */
  253. u32 iw1btar; /* 0x74 Initiator Win 1 Base/Translation adr */
  254. u32 iw2btar; /* 0x78 NA */
  255. u32 rsvd3; /* 0x7c */
  256. u32 iwcr; /* 0x80 Initiator Window Configuration */
  257. u32 icr; /* 0x84 Initiator Control */
  258. u32 isr; /* 0x88 Initiator Status */
  259. u32 tcr2; /* 0x8c NA */
  260. u32 tbatr0; /* 0x90 NA */
  261. u32 tbatr1; /* 0x94 NA */
  262. u32 tbatr2; /* 0x98 NA */
  263. u32 tbatr3; /* 0x9c NA */
  264. u32 tbatr4; /* 0xa0 NA */
  265. u32 tbatr5; /* 0xa4 NA */
  266. u32 intr; /* 0xa8 NA */
  267. u32 rsvd4[19]; /* 0xac - 0xf7 */
  268. u32 car; /* 0xf8 Configuration Address */
  269. } pci_t;
  270. typedef struct pci_arbiter {
  271. /* Pci Arbiter Registers */
  272. union {
  273. u32 acr; /* Arbiter Control */
  274. u32 asr; /* Arbiter Status */
  275. };
  276. } pciarb_t;
  277. #endif /* __IMMAP_547x_8x__ */