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