immap_83xx.h 32 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060
  1. /*
  2. * Copyright 2004-2011 Freescale Semiconductor, Inc.
  3. *
  4. * MPC83xx Internal Memory Map
  5. *
  6. * Contributors:
  7. * Dave Liu <daveliu@freescale.com>
  8. * Tanya Jiang <tanya.jiang@freescale.com>
  9. * Mandy Lavi <mandy.lavi@freescale.com>
  10. * Eran Liberty <liberty@freescale.com>
  11. *
  12. * This program is free software; you can redistribute it and/or
  13. * modify it under the terms of the GNU General Public License as
  14. * published by the Free Software Foundation; either version 2 of
  15. * the License, or (at your option) any later version.
  16. *
  17. * This program is distributed in the hope that it will be useful,
  18. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  19. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20. * GNU General Public License for more details.
  21. *
  22. * You should have received a copy of the GNU General Public License
  23. * along with this program; if not, write to the Free Software
  24. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  25. * MA 02111-1307 USA
  26. *
  27. */
  28. #ifndef __IMMAP_83xx__
  29. #define __IMMAP_83xx__
  30. #include <asm/types.h>
  31. #include <asm/fsl_i2c.h>
  32. #include <asm/mpc8xxx_spi.h>
  33. #include <asm/fsl_lbc.h>
  34. #include <asm/fsl_dma.h>
  35. /*
  36. * Local Access Window
  37. */
  38. typedef struct law83xx {
  39. u32 bar; /* LBIU local access window base address register */
  40. u32 ar; /* LBIU local access window attribute register */
  41. } law83xx_t;
  42. /*
  43. * System configuration registers
  44. */
  45. typedef struct sysconf83xx {
  46. u32 immrbar; /* Internal memory map base address register */
  47. u8 res0[0x04];
  48. u32 altcbar; /* Alternate configuration base address register */
  49. u8 res1[0x14];
  50. law83xx_t lblaw[4]; /* LBIU local access window */
  51. u8 res2[0x20];
  52. law83xx_t pcilaw[2]; /* PCI local access window */
  53. u8 res3[0x10];
  54. law83xx_t pcielaw[2]; /* PCI Express local access window */
  55. u8 res4[0x10];
  56. law83xx_t ddrlaw[2]; /* DDR local access window */
  57. u8 res5[0x50];
  58. u32 sgprl; /* System General Purpose Register Low */
  59. u32 sgprh; /* System General Purpose Register High */
  60. u32 spridr; /* System Part and Revision ID Register */
  61. u8 res6[0x04];
  62. u32 spcr; /* System Priority Configuration Register */
  63. u32 sicrl; /* System I/O Configuration Register Low */
  64. u32 sicrh; /* System I/O Configuration Register High */
  65. u8 res7[0x04];
  66. u32 sidcr0; /* System I/O Delay Configuration Register 0 */
  67. u32 sidcr1; /* System I/O Delay Configuration Register 1 */
  68. u32 ddrcdr; /* DDR Control Driver Register */
  69. u32 ddrdsr; /* DDR Debug Status Register */
  70. u32 obir; /* Output Buffer Impedance Register */
  71. u8 res8[0xC];
  72. u32 pecr1; /* PCI Express control register 1 */
  73. #if defined(CONFIG_MPC830x)
  74. u32 sdhccr; /* eSDHC Control Registers for MPC830x */
  75. #else
  76. u32 pecr2; /* PCI Express control register 2 */
  77. #endif
  78. #if defined(CONFIG_MPC8309)
  79. u32 can_dbg_ctrl;
  80. u32 res9a;
  81. u32 gpr1;
  82. u8 res9b[0xAC];
  83. #else
  84. u8 res9[0xB8];
  85. #endif
  86. } sysconf83xx_t;
  87. /*
  88. * Watch Dog Timer (WDT) Registers
  89. */
  90. typedef struct wdt83xx {
  91. u8 res0[4];
  92. u32 swcrr; /* System watchdog control register */
  93. u32 swcnr; /* System watchdog count register */
  94. u8 res1[2];
  95. u16 swsrr; /* System watchdog service register */
  96. u8 res2[0xF0];
  97. } wdt83xx_t;
  98. /*
  99. * RTC/PIT Module Registers
  100. */
  101. typedef struct rtclk83xx {
  102. u32 cnr; /* control register */
  103. u32 ldr; /* load register */
  104. u32 psr; /* prescale register */
  105. u32 ctr; /* counter value field register */
  106. u32 evr; /* event register */
  107. u32 alr; /* alarm register */
  108. u8 res0[0xE8];
  109. } rtclk83xx_t;
  110. /*
  111. * Global timer module
  112. */
  113. typedef struct gtm83xx {
  114. u8 cfr1; /* Timer1/2 Configuration */
  115. u8 res0[3];
  116. u8 cfr2; /* Timer3/4 Configuration */
  117. u8 res1[11];
  118. u16 mdr1; /* Timer1 Mode Register */
  119. u16 mdr2; /* Timer2 Mode Register */
  120. u16 rfr1; /* Timer1 Reference Register */
  121. u16 rfr2; /* Timer2 Reference Register */
  122. u16 cpr1; /* Timer1 Capture Register */
  123. u16 cpr2; /* Timer2 Capture Register */
  124. u16 cnr1; /* Timer1 Counter Register */
  125. u16 cnr2; /* Timer2 Counter Register */
  126. u16 mdr3; /* Timer3 Mode Register */
  127. u16 mdr4; /* Timer4 Mode Register */
  128. u16 rfr3; /* Timer3 Reference Register */
  129. u16 rfr4; /* Timer4 Reference Register */
  130. u16 cpr3; /* Timer3 Capture Register */
  131. u16 cpr4; /* Timer4 Capture Register */
  132. u16 cnr3; /* Timer3 Counter Register */
  133. u16 cnr4; /* Timer4 Counter Register */
  134. u16 evr1; /* Timer1 Event Register */
  135. u16 evr2; /* Timer2 Event Register */
  136. u16 evr3; /* Timer3 Event Register */
  137. u16 evr4; /* Timer4 Event Register */
  138. u16 psr1; /* Timer1 Prescaler Register */
  139. u16 psr2; /* Timer2 Prescaler Register */
  140. u16 psr3; /* Timer3 Prescaler Register */
  141. u16 psr4; /* Timer4 Prescaler Register */
  142. u8 res[0xC0];
  143. } gtm83xx_t;
  144. /*
  145. * Integrated Programmable Interrupt Controller
  146. */
  147. typedef struct ipic83xx {
  148. u32 sicfr; /* System Global Interrupt Configuration Register */
  149. u32 sivcr; /* System Global Interrupt Vector Register */
  150. u32 sipnr_h; /* System Internal Interrupt Pending Register - High */
  151. u32 sipnr_l; /* System Internal Interrupt Pending Register - Low */
  152. u32 siprr_a; /* System Internal Interrupt Group A Priority Register */
  153. u32 siprr_b; /* System Internal Interrupt Group B Priority Register */
  154. u32 siprr_c; /* System Internal Interrupt Group C Priority Register */
  155. u32 siprr_d; /* System Internal Interrupt Group D Priority Register */
  156. u32 simsr_h; /* System Internal Interrupt Mask Register - High */
  157. u32 simsr_l; /* System Internal Interrupt Mask Register - Low */
  158. u32 sicnr; /* System Internal Interrupt Control Register */
  159. u32 sepnr; /* System External Interrupt Pending Register */
  160. u32 smprr_a; /* System Mixed Interrupt Group A Priority Register */
  161. u32 smprr_b; /* System Mixed Interrupt Group B Priority Register */
  162. u32 semsr; /* System External Interrupt Mask Register */
  163. u32 secnr; /* System External Interrupt Control Register */
  164. u32 sersr; /* System Error Status Register */
  165. u32 sermr; /* System Error Mask Register */
  166. u32 sercr; /* System Error Control Register */
  167. u32 sepcr; /* System External Interrupt Polarity Control Register */
  168. u32 sifcr_h; /* System Internal Interrupt Force Register - High */
  169. u32 sifcr_l; /* System Internal Interrupt Force Register - Low */
  170. u32 sefcr; /* System External Interrupt Force Register */
  171. u32 serfr; /* System Error Force Register */
  172. u32 scvcr; /* System Critical Interrupt Vector Register */
  173. u32 smvcr; /* System Management Interrupt Vector Register */
  174. u8 res[0x98];
  175. } ipic83xx_t;
  176. /*
  177. * System Arbiter Registers
  178. */
  179. typedef struct arbiter83xx {
  180. u32 acr; /* Arbiter Configuration Register */
  181. u32 atr; /* Arbiter Timers Register */
  182. u8 res[4];
  183. u32 aer; /* Arbiter Event Register */
  184. u32 aidr; /* Arbiter Interrupt Definition Register */
  185. u32 amr; /* Arbiter Mask Register */
  186. u32 aeatr; /* Arbiter Event Attributes Register */
  187. u32 aeadr; /* Arbiter Event Address Register */
  188. u32 aerr; /* Arbiter Event Response Register */
  189. u8 res1[0xDC];
  190. } arbiter83xx_t;
  191. /*
  192. * Reset Module
  193. */
  194. typedef struct reset83xx {
  195. u32 rcwl; /* Reset Configuration Word Low Register */
  196. u32 rcwh; /* Reset Configuration Word High Register */
  197. u8 res0[8];
  198. u32 rsr; /* Reset Status Register */
  199. u32 rmr; /* Reset Mode Register */
  200. u32 rpr; /* Reset protection Register */
  201. u32 rcr; /* Reset Control Register */
  202. u32 rcer; /* Reset Control Enable Register */
  203. u8 res1[0xDC];
  204. } reset83xx_t;
  205. /*
  206. * Clock Module
  207. */
  208. typedef struct clk83xx {
  209. u32 spmr; /* system PLL mode Register */
  210. u32 occr; /* output clock control Register */
  211. u32 sccr; /* system clock control Register */
  212. u8 res0[0xF4];
  213. } clk83xx_t;
  214. /*
  215. * Power Management Control Module
  216. */
  217. typedef struct pmc83xx {
  218. u32 pmccr; /* PMC Configuration Register */
  219. u32 pmcer; /* PMC Event Register */
  220. u32 pmcmr; /* PMC Mask Register */
  221. u32 pmccr1; /* PMC Configuration Register 1 */
  222. u32 pmccr2; /* PMC Configuration Register 2 */
  223. u8 res0[0xEC];
  224. } pmc83xx_t;
  225. /*
  226. * General purpose I/O module
  227. */
  228. typedef struct gpio83xx {
  229. u32 dir; /* direction register */
  230. u32 odr; /* open drain register */
  231. u32 dat; /* data register */
  232. u32 ier; /* interrupt event register */
  233. u32 imr; /* interrupt mask register */
  234. u32 icr; /* external interrupt control register */
  235. u8 res0[0xE8];
  236. } gpio83xx_t;
  237. /*
  238. * QE Ports Interrupts Registers
  239. */
  240. typedef struct qepi83xx {
  241. u8 res0[0xC];
  242. u32 qepier; /* QE Ports Interrupt Event Register */
  243. u32 qepimr; /* QE Ports Interrupt Mask Register */
  244. u32 qepicr; /* QE Ports Interrupt Control Register */
  245. u8 res1[0xE8];
  246. } qepi83xx_t;
  247. /*
  248. * QE Parallel I/O Ports
  249. */
  250. typedef struct gpio_n {
  251. u32 podr; /* Open Drain Register */
  252. u32 pdat; /* Data Register */
  253. u32 dir1; /* direction register 1 */
  254. u32 dir2; /* direction register 2 */
  255. u32 ppar1; /* Pin Assignment Register 1 */
  256. u32 ppar2; /* Pin Assignment Register 2 */
  257. } gpio_n_t;
  258. typedef struct qegpio83xx {
  259. gpio_n_t ioport[0x7];
  260. u8 res0[0x358];
  261. } qepio83xx_t;
  262. /*
  263. * QE Secondary Bus Access Windows
  264. */
  265. typedef struct qesba83xx {
  266. u32 lbmcsar; /* Local bus memory controller start address */
  267. u32 sdmcsar; /* Secondary DDR memory controller start address */
  268. u8 res0[0x38];
  269. u32 lbmcear; /* Local bus memory controller end address */
  270. u32 sdmcear; /* Secondary DDR memory controller end address */
  271. u8 res1[0x38];
  272. u32 lbmcar; /* Local bus memory controller attributes */
  273. u32 sdmcar; /* Secondary DDR memory controller attributes */
  274. u8 res2[0x378];
  275. } qesba83xx_t;
  276. /*
  277. * DDR Memory Controller Memory Map
  278. */
  279. #if defined(CONFIG_FSL_DDR2) || defined(CONFIG_FSL_DDR3)
  280. typedef struct ccsr_ddr {
  281. u32 cs0_bnds; /* Chip Select 0 Memory Bounds */
  282. u8 res1[4];
  283. u32 cs1_bnds; /* Chip Select 1 Memory Bounds */
  284. u8 res2[4];
  285. u32 cs2_bnds; /* Chip Select 2 Memory Bounds */
  286. u8 res3[4];
  287. u32 cs3_bnds; /* Chip Select 3 Memory Bounds */
  288. u8 res4[100];
  289. u32 cs0_config; /* Chip Select Configuration */
  290. u32 cs1_config; /* Chip Select Configuration */
  291. u32 cs2_config; /* Chip Select Configuration */
  292. u32 cs3_config; /* Chip Select Configuration */
  293. u8 res4a[48];
  294. u32 cs0_config_2; /* Chip Select Configuration 2 */
  295. u32 cs1_config_2; /* Chip Select Configuration 2 */
  296. u32 cs2_config_2; /* Chip Select Configuration 2 */
  297. u32 cs3_config_2; /* Chip Select Configuration 2 */
  298. u8 res5[48];
  299. u32 timing_cfg_3; /* SDRAM Timing Configuration 3 */
  300. u32 timing_cfg_0; /* SDRAM Timing Configuration 0 */
  301. u32 timing_cfg_1; /* SDRAM Timing Configuration 1 */
  302. u32 timing_cfg_2; /* SDRAM Timing Configuration 2 */
  303. u32 sdram_cfg; /* SDRAM Control Configuration */
  304. u32 sdram_cfg_2; /* SDRAM Control Configuration 2 */
  305. u32 sdram_mode; /* SDRAM Mode Configuration */
  306. u32 sdram_mode_2; /* SDRAM Mode Configuration 2 */
  307. u32 sdram_md_cntl; /* SDRAM Mode Control */
  308. u32 sdram_interval; /* SDRAM Interval Configuration */
  309. u32 sdram_data_init; /* SDRAM Data initialization */
  310. u8 res6[4];
  311. u32 sdram_clk_cntl; /* SDRAM Clock Control */
  312. u8 res7[20];
  313. u32 init_addr; /* training init addr */
  314. u32 init_ext_addr; /* training init extended addr */
  315. u8 res8_1[16];
  316. u32 timing_cfg_4; /* SDRAM Timing Configuration 4 */
  317. u32 timing_cfg_5; /* SDRAM Timing Configuration 5 */
  318. u8 reg8_1a[8];
  319. u32 ddr_zq_cntl; /* ZQ calibration control*/
  320. u32 ddr_wrlvl_cntl; /* write leveling control*/
  321. u8 reg8_1aa[4];
  322. u32 ddr_sr_cntr; /* self refresh counter */
  323. u32 ddr_sdram_rcw_1; /* Control Words 1 */
  324. u32 ddr_sdram_rcw_2; /* Control Words 2 */
  325. u8 reg_1ab[8];
  326. u32 ddr_wrlvl_cntl_2; /* write leveling control 2 */
  327. u32 ddr_wrlvl_cntl_3; /* write leveling control 3 */
  328. u8 res8_1b[104];
  329. u32 sdram_mode_3; /* SDRAM Mode Configuration 3 */
  330. u32 sdram_mode_4; /* SDRAM Mode Configuration 4 */
  331. u32 sdram_mode_5; /* SDRAM Mode Configuration 5 */
  332. u32 sdram_mode_6; /* SDRAM Mode Configuration 6 */
  333. u32 sdram_mode_7; /* SDRAM Mode Configuration 7 */
  334. u32 sdram_mode_8; /* SDRAM Mode Configuration 8 */
  335. u8 res8_1ba[0x908];
  336. u32 ddr_dsr1; /* Debug Status 1 */
  337. u32 ddr_dsr2; /* Debug Status 2 */
  338. u32 ddr_cdr1; /* Control Driver 1 */
  339. u32 ddr_cdr2; /* Control Driver 2 */
  340. u8 res8_1c[200];
  341. u32 ip_rev1; /* IP Block Revision 1 */
  342. u32 ip_rev2; /* IP Block Revision 2 */
  343. u32 eor; /* Enhanced Optimization Register */
  344. u8 res8_2[252];
  345. u32 mtcr; /* Memory Test Control Register */
  346. u8 res8_3[28];
  347. u32 mtp1; /* Memory Test Pattern 1 */
  348. u32 mtp2; /* Memory Test Pattern 2 */
  349. u32 mtp3; /* Memory Test Pattern 3 */
  350. u32 mtp4; /* Memory Test Pattern 4 */
  351. u32 mtp5; /* Memory Test Pattern 5 */
  352. u32 mtp6; /* Memory Test Pattern 6 */
  353. u32 mtp7; /* Memory Test Pattern 7 */
  354. u32 mtp8; /* Memory Test Pattern 8 */
  355. u32 mtp9; /* Memory Test Pattern 9 */
  356. u32 mtp10; /* Memory Test Pattern 10 */
  357. u8 res8_4[184];
  358. u32 data_err_inject_hi; /* Data Path Err Injection Mask High */
  359. u32 data_err_inject_lo; /* Data Path Err Injection Mask Low */
  360. u32 ecc_err_inject; /* Data Path Err Injection Mask ECC */
  361. u8 res9[20];
  362. u32 capture_data_hi; /* Data Path Read Capture High */
  363. u32 capture_data_lo; /* Data Path Read Capture Low */
  364. u32 capture_ecc; /* Data Path Read Capture ECC */
  365. u8 res10[20];
  366. u32 err_detect; /* Error Detect */
  367. u32 err_disable; /* Error Disable */
  368. u32 err_int_en;
  369. u32 capture_attributes; /* Error Attrs Capture */
  370. u32 capture_address; /* Error Addr Capture */
  371. u32 capture_ext_address; /* Error Extended Addr Capture */
  372. u32 err_sbe; /* Single-Bit ECC Error Management */
  373. u8 res11[164];
  374. u32 debug[32]; /* debug_1 to debug_32 */
  375. u8 res12[128];
  376. } ccsr_ddr_t;
  377. #else
  378. typedef struct ddr_cs_bnds {
  379. u32 csbnds;
  380. u8 res0[4];
  381. } ddr_cs_bnds_t;
  382. typedef struct ddr83xx {
  383. ddr_cs_bnds_t csbnds[4];/* Chip Select x Memory Bounds */
  384. u8 res0[0x60];
  385. u32 cs_config[4]; /* Chip Select x Configuration */
  386. u8 res1[0x70];
  387. u32 timing_cfg_3; /* SDRAM Timing Configuration 3 */
  388. u32 timing_cfg_0; /* SDRAM Timing Configuration 0 */
  389. u32 timing_cfg_1; /* SDRAM Timing Configuration 1 */
  390. u32 timing_cfg_2; /* SDRAM Timing Configuration 2 */
  391. u32 sdram_cfg; /* SDRAM Control Configuration */
  392. u32 sdram_cfg2; /* SDRAM Control Configuration 2 */
  393. u32 sdram_mode; /* SDRAM Mode Configuration */
  394. u32 sdram_mode2; /* SDRAM Mode Configuration 2 */
  395. u32 sdram_md_cntl; /* SDRAM Mode Control */
  396. u32 sdram_interval; /* SDRAM Interval Configuration */
  397. u32 ddr_data_init; /* SDRAM Data Initialization */
  398. u8 res2[4];
  399. u32 sdram_clk_cntl; /* SDRAM Clock Control */
  400. u8 res3[0x14];
  401. u32 ddr_init_addr; /* DDR training initialization address */
  402. u32 ddr_init_ext_addr; /* DDR training initialization extended address */
  403. u8 res4[0xAA8];
  404. u32 ddr_ip_rev1; /* DDR IP block revision 1 */
  405. u32 ddr_ip_rev2; /* DDR IP block revision 2 */
  406. u8 res5[0x200];
  407. u32 data_err_inject_hi; /* Memory Data Path Error Injection Mask High */
  408. u32 data_err_inject_lo; /* Memory Data Path Error Injection Mask Low */
  409. u32 ecc_err_inject; /* Memory Data Path Error Injection Mask ECC */
  410. u8 res6[0x14];
  411. u32 capture_data_hi; /* Memory Data Path Read Capture High */
  412. u32 capture_data_lo; /* Memory Data Path Read Capture Low */
  413. u32 capture_ecc; /* Memory Data Path Read Capture ECC */
  414. u8 res7[0x14];
  415. u32 err_detect; /* Memory Error Detect */
  416. u32 err_disable; /* Memory Error Disable */
  417. u32 err_int_en; /* Memory Error Interrupt Enable */
  418. u32 capture_attributes; /* Memory Error Attributes Capture */
  419. u32 capture_address; /* Memory Error Address Capture */
  420. u32 capture_ext_address;/* Memory Error Extended Address Capture */
  421. u32 err_sbe; /* Memory Single-Bit ECC Error Management */
  422. u8 res8[0xA4];
  423. u32 debug_reg;
  424. u8 res9[0xFC];
  425. } ddr83xx_t;
  426. #endif
  427. /*
  428. * DUART
  429. */
  430. typedef struct duart83xx {
  431. u8 urbr_ulcr_udlb; /* combined register for URBR, UTHR and UDLB */
  432. u8 uier_udmb; /* combined register for UIER and UDMB */
  433. u8 uiir_ufcr_uafr; /* combined register for UIIR, UFCR and UAFR */
  434. u8 ulcr; /* line control register */
  435. u8 umcr; /* MODEM control register */
  436. u8 ulsr; /* line status register */
  437. u8 umsr; /* MODEM status register */
  438. u8 uscr; /* scratch register */
  439. u8 res0[8];
  440. u8 udsr; /* DMA status register */
  441. u8 res1[3];
  442. u8 res2[0xEC];
  443. } duart83xx_t;
  444. /*
  445. * DMA/Messaging Unit
  446. */
  447. typedef struct dma83xx {
  448. u32 res0[0xC]; /* 0x0-0x29 reseverd */
  449. u32 omisr; /* 0x30 Outbound message interrupt status register */
  450. u32 omimr; /* 0x34 Outbound message interrupt mask register */
  451. u32 res1[0x6]; /* 0x38-0x49 reserved */
  452. u32 imr0; /* 0x50 Inbound message register 0 */
  453. u32 imr1; /* 0x54 Inbound message register 1 */
  454. u32 omr0; /* 0x58 Outbound message register 0 */
  455. u32 omr1; /* 0x5C Outbound message register 1 */
  456. u32 odr; /* 0x60 Outbound doorbell register */
  457. u32 res2; /* 0x64-0x67 reserved */
  458. u32 idr; /* 0x68 Inbound doorbell register */
  459. u32 res3[0x5]; /* 0x6C-0x79 reserved */
  460. u32 imisr; /* 0x80 Inbound message interrupt status register */
  461. u32 imimr; /* 0x84 Inbound message interrupt mask register */
  462. u32 res4[0x1E]; /* 0x88-0x99 reserved */
  463. struct fsl_dma dma[4];
  464. } dma83xx_t;
  465. /*
  466. * PCI Software Configuration Registers
  467. */
  468. typedef struct pciconf83xx {
  469. u32 config_address;
  470. u32 config_data;
  471. u32 int_ack;
  472. u8 res[116];
  473. } pciconf83xx_t;
  474. /*
  475. * PCI Outbound Translation Register
  476. */
  477. typedef struct pci_outbound_window {
  478. u32 potar;
  479. u8 res0[4];
  480. u32 pobar;
  481. u8 res1[4];
  482. u32 pocmr;
  483. u8 res2[4];
  484. } pot83xx_t;
  485. /*
  486. * Sequencer
  487. */
  488. typedef struct ios83xx {
  489. pot83xx_t pot[6];
  490. u8 res0[0x60];
  491. u32 pmcr;
  492. u8 res1[4];
  493. u32 dtcr;
  494. u8 res2[4];
  495. } ios83xx_t;
  496. /*
  497. * PCI Controller Control and Status Registers
  498. */
  499. typedef struct pcictrl83xx {
  500. u32 esr;
  501. u32 ecdr;
  502. u32 eer;
  503. u32 eatcr;
  504. u32 eacr;
  505. u32 eeacr;
  506. u32 edlcr;
  507. u32 edhcr;
  508. u32 gcr;
  509. u32 ecr;
  510. u32 gsr;
  511. u8 res0[12];
  512. u32 pitar2;
  513. u8 res1[4];
  514. u32 pibar2;
  515. u32 piebar2;
  516. u32 piwar2;
  517. u8 res2[4];
  518. u32 pitar1;
  519. u8 res3[4];
  520. u32 pibar1;
  521. u32 piebar1;
  522. u32 piwar1;
  523. u8 res4[4];
  524. u32 pitar0;
  525. u8 res5[4];
  526. u32 pibar0;
  527. u8 res6[4];
  528. u32 piwar0;
  529. u8 res7[132];
  530. } pcictrl83xx_t;
  531. /*
  532. * USB
  533. */
  534. typedef struct usb83xx {
  535. u8 fixme[0x1000];
  536. } usb83xx_t;
  537. /*
  538. * TSEC
  539. */
  540. typedef struct tsec83xx {
  541. u8 fixme[0x1000];
  542. } tsec83xx_t;
  543. /*
  544. * Security
  545. */
  546. typedef struct security83xx {
  547. u8 fixme[0x10000];
  548. } security83xx_t;
  549. /*
  550. * PCI Express
  551. */
  552. struct pex_inbound_window {
  553. u32 ar;
  554. u32 tar;
  555. u32 barl;
  556. u32 barh;
  557. };
  558. struct pex_outbound_window {
  559. u32 ar;
  560. u32 bar;
  561. u32 tarl;
  562. u32 tarh;
  563. };
  564. struct pex_csb_bridge {
  565. u32 pex_csb_ver;
  566. u32 pex_csb_cab;
  567. u32 pex_csb_ctrl;
  568. u8 res0[8];
  569. u32 pex_dms_dstmr;
  570. u8 res1[4];
  571. u32 pex_cbs_stat;
  572. u8 res2[0x20];
  573. u32 pex_csb_obctrl;
  574. u32 pex_csb_obstat;
  575. u8 res3[0x98];
  576. u32 pex_csb_ibctrl;
  577. u32 pex_csb_ibstat;
  578. u8 res4[0xb8];
  579. u32 pex_wdma_ctrl;
  580. u32 pex_wdma_addr;
  581. u32 pex_wdma_stat;
  582. u8 res5[0x94];
  583. u32 pex_rdma_ctrl;
  584. u32 pex_rdma_addr;
  585. u32 pex_rdma_stat;
  586. u8 res6[0xd4];
  587. u32 pex_ombcr;
  588. u32 pex_ombdr;
  589. u8 res7[0x38];
  590. u32 pex_imbcr;
  591. u32 pex_imbdr;
  592. u8 res8[0x38];
  593. u32 pex_int_enb;
  594. u32 pex_int_stat;
  595. u32 pex_int_apio_vec1;
  596. u32 pex_int_apio_vec2;
  597. u8 res9[0x10];
  598. u32 pex_int_ppio_vec1;
  599. u32 pex_int_ppio_vec2;
  600. u32 pex_int_wdma_vec1;
  601. u32 pex_int_wdma_vec2;
  602. u32 pex_int_rdma_vec1;
  603. u32 pex_int_rdma_vec2;
  604. u32 pex_int_misc_vec;
  605. u8 res10[4];
  606. u32 pex_int_axi_pio_enb;
  607. u32 pex_int_axi_wdma_enb;
  608. u32 pex_int_axi_rdma_enb;
  609. u32 pex_int_axi_misc_enb;
  610. u32 pex_int_axi_pio_stat;
  611. u32 pex_int_axi_wdma_stat;
  612. u32 pex_int_axi_rdma_stat;
  613. u32 pex_int_axi_misc_stat;
  614. u8 res11[0xa0];
  615. struct pex_outbound_window pex_outbound_win[4];
  616. u8 res12[0x100];
  617. u32 pex_epiwtar0;
  618. u32 pex_epiwtar1;
  619. u32 pex_epiwtar2;
  620. u32 pex_epiwtar3;
  621. u8 res13[0x70];
  622. struct pex_inbound_window pex_inbound_win[4];
  623. };
  624. typedef struct pex83xx {
  625. u8 pex_cfg_header[0x404];
  626. u32 pex_ltssm_stat;
  627. u8 res0[0x30];
  628. u32 pex_ack_replay_timeout;
  629. u8 res1[4];
  630. u32 pex_gclk_ratio;
  631. u8 res2[0xc];
  632. u32 pex_pm_timer;
  633. u32 pex_pme_timeout;
  634. u8 res3[4];
  635. u32 pex_aspm_req_timer;
  636. u8 res4[0x18];
  637. u32 pex_ssvid_update;
  638. u8 res5[0x34];
  639. u32 pex_cfg_ready;
  640. u8 res6[0x24];
  641. u32 pex_bar_sizel;
  642. u8 res7[4];
  643. u32 pex_bar_sel;
  644. u8 res8[0x20];
  645. u32 pex_bar_pf;
  646. u8 res9[0x88];
  647. u32 pex_pme_to_ack_tor;
  648. u8 res10[0xc];
  649. u32 pex_ss_intr_mask;
  650. u8 res11[0x25c];
  651. struct pex_csb_bridge bridge;
  652. u8 res12[0x160];
  653. } pex83xx_t;
  654. /*
  655. * SATA
  656. */
  657. typedef struct sata83xx {
  658. u8 fixme[0x1000];
  659. } sata83xx_t;
  660. /*
  661. * eSDHC
  662. */
  663. typedef struct sdhc83xx {
  664. u8 fixme[0x1000];
  665. } sdhc83xx_t;
  666. /*
  667. * SerDes
  668. */
  669. typedef struct serdes83xx {
  670. u32 srdscr0;
  671. u32 srdscr1;
  672. u32 srdscr2;
  673. u32 srdscr3;
  674. u32 srdscr4;
  675. u8 res0[0xc];
  676. u32 srdsrstctl;
  677. u8 res1[0xdc];
  678. } serdes83xx_t;
  679. /*
  680. * On Chip ROM
  681. */
  682. typedef struct rom83xx {
  683. #if defined(CONFIG_MPC8309)
  684. u8 mem[0x8000];
  685. #else
  686. u8 mem[0x10000];
  687. #endif
  688. } rom83xx_t;
  689. /*
  690. * TDM
  691. */
  692. typedef struct tdm83xx {
  693. u8 fixme[0x200];
  694. } tdm83xx_t;
  695. /*
  696. * TDM DMAC
  697. */
  698. typedef struct tdmdmac83xx {
  699. u8 fixme[0x2000];
  700. } tdmdmac83xx_t;
  701. #if defined(CONFIG_MPC834x)
  702. typedef struct immap {
  703. sysconf83xx_t sysconf; /* System configuration */
  704. wdt83xx_t wdt; /* Watch Dog Timer (WDT) Registers */
  705. rtclk83xx_t rtc; /* Real Time Clock Module Registers */
  706. rtclk83xx_t pit; /* Periodic Interval Timer */
  707. gtm83xx_t gtm[2]; /* Global Timers Module */
  708. ipic83xx_t ipic; /* Integrated Programmable Interrupt Controller */
  709. arbiter83xx_t arbiter; /* System Arbiter Registers */
  710. reset83xx_t reset; /* Reset Module */
  711. clk83xx_t clk; /* System Clock Module */
  712. pmc83xx_t pmc; /* Power Management Control Module */
  713. gpio83xx_t gpio[2]; /* General purpose I/O module */
  714. u8 res0[0x200];
  715. u8 dll_ddr[0x100];
  716. u8 dll_lbc[0x100];
  717. u8 res1[0xE00];
  718. #if defined(CONFIG_FSL_DDR2) || defined(CONFIG_FSL_DDR3)
  719. ccsr_ddr_t ddr; /* DDR Memory Controller Memory */
  720. #else
  721. ddr83xx_t ddr; /* DDR Memory Controller Memory */
  722. #endif
  723. fsl_i2c_t i2c[2]; /* I2C Controllers */
  724. u8 res2[0x1300];
  725. duart83xx_t duart[2]; /* DUART */
  726. u8 res3[0x900];
  727. fsl_lbc_t im_lbc; /* Local Bus Controller Regs */
  728. u8 res4[0x1000];
  729. spi8xxx_t spi; /* Serial Peripheral Interface */
  730. dma83xx_t dma; /* DMA */
  731. pciconf83xx_t pci_conf[2]; /* PCI Software Configuration Registers */
  732. ios83xx_t ios; /* Sequencer */
  733. pcictrl83xx_t pci_ctrl[2]; /* PCI Controller Control and Status Registers */
  734. u8 res5[0x19900];
  735. usb83xx_t usb[2];
  736. tsec83xx_t tsec[2];
  737. u8 res6[0xA000];
  738. security83xx_t security;
  739. u8 res7[0xC0000];
  740. } immap_t;
  741. #ifdef CONFIG_HAS_FSL_MPH_USB
  742. #define CONFIG_SYS_MPC83xx_USB_OFFSET 0x22000 /* use the MPH controller */
  743. #else
  744. #define CONFIG_SYS_MPC83xx_USB_OFFSET 0x23000 /* use the DR controller */
  745. #endif
  746. #elif defined(CONFIG_MPC8313)
  747. typedef struct immap {
  748. sysconf83xx_t sysconf; /* System configuration */
  749. wdt83xx_t wdt; /* Watch Dog Timer (WDT) Registers */
  750. rtclk83xx_t rtc; /* Real Time Clock Module Registers */
  751. rtclk83xx_t pit; /* Periodic Interval Timer */
  752. gtm83xx_t gtm[2]; /* Global Timers Module */
  753. ipic83xx_t ipic; /* Integrated Programmable Interrupt Controller */
  754. arbiter83xx_t arbiter; /* System Arbiter Registers */
  755. reset83xx_t reset; /* Reset Module */
  756. clk83xx_t clk; /* System Clock Module */
  757. pmc83xx_t pmc; /* Power Management Control Module */
  758. gpio83xx_t gpio[1]; /* General purpose I/O module */
  759. u8 res0[0x1300];
  760. ddr83xx_t ddr; /* DDR Memory Controller Memory */
  761. fsl_i2c_t i2c[2]; /* I2C Controllers */
  762. u8 res1[0x1300];
  763. duart83xx_t duart[2]; /* DUART */
  764. u8 res2[0x900];
  765. fsl_lbc_t im_lbc; /* Local Bus Controller Regs */
  766. u8 res3[0x1000];
  767. spi8xxx_t spi; /* Serial Peripheral Interface */
  768. dma83xx_t dma; /* DMA */
  769. pciconf83xx_t pci_conf[1]; /* PCI Software Configuration Registers */
  770. u8 res4[0x80];
  771. ios83xx_t ios; /* Sequencer */
  772. pcictrl83xx_t pci_ctrl[1]; /* PCI Controller Control and Status Registers */
  773. u8 res5[0x1aa00];
  774. usb83xx_t usb[1];
  775. tsec83xx_t tsec[2];
  776. u8 res6[0xA000];
  777. security83xx_t security;
  778. u8 res7[0xC0000];
  779. } immap_t;
  780. #elif defined(CONFIG_MPC8308) || defined(CONFIG_MPC8315)
  781. typedef struct immap {
  782. sysconf83xx_t sysconf; /* System configuration */
  783. wdt83xx_t wdt; /* Watch Dog Timer (WDT) Registers */
  784. rtclk83xx_t rtc; /* Real Time Clock Module Registers */
  785. rtclk83xx_t pit; /* Periodic Interval Timer */
  786. gtm83xx_t gtm[2]; /* Global Timers Module */
  787. ipic83xx_t ipic; /* Integrated Programmable Interrupt Controller */
  788. arbiter83xx_t arbiter; /* System Arbiter Registers */
  789. reset83xx_t reset; /* Reset Module */
  790. clk83xx_t clk; /* System Clock Module */
  791. pmc83xx_t pmc; /* Power Management Control Module */
  792. gpio83xx_t gpio[1]; /* General purpose I/O module */
  793. u8 res0[0x1300];
  794. ddr83xx_t ddr; /* DDR Memory Controller Memory */
  795. fsl_i2c_t i2c[2]; /* I2C Controllers */
  796. u8 res1[0x1300];
  797. duart83xx_t duart[2]; /* DUART */
  798. u8 res2[0x900];
  799. fsl_lbc_t im_lbc; /* Local Bus Controller Regs */
  800. u8 res3[0x1000];
  801. spi8xxx_t spi; /* Serial Peripheral Interface */
  802. dma83xx_t dma; /* DMA */
  803. pciconf83xx_t pci_conf[1]; /* PCI Software Configuration Registers */
  804. u8 res4[0x80];
  805. ios83xx_t ios; /* Sequencer */
  806. pcictrl83xx_t pci_ctrl[1]; /* PCI Controller Control and Status Registers */
  807. u8 res5[0xa00];
  808. pex83xx_t pciexp[2]; /* PCI Express Controller */
  809. u8 res6[0xb000];
  810. tdm83xx_t tdm; /* TDM Controller */
  811. u8 res7[0x1e00];
  812. sata83xx_t sata[2]; /* SATA Controller */
  813. u8 res8[0x9000];
  814. usb83xx_t usb[1]; /* USB DR Controller */
  815. tsec83xx_t tsec[2];
  816. u8 res9[0x6000];
  817. tdmdmac83xx_t tdmdmac; /* TDM DMAC */
  818. u8 res10[0x2000];
  819. security83xx_t security;
  820. u8 res11[0xA3000];
  821. serdes83xx_t serdes[1]; /* SerDes Registers */
  822. u8 res12[0x1CF00];
  823. } immap_t;
  824. #elif defined(CONFIG_MPC837x)
  825. typedef struct immap {
  826. sysconf83xx_t sysconf; /* System configuration */
  827. wdt83xx_t wdt; /* Watch Dog Timer (WDT) Registers */
  828. rtclk83xx_t rtc; /* Real Time Clock Module Registers */
  829. rtclk83xx_t pit; /* Periodic Interval Timer */
  830. gtm83xx_t gtm[2]; /* Global Timers Module */
  831. ipic83xx_t ipic; /* Integrated Programmable Interrupt Controller */
  832. arbiter83xx_t arbiter; /* System Arbiter Registers */
  833. reset83xx_t reset; /* Reset Module */
  834. clk83xx_t clk; /* System Clock Module */
  835. pmc83xx_t pmc; /* Power Management Control Module */
  836. gpio83xx_t gpio[2]; /* General purpose I/O module */
  837. u8 res0[0x1200];
  838. ddr83xx_t ddr; /* DDR Memory Controller Memory */
  839. fsl_i2c_t i2c[2]; /* I2C Controllers */
  840. u8 res1[0x1300];
  841. duart83xx_t duart[2]; /* DUART */
  842. u8 res2[0x900];
  843. fsl_lbc_t im_lbc; /* Local Bus Controller Regs */
  844. u8 res3[0x1000];
  845. spi8xxx_t spi; /* Serial Peripheral Interface */
  846. dma83xx_t dma; /* DMA */
  847. pciconf83xx_t pci_conf[1]; /* PCI Software Configuration Registers */
  848. u8 res4[0x80];
  849. ios83xx_t ios; /* Sequencer */
  850. pcictrl83xx_t pci_ctrl[1]; /* PCI Controller Control and Status Registers */
  851. u8 res5[0xa00];
  852. pex83xx_t pciexp[2]; /* PCI Express Controller */
  853. u8 res6[0xd000];
  854. sata83xx_t sata[4]; /* SATA Controller */
  855. u8 res7[0x7000];
  856. usb83xx_t usb[1]; /* USB DR Controller */
  857. tsec83xx_t tsec[2];
  858. u8 res8[0x8000];
  859. sdhc83xx_t sdhc; /* SDHC Controller */
  860. u8 res9[0x1000];
  861. security83xx_t security;
  862. u8 res10[0xA3000];
  863. serdes83xx_t serdes[2]; /* SerDes Registers */
  864. u8 res11[0xCE00];
  865. rom83xx_t rom; /* On Chip ROM */
  866. } immap_t;
  867. #elif defined(CONFIG_MPC8360)
  868. typedef struct immap {
  869. sysconf83xx_t sysconf; /* System configuration */
  870. wdt83xx_t wdt; /* Watch Dog Timer (WDT) Registers */
  871. rtclk83xx_t rtc; /* Real Time Clock Module Registers */
  872. rtclk83xx_t pit; /* Periodic Interval Timer */
  873. u8 res0[0x200];
  874. ipic83xx_t ipic; /* Integrated Programmable Interrupt Controller */
  875. arbiter83xx_t arbiter; /* System Arbiter Registers */
  876. reset83xx_t reset; /* Reset Module */
  877. clk83xx_t clk; /* System Clock Module */
  878. pmc83xx_t pmc; /* Power Management Control Module */
  879. qepi83xx_t qepi; /* QE Ports Interrupts Registers */
  880. u8 res1[0x300];
  881. u8 dll_ddr[0x100];
  882. u8 dll_lbc[0x100];
  883. u8 res2[0x200];
  884. qepio83xx_t qepio; /* QE Parallel I/O ports */
  885. qesba83xx_t qesba; /* QE Secondary Bus Access Windows */
  886. u8 res3[0x400];
  887. ddr83xx_t ddr; /* DDR Memory Controller Memory */
  888. fsl_i2c_t i2c[2]; /* I2C Controllers */
  889. u8 res4[0x1300];
  890. duart83xx_t duart[2]; /* DUART */
  891. u8 res5[0x900];
  892. fsl_lbc_t im_lbc; /* Local Bus Controller Regs */
  893. u8 res6[0x2000];
  894. dma83xx_t dma; /* DMA */
  895. pciconf83xx_t pci_conf[1]; /* PCI Software Configuration Registers */
  896. u8 res7[128];
  897. ios83xx_t ios; /* Sequencer (IOS) */
  898. pcictrl83xx_t pci_ctrl[1]; /* PCI Controller Control and Status Registers */
  899. u8 res8[0x4A00];
  900. ddr83xx_t ddr_secondary; /* Secondary DDR Memory Controller Memory Map */
  901. u8 res9[0x22000];
  902. security83xx_t security;
  903. u8 res10[0xC0000];
  904. u8 qe[0x100000]; /* QE block */
  905. } immap_t;
  906. #elif defined(CONFIG_MPC832x)
  907. typedef struct immap {
  908. sysconf83xx_t sysconf; /* System configuration */
  909. wdt83xx_t wdt; /* Watch Dog Timer (WDT) Registers */
  910. rtclk83xx_t rtc; /* Real Time Clock Module Registers */
  911. rtclk83xx_t pit; /* Periodic Interval Timer */
  912. gtm83xx_t gtm[2]; /* Global Timers Module */
  913. ipic83xx_t ipic; /* Integrated Programmable Interrupt Controller */
  914. arbiter83xx_t arbiter; /* System Arbiter Registers */
  915. reset83xx_t reset; /* Reset Module */
  916. clk83xx_t clk; /* System Clock Module */
  917. pmc83xx_t pmc; /* Power Management Control Module */
  918. qepi83xx_t qepi; /* QE Ports Interrupts Registers */
  919. u8 res0[0x300];
  920. u8 dll_ddr[0x100];
  921. u8 dll_lbc[0x100];
  922. u8 res1[0x200];
  923. qepio83xx_t qepio; /* QE Parallel I/O ports */
  924. u8 res2[0x800];
  925. ddr83xx_t ddr; /* DDR Memory Controller Memory */
  926. fsl_i2c_t i2c[2]; /* I2C Controllers */
  927. u8 res3[0x1300];
  928. duart83xx_t duart[2]; /* DUART */
  929. u8 res4[0x900];
  930. fsl_lbc_t im_lbc; /* Local Bus Controller Regs */
  931. u8 res5[0x2000];
  932. dma83xx_t dma; /* DMA */
  933. pciconf83xx_t pci_conf[1]; /* PCI Software Configuration Registers */
  934. u8 res6[128];
  935. ios83xx_t ios; /* Sequencer (IOS) */
  936. pcictrl83xx_t pci_ctrl[1]; /* PCI Controller Control and Status Registers */
  937. u8 res7[0x27A00];
  938. security83xx_t security;
  939. u8 res8[0xC0000];
  940. u8 qe[0x100000]; /* QE block */
  941. } immap_t;
  942. #elif defined(CONFIG_MPC8309)
  943. typedef struct immap {
  944. sysconf83xx_t sysconf; /* System configuration */
  945. wdt83xx_t wdt; /* Watch Dog Timer (WDT) Registers */
  946. rtclk83xx_t rtc; /* Real Time Clock Module Registers */
  947. rtclk83xx_t pit; /* Periodic Interval Timer */
  948. gtm83xx_t gtm[2]; /* Global Timers Module */
  949. ipic83xx_t ipic; /* Integrated Programmable Interrupt Controller */
  950. arbiter83xx_t arbiter; /* System Arbiter Registers */
  951. reset83xx_t reset; /* Reset Module */
  952. clk83xx_t clk; /* System Clock Module */
  953. pmc83xx_t pmc; /* Power Management Control Module */
  954. gpio83xx_t gpio[2]; /* General purpose I/O module */
  955. u8 res0[0x500]; /* res0 1.25 KBytes added for 8309 */
  956. qepi83xx_t qepi; /* QE Ports Interrupts Registers */
  957. qepio83xx_t qepio; /* QE Parallel I/O ports */
  958. u8 res1[0x800];
  959. ddr83xx_t ddr; /* DDR Memory Controller Memory */
  960. fsl_i2c_t i2c[2]; /* I2C Controllers */
  961. u8 res2[0x1300];
  962. duart83xx_t duart[2]; /* DUART */
  963. u8 res3[0x200];
  964. duart83xx_t duart1[2]; /* DUART */
  965. u8 res4[0x500];
  966. fsl_lbc_t im_lbc; /* Local Bus Controller Regs */
  967. u8 res5[0x1000];
  968. u8 spi[0x100];
  969. u8 res6[0xf00];
  970. dma83xx_t dma; /* DMA */
  971. pciconf83xx_t pci_conf[1]; /* PCI Configuration Registers */
  972. u8 res7[0x80];
  973. ios83xx_t ios; /* Sequencer (IOS) */
  974. pcictrl83xx_t pci_ctrl[1]; /* PCI Control & Status Registers */
  975. u8 res8[0x13A00];
  976. u8 can1[0x1000]; /* Flexcan 1 */
  977. u8 can2[0x1000]; /* Flexcan 2 */
  978. u8 res9[0x5000];
  979. usb83xx_t usb;
  980. u8 res10[0x5000];
  981. u8 can3[0x1000]; /* Flexcan 3 */
  982. u8 can4[0x1000]; /* Flexcan 4 */
  983. u8 res11[0x1000];
  984. u8 dma1[0x2000]; /* DMA */
  985. sdhc83xx_t sdhc; /* SDHC Controller */
  986. u8 res12[0xC1000];
  987. rom83xx_t rom; /* On Chip ROM */
  988. u8 res13[0x8000];
  989. u8 qe[0x100000]; /* QE block */
  990. u8 res14[0xE00000];/* Added for 8309 */
  991. } immap_t;
  992. #endif
  993. #define CONFIG_SYS_MPC8xxx_DDR_OFFSET (0x2000)
  994. #define CONFIG_SYS_MPC8xxx_DDR_ADDR \
  995. (CONFIG_SYS_IMMR + CONFIG_SYS_MPC8xxx_DDR_OFFSET)
  996. #define CONFIG_SYS_MPC83xx_DMA_OFFSET (0x8000)
  997. #define CONFIG_SYS_MPC83xx_DMA_ADDR \
  998. (CONFIG_SYS_IMMR + CONFIG_SYS_MPC83xx_DMA_OFFSET)
  999. #define CONFIG_SYS_MPC83xx_ESDHC_OFFSET (0x2e000)
  1000. #define CONFIG_SYS_MPC83xx_ESDHC_ADDR \
  1001. (CONFIG_SYS_IMMR + CONFIG_SYS_MPC83xx_ESDHC_OFFSET)
  1002. #ifndef CONFIG_SYS_MPC83xx_USB_OFFSET
  1003. #define CONFIG_SYS_MPC83xx_USB_OFFSET 0x23000
  1004. #endif
  1005. #define CONFIG_SYS_MPC83xx_USB_ADDR \
  1006. (CONFIG_SYS_IMMR + CONFIG_SYS_MPC83xx_USB_OFFSET)
  1007. #define CONFIG_SYS_LBC_ADDR (&((immap_t *)CONFIG_SYS_IMMR)->im_lbc)
  1008. #define CONFIG_SYS_TSEC1_OFFSET 0x24000
  1009. #define CONFIG_SYS_MDIO1_OFFSET 0x24000
  1010. #define TSEC_BASE_ADDR (CONFIG_SYS_IMMR + CONFIG_SYS_TSEC1_OFFSET)
  1011. #define MDIO_BASE_ADDR (CONFIG_SYS_IMMR + CONFIG_SYS_MDIO1_OFFSET)
  1012. #endif /* __IMMAP_83xx__ */