immap_83xx.h 25 KB

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