blob: df24a6e874c217b327e4a312400d1ab792421826 [file] [log] [blame]
Eran Libertyf046ccd2005-07-28 10:08:46 -05001/*
Dave Liu03051c32007-09-18 12:36:11 +08002 * (C) Copyright 2004-2007 Freescale Semiconductor, Inc.
Jon Loeligerde1d0a62005-08-01 13:20:47 -05003 *
Dave Liuf6eda7f2006-10-25 14:41:21 -05004 * MPC83xx Internal Memory Map
5 *
Dave Liue0803132006-12-07 21:11:58 +08006 * 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>
Dave Liuf6eda7f2006-10-25 14:41:21 -050011 *
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
Dave Liue0803132006-12-07 21:11:58 +080019 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
Dave Liuf6eda7f2006-10-25 14:41:21 -050020 * 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 *
Eran Libertyf046ccd2005-07-28 10:08:46 -050027 */
Dave Liuf6eda7f2006-10-25 14:41:21 -050028#ifndef __IMMAP_83xx__
29#define __IMMAP_83xx__
Eran Libertyf046ccd2005-07-28 10:08:46 -050030
31#include <asm/types.h>
Timur Tabibe5e6182006-11-03 19:15:00 -060032#include <asm/fsl_i2c.h>
Ben Warren04a9e112008-01-16 22:37:35 -050033#include <asm/mpc8xxx_spi.h>
Haiying Wang4e190b02008-10-29 11:05:55 -040034#include <asm/fsl_lbc.h>
Eran Libertyf046ccd2005-07-28 10:08:46 -050035
Jon Loeligerde1d0a62005-08-01 13:20:47 -050036/*
Dave Liue0803132006-12-07 21:11:58 +080037 * Local Access Window
Eran Libertyf046ccd2005-07-28 10:08:46 -050038 */
Dave Liuf6eda7f2006-10-25 14:41:21 -050039typedef struct law83xx {
Dave Liub7016522006-10-31 19:25:38 -060040 u32 bar; /* LBIU local access window base address register */
Dave Liub7016522006-10-31 19:25:38 -060041 u32 ar; /* LBIU local access window attribute register */
Dave Liuf6eda7f2006-10-25 14:41:21 -050042} law83xx_t;
Eran Libertyf046ccd2005-07-28 10:08:46 -050043
Jon Loeligerde1d0a62005-08-01 13:20:47 -050044/*
Dave Liue0803132006-12-07 21:11:58 +080045 * System configuration registers
Eran Libertyf046ccd2005-07-28 10:08:46 -050046 */
Dave Liuf6eda7f2006-10-25 14:41:21 -050047typedef struct sysconf83xx {
Dave Liub7016522006-10-31 19:25:38 -060048 u32 immrbar; /* Internal memory map base address register */
Eran Libertyf046ccd2005-07-28 10:08:46 -050049 u8 res0[0x04];
Dave Liub7016522006-10-31 19:25:38 -060050 u32 altcbar; /* Alternate configuration base address register */
Eran Libertyf046ccd2005-07-28 10:08:46 -050051 u8 res1[0x14];
Dave Liub7016522006-10-31 19:25:38 -060052 law83xx_t lblaw[4]; /* LBIU local access window */
Eran Libertyf046ccd2005-07-28 10:08:46 -050053 u8 res2[0x20];
Dave Liub7016522006-10-31 19:25:38 -060054 law83xx_t pcilaw[2]; /* PCI local access window */
Eran Libertyf046ccd2005-07-28 10:08:46 -050055 u8 res3[0x30];
Dave Liub7016522006-10-31 19:25:38 -060056 law83xx_t ddrlaw[2]; /* DDR local access window */
Eran Libertyf046ccd2005-07-28 10:08:46 -050057 u8 res4[0x50];
Dave Liub7016522006-10-31 19:25:38 -060058 u32 sgprl; /* System General Purpose Register Low */
59 u32 sgprh; /* System General Purpose Register High */
60 u32 spridr; /* System Part and Revision ID Register */
Eran Libertyf046ccd2005-07-28 10:08:46 -050061 u8 res5[0x04];
Dave Liub7016522006-10-31 19:25:38 -060062 u32 spcr; /* System Priority Configuration Register */
Dave Liue0803132006-12-07 21:11:58 +080063 u32 sicrl; /* System I/O Configuration Register Low */
64 u32 sicrh; /* System I/O Configuration Register High */
Nick Spence002d27c2008-08-22 23:52:40 -070065 u8 res6[0x04];
66 u32 sidcr0; /* System I/O Delay Configuration Register 0 */
67 u32 sidcr1; /* System I/O Delay Configuration Register 1 */
Dave Liu24c3aca2006-12-07 21:13:15 +080068 u32 ddrcdr; /* DDR Control Driver Register */
69 u32 ddrdsr; /* DDR Debug Status Register */
Dave Liu03051c32007-09-18 12:36:11 +080070 u32 obir; /* Output Buffer Impedance Register */
71 u8 res7[0xCC];
Dave Liuf6eda7f2006-10-25 14:41:21 -050072} sysconf83xx_t;
Eran Libertyf046ccd2005-07-28 10:08:46 -050073
Jon Loeligerde1d0a62005-08-01 13:20:47 -050074/*
Eran Libertyf046ccd2005-07-28 10:08:46 -050075 * Watch Dog Timer (WDT) Registers
76 */
Dave Liuf6eda7f2006-10-25 14:41:21 -050077typedef struct wdt83xx {
Jon Loeligerde1d0a62005-08-01 13:20:47 -050078 u8 res0[4];
Dave Liub7016522006-10-31 19:25:38 -060079 u32 swcrr; /* System watchdog control register */
80 u32 swcnr; /* System watchdog count register */
Jon Loeligerde1d0a62005-08-01 13:20:47 -050081 u8 res1[2];
Dave Liub7016522006-10-31 19:25:38 -060082 u16 swsrr; /* System watchdog service register */
Eran Libertyf046ccd2005-07-28 10:08:46 -050083 u8 res2[0xF0];
Dave Liuf6eda7f2006-10-25 14:41:21 -050084} wdt83xx_t;
Jon Loeligerde1d0a62005-08-01 13:20:47 -050085
Eran Libertyf046ccd2005-07-28 10:08:46 -050086/*
87 * RTC/PIT Module Registers
88 */
Dave Liuf6eda7f2006-10-25 14:41:21 -050089typedef struct rtclk83xx {
Dave Liub7016522006-10-31 19:25:38 -060090 u32 cnr; /* control register */
Dave Liub7016522006-10-31 19:25:38 -060091 u32 ldr; /* load register */
Dave Liub7016522006-10-31 19:25:38 -060092 u32 psr; /* prescale register */
Dave Liue0803132006-12-07 21:11:58 +080093 u32 ctr; /* counter value field register */
Dave Liub7016522006-10-31 19:25:38 -060094 u32 evr; /* event register */
Dave Liub7016522006-10-31 19:25:38 -060095 u32 alr; /* alarm register */
Eran Libertyf046ccd2005-07-28 10:08:46 -050096 u8 res0[0xE8];
Dave Liuf6eda7f2006-10-25 14:41:21 -050097} rtclk83xx_t;
Eran Libertyf046ccd2005-07-28 10:08:46 -050098
99/*
Dave Liue0803132006-12-07 21:11:58 +0800100 * Global timer module
Eran Libertyf046ccd2005-07-28 10:08:46 -0500101 */
Dave Liuf6eda7f2006-10-25 14:41:21 -0500102typedef struct gtm83xx {
Dave Liue0803132006-12-07 21:11:58 +0800103 u8 cfr1; /* Timer1/2 Configuration */
Dave Liub7016522006-10-31 19:25:38 -0600104 u8 res0[3];
Dave Liue0803132006-12-07 21:11:58 +0800105 u8 cfr2; /* Timer3/4 Configuration */
Dave Liub7016522006-10-31 19:25:38 -0600106 u8 res1[10];
Dave Liue0803132006-12-07 21:11:58 +0800107 u16 mdr1; /* Timer1 Mode Register */
108 u16 mdr2; /* Timer2 Mode Register */
109 u16 rfr1; /* Timer1 Reference Register */
110 u16 rfr2; /* Timer2 Reference Register */
111 u16 cpr1; /* Timer1 Capture Register */
112 u16 cpr2; /* Timer2 Capture Register */
113 u16 cnr1; /* Timer1 Counter Register */
114 u16 cnr2; /* Timer2 Counter Register */
115 u16 mdr3; /* Timer3 Mode Register */
116 u16 mdr4; /* Timer4 Mode Register */
117 u16 rfr3; /* Timer3 Reference Register */
118 u16 rfr4; /* Timer4 Reference Register */
119 u16 cpr3; /* Timer3 Capture Register */
120 u16 cpr4; /* Timer4 Capture Register */
121 u16 cnr3; /* Timer3 Counter Register */
122 u16 cnr4; /* Timer4 Counter Register */
123 u16 evr1; /* Timer1 Event Register */
124 u16 evr2; /* Timer2 Event Register */
125 u16 evr3; /* Timer3 Event Register */
126 u16 evr4; /* Timer4 Event Register */
127 u16 psr1; /* Timer1 Prescaler Register */
128 u16 psr2; /* Timer2 Prescaler Register */
129 u16 psr3; /* Timer3 Prescaler Register */
130 u16 psr4; /* Timer4 Prescaler Register */
Dave Liub7016522006-10-31 19:25:38 -0600131 u8 res[0xC0];
Dave Liuf6eda7f2006-10-25 14:41:21 -0500132} gtm83xx_t;
Eran Libertyf046ccd2005-07-28 10:08:46 -0500133
134/*
135 * Integrated Programmable Interrupt Controller
136 */
Dave Liuf6eda7f2006-10-25 14:41:21 -0500137typedef struct ipic83xx {
Dave Liue0803132006-12-07 21:11:58 +0800138 u32 sicfr; /* System Global Interrupt Configuration Register */
139 u32 sivcr; /* System Global Interrupt Vector Register */
140 u32 sipnr_h; /* System Internal Interrupt Pending Register - High */
141 u32 sipnr_l; /* System Internal Interrupt Pending Register - Low */
142 u32 siprr_a; /* System Internal Interrupt Group A Priority Register */
Dave Liub7016522006-10-31 19:25:38 -0600143 u8 res0[8];
Dave Liue0803132006-12-07 21:11:58 +0800144 u32 siprr_d; /* System Internal Interrupt Group D Priority Register */
145 u32 simsr_h; /* System Internal Interrupt Mask Register - High */
146 u32 simsr_l; /* System Internal Interrupt Mask Register - Low */
Dave Liub7016522006-10-31 19:25:38 -0600147 u8 res1[4];
Dave Liue0803132006-12-07 21:11:58 +0800148 u32 sepnr; /* System External Interrupt Pending Register */
149 u32 smprr_a; /* System Mixed Interrupt Group A Priority Register */
150 u32 smprr_b; /* System Mixed Interrupt Group B Priority Register */
151 u32 semsr; /* System External Interrupt Mask Register */
152 u32 secnr; /* System External Interrupt Control Register */
153 u32 sersr; /* System Error Status Register */
154 u32 sermr; /* System Error Mask Register */
155 u32 sercr; /* System Error Control Register */
Dave Liub7016522006-10-31 19:25:38 -0600156 u8 res2[4];
Dave Liue0803132006-12-07 21:11:58 +0800157 u32 sifcr_h; /* System Internal Interrupt Force Register - High */
158 u32 sifcr_l; /* System Internal Interrupt Force Register - Low */
159 u32 sefcr; /* System External Interrupt Force Register */
160 u32 serfr; /* System Error Force Register */
Dave Liub7016522006-10-31 19:25:38 -0600161 u32 scvcr; /* System Critical Interrupt Vector Register */
Dave Liub7016522006-10-31 19:25:38 -0600162 u32 smvcr; /* System Management Interrupt Vector Register */
Dave Liub7016522006-10-31 19:25:38 -0600163 u8 res3[0x98];
Dave Liuf6eda7f2006-10-25 14:41:21 -0500164} ipic83xx_t;
Eran Libertyf046ccd2005-07-28 10:08:46 -0500165
166/*
167 * System Arbiter Registers
168 */
Dave Liuf6eda7f2006-10-25 14:41:21 -0500169typedef struct arbiter83xx {
Dave Liub7016522006-10-31 19:25:38 -0600170 u32 acr; /* Arbiter Configuration Register */
Dave Liub7016522006-10-31 19:25:38 -0600171 u32 atr; /* Arbiter Timers Register */
Eran Libertyf046ccd2005-07-28 10:08:46 -0500172 u8 res[4];
Dave Liue0803132006-12-07 21:11:58 +0800173 u32 aer; /* Arbiter Event Register */
174 u32 aidr; /* Arbiter Interrupt Definition Register */
175 u32 amr; /* Arbiter Mask Register */
Dave Liub7016522006-10-31 19:25:38 -0600176 u32 aeatr; /* Arbiter Event Attributes Register */
Dave Liub7016522006-10-31 19:25:38 -0600177 u32 aeadr; /* Arbiter Event Address Register */
Dave Liue0803132006-12-07 21:11:58 +0800178 u32 aerr; /* Arbiter Event Response Register */
Eran Libertyf046ccd2005-07-28 10:08:46 -0500179 u8 res1[0xDC];
Dave Liuf6eda7f2006-10-25 14:41:21 -0500180} arbiter83xx_t;
Eran Libertyf046ccd2005-07-28 10:08:46 -0500181
182/*
183 * Reset Module
184 */
Dave Liuf6eda7f2006-10-25 14:41:21 -0500185typedef struct reset83xx {
Dave Liue0803132006-12-07 21:11:58 +0800186 u32 rcwl; /* Reset Configuration Word Low Register */
187 u32 rcwh; /* Reset Configuration Word High Register */
Dave Liub7016522006-10-31 19:25:38 -0600188 u8 res0[8];
Dave Liue0803132006-12-07 21:11:58 +0800189 u32 rsr; /* Reset Status Register */
190 u32 rmr; /* Reset Mode Register */
191 u32 rpr; /* Reset protection Register */
192 u32 rcr; /* Reset Control Register */
193 u32 rcer; /* Reset Control Enable Register */
Dave Liub7016522006-10-31 19:25:38 -0600194 u8 res1[0xDC];
Dave Liuf6eda7f2006-10-25 14:41:21 -0500195} reset83xx_t;
Jon Loeligerde1d0a62005-08-01 13:20:47 -0500196
Dave Liue0803132006-12-07 21:11:58 +0800197/*
198 * Clock Module
199 */
Dave Liuf6eda7f2006-10-25 14:41:21 -0500200typedef struct clk83xx {
Dave Liue0803132006-12-07 21:11:58 +0800201 u32 spmr; /* system PLL mode Register */
202 u32 occr; /* output clock control Register */
203 u32 sccr; /* system clock control Register */
Dave Liub7016522006-10-31 19:25:38 -0600204 u8 res0[0xF4];
Dave Liuf6eda7f2006-10-25 14:41:21 -0500205} clk83xx_t;
Eran Libertyf046ccd2005-07-28 10:08:46 -0500206
207/*
208 * Power Management Control Module
209 */
Dave Liuf6eda7f2006-10-25 14:41:21 -0500210typedef struct pmc83xx {
Dave Liue0803132006-12-07 21:11:58 +0800211 u32 pmccr; /* PMC Configuration Register */
212 u32 pmcer; /* PMC Event Register */
213 u32 pmcmr; /* PMC Mask Register */
Scott Woodd87c57b2007-04-16 14:31:55 -0500214 u32 pmccr1; /* PMC Configuration Register 1 */
215 u32 pmccr2; /* PMC Configuration Register 2 */
216 u8 res0[0xEC];
Dave Liuf6eda7f2006-10-25 14:41:21 -0500217} pmc83xx_t;
Eran Libertyf046ccd2005-07-28 10:08:46 -0500218
219/*
Dave Liue0803132006-12-07 21:11:58 +0800220 * General purpose I/O module
Eran Libertyf046ccd2005-07-28 10:08:46 -0500221 */
Dave Liuf6eda7f2006-10-25 14:41:21 -0500222typedef struct gpio83xx {
Dave Liub7016522006-10-31 19:25:38 -0600223 u32 dir; /* direction register */
224 u32 odr; /* open drain register */
225 u32 dat; /* data register */
226 u32 ier; /* interrupt event register */
227 u32 imr; /* interrupt mask register */
228 u32 icr; /* external interrupt control register */
Eran Libertyf046ccd2005-07-28 10:08:46 -0500229 u8 res0[0xE8];
Dave Liuf6eda7f2006-10-25 14:41:21 -0500230} gpio83xx_t;
Dave Liub7016522006-10-31 19:25:38 -0600231
Dave Liub7016522006-10-31 19:25:38 -0600232/*
233 * QE Ports Interrupts Registers
234 */
235typedef struct qepi83xx {
236 u8 res0[0xC];
237 u32 qepier; /* QE Ports Interrupt Event Register */
Dave Liub7016522006-10-31 19:25:38 -0600238 u32 qepimr; /* QE Ports Interrupt Mask Register */
Dave Liub7016522006-10-31 19:25:38 -0600239 u32 qepicr; /* QE Ports Interrupt Control Register */
Dave Liub7016522006-10-31 19:25:38 -0600240 u8 res1[0xE8];
241} qepi83xx_t;
242
243/*
Dave Liue0803132006-12-07 21:11:58 +0800244 * QE Parallel I/O Ports
Dave Liub7016522006-10-31 19:25:38 -0600245 */
246typedef struct gpio_n {
247 u32 podr; /* Open Drain Register */
248 u32 pdat; /* Data Register */
249 u32 dir1; /* direction register 1 */
250 u32 dir2; /* direction register 2 */
251 u32 ppar1; /* Pin Assignment Register 1 */
252 u32 ppar2; /* Pin Assignment Register 2 */
253} gpio_n_t;
254
Dave Liue0803132006-12-07 21:11:58 +0800255typedef struct qegpio83xx {
Dave Liub7016522006-10-31 19:25:38 -0600256 gpio_n_t ioport[0x7];
257 u8 res0[0x358];
Dave Liue0803132006-12-07 21:11:58 +0800258} qepio83xx_t;
Dave Liub7016522006-10-31 19:25:38 -0600259
260/*
261 * QE Secondary Bus Access Windows
262 */
Dave Liub7016522006-10-31 19:25:38 -0600263typedef struct qesba83xx {
264 u32 lbmcsar; /* Local bus memory controller start address */
Dave Liub7016522006-10-31 19:25:38 -0600265 u32 sdmcsar; /* Secondary DDR memory controller start address */
Dave Liub7016522006-10-31 19:25:38 -0600266 u8 res0[0x38];
267 u32 lbmcear; /* Local bus memory controller end address */
Dave Liub7016522006-10-31 19:25:38 -0600268 u32 sdmcear; /* Secondary DDR memory controller end address */
Dave Liub7016522006-10-31 19:25:38 -0600269 u8 res1[0x38];
Dave Liue0803132006-12-07 21:11:58 +0800270 u32 lbmcar; /* Local bus memory controller attributes */
Dave Liub7016522006-10-31 19:25:38 -0600271 u32 sdmcar; /* Secondary DDR memory controller attributes */
Dave Liue0803132006-12-07 21:11:58 +0800272 u8 res2[0x378];
Dave Liub7016522006-10-31 19:25:38 -0600273} qesba83xx_t;
Eran Libertyf046ccd2005-07-28 10:08:46 -0500274
Jon Loeligerde1d0a62005-08-01 13:20:47 -0500275/*
Eran Libertyf046ccd2005-07-28 10:08:46 -0500276 * DDR Memory Controller Memory Map
277 */
Dave Liub7016522006-10-31 19:25:38 -0600278typedef struct ddr_cs_bnds {
Jon Loeligerde1d0a62005-08-01 13:20:47 -0500279 u32 csbnds;
Dave Liub7016522006-10-31 19:25:38 -0600280 u8 res0[4];
Eran Libertyf046ccd2005-07-28 10:08:46 -0500281} ddr_cs_bnds_t;
282
Dave Liuf6eda7f2006-10-25 14:41:21 -0500283typedef struct ddr83xx {
Dave Liue0803132006-12-07 21:11:58 +0800284 ddr_cs_bnds_t csbnds[4];/* Chip Select x Memory Bounds */
Jon Loeligerde1d0a62005-08-01 13:20:47 -0500285 u8 res0[0x60];
Dave Liue0803132006-12-07 21:11:58 +0800286 u32 cs_config[4]; /* Chip Select x Configuration */
Dave Liu24c3aca2006-12-07 21:13:15 +0800287 u8 res1[0x70];
288 u32 timing_cfg_3; /* SDRAM Timing Configuration 3 */
289 u32 timing_cfg_0; /* SDRAM Timing Configuration 0 */
Dave Liue0803132006-12-07 21:11:58 +0800290 u32 timing_cfg_1; /* SDRAM Timing Configuration 1 */
291 u32 timing_cfg_2; /* SDRAM Timing Configuration 2 */
292 u32 sdram_cfg; /* SDRAM Control Configuration */
Dave Liu24c3aca2006-12-07 21:13:15 +0800293 u32 sdram_cfg2; /* SDRAM Control Configuration 2 */
Dave Liue0803132006-12-07 21:11:58 +0800294 u32 sdram_mode; /* SDRAM Mode Configuration */
Dave Liu24c3aca2006-12-07 21:13:15 +0800295 u32 sdram_mode2; /* SDRAM Mode Configuration 2 */
296 u32 sdram_md_cntl; /* SDRAM Mode Control */
Dave Liue0803132006-12-07 21:11:58 +0800297 u32 sdram_interval; /* SDRAM Interval Configuration */
Dave Liu24c3aca2006-12-07 21:13:15 +0800298 u32 ddr_data_init; /* SDRAM Data Initialization */
299 u8 res2[4];
300 u32 sdram_clk_cntl; /* SDRAM Clock Control */
301 u8 res3[0x14];
302 u32 ddr_init_addr; /* DDR training initialization address */
303 u32 ddr_init_ext_addr; /* DDR training initialization extended address */
304 u8 res4[0xAA8];
305 u32 ddr_ip_rev1; /* DDR IP block revision 1 */
306 u32 ddr_ip_rev2; /* DDR IP block revision 2 */
307 u8 res5[0x200];
Dave Liue0803132006-12-07 21:11:58 +0800308 u32 data_err_inject_hi; /* Memory Data Path Error Injection Mask High */
309 u32 data_err_inject_lo; /* Memory Data Path Error Injection Mask Low */
310 u32 ecc_err_inject; /* Memory Data Path Error Injection Mask ECC */
Dave Liu24c3aca2006-12-07 21:13:15 +0800311 u8 res6[0x14];
Dave Liue0803132006-12-07 21:11:58 +0800312 u32 capture_data_hi; /* Memory Data Path Read Capture High */
313 u32 capture_data_lo; /* Memory Data Path Read Capture Low */
314 u32 capture_ecc; /* Memory Data Path Read Capture ECC */
Dave Liu24c3aca2006-12-07 21:13:15 +0800315 u8 res7[0x14];
Dave Liue0803132006-12-07 21:11:58 +0800316 u32 err_detect; /* Memory Error Detect */
317 u32 err_disable; /* Memory Error Disable */
318 u32 err_int_en; /* Memory Error Interrupt Enable */
319 u32 capture_attributes; /* Memory Error Attributes Capture */
320 u32 capture_address; /* Memory Error Address Capture */
321 u32 capture_ext_address;/* Memory Error Extended Address Capture */
322 u32 err_sbe; /* Memory Single-Bit ECC Error Management */
Dave Liu24c3aca2006-12-07 21:13:15 +0800323 u8 res8[0xA4];
Eran Libertyf046ccd2005-07-28 10:08:46 -0500324 u32 debug_reg;
Dave Liu24c3aca2006-12-07 21:13:15 +0800325 u8 res9[0xFC];
Dave Liuf6eda7f2006-10-25 14:41:21 -0500326} ddr83xx_t;
Eran Libertyf046ccd2005-07-28 10:08:46 -0500327
328/*
Eran Libertyf046ccd2005-07-28 10:08:46 -0500329 * DUART
330 */
Dave Liub7016522006-10-31 19:25:38 -0600331typedef struct duart83xx {
Dave Liue0803132006-12-07 21:11:58 +0800332 u8 urbr_ulcr_udlb; /* combined register for URBR, UTHR and UDLB */
333 u8 uier_udmb; /* combined register for UIER and UDMB */
334 u8 uiir_ufcr_uafr; /* combined register for UIIR, UFCR and UAFR */
335 u8 ulcr; /* line control register */
336 u8 umcr; /* MODEM control register */
337 u8 ulsr; /* line status register */
338 u8 umsr; /* MODEM status register */
339 u8 uscr; /* scratch register */
Jon Loeligerde1d0a62005-08-01 13:20:47 -0500340 u8 res0[8];
Dave Liue0803132006-12-07 21:11:58 +0800341 u8 udsr; /* DMA status register */
Jon Loeligerde1d0a62005-08-01 13:20:47 -0500342 u8 res1[3];
343 u8 res2[0xEC];
Dave Liuf6eda7f2006-10-25 14:41:21 -0500344} duart83xx_t;
Eran Libertyf046ccd2005-07-28 10:08:46 -0500345
346/*
Marian Balakowicz61f25152006-03-14 16:14:48 +0100347 * DMA/Messaging Unit
348 */
Dave Liuf6eda7f2006-10-25 14:41:21 -0500349typedef struct dma83xx {
Dave Liub7016522006-10-31 19:25:38 -0600350 u32 res0[0xC]; /* 0x0-0x29 reseverd */
351 u32 omisr; /* 0x30 Outbound message interrupt status register */
352 u32 omimr; /* 0x34 Outbound message interrupt mask register */
353 u32 res1[0x6]; /* 0x38-0x49 reserved */
Dave Liub7016522006-10-31 19:25:38 -0600354 u32 imr0; /* 0x50 Inbound message register 0 */
355 u32 imr1; /* 0x54 Inbound message register 1 */
356 u32 omr0; /* 0x58 Outbound message register 0 */
357 u32 omr1; /* 0x5C Outbound message register 1 */
Dave Liub7016522006-10-31 19:25:38 -0600358 u32 odr; /* 0x60 Outbound doorbell register */
359 u32 res2; /* 0x64-0x67 reserved */
360 u32 idr; /* 0x68 Inbound doorbell register */
361 u32 res3[0x5]; /* 0x6C-0x79 reserved */
Dave Liub7016522006-10-31 19:25:38 -0600362 u32 imisr; /* 0x80 Inbound message interrupt status register */
363 u32 imimr; /* 0x84 Inbound message interrupt mask register */
364 u32 res4[0x1E]; /* 0x88-0x99 reserved */
Dave Liub7016522006-10-31 19:25:38 -0600365 u32 dmamr0; /* 0x100 DMA 0 mode register */
366 u32 dmasr0; /* 0x104 DMA 0 status register */
367 u32 dmacdar0; /* 0x108 DMA 0 current descriptor address register */
368 u32 res5; /* 0x10C reserved */
369 u32 dmasar0; /* 0x110 DMA 0 source address register */
370 u32 res6; /* 0x114 reserved */
371 u32 dmadar0; /* 0x118 DMA 0 destination address register */
372 u32 res7; /* 0x11C reserved */
373 u32 dmabcr0; /* 0x120 DMA 0 byte count register */
374 u32 dmandar0; /* 0x124 DMA 0 next descriptor address register */
375 u32 res8[0x16]; /* 0x128-0x179 reserved */
Dave Liub7016522006-10-31 19:25:38 -0600376 u32 dmamr1; /* 0x180 DMA 1 mode register */
377 u32 dmasr1; /* 0x184 DMA 1 status register */
378 u32 dmacdar1; /* 0x188 DMA 1 current descriptor address register */
379 u32 res9; /* 0x18C reserved */
380 u32 dmasar1; /* 0x190 DMA 1 source address register */
381 u32 res10; /* 0x194 reserved */
382 u32 dmadar1; /* 0x198 DMA 1 destination address register */
383 u32 res11; /* 0x19C reserved */
384 u32 dmabcr1; /* 0x1A0 DMA 1 byte count register */
385 u32 dmandar1; /* 0x1A4 DMA 1 next descriptor address register */
386 u32 res12[0x16]; /* 0x1A8-0x199 reserved */
Dave Liub7016522006-10-31 19:25:38 -0600387 u32 dmamr2; /* 0x200 DMA 2 mode register */
388 u32 dmasr2; /* 0x204 DMA 2 status register */
389 u32 dmacdar2; /* 0x208 DMA 2 current descriptor address register */
390 u32 res13; /* 0x20C reserved */
391 u32 dmasar2; /* 0x210 DMA 2 source address register */
392 u32 res14; /* 0x214 reserved */
393 u32 dmadar2; /* 0x218 DMA 2 destination address register */
394 u32 res15; /* 0x21C reserved */
395 u32 dmabcr2; /* 0x220 DMA 2 byte count register */
396 u32 dmandar2; /* 0x224 DMA 2 next descriptor address register */
397 u32 res16[0x16]; /* 0x228-0x279 reserved */
Dave Liub7016522006-10-31 19:25:38 -0600398 u32 dmamr3; /* 0x280 DMA 3 mode register */
399 u32 dmasr3; /* 0x284 DMA 3 status register */
400 u32 dmacdar3; /* 0x288 DMA 3 current descriptor address register */
401 u32 res17; /* 0x28C reserved */
402 u32 dmasar3; /* 0x290 DMA 3 source address register */
403 u32 res18; /* 0x294 reserved */
404 u32 dmadar3; /* 0x298 DMA 3 destination address register */
405 u32 res19; /* 0x29C reserved */
406 u32 dmabcr3; /* 0x2A0 DMA 3 byte count register */
407 u32 dmandar3; /* 0x2A4 DMA 3 next descriptor address register */
Dave Liub7016522006-10-31 19:25:38 -0600408 u32 dmagsr; /* 0x2A8 DMA general status register */
409 u32 res20[0x15]; /* 0x2AC-0x2FF reserved */
Dave Liuf6eda7f2006-10-25 14:41:21 -0500410} dma83xx_t;
Eran Libertyf046ccd2005-07-28 10:08:46 -0500411
412/*
413 * PCI Software Configuration Registers
414 */
Dave Liuf6eda7f2006-10-25 14:41:21 -0500415typedef struct pciconf83xx {
Dave Liub7016522006-10-31 19:25:38 -0600416 u32 config_address;
Eran Libertyf046ccd2005-07-28 10:08:46 -0500417 u32 config_data;
418 u32 int_ack;
Dave Liub7016522006-10-31 19:25:38 -0600419 u8 res[116];
Dave Liuf6eda7f2006-10-25 14:41:21 -0500420} pciconf83xx_t;
Eran Libertyf046ccd2005-07-28 10:08:46 -0500421
422/*
423 * PCI Outbound Translation Register
424 */
425typedef struct pci_outbound_window {
Dave Liub7016522006-10-31 19:25:38 -0600426 u32 potar;
427 u8 res0[4];
428 u32 pobar;
429 u8 res1[4];
430 u32 pocmr;
431 u8 res2[4];
Dave Liuf6eda7f2006-10-25 14:41:21 -0500432} pot83xx_t;
Dave Liub7016522006-10-31 19:25:38 -0600433
Eran Libertyf046ccd2005-07-28 10:08:46 -0500434/*
435 * Sequencer
Jon Loeligerde1d0a62005-08-01 13:20:47 -0500436 */
Dave Liuf6eda7f2006-10-25 14:41:21 -0500437typedef struct ios83xx {
Dave Liub7016522006-10-31 19:25:38 -0600438 pot83xx_t pot[6];
Dave Liub7016522006-10-31 19:25:38 -0600439 u8 res0[0x60];
440 u32 pmcr;
441 u8 res1[4];
442 u32 dtcr;
443 u8 res2[4];
Dave Liuf6eda7f2006-10-25 14:41:21 -0500444} ios83xx_t;
Eran Libertyf046ccd2005-07-28 10:08:46 -0500445
446/*
447 * PCI Controller Control and Status Registers
448 */
Dave Liuf6eda7f2006-10-25 14:41:21 -0500449typedef struct pcictrl83xx {
Dave Liub7016522006-10-31 19:25:38 -0600450 u32 esr;
Dave Liub7016522006-10-31 19:25:38 -0600451 u32 ecdr;
Eran Libertyf046ccd2005-07-28 10:08:46 -0500452 u32 eer;
Dave Liub7016522006-10-31 19:25:38 -0600453 u32 eatcr;
Dave Liub7016522006-10-31 19:25:38 -0600454 u32 eacr;
455 u32 eeacr;
Dave Liub7016522006-10-31 19:25:38 -0600456 u32 edlcr;
457 u32 edhcr;
Dave Liub7016522006-10-31 19:25:38 -0600458 u32 gcr;
459 u32 ecr;
460 u32 gsr;
461 u8 res0[12];
462 u32 pitar2;
463 u8 res1[4];
464 u32 pibar2;
465 u32 piebar2;
466 u32 piwar2;
467 u8 res2[4];
468 u32 pitar1;
469 u8 res3[4];
470 u32 pibar1;
471 u32 piebar1;
472 u32 piwar1;
473 u8 res4[4];
474 u32 pitar0;
475 u8 res5[4];
476 u32 pibar0;
477 u8 res6[4];
478 u32 piwar0;
479 u8 res7[132];
Dave Liuf6eda7f2006-10-25 14:41:21 -0500480} pcictrl83xx_t;
Eran Libertyf046ccd2005-07-28 10:08:46 -0500481
482/*
Jon Loeligerde1d0a62005-08-01 13:20:47 -0500483 * USB
Eran Libertyf046ccd2005-07-28 10:08:46 -0500484 */
Dave Liuf6eda7f2006-10-25 14:41:21 -0500485typedef struct usb83xx {
Scott Woodd87c57b2007-04-16 14:31:55 -0500486 u8 fixme[0x1000];
Dave Liuf6eda7f2006-10-25 14:41:21 -0500487} usb83xx_t;
Eran Libertyf046ccd2005-07-28 10:08:46 -0500488
489/*
490 * TSEC
491 */
Dave Liuf6eda7f2006-10-25 14:41:21 -0500492typedef struct tsec83xx {
Eran Libertyf046ccd2005-07-28 10:08:46 -0500493 u8 fixme[0x1000];
Dave Liuf6eda7f2006-10-25 14:41:21 -0500494} tsec83xx_t;
Eran Libertyf046ccd2005-07-28 10:08:46 -0500495
496/*
497 * Security
498 */
Dave Liuf6eda7f2006-10-25 14:41:21 -0500499typedef struct security83xx {
Eran Libertyf046ccd2005-07-28 10:08:46 -0500500 u8 fixme[0x10000];
Dave Liuf6eda7f2006-10-25 14:41:21 -0500501} security83xx_t;
Eran Libertyf046ccd2005-07-28 10:08:46 -0500502
Dave Liu03051c32007-09-18 12:36:11 +0800503/*
504 * PCI Express
505 */
506typedef struct pex83xx {
507 u8 fixme[0x1000];
508} pex83xx_t;
509
510/*
511 * SATA
512 */
513typedef struct sata83xx {
514 u8 fixme[0x1000];
515} sata83xx_t;
516
517/*
518 * eSDHC
519 */
520typedef struct sdhc83xx {
521 u8 fixme[0x1000];
522} sdhc83xx_t;
523
524/*
525 * SerDes
526 */
527typedef struct serdes83xx {
528 u8 fixme[0x100];
529} serdes83xx_t;
530
531/*
532 * On Chip ROM
533 */
534typedef struct rom83xx {
535 u8 mem[0x10000];
536} rom83xx_t;
537
Dave Liu555da612007-09-18 12:36:58 +0800538/*
539 * TDM
540 */
541typedef struct tdm83xx {
542 u8 fixme[0x200];
543} tdm83xx_t;
544
545/*
546 * TDM DMAC
547 */
548typedef struct tdmdmac83xx {
549 u8 fixme[0x2000];
550} tdmdmac83xx_t;
551
Kumar Gala3e78a312007-01-30 14:08:30 -0600552#if defined(CONFIG_MPC834X)
Eran Libertyf046ccd2005-07-28 10:08:46 -0500553typedef struct immap {
Dave Liue0803132006-12-07 21:11:58 +0800554 sysconf83xx_t sysconf; /* System configuration */
555 wdt83xx_t wdt; /* Watch Dog Timer (WDT) Registers */
556 rtclk83xx_t rtc; /* Real Time Clock Module Registers */
557 rtclk83xx_t pit; /* Periodic Interval Timer */
558 gtm83xx_t gtm[2]; /* Global Timers Module */
559 ipic83xx_t ipic; /* Integrated Programmable Interrupt Controller */
560 arbiter83xx_t arbiter; /* System Arbiter Registers */
561 reset83xx_t reset; /* Reset Module */
562 clk83xx_t clk; /* System Clock Module */
563 pmc83xx_t pmc; /* Power Management Control Module */
564 gpio83xx_t gpio[2]; /* General purpose I/O module */
565 u8 res0[0x200];
566 u8 dll_ddr[0x100];
567 u8 dll_lbc[0x100];
568 u8 res1[0xE00];
569 ddr83xx_t ddr; /* DDR Memory Controller Memory */
570 fsl_i2c_t i2c[2]; /* I2C Controllers */
571 u8 res2[0x1300];
572 duart83xx_t duart[2]; /* DUART */
573 u8 res3[0x900];
Haiying Wang4e190b02008-10-29 11:05:55 -0400574 fsl_lbus_t lbus; /* Local Bus Controller Registers */
Dave Liue0803132006-12-07 21:11:58 +0800575 u8 res4[0x1000];
Ben Warren04a9e112008-01-16 22:37:35 -0500576 spi8xxx_t spi; /* Serial Peripheral Interface */
Dave Liue0803132006-12-07 21:11:58 +0800577 dma83xx_t dma; /* DMA */
578 pciconf83xx_t pci_conf[2]; /* PCI Software Configuration Registers */
579 ios83xx_t ios; /* Sequencer */
580 pcictrl83xx_t pci_ctrl[2]; /* PCI Controller Control and Status Registers */
581 u8 res5[0x19900];
Scott Woodd87c57b2007-04-16 14:31:55 -0500582 usb83xx_t usb[2];
583 tsec83xx_t tsec[2];
584 u8 res6[0xA000];
585 security83xx_t security;
586 u8 res7[0xC0000];
587} immap_t;
588
Dave Liu555da612007-09-18 12:36:58 +0800589#elif defined(CONFIG_MPC8313)
Scott Woodd87c57b2007-04-16 14:31:55 -0500590typedef struct immap {
591 sysconf83xx_t sysconf; /* System configuration */
592 wdt83xx_t wdt; /* Watch Dog Timer (WDT) Registers */
593 rtclk83xx_t rtc; /* Real Time Clock Module Registers */
594 rtclk83xx_t pit; /* Periodic Interval Timer */
595 gtm83xx_t gtm[2]; /* Global Timers Module */
596 ipic83xx_t ipic; /* Integrated Programmable Interrupt Controller */
597 arbiter83xx_t arbiter; /* System Arbiter Registers */
598 reset83xx_t reset; /* Reset Module */
599 clk83xx_t clk; /* System Clock Module */
600 pmc83xx_t pmc; /* Power Management Control Module */
601 gpio83xx_t gpio[1]; /* General purpose I/O module */
602 u8 res0[0x1300];
603 ddr83xx_t ddr; /* DDR Memory Controller Memory */
604 fsl_i2c_t i2c[2]; /* I2C Controllers */
605 u8 res1[0x1300];
606 duart83xx_t duart[2]; /* DUART */
607 u8 res2[0x900];
Haiying Wang4e190b02008-10-29 11:05:55 -0400608 fsl_lbus_t lbus; /* Local Bus Controller Registers */
Scott Woodd87c57b2007-04-16 14:31:55 -0500609 u8 res3[0x1000];
Ben Warren04a9e112008-01-16 22:37:35 -0500610 spi8xxx_t spi; /* Serial Peripheral Interface */
Scott Woodd87c57b2007-04-16 14:31:55 -0500611 dma83xx_t dma; /* DMA */
612 pciconf83xx_t pci_conf[1]; /* PCI Software Configuration Registers */
613 u8 res4[0x80];
614 ios83xx_t ios; /* Sequencer */
615 pcictrl83xx_t pci_ctrl[1]; /* PCI Controller Control and Status Registers */
616 u8 res5[0x1aa00];
617 usb83xx_t usb[1];
Dave Liue0803132006-12-07 21:11:58 +0800618 tsec83xx_t tsec[2];
619 u8 res6[0xA000];
620 security83xx_t security;
621 u8 res7[0xC0000];
Eran Libertyf046ccd2005-07-28 10:08:46 -0500622} immap_t;
623
Dave Liu555da612007-09-18 12:36:58 +0800624#elif defined(CONFIG_MPC8315)
625typedef struct immap {
626 sysconf83xx_t sysconf; /* System configuration */
627 wdt83xx_t wdt; /* Watch Dog Timer (WDT) Registers */
628 rtclk83xx_t rtc; /* Real Time Clock Module Registers */
629 rtclk83xx_t pit; /* Periodic Interval Timer */
630 gtm83xx_t gtm[2]; /* Global Timers Module */
631 ipic83xx_t ipic; /* Integrated Programmable Interrupt Controller */
632 arbiter83xx_t arbiter; /* System Arbiter Registers */
633 reset83xx_t reset; /* Reset Module */
634 clk83xx_t clk; /* System Clock Module */
635 pmc83xx_t pmc; /* Power Management Control Module */
636 gpio83xx_t gpio[1]; /* General purpose I/O module */
637 u8 res0[0x1300];
638 ddr83xx_t ddr; /* DDR Memory Controller Memory */
639 fsl_i2c_t i2c[2]; /* I2C Controllers */
640 u8 res1[0x1300];
641 duart83xx_t duart[2]; /* DUART */
642 u8 res2[0x900];
Haiying Wang4e190b02008-10-29 11:05:55 -0400643 fsl_lbus_t lbus; /* Local Bus Controller Registers */
Dave Liu555da612007-09-18 12:36:58 +0800644 u8 res3[0x1000];
Ben Warren04a9e112008-01-16 22:37:35 -0500645 spi8xxx_t spi; /* Serial Peripheral Interface */
Dave Liu555da612007-09-18 12:36:58 +0800646 dma83xx_t dma; /* DMA */
647 pciconf83xx_t pci_conf[1]; /* PCI Software Configuration Registers */
648 u8 res4[0x80];
649 ios83xx_t ios; /* Sequencer */
650 pcictrl83xx_t pci_ctrl[1]; /* PCI Controller Control and Status Registers */
651 u8 res5[0xa00];
652 pex83xx_t pciexp[2]; /* PCI Express Controller */
653 u8 res6[0xb000];
654 tdm83xx_t tdm; /* TDM Controller */
655 u8 res7[0x1e00];
656 sata83xx_t sata[2]; /* SATA Controller */
657 u8 res8[0x9000];
658 usb83xx_t usb[1]; /* USB DR Controller */
659 tsec83xx_t tsec[2];
660 u8 res9[0x6000];
661 tdmdmac83xx_t tdmdmac; /* TDM DMAC */
662 u8 res10[0x2000];
663 security83xx_t security;
664 u8 res11[0xA3000];
665 serdes83xx_t serdes[1]; /* SerDes Registers */
666 u8 res12[0x1CF00];
667} immap_t;
668
Dave Liu03051c32007-09-18 12:36:11 +0800669#elif defined(CONFIG_MPC837X)
670typedef struct immap {
671 sysconf83xx_t sysconf; /* System configuration */
672 wdt83xx_t wdt; /* Watch Dog Timer (WDT) Registers */
673 rtclk83xx_t rtc; /* Real Time Clock Module Registers */
674 rtclk83xx_t pit; /* Periodic Interval Timer */
675 gtm83xx_t gtm[2]; /* Global Timers Module */
676 ipic83xx_t ipic; /* Integrated Programmable Interrupt Controller */
677 arbiter83xx_t arbiter; /* System Arbiter Registers */
678 reset83xx_t reset; /* Reset Module */
679 clk83xx_t clk; /* System Clock Module */
680 pmc83xx_t pmc; /* Power Management Control Module */
681 gpio83xx_t gpio[2]; /* General purpose I/O module */
682 u8 res0[0x1200];
683 ddr83xx_t ddr; /* DDR Memory Controller Memory */
684 fsl_i2c_t i2c[2]; /* I2C Controllers */
685 u8 res1[0x1300];
686 duart83xx_t duart[2]; /* DUART */
687 u8 res2[0x900];
Haiying Wang4e190b02008-10-29 11:05:55 -0400688 fsl_lbus_t lbus; /* Local Bus Controller Registers */
Dave Liu03051c32007-09-18 12:36:11 +0800689 u8 res3[0x1000];
Ben Warren04a9e112008-01-16 22:37:35 -0500690 spi8xxx_t spi; /* Serial Peripheral Interface */
Dave Liu03051c32007-09-18 12:36:11 +0800691 dma83xx_t dma; /* DMA */
692 pciconf83xx_t pci_conf[1]; /* PCI Software Configuration Registers */
693 u8 res4[0x80];
694 ios83xx_t ios; /* Sequencer */
695 pcictrl83xx_t pci_ctrl[1]; /* PCI Controller Control and Status Registers */
696 u8 res5[0xa00];
697 pex83xx_t pciexp[2]; /* PCI Express Controller */
698 u8 res6[0xd000];
699 sata83xx_t sata[4]; /* SATA Controller */
700 u8 res7[0x7000];
701 usb83xx_t usb[1]; /* USB DR Controller */
702 tsec83xx_t tsec[2];
703 u8 res8[0x8000];
704 sdhc83xx_t sdhc; /* SDHC Controller */
705 u8 res9[0x1000];
706 security83xx_t security;
707 u8 res10[0xA3000];
708 serdes83xx_t serdes[2]; /* SerDes Registers */
709 u8 res11[0xCE00];
710 rom83xx_t rom; /* On Chip ROM */
711} immap_t;
712
Dave Liue0803132006-12-07 21:11:58 +0800713#elif defined(CONFIG_MPC8360)
714typedef 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 u8 res0[0x200];
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 res1[0x300];
727 u8 dll_ddr[0x100];
728 u8 dll_lbc[0x100];
729 u8 res2[0x200];
730 qepio83xx_t qepio; /* QE Parallel I/O ports */
731 qesba83xx_t qesba; /* QE Secondary Bus Access Windows */
732 u8 res3[0x400];
733 ddr83xx_t ddr; /* DDR Memory Controller Memory */
734 fsl_i2c_t i2c[2]; /* I2C Controllers */
735 u8 res4[0x1300];
736 duart83xx_t duart[2]; /* DUART */
737 u8 res5[0x900];
Haiying Wang4e190b02008-10-29 11:05:55 -0400738 fsl_lbus_t lbus; /* Local Bus Controller Registers */
Dave Liue0803132006-12-07 21:11:58 +0800739 u8 res6[0x2000];
740 dma83xx_t dma; /* DMA */
741 pciconf83xx_t pci_conf[1]; /* PCI Software Configuration Registers */
742 u8 res7[128];
743 ios83xx_t ios; /* Sequencer (IOS) */
744 pcictrl83xx_t pci_ctrl[1]; /* PCI Controller Control and Status Registers */
745 u8 res8[0x4A00];
746 ddr83xx_t ddr_secondary; /* Secondary DDR Memory Controller Memory Map */
747 u8 res9[0x22000];
748 security83xx_t security;
749 u8 res10[0xC0000];
750 u8 qe[0x100000]; /* QE block */
751} immap_t;
Dave Liu24c3aca2006-12-07 21:13:15 +0800752
753#elif defined(CONFIG_MPC832X)
754typedef struct immap {
755 sysconf83xx_t sysconf; /* System configuration */
756 wdt83xx_t wdt; /* Watch Dog Timer (WDT) Registers */
757 rtclk83xx_t rtc; /* Real Time Clock Module Registers */
758 rtclk83xx_t pit; /* Periodic Interval Timer */
759 gtm83xx_t gtm[2]; /* Global Timers Module */
760 ipic83xx_t ipic; /* Integrated Programmable Interrupt Controller */
761 arbiter83xx_t arbiter; /* System Arbiter Registers */
762 reset83xx_t reset; /* Reset Module */
763 clk83xx_t clk; /* System Clock Module */
764 pmc83xx_t pmc; /* Power Management Control Module */
765 qepi83xx_t qepi; /* QE Ports Interrupts Registers */
766 u8 res0[0x300];
767 u8 dll_ddr[0x100];
768 u8 dll_lbc[0x100];
769 u8 res1[0x200];
770 qepio83xx_t qepio; /* QE Parallel I/O ports */
771 u8 res2[0x800];
772 ddr83xx_t ddr; /* DDR Memory Controller Memory */
773 fsl_i2c_t i2c[2]; /* I2C Controllers */
774 u8 res3[0x1300];
775 duart83xx_t duart[2]; /* DUART */
776 u8 res4[0x900];
Haiying Wang4e190b02008-10-29 11:05:55 -0400777 fsl_lbus_t lbus; /* Local Bus Controller Registers */
Dave Liu24c3aca2006-12-07 21:13:15 +0800778 u8 res5[0x2000];
779 dma83xx_t dma; /* DMA */
780 pciconf83xx_t pci_conf[1]; /* PCI Software Configuration Registers */
781 u8 res6[128];
782 ios83xx_t ios; /* Sequencer (IOS) */
783 pcictrl83xx_t pci_ctrl[1]; /* PCI Controller Control and Status Registers */
784 u8 res7[0x27A00];
785 security83xx_t security;
786 u8 res8[0xC0000];
787 u8 qe[0x100000]; /* QE block */
788} immap_t;
Dave Liue0803132006-12-07 21:11:58 +0800789#endif
790
Dave Liub7016522006-10-31 19:25:38 -0600791#endif /* __IMMAP_83xx__ */