immap_83xx.h 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846
  1. /*
  2. * (C) Copyright 2004-2007 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. /*
  34. * Local Access Window
  35. */
  36. typedef struct law83xx {
  37. u32 bar; /* LBIU local access window base address register */
  38. u32 ar; /* LBIU local access window attribute register */
  39. } law83xx_t;
  40. /*
  41. * System configuration registers
  42. */
  43. typedef struct sysconf83xx {
  44. u32 immrbar; /* Internal memory map base address register */
  45. u8 res0[0x04];
  46. u32 altcbar; /* Alternate configuration base address register */
  47. u8 res1[0x14];
  48. law83xx_t lblaw[4]; /* LBIU local access window */
  49. u8 res2[0x20];
  50. law83xx_t pcilaw[2]; /* PCI local access window */
  51. u8 res3[0x30];
  52. law83xx_t ddrlaw[2]; /* DDR local access window */
  53. u8 res4[0x50];
  54. u32 sgprl; /* System General Purpose Register Low */
  55. u32 sgprh; /* System General Purpose Register High */
  56. u32 spridr; /* System Part and Revision ID Register */
  57. u8 res5[0x04];
  58. u32 spcr; /* System Priority Configuration Register */
  59. u32 sicrl; /* System I/O Configuration Register Low */
  60. u32 sicrh; /* System I/O Configuration Register High */
  61. u8 res6[0x0C];
  62. u32 ddrcdr; /* DDR Control Driver Register */
  63. u32 ddrdsr; /* DDR Debug Status Register */
  64. u32 obir; /* Output Buffer Impedance Register */
  65. u8 res7[0xCC];
  66. } sysconf83xx_t;
  67. /*
  68. * Watch Dog Timer (WDT) Registers
  69. */
  70. typedef struct wdt83xx {
  71. u8 res0[4];
  72. u32 swcrr; /* System watchdog control register */
  73. u32 swcnr; /* System watchdog count register */
  74. u8 res1[2];
  75. u16 swsrr; /* System watchdog service register */
  76. u8 res2[0xF0];
  77. } wdt83xx_t;
  78. /*
  79. * RTC/PIT Module Registers
  80. */
  81. typedef struct rtclk83xx {
  82. u32 cnr; /* control register */
  83. u32 ldr; /* load register */
  84. u32 psr; /* prescale register */
  85. u32 ctr; /* counter value field register */
  86. u32 evr; /* event register */
  87. u32 alr; /* alarm register */
  88. u8 res0[0xE8];
  89. } rtclk83xx_t;
  90. /*
  91. * Global timer module
  92. */
  93. typedef struct gtm83xx {
  94. u8 cfr1; /* Timer1/2 Configuration */
  95. u8 res0[3];
  96. u8 cfr2; /* Timer3/4 Configuration */
  97. u8 res1[10];
  98. u16 mdr1; /* Timer1 Mode Register */
  99. u16 mdr2; /* Timer2 Mode Register */
  100. u16 rfr1; /* Timer1 Reference Register */
  101. u16 rfr2; /* Timer2 Reference Register */
  102. u16 cpr1; /* Timer1 Capture Register */
  103. u16 cpr2; /* Timer2 Capture Register */
  104. u16 cnr1; /* Timer1 Counter Register */
  105. u16 cnr2; /* Timer2 Counter Register */
  106. u16 mdr3; /* Timer3 Mode Register */
  107. u16 mdr4; /* Timer4 Mode Register */
  108. u16 rfr3; /* Timer3 Reference Register */
  109. u16 rfr4; /* Timer4 Reference Register */
  110. u16 cpr3; /* Timer3 Capture Register */
  111. u16 cpr4; /* Timer4 Capture Register */
  112. u16 cnr3; /* Timer3 Counter Register */
  113. u16 cnr4; /* Timer4 Counter Register */
  114. u16 evr1; /* Timer1 Event Register */
  115. u16 evr2; /* Timer2 Event Register */
  116. u16 evr3; /* Timer3 Event Register */
  117. u16 evr4; /* Timer4 Event Register */
  118. u16 psr1; /* Timer1 Prescaler Register */
  119. u16 psr2; /* Timer2 Prescaler Register */
  120. u16 psr3; /* Timer3 Prescaler Register */
  121. u16 psr4; /* Timer4 Prescaler Register */
  122. u8 res[0xC0];
  123. } gtm83xx_t;
  124. /*
  125. * Integrated Programmable Interrupt Controller
  126. */
  127. typedef struct ipic83xx {
  128. u32 sicfr; /* System Global Interrupt Configuration Register */
  129. u32 sivcr; /* System Global Interrupt Vector Register */
  130. u32 sipnr_h; /* System Internal Interrupt Pending Register - High */
  131. u32 sipnr_l; /* System Internal Interrupt Pending Register - Low */
  132. u32 siprr_a; /* System Internal Interrupt Group A Priority Register */
  133. u8 res0[8];
  134. u32 siprr_d; /* System Internal Interrupt Group D Priority Register */
  135. u32 simsr_h; /* System Internal Interrupt Mask Register - High */
  136. u32 simsr_l; /* System Internal Interrupt Mask Register - Low */
  137. u8 res1[4];
  138. u32 sepnr; /* System External Interrupt Pending Register */
  139. u32 smprr_a; /* System Mixed Interrupt Group A Priority Register */
  140. u32 smprr_b; /* System Mixed Interrupt Group B Priority Register */
  141. u32 semsr; /* System External Interrupt Mask Register */
  142. u32 secnr; /* System External Interrupt Control Register */
  143. u32 sersr; /* System Error Status Register */
  144. u32 sermr; /* System Error Mask Register */
  145. u32 sercr; /* System Error Control Register */
  146. u8 res2[4];
  147. u32 sifcr_h; /* System Internal Interrupt Force Register - High */
  148. u32 sifcr_l; /* System Internal Interrupt Force Register - Low */
  149. u32 sefcr; /* System External Interrupt Force Register */
  150. u32 serfr; /* System Error Force Register */
  151. u32 scvcr; /* System Critical Interrupt Vector Register */
  152. u32 smvcr; /* System Management Interrupt Vector Register */
  153. u8 res3[0x98];
  154. } ipic83xx_t;
  155. /*
  156. * System Arbiter Registers
  157. */
  158. typedef struct arbiter83xx {
  159. u32 acr; /* Arbiter Configuration Register */
  160. u32 atr; /* Arbiter Timers Register */
  161. u8 res[4];
  162. u32 aer; /* Arbiter Event Register */
  163. u32 aidr; /* Arbiter Interrupt Definition Register */
  164. u32 amr; /* Arbiter Mask Register */
  165. u32 aeatr; /* Arbiter Event Attributes Register */
  166. u32 aeadr; /* Arbiter Event Address Register */
  167. u32 aerr; /* Arbiter Event Response Register */
  168. u8 res1[0xDC];
  169. } arbiter83xx_t;
  170. /*
  171. * Reset Module
  172. */
  173. typedef struct reset83xx {
  174. u32 rcwl; /* Reset Configuration Word Low Register */
  175. u32 rcwh; /* Reset Configuration Word High Register */
  176. u8 res0[8];
  177. u32 rsr; /* Reset Status Register */
  178. u32 rmr; /* Reset Mode Register */
  179. u32 rpr; /* Reset protection Register */
  180. u32 rcr; /* Reset Control Register */
  181. u32 rcer; /* Reset Control Enable Register */
  182. u8 res1[0xDC];
  183. } reset83xx_t;
  184. /*
  185. * Clock Module
  186. */
  187. typedef struct clk83xx {
  188. u32 spmr; /* system PLL mode Register */
  189. u32 occr; /* output clock control Register */
  190. u32 sccr; /* system clock control Register */
  191. u8 res0[0xF4];
  192. } clk83xx_t;
  193. /*
  194. * Power Management Control Module
  195. */
  196. typedef struct pmc83xx {
  197. u32 pmccr; /* PMC Configuration Register */
  198. u32 pmcer; /* PMC Event Register */
  199. u32 pmcmr; /* PMC Mask Register */
  200. u32 pmccr1; /* PMC Configuration Register 1 */
  201. u32 pmccr2; /* PMC Configuration Register 2 */
  202. u8 res0[0xEC];
  203. } pmc83xx_t;
  204. /*
  205. * General purpose I/O module
  206. */
  207. typedef struct gpio83xx {
  208. u32 dir; /* direction register */
  209. u32 odr; /* open drain register */
  210. u32 dat; /* data register */
  211. u32 ier; /* interrupt event register */
  212. u32 imr; /* interrupt mask register */
  213. u32 icr; /* external interrupt control register */
  214. u8 res0[0xE8];
  215. } gpio83xx_t;
  216. /*
  217. * QE Ports Interrupts Registers
  218. */
  219. typedef struct qepi83xx {
  220. u8 res0[0xC];
  221. u32 qepier; /* QE Ports Interrupt Event Register */
  222. u32 qepimr; /* QE Ports Interrupt Mask Register */
  223. u32 qepicr; /* QE Ports Interrupt Control Register */
  224. u8 res1[0xE8];
  225. } qepi83xx_t;
  226. /*
  227. * QE Parallel I/O Ports
  228. */
  229. typedef struct gpio_n {
  230. u32 podr; /* Open Drain Register */
  231. u32 pdat; /* Data Register */
  232. u32 dir1; /* direction register 1 */
  233. u32 dir2; /* direction register 2 */
  234. u32 ppar1; /* Pin Assignment Register 1 */
  235. u32 ppar2; /* Pin Assignment Register 2 */
  236. } gpio_n_t;
  237. typedef struct qegpio83xx {
  238. gpio_n_t ioport[0x7];
  239. u8 res0[0x358];
  240. } qepio83xx_t;
  241. /*
  242. * QE Secondary Bus Access Windows
  243. */
  244. typedef struct qesba83xx {
  245. u32 lbmcsar; /* Local bus memory controller start address */
  246. u32 sdmcsar; /* Secondary DDR memory controller start address */
  247. u8 res0[0x38];
  248. u32 lbmcear; /* Local bus memory controller end address */
  249. u32 sdmcear; /* Secondary DDR memory controller end address */
  250. u8 res1[0x38];
  251. u32 lbmcar; /* Local bus memory controller attributes */
  252. u32 sdmcar; /* Secondary DDR memory controller attributes */
  253. u8 res2[0x378];
  254. } qesba83xx_t;
  255. /*
  256. * DDR Memory Controller Memory Map
  257. */
  258. typedef struct ddr_cs_bnds {
  259. u32 csbnds;
  260. u8 res0[4];
  261. } ddr_cs_bnds_t;
  262. typedef struct ddr83xx {
  263. ddr_cs_bnds_t csbnds[4];/* Chip Select x Memory Bounds */
  264. u8 res0[0x60];
  265. u32 cs_config[4]; /* Chip Select x Configuration */
  266. u8 res1[0x70];
  267. u32 timing_cfg_3; /* SDRAM Timing Configuration 3 */
  268. u32 timing_cfg_0; /* SDRAM Timing Configuration 0 */
  269. u32 timing_cfg_1; /* SDRAM Timing Configuration 1 */
  270. u32 timing_cfg_2; /* SDRAM Timing Configuration 2 */
  271. u32 sdram_cfg; /* SDRAM Control Configuration */
  272. u32 sdram_cfg2; /* SDRAM Control Configuration 2 */
  273. u32 sdram_mode; /* SDRAM Mode Configuration */
  274. u32 sdram_mode2; /* SDRAM Mode Configuration 2 */
  275. u32 sdram_md_cntl; /* SDRAM Mode Control */
  276. u32 sdram_interval; /* SDRAM Interval Configuration */
  277. u32 ddr_data_init; /* SDRAM Data Initialization */
  278. u8 res2[4];
  279. u32 sdram_clk_cntl; /* SDRAM Clock Control */
  280. u8 res3[0x14];
  281. u32 ddr_init_addr; /* DDR training initialization address */
  282. u32 ddr_init_ext_addr; /* DDR training initialization extended address */
  283. u8 res4[0xAA8];
  284. u32 ddr_ip_rev1; /* DDR IP block revision 1 */
  285. u32 ddr_ip_rev2; /* DDR IP block revision 2 */
  286. u8 res5[0x200];
  287. u32 data_err_inject_hi; /* Memory Data Path Error Injection Mask High */
  288. u32 data_err_inject_lo; /* Memory Data Path Error Injection Mask Low */
  289. u32 ecc_err_inject; /* Memory Data Path Error Injection Mask ECC */
  290. u8 res6[0x14];
  291. u32 capture_data_hi; /* Memory Data Path Read Capture High */
  292. u32 capture_data_lo; /* Memory Data Path Read Capture Low */
  293. u32 capture_ecc; /* Memory Data Path Read Capture ECC */
  294. u8 res7[0x14];
  295. u32 err_detect; /* Memory Error Detect */
  296. u32 err_disable; /* Memory Error Disable */
  297. u32 err_int_en; /* Memory Error Interrupt Enable */
  298. u32 capture_attributes; /* Memory Error Attributes Capture */
  299. u32 capture_address; /* Memory Error Address Capture */
  300. u32 capture_ext_address;/* Memory Error Extended Address Capture */
  301. u32 err_sbe; /* Memory Single-Bit ECC Error Management */
  302. u8 res8[0xA4];
  303. u32 debug_reg;
  304. u8 res9[0xFC];
  305. } ddr83xx_t;
  306. /*
  307. * DUART
  308. */
  309. typedef struct duart83xx {
  310. u8 urbr_ulcr_udlb; /* combined register for URBR, UTHR and UDLB */
  311. u8 uier_udmb; /* combined register for UIER and UDMB */
  312. u8 uiir_ufcr_uafr; /* combined register for UIIR, UFCR and UAFR */
  313. u8 ulcr; /* line control register */
  314. u8 umcr; /* MODEM control register */
  315. u8 ulsr; /* line status register */
  316. u8 umsr; /* MODEM status register */
  317. u8 uscr; /* scratch register */
  318. u8 res0[8];
  319. u8 udsr; /* DMA status register */
  320. u8 res1[3];
  321. u8 res2[0xEC];
  322. } duart83xx_t;
  323. /*
  324. * Local Bus Controller Registers
  325. */
  326. typedef struct lbus_bank {
  327. u32 br; /* Base Register */
  328. u32 or; /* Option Register */
  329. } lbus_bank_t;
  330. typedef struct lbus83xx {
  331. lbus_bank_t bank[8];
  332. u8 res0[0x28];
  333. u32 mar; /* UPM Address Register */
  334. u8 res1[0x4];
  335. u32 mamr; /* UPMA Mode Register */
  336. u32 mbmr; /* UPMB Mode Register */
  337. u32 mcmr; /* UPMC Mode Register */
  338. u8 res2[0x8];
  339. u32 mrtpr; /* Memory Refresh Timer Prescaler Register */
  340. u32 mdr; /* UPM Data Register */
  341. u8 res3[0x4];
  342. u32 lsor; /* Special Operation Initiation Register */
  343. u32 lsdmr; /* SDRAM Mode Register */
  344. u8 res4[0x8];
  345. u32 lurt; /* UPM Refresh Timer */
  346. u32 lsrt; /* SDRAM Refresh Timer */
  347. u8 res5[0x8];
  348. u32 ltesr; /* Transfer Error Status Register */
  349. u32 ltedr; /* Transfer Error Disable Register */
  350. u32 lteir; /* Transfer Error Interrupt Register */
  351. u32 lteatr; /* Transfer Error Attributes Register */
  352. u32 ltear; /* Transfer Error Address Register */
  353. u8 res6[0xC];
  354. u32 lbcr; /* Configuration Register */
  355. u32 lcrr; /* Clock Ratio Register */
  356. u8 res7[0x8];
  357. u32 fmr; /* Flash Mode Register */
  358. u32 fir; /* Flash Instruction Register */
  359. u32 fcr; /* Flash Command Register */
  360. u32 fbar; /* Flash Block Addr Register */
  361. u32 fpar; /* Flash Page Addr Register */
  362. u32 fbcr; /* Flash Byte Count Register */
  363. u8 res8[0xF08];
  364. } lbus83xx_t;
  365. /*
  366. * Serial Peripheral Interface
  367. */
  368. typedef struct spi83xx {
  369. u32 mode; /* mode register */
  370. u32 event; /* event register */
  371. u32 mask; /* mask register */
  372. u32 com; /* command register */
  373. u8 res0[0x10];
  374. u32 tx; /* transmit register */
  375. u32 rx; /* receive register */
  376. u8 res1[0xFD8];
  377. } spi83xx_t;
  378. /*
  379. * DMA/Messaging Unit
  380. */
  381. typedef struct dma83xx {
  382. u32 res0[0xC]; /* 0x0-0x29 reseverd */
  383. u32 omisr; /* 0x30 Outbound message interrupt status register */
  384. u32 omimr; /* 0x34 Outbound message interrupt mask register */
  385. u32 res1[0x6]; /* 0x38-0x49 reserved */
  386. u32 imr0; /* 0x50 Inbound message register 0 */
  387. u32 imr1; /* 0x54 Inbound message register 1 */
  388. u32 omr0; /* 0x58 Outbound message register 0 */
  389. u32 omr1; /* 0x5C Outbound message register 1 */
  390. u32 odr; /* 0x60 Outbound doorbell register */
  391. u32 res2; /* 0x64-0x67 reserved */
  392. u32 idr; /* 0x68 Inbound doorbell register */
  393. u32 res3[0x5]; /* 0x6C-0x79 reserved */
  394. u32 imisr; /* 0x80 Inbound message interrupt status register */
  395. u32 imimr; /* 0x84 Inbound message interrupt mask register */
  396. u32 res4[0x1E]; /* 0x88-0x99 reserved */
  397. u32 dmamr0; /* 0x100 DMA 0 mode register */
  398. u32 dmasr0; /* 0x104 DMA 0 status register */
  399. u32 dmacdar0; /* 0x108 DMA 0 current descriptor address register */
  400. u32 res5; /* 0x10C reserved */
  401. u32 dmasar0; /* 0x110 DMA 0 source address register */
  402. u32 res6; /* 0x114 reserved */
  403. u32 dmadar0; /* 0x118 DMA 0 destination address register */
  404. u32 res7; /* 0x11C reserved */
  405. u32 dmabcr0; /* 0x120 DMA 0 byte count register */
  406. u32 dmandar0; /* 0x124 DMA 0 next descriptor address register */
  407. u32 res8[0x16]; /* 0x128-0x179 reserved */
  408. u32 dmamr1; /* 0x180 DMA 1 mode register */
  409. u32 dmasr1; /* 0x184 DMA 1 status register */
  410. u32 dmacdar1; /* 0x188 DMA 1 current descriptor address register */
  411. u32 res9; /* 0x18C reserved */
  412. u32 dmasar1; /* 0x190 DMA 1 source address register */
  413. u32 res10; /* 0x194 reserved */
  414. u32 dmadar1; /* 0x198 DMA 1 destination address register */
  415. u32 res11; /* 0x19C reserved */
  416. u32 dmabcr1; /* 0x1A0 DMA 1 byte count register */
  417. u32 dmandar1; /* 0x1A4 DMA 1 next descriptor address register */
  418. u32 res12[0x16]; /* 0x1A8-0x199 reserved */
  419. u32 dmamr2; /* 0x200 DMA 2 mode register */
  420. u32 dmasr2; /* 0x204 DMA 2 status register */
  421. u32 dmacdar2; /* 0x208 DMA 2 current descriptor address register */
  422. u32 res13; /* 0x20C reserved */
  423. u32 dmasar2; /* 0x210 DMA 2 source address register */
  424. u32 res14; /* 0x214 reserved */
  425. u32 dmadar2; /* 0x218 DMA 2 destination address register */
  426. u32 res15; /* 0x21C reserved */
  427. u32 dmabcr2; /* 0x220 DMA 2 byte count register */
  428. u32 dmandar2; /* 0x224 DMA 2 next descriptor address register */
  429. u32 res16[0x16]; /* 0x228-0x279 reserved */
  430. u32 dmamr3; /* 0x280 DMA 3 mode register */
  431. u32 dmasr3; /* 0x284 DMA 3 status register */
  432. u32 dmacdar3; /* 0x288 DMA 3 current descriptor address register */
  433. u32 res17; /* 0x28C reserved */
  434. u32 dmasar3; /* 0x290 DMA 3 source address register */
  435. u32 res18; /* 0x294 reserved */
  436. u32 dmadar3; /* 0x298 DMA 3 destination address register */
  437. u32 res19; /* 0x29C reserved */
  438. u32 dmabcr3; /* 0x2A0 DMA 3 byte count register */
  439. u32 dmandar3; /* 0x2A4 DMA 3 next descriptor address register */
  440. u32 dmagsr; /* 0x2A8 DMA general status register */
  441. u32 res20[0x15]; /* 0x2AC-0x2FF reserved */
  442. } dma83xx_t;
  443. /*
  444. * PCI Software Configuration Registers
  445. */
  446. typedef struct pciconf83xx {
  447. u32 config_address;
  448. u32 config_data;
  449. u32 int_ack;
  450. u8 res[116];
  451. } pciconf83xx_t;
  452. /*
  453. * PCI Outbound Translation Register
  454. */
  455. typedef struct pci_outbound_window {
  456. u32 potar;
  457. u8 res0[4];
  458. u32 pobar;
  459. u8 res1[4];
  460. u32 pocmr;
  461. u8 res2[4];
  462. } pot83xx_t;
  463. /*
  464. * Sequencer
  465. */
  466. typedef struct ios83xx {
  467. pot83xx_t pot[6];
  468. u8 res0[0x60];
  469. u32 pmcr;
  470. u8 res1[4];
  471. u32 dtcr;
  472. u8 res2[4];
  473. } ios83xx_t;
  474. /*
  475. * PCI Controller Control and Status Registers
  476. */
  477. typedef struct pcictrl83xx {
  478. u32 esr;
  479. u32 ecdr;
  480. u32 eer;
  481. u32 eatcr;
  482. u32 eacr;
  483. u32 eeacr;
  484. u32 edlcr;
  485. u32 edhcr;
  486. u32 gcr;
  487. u32 ecr;
  488. u32 gsr;
  489. u8 res0[12];
  490. u32 pitar2;
  491. u8 res1[4];
  492. u32 pibar2;
  493. u32 piebar2;
  494. u32 piwar2;
  495. u8 res2[4];
  496. u32 pitar1;
  497. u8 res3[4];
  498. u32 pibar1;
  499. u32 piebar1;
  500. u32 piwar1;
  501. u8 res4[4];
  502. u32 pitar0;
  503. u8 res5[4];
  504. u32 pibar0;
  505. u8 res6[4];
  506. u32 piwar0;
  507. u8 res7[132];
  508. } pcictrl83xx_t;
  509. /*
  510. * USB
  511. */
  512. typedef struct usb83xx {
  513. u8 fixme[0x1000];
  514. } usb83xx_t;
  515. /*
  516. * TSEC
  517. */
  518. typedef struct tsec83xx {
  519. u8 fixme[0x1000];
  520. } tsec83xx_t;
  521. /*
  522. * Security
  523. */
  524. typedef struct security83xx {
  525. u8 fixme[0x10000];
  526. } security83xx_t;
  527. /*
  528. * PCI Express
  529. */
  530. typedef struct pex83xx {
  531. u8 fixme[0x1000];
  532. } pex83xx_t;
  533. /*
  534. * SATA
  535. */
  536. typedef struct sata83xx {
  537. u8 fixme[0x1000];
  538. } sata83xx_t;
  539. /*
  540. * eSDHC
  541. */
  542. typedef struct sdhc83xx {
  543. u8 fixme[0x1000];
  544. } sdhc83xx_t;
  545. /*
  546. * SerDes
  547. */
  548. typedef struct serdes83xx {
  549. u8 fixme[0x100];
  550. } serdes83xx_t;
  551. /*
  552. * On Chip ROM
  553. */
  554. typedef struct rom83xx {
  555. u8 mem[0x10000];
  556. } rom83xx_t;
  557. /*
  558. * TDM
  559. */
  560. typedef struct tdm83xx {
  561. u8 fixme[0x200];
  562. } tdm83xx_t;
  563. /*
  564. * TDM DMAC
  565. */
  566. typedef struct tdmdmac83xx {
  567. u8 fixme[0x2000];
  568. } tdmdmac83xx_t;
  569. #if defined(CONFIG_MPC834X)
  570. typedef struct immap {
  571. sysconf83xx_t sysconf; /* System configuration */
  572. wdt83xx_t wdt; /* Watch Dog Timer (WDT) Registers */
  573. rtclk83xx_t rtc; /* Real Time Clock Module Registers */
  574. rtclk83xx_t pit; /* Periodic Interval Timer */
  575. gtm83xx_t gtm[2]; /* Global Timers Module */
  576. ipic83xx_t ipic; /* Integrated Programmable Interrupt Controller */
  577. arbiter83xx_t arbiter; /* System Arbiter Registers */
  578. reset83xx_t reset; /* Reset Module */
  579. clk83xx_t clk; /* System Clock Module */
  580. pmc83xx_t pmc; /* Power Management Control Module */
  581. gpio83xx_t gpio[2]; /* General purpose I/O module */
  582. u8 res0[0x200];
  583. u8 dll_ddr[0x100];
  584. u8 dll_lbc[0x100];
  585. u8 res1[0xE00];
  586. ddr83xx_t ddr; /* DDR Memory Controller Memory */
  587. fsl_i2c_t i2c[2]; /* I2C Controllers */
  588. u8 res2[0x1300];
  589. duart83xx_t duart[2]; /* DUART */
  590. u8 res3[0x900];
  591. lbus83xx_t lbus; /* Local Bus Controller Registers */
  592. u8 res4[0x1000];
  593. spi8xxx_t spi; /* Serial Peripheral Interface */
  594. dma83xx_t dma; /* DMA */
  595. pciconf83xx_t pci_conf[2]; /* PCI Software Configuration Registers */
  596. ios83xx_t ios; /* Sequencer */
  597. pcictrl83xx_t pci_ctrl[2]; /* PCI Controller Control and Status Registers */
  598. u8 res5[0x19900];
  599. usb83xx_t usb[2];
  600. tsec83xx_t tsec[2];
  601. u8 res6[0xA000];
  602. security83xx_t security;
  603. u8 res7[0xC0000];
  604. } immap_t;
  605. #elif defined(CONFIG_MPC8313)
  606. typedef struct immap {
  607. sysconf83xx_t sysconf; /* System configuration */
  608. wdt83xx_t wdt; /* Watch Dog Timer (WDT) Registers */
  609. rtclk83xx_t rtc; /* Real Time Clock Module Registers */
  610. rtclk83xx_t pit; /* Periodic Interval Timer */
  611. gtm83xx_t gtm[2]; /* Global Timers Module */
  612. ipic83xx_t ipic; /* Integrated Programmable Interrupt Controller */
  613. arbiter83xx_t arbiter; /* System Arbiter Registers */
  614. reset83xx_t reset; /* Reset Module */
  615. clk83xx_t clk; /* System Clock Module */
  616. pmc83xx_t pmc; /* Power Management Control Module */
  617. gpio83xx_t gpio[1]; /* General purpose I/O module */
  618. u8 res0[0x1300];
  619. ddr83xx_t ddr; /* DDR Memory Controller Memory */
  620. fsl_i2c_t i2c[2]; /* I2C Controllers */
  621. u8 res1[0x1300];
  622. duart83xx_t duart[2]; /* DUART */
  623. u8 res2[0x900];
  624. lbus83xx_t lbus; /* Local Bus Controller Registers */
  625. u8 res3[0x1000];
  626. spi8xxx_t spi; /* Serial Peripheral Interface */
  627. dma83xx_t dma; /* DMA */
  628. pciconf83xx_t pci_conf[1]; /* PCI Software Configuration Registers */
  629. u8 res4[0x80];
  630. ios83xx_t ios; /* Sequencer */
  631. pcictrl83xx_t pci_ctrl[1]; /* PCI Controller Control and Status Registers */
  632. u8 res5[0x1aa00];
  633. usb83xx_t usb[1];
  634. tsec83xx_t tsec[2];
  635. u8 res6[0xA000];
  636. security83xx_t security;
  637. u8 res7[0xC0000];
  638. } immap_t;
  639. #elif defined(CONFIG_MPC8315)
  640. typedef struct immap {
  641. sysconf83xx_t sysconf; /* System configuration */
  642. wdt83xx_t wdt; /* Watch Dog Timer (WDT) Registers */
  643. rtclk83xx_t rtc; /* Real Time Clock Module Registers */
  644. rtclk83xx_t pit; /* Periodic Interval Timer */
  645. gtm83xx_t gtm[2]; /* Global Timers Module */
  646. ipic83xx_t ipic; /* Integrated Programmable Interrupt Controller */
  647. arbiter83xx_t arbiter; /* System Arbiter Registers */
  648. reset83xx_t reset; /* Reset Module */
  649. clk83xx_t clk; /* System Clock Module */
  650. pmc83xx_t pmc; /* Power Management Control Module */
  651. gpio83xx_t gpio[1]; /* General purpose I/O module */
  652. u8 res0[0x1300];
  653. ddr83xx_t ddr; /* DDR Memory Controller Memory */
  654. fsl_i2c_t i2c[2]; /* I2C Controllers */
  655. u8 res1[0x1300];
  656. duart83xx_t duart[2]; /* DUART */
  657. u8 res2[0x900];
  658. lbus83xx_t lbus; /* Local Bus Controller Registers */
  659. u8 res3[0x1000];
  660. spi8xxx_t spi; /* Serial Peripheral Interface */
  661. dma83xx_t dma; /* DMA */
  662. pciconf83xx_t pci_conf[1]; /* PCI Software Configuration Registers */
  663. u8 res4[0x80];
  664. ios83xx_t ios; /* Sequencer */
  665. pcictrl83xx_t pci_ctrl[1]; /* PCI Controller Control and Status Registers */
  666. u8 res5[0xa00];
  667. pex83xx_t pciexp[2]; /* PCI Express Controller */
  668. u8 res6[0xb000];
  669. tdm83xx_t tdm; /* TDM Controller */
  670. u8 res7[0x1e00];
  671. sata83xx_t sata[2]; /* SATA Controller */
  672. u8 res8[0x9000];
  673. usb83xx_t usb[1]; /* USB DR Controller */
  674. tsec83xx_t tsec[2];
  675. u8 res9[0x6000];
  676. tdmdmac83xx_t tdmdmac; /* TDM DMAC */
  677. u8 res10[0x2000];
  678. security83xx_t security;
  679. u8 res11[0xA3000];
  680. serdes83xx_t serdes[1]; /* SerDes Registers */
  681. u8 res12[0x1CF00];
  682. } immap_t;
  683. #elif defined(CONFIG_MPC837X)
  684. typedef struct immap {
  685. sysconf83xx_t sysconf; /* System configuration */
  686. wdt83xx_t wdt; /* Watch Dog Timer (WDT) Registers */
  687. rtclk83xx_t rtc; /* Real Time Clock Module Registers */
  688. rtclk83xx_t pit; /* Periodic Interval Timer */
  689. gtm83xx_t gtm[2]; /* Global Timers Module */
  690. ipic83xx_t ipic; /* Integrated Programmable Interrupt Controller */
  691. arbiter83xx_t arbiter; /* System Arbiter Registers */
  692. reset83xx_t reset; /* Reset Module */
  693. clk83xx_t clk; /* System Clock Module */
  694. pmc83xx_t pmc; /* Power Management Control Module */
  695. gpio83xx_t gpio[2]; /* General purpose I/O module */
  696. u8 res0[0x1200];
  697. ddr83xx_t ddr; /* DDR Memory Controller Memory */
  698. fsl_i2c_t i2c[2]; /* I2C Controllers */
  699. u8 res1[0x1300];
  700. duart83xx_t duart[2]; /* DUART */
  701. u8 res2[0x900];
  702. lbus83xx_t lbus; /* Local Bus Controller Registers */
  703. u8 res3[0x1000];
  704. spi8xxx_t spi; /* Serial Peripheral Interface */
  705. dma83xx_t dma; /* DMA */
  706. pciconf83xx_t pci_conf[1]; /* PCI Software Configuration Registers */
  707. u8 res4[0x80];
  708. ios83xx_t ios; /* Sequencer */
  709. pcictrl83xx_t pci_ctrl[1]; /* PCI Controller Control and Status Registers */
  710. u8 res5[0xa00];
  711. pex83xx_t pciexp[2]; /* PCI Express Controller */
  712. u8 res6[0xd000];
  713. sata83xx_t sata[4]; /* SATA Controller */
  714. u8 res7[0x7000];
  715. usb83xx_t usb[1]; /* USB DR Controller */
  716. tsec83xx_t tsec[2];
  717. u8 res8[0x8000];
  718. sdhc83xx_t sdhc; /* SDHC Controller */
  719. u8 res9[0x1000];
  720. security83xx_t security;
  721. u8 res10[0xA3000];
  722. serdes83xx_t serdes[2]; /* SerDes Registers */
  723. u8 res11[0xCE00];
  724. rom83xx_t rom; /* On Chip ROM */
  725. } immap_t;
  726. #elif defined(CONFIG_MPC8360)
  727. typedef struct immap {
  728. sysconf83xx_t sysconf; /* System configuration */
  729. wdt83xx_t wdt; /* Watch Dog Timer (WDT) Registers */
  730. rtclk83xx_t rtc; /* Real Time Clock Module Registers */
  731. rtclk83xx_t pit; /* Periodic Interval Timer */
  732. u8 res0[0x200];
  733. ipic83xx_t ipic; /* Integrated Programmable Interrupt Controller */
  734. arbiter83xx_t arbiter; /* System Arbiter Registers */
  735. reset83xx_t reset; /* Reset Module */
  736. clk83xx_t clk; /* System Clock Module */
  737. pmc83xx_t pmc; /* Power Management Control Module */
  738. qepi83xx_t qepi; /* QE Ports Interrupts Registers */
  739. u8 res1[0x300];
  740. u8 dll_ddr[0x100];
  741. u8 dll_lbc[0x100];
  742. u8 res2[0x200];
  743. qepio83xx_t qepio; /* QE Parallel I/O ports */
  744. qesba83xx_t qesba; /* QE Secondary Bus Access Windows */
  745. u8 res3[0x400];
  746. ddr83xx_t ddr; /* DDR Memory Controller Memory */
  747. fsl_i2c_t i2c[2]; /* I2C Controllers */
  748. u8 res4[0x1300];
  749. duart83xx_t duart[2]; /* DUART */
  750. u8 res5[0x900];
  751. lbus83xx_t lbus; /* Local Bus Controller Registers */
  752. u8 res6[0x2000];
  753. dma83xx_t dma; /* DMA */
  754. pciconf83xx_t pci_conf[1]; /* PCI Software Configuration Registers */
  755. u8 res7[128];
  756. ios83xx_t ios; /* Sequencer (IOS) */
  757. pcictrl83xx_t pci_ctrl[1]; /* PCI Controller Control and Status Registers */
  758. u8 res8[0x4A00];
  759. ddr83xx_t ddr_secondary; /* Secondary DDR Memory Controller Memory Map */
  760. u8 res9[0x22000];
  761. security83xx_t security;
  762. u8 res10[0xC0000];
  763. u8 qe[0x100000]; /* QE block */
  764. } immap_t;
  765. #elif defined(CONFIG_MPC832X)
  766. typedef struct immap {
  767. sysconf83xx_t sysconf; /* System configuration */
  768. wdt83xx_t wdt; /* Watch Dog Timer (WDT) Registers */
  769. rtclk83xx_t rtc; /* Real Time Clock Module Registers */
  770. rtclk83xx_t pit; /* Periodic Interval Timer */
  771. gtm83xx_t gtm[2]; /* Global Timers Module */
  772. ipic83xx_t ipic; /* Integrated Programmable Interrupt Controller */
  773. arbiter83xx_t arbiter; /* System Arbiter Registers */
  774. reset83xx_t reset; /* Reset Module */
  775. clk83xx_t clk; /* System Clock Module */
  776. pmc83xx_t pmc; /* Power Management Control Module */
  777. qepi83xx_t qepi; /* QE Ports Interrupts Registers */
  778. u8 res0[0x300];
  779. u8 dll_ddr[0x100];
  780. u8 dll_lbc[0x100];
  781. u8 res1[0x200];
  782. qepio83xx_t qepio; /* QE Parallel I/O ports */
  783. u8 res2[0x800];
  784. ddr83xx_t ddr; /* DDR Memory Controller Memory */
  785. fsl_i2c_t i2c[2]; /* I2C Controllers */
  786. u8 res3[0x1300];
  787. duart83xx_t duart[2]; /* DUART */
  788. u8 res4[0x900];
  789. lbus83xx_t lbus; /* Local Bus Controller Registers */
  790. u8 res5[0x2000];
  791. dma83xx_t dma; /* DMA */
  792. pciconf83xx_t pci_conf[1]; /* PCI Software Configuration Registers */
  793. u8 res6[128];
  794. ios83xx_t ios; /* Sequencer (IOS) */
  795. pcictrl83xx_t pci_ctrl[1]; /* PCI Controller Control and Status Registers */
  796. u8 res7[0x27A00];
  797. security83xx_t security;
  798. u8 res8[0xC0000];
  799. u8 qe[0x100000]; /* QE block */
  800. } immap_t;
  801. #endif
  802. #endif /* __IMMAP_83xx__ */