blob: ed8ddeda1cc90db85b436381ba96abd3931b0363 [file] [log] [blame]
wdenk9c53f402003-10-15 23:53:47 +00001/*
2 * MPC85xx Internal Memory Map
3 *
Ed Swarthout52b98522007-07-27 01:50:51 -05004 * Copyright 2007 Freescale Semiconductor.
5 *
wdenk9c53f402003-10-15 23:53:47 +00006 * Copyright(c) 2002,2003 Motorola Inc.
7 * Xianghua Xiao (x.xiao@motorola.com)
8 *
9 */
10
11#ifndef __IMMAP_85xx__
12#define __IMMAP_85xx__
13
Jon Loeliger3ec4c082006-10-20 17:16:35 -050014#include <asm/types.h>
15#include <asm/fsl_i2c.h>
Haiying Wang4f84bbd2008-10-29 11:05:55 -040016#include <asm/fsl_lbc.h>
Jon Loeliger3ec4c082006-10-20 17:16:35 -050017
Jon Loeligerebc72242005-08-01 13:20:47 -050018/*
19 * Local-Access Registers and ECM Registers(0x0000-0x2000)
20 */
wdenk9c53f402003-10-15 23:53:47 +000021typedef struct ccsr_local_ecm {
22 uint ccsrbar; /* 0x0 - Control Configuration Status Registers Base Address Register */
23 char res1[4];
24 uint altcbar; /* 0x8 - Alternate Configuration Base Address Register */
25 char res2[4];
26 uint altcar; /* 0x10 - Alternate Configuration Attribute Register */
27 char res3[12];
28 uint bptr; /* 0x20 - Boot Page Translation Register */
29 char res4[3044];
30 uint lawbar0; /* 0xc08 - Local Access Window 0 Base Address Register */
31 char res5[4];
32 uint lawar0; /* 0xc10 - Local Access Window 0 Attributes Register */
33 char res6[20];
34 uint lawbar1; /* 0xc28 - Local Access Window 1 Base Address Register */
35 char res7[4];
36 uint lawar1; /* 0xc30 - Local Access Window 1 Attributes Register */
37 char res8[20];
38 uint lawbar2; /* 0xc48 - Local Access Window 2 Base Address Register */
39 char res9[4];
40 uint lawar2; /* 0xc50 - Local Access Window 2 Attributes Register */
41 char res10[20];
42 uint lawbar3; /* 0xc68 - Local Access Window 3 Base Address Register */
43 char res11[4];
44 uint lawar3; /* 0xc70 - Local Access Window 3 Attributes Register */
45 char res12[20];
46 uint lawbar4; /* 0xc88 - Local Access Window 4 Base Address Register */
47 char res13[4];
48 uint lawar4; /* 0xc90 - Local Access Window 4 Attributes Register */
49 char res14[20];
50 uint lawbar5; /* 0xca8 - Local Access Window 5 Base Address Register */
51 char res15[4];
52 uint lawar5; /* 0xcb0 - Local Access Window 5 Attributes Register */
53 char res16[20];
54 uint lawbar6; /* 0xcc8 - Local Access Window 6 Base Address Register */
55 char res17[4];
56 uint lawar6; /* 0xcd0 - Local Access Window 6 Attributes Register */
57 char res18[20];
58 uint lawbar7; /* 0xce8 - Local Access Window 7 Base Address Register */
59 char res19[4];
60 uint lawar7; /* 0xcf0 - Local Access Window 7 Attributes Register */
Srikanth Srinivasana864f322009-01-21 17:17:33 -060061 char res19_8a[20];
62 uint lawbar8; /* 0xd08 - Local Access Window 8 Base Address Register */
63 char res19_8b[4];
64 uint lawar8; /* 0xd10 - Local Access Window 8 Attributes Register */
65 char res19_9a[20];
66 uint lawbar9; /* 0xd28 - Local Access Window 9 Base Address Register */
67 char res19_9b[4];
68 uint lawar9; /* 0xd30 - Local Access Window 9 Attributes Register */
69 char res19_10a[20];
70 uint lawbar10; /* 0xd48 - Local Access Window 10 Base Address Register */
71 char res19_10b[4];
72 uint lawar10; /* 0xd50 - Local Access Window 10 Attributes Register */
73 char res19_11a[20];
74 uint lawbar11; /* 0xd68 - Local Access Window 11 Base Address Register */
75 char res19_11b[4];
76 uint lawar11; /* 0xd70 - Local Access Window 11 Attributes Register */
77 char res20[652];
wdenk9c53f402003-10-15 23:53:47 +000078 uint eebacr; /* 0x1000 - ECM CCB Address Configuration Register */
79 char res21[12];
80 uint eebpcr; /* 0x1010 - ECM CCB Port Configuration Register */
81 char res22[3564];
82 uint eedr; /* 0x1e00 - ECM Error Detect Register */
83 char res23[4];
84 uint eeer; /* 0x1e08 - ECM Error Enable Register */
85 uint eeatr; /* 0x1e0c - ECM Error Attributes Capture Register */
86 uint eeadr; /* 0x1e10 - ECM Error Address Capture Register */
87 char res24[492];
88} ccsr_local_ecm_t;
89
Jon Loeligerebc72242005-08-01 13:20:47 -050090/*
91 * DDR memory controller registers(0x2000-0x3000)
92 */
wdenk9c53f402003-10-15 23:53:47 +000093typedef struct ccsr_ddr {
94 uint cs0_bnds; /* 0x2000 - DDR Chip Select 0 Memory Bounds */
95 char res1[4];
96 uint cs1_bnds; /* 0x2008 - DDR Chip Select 1 Memory Bounds */
97 char res2[4];
98 uint cs2_bnds; /* 0x2010 - DDR Chip Select 2 Memory Bounds */
99 char res3[4];
100 uint cs3_bnds; /* 0x2018 - DDR Chip Select 3 Memory Bounds */
101 char res4[100];
102 uint cs0_config; /* 0x2080 - DDR Chip Select Configuration */
103 uint cs1_config; /* 0x2084 - DDR Chip Select Configuration */
104 uint cs2_config; /* 0x2088 - DDR Chip Select Configuration */
105 uint cs3_config; /* 0x208c - DDR Chip Select Configuration */
James Yang82bb0f32008-02-12 16:35:07 -0600106 char res4a[48];
107 uint cs0_config_2; /* 0x20c0 - DDR Chip Select Configuration 2 */
108 uint cs1_config_2; /* 0x20c4 - DDR Chip Select Configuration 2 */
109 uint cs2_config_2; /* 0x20c8 - DDR Chip Select Configuration 2 */
110 uint cs3_config_2; /* 0x20cc - DDR Chip Select Configuration 2 */
111 char res5[48];
Kumar Gala3af779b2008-04-29 10:27:08 -0500112 uint timing_cfg_3; /* 0x2100 - DDR SDRAM Timing Configuration Register 3 */
Jon Loeliger77a4f6e2005-07-25 14:05:07 -0500113 uint timing_cfg_0; /* 0x2104 - DDR SDRAM Timing Configuration Register 0 */
wdenk9c53f402003-10-15 23:53:47 +0000114 uint timing_cfg_1; /* 0x2108 - DDR SDRAM Timing Configuration Register 1 */
115 uint timing_cfg_2; /* 0x210c - DDR SDRAM Timing Configuration Register 2 */
116 uint sdram_cfg; /* 0x2110 - DDR SDRAM Control Configuration */
Jon Loeliger77a4f6e2005-07-25 14:05:07 -0500117 uint sdram_cfg_2; /* 0x2114 - DDR SDRAM Control Configuration 2 */
wdenk9c53f402003-10-15 23:53:47 +0000118 uint sdram_mode; /* 0x2118 - DDR SDRAM Mode Configuration */
Jon Loeliger77a4f6e2005-07-25 14:05:07 -0500119 uint sdram_mode_2; /* 0x211c - DDR SDRAM Mode Configuration 2*/
120 uint sdram_md_cntl; /* 0x2120 - DDR SDRAM Mode Control */
wdenk9c53f402003-10-15 23:53:47 +0000121 uint sdram_interval; /* 0x2124 - DDR SDRAM Interval Configuration */
Jon Loeliger77a4f6e2005-07-25 14:05:07 -0500122 uint sdram_data_init; /* 0x2128 - DDR SDRAM Data initialization */
123 char res6[4];
wdenkcc245992004-06-09 00:51:50 +0000124 uint sdram_clk_cntl; /* 0x2130 - DDR SDRAM Clock Control */
Jon Loeliger77a4f6e2005-07-25 14:05:07 -0500125 char res7[20];
Kumar Gala66832fa2008-04-29 10:28:34 -0500126 uint init_addr; /* 0x2148 - DDR training initialization address */
127 uint init_ext_addr; /* 0x214C - DDR training initialization extended address */
James Yang82bb0f32008-02-12 16:35:07 -0600128 char res8_1[16];
129 uint timing_cfg_4; /* 0x2160 - DDR SDRAM Timing Configuration Register 4 */
130 uint timing_cfg_5; /* 0x2164 - DDR SDRAM Timing Configuration Register 5 */
131 char reg8_1a[8];
132 uint ddr_zq_cntl; /* 0x2170 - DDR ZQ calibration control*/
133 uint ddr_wrlvl_cntl; /* 0x2174 - DDR write leveling control*/
134 uint ddr_pd_cntl; /* 0x2178 - DDR pre-drive conditioning control*/
135 uint ddr_sr_cntr; /* 0x217C - DDR self refresh counter */
136 uint ddr_sdram_rcw_1; /* 0x2180 - DDR Register Control Words 1 */
137 uint ddr_sdram_rcw_2; /* 0x2184 - DDR Register Control Words 2 */
Srikanth Srinivasana864f322009-01-21 17:17:33 -0600138 char res8_1b[2456];
139 uint ddr_dsr1; /* 0x2B20 - DDR Debug Status Register 1 */
140 uint ddr_dsr2; /* 0x2B24 - DDR Debug Status Register 2 */
141 uint ddr_cdr1; /* 0x2B28 - DDR Control Driver Register 1 */
142 uint ddr_cdr2; /* 0x2B2C - DDR Control Driver Register 2 */
143 char res8_1c[200];
Jon Loeliger77a4f6e2005-07-25 14:05:07 -0500144 uint ip_rev1; /* 0x2BF8 - DDR IP Block Revision 1 */
145 uint ip_rev2; /* 0x2BFC - DDR IP Block Revision 2 */
146 char res8_2[512];
wdenk9c53f402003-10-15 23:53:47 +0000147 uint data_err_inject_hi; /* 0x2e00 - DDR Memory Data Path Error Injection Mask High */
148 uint data_err_inject_lo; /* 0x2e04 - DDR Memory Data Path Error Injection Mask Low */
149 uint ecc_err_inject; /* 0x2e08 - DDR Memory Data Path Error Injection Mask ECC */
150 char res9[20];
151 uint capture_data_hi; /* 0x2e20 - DDR Memory Data Path Read Capture High */
152 uint capture_data_lo; /* 0x2e24 - DDR Memory Data Path Read Capture Low */
153 uint capture_ecc; /* 0x2e28 - DDR Memory Data Path Read Capture ECC */
154 char res10[20];
155 uint err_detect; /* 0x2e40 - DDR Memory Error Detect */
156 uint err_disable; /* 0x2e44 - DDR Memory Error Disable */
157 uint err_int_en; /* 0x2e48 - DDR */
158 uint capture_attributes; /* 0x2e4c - DDR Memory Error Attributes Capture */
159 uint capture_address; /* 0x2e50 - DDR Memory Error Address Capture */
160 uint capture_ext_address; /* 0x2e54 - DDR Memory Error Extended Address Capture */
161 uint err_sbe; /* 0x2e58 - DDR Memory Single-Bit ECC Error Management */
162 char res11[164];
163 uint debug_1; /* 0x2f00 */
164 uint debug_2;
165 uint debug_3;
166 uint debug_4;
167 char res12[240];
168} ccsr_ddr_t;
169
Jon Loeligerebc72242005-08-01 13:20:47 -0500170/*
171 * I2C Registers(0x3000-0x4000)
172 */
wdenk9c53f402003-10-15 23:53:47 +0000173typedef struct ccsr_i2c {
Jon Loeliger3ec4c082006-10-20 17:16:35 -0500174 struct fsl_i2c i2c[1];
175 u8 res[4096 - 1 * sizeof(struct fsl_i2c)];
wdenk9c53f402003-10-15 23:53:47 +0000176} ccsr_i2c_t;
177
wdenk0aeb8532004-10-10 21:21:55 +0000178#if defined(CONFIG_MPC8540) \
179 || defined(CONFIG_MPC8541) \
Jon Loeliger77a4f6e2005-07-25 14:05:07 -0500180 || defined(CONFIG_MPC8548) \
wdenk0aeb8532004-10-10 21:21:55 +0000181 || defined(CONFIG_MPC8555)
wdenk9c53f402003-10-15 23:53:47 +0000182/* DUART Registers(0x4000-0x5000) */
183typedef struct ccsr_duart {
184 char res1[1280];
185 u_char urbr1_uthr1_udlb1;/* 0x4500 - URBR1, UTHR1, UDLB1 with the same address offset of 0x04500 */
186 u_char uier1_udmb1; /* 0x4501 - UIER1, UDMB1 with the same address offset of 0x04501 */
187 u_char uiir1_ufcr1_uafr1;/* 0x4502 - UIIR1, UFCR1, UAFR1 with the same address offset of 0x04502 */
188 u_char ulcr1; /* 0x4503 - UART1 Line Control Register */
189 u_char umcr1; /* 0x4504 - UART1 Modem Control Register */
190 u_char ulsr1; /* 0x4505 - UART1 Line Status Register */
191 u_char umsr1; /* 0x4506 - UART1 Modem Status Register */
192 u_char uscr1; /* 0x4507 - UART1 Scratch Register */
193 char res2[8];
194 u_char udsr1; /* 0x4510 - UART1 DMA Status Register */
195 char res3[239];
196 u_char urbr2_uthr2_udlb2;/* 0x4600 - URBR2, UTHR2, UDLB2 with the same address offset of 0x04600 */
197 u_char uier2_udmb2; /* 0x4601 - UIER2, UDMB2 with the same address offset of 0x04601 */
198 u_char uiir2_ufcr2_uafr2;/* 0x4602 - UIIR2, UFCR2, UAFR2 with the same address offset of 0x04602 */
199 u_char ulcr2; /* 0x4603 - UART2 Line Control Register */
200 u_char umcr2; /* 0x4604 - UART2 Modem Control Register */
201 u_char ulsr2; /* 0x4605 - UART2 Line Status Register */
202 u_char umsr2; /* 0x4606 - UART2 Modem Status Register */
203 u_char uscr2; /* 0x4607 - UART2 Scratch Register */
204 char res4[8];
205 u_char udsr2; /* 0x4610 - UART2 DMA Status Register */
206 char res5[2543];
207} ccsr_duart_t;
208#else /* MPC8560 uses UART on its CPM */
209typedef struct ccsr_duart {
210 char res[4096];
211} ccsr_duart_t;
212#endif
213
214/* Local Bus Controller Registers(0x5000-0x6000) */
215/* Omitting OCeaN(0x6000) and Reserved(0x7000) block */
216
217typedef struct ccsr_lbc {
218 uint br0; /* 0x5000 - LBC Base Register 0 */
219 uint or0; /* 0x5004 - LBC Options Register 0 */
220 uint br1; /* 0x5008 - LBC Base Register 1 */
221 uint or1; /* 0x500c - LBC Options Register 1 */
222 uint br2; /* 0x5010 - LBC Base Register 2 */
223 uint or2; /* 0x5014 - LBC Options Register 2 */
224 uint br3; /* 0x5018 - LBC Base Register 3 */
225 uint or3; /* 0x501c - LBC Options Register 3 */
226 uint br4; /* 0x5020 - LBC Base Register 4 */
227 uint or4; /* 0x5024 - LBC Options Register 4 */
228 uint br5; /* 0x5028 - LBC Base Register 5 */
229 uint or5; /* 0x502c - LBC Options Register 5 */
230 uint br6; /* 0x5030 - LBC Base Register 6 */
231 uint or6; /* 0x5034 - LBC Options Register 6 */
232 uint br7; /* 0x5038 - LBC Base Register 7 */
233 uint or7; /* 0x503c - LBC Options Register 7 */
234 char res1[40];
235 uint mar; /* 0x5068 - LBC UPM Address Register */
236 char res2[4];
237 uint mamr; /* 0x5070 - LBC UPMA Mode Register */
238 uint mbmr; /* 0x5074 - LBC UPMB Mode Register */
239 uint mcmr; /* 0x5078 - LBC UPMC Mode Register */
240 char res3[8];
241 uint mrtpr; /* 0x5084 - LBC Memory Refresh Timer Prescaler Register */
242 uint mdr; /* 0x5088 - LBC UPM Data Register */
243 char res4[8];
244 uint lsdmr; /* 0x5094 - LBC SDRAM Mode Register */
245 char res5[8];
246 uint lurt; /* 0x50a0 - LBC UPM Refresh Timer */
247 uint lsrt; /* 0x50a4 - LBC SDRAM Refresh Timer */
248 char res6[8];
249 uint ltesr; /* 0x50b0 - LBC Transfer Error Status Register */
250 uint ltedr; /* 0x50b4 - LBC Transfer Error Disable Register */
251 uint lteir; /* 0x50b8 - LBC Transfer Error Interrupt Register */
252 uint lteatr; /* 0x50bc - LBC Transfer Error Attributes Register */
253 uint ltear; /* 0x50c0 - LBC Transfer Error Address Register */
254 char res7[12];
255 uint lbcr; /* 0x50d0 - LBC Configuration Register */
256 uint lcrr; /* 0x50d4 - LBC Clock Ratio Register */
James Yang82bb0f32008-02-12 16:35:07 -0600257 char res8[3880];
wdenk9c53f402003-10-15 23:53:47 +0000258} ccsr_lbc_t;
259
Jon Loeligerebc72242005-08-01 13:20:47 -0500260/*
261 * PCI Registers(0x8000-0x9000)
Jon Loeligerebc72242005-08-01 13:20:47 -0500262 */
wdenk9c53f402003-10-15 23:53:47 +0000263typedef struct ccsr_pcix {
264 uint cfg_addr; /* 0x8000 - PCIX Configuration Address Register */
265 uint cfg_data; /* 0x8004 - PCIX Configuration Data Register */
266 uint int_ack; /* 0x8008 - PCIX Interrupt Acknowledge Register */
267 char res1[3060];
268 uint potar0; /* 0x8c00 - PCIX Outbound Transaction Address Register 0 */
269 uint potear0; /* 0x8c04 - PCIX Outbound Translation Extended Address Register 0 */
270 uint powbar0; /* 0x8c08 - PCIX Outbound Window Base Address Register 0 */
271 uint powbear0; /* 0x8c0c - PCIX Outbound Window Base Extended Address Register 0 */
272 uint powar0; /* 0x8c10 - PCIX Outbound Window Attributes Register 0 */
273 char res2[12];
274 uint potar1; /* 0x8c20 - PCIX Outbound Transaction Address Register 1 */
275 uint potear1; /* 0x8c24 - PCIX Outbound Translation Extended Address Register 1 */
276 uint powbar1; /* 0x8c28 - PCIX Outbound Window Base Address Register 1 */
277 uint powbear1; /* 0x8c2c - PCIX Outbound Window Base Extended Address Register 1 */
278 uint powar1; /* 0x8c30 - PCIX Outbound Window Attributes Register 1 */
279 char res3[12];
280 uint potar2; /* 0x8c40 - PCIX Outbound Transaction Address Register 2 */
281 uint potear2; /* 0x8c44 - PCIX Outbound Translation Extended Address Register 2 */
282 uint powbar2; /* 0x8c48 - PCIX Outbound Window Base Address Register 2 */
283 uint powbear2; /* 0x8c4c - PCIX Outbound Window Base Extended Address Register 2 */
284 uint powar2; /* 0x8c50 - PCIX Outbound Window Attributes Register 2 */
285 char res4[12];
286 uint potar3; /* 0x8c60 - PCIX Outbound Transaction Address Register 3 */
287 uint potear3; /* 0x8c64 - PCIX Outbound Translation Extended Address Register 3 */
288 uint powbar3; /* 0x8c68 - PCIX Outbound Window Base Address Register 3 */
289 uint powbear3; /* 0x8c6c - PCIX Outbound Window Base Extended Address Register 3 */
290 uint powar3; /* 0x8c70 - PCIX Outbound Window Attributes Register 3 */
291 char res5[12];
292 uint potar4; /* 0x8c80 - PCIX Outbound Transaction Address Register 4 */
293 uint potear4; /* 0x8c84 - PCIX Outbound Translation Extended Address Register 4 */
294 uint powbar4; /* 0x8c88 - PCIX Outbound Window Base Address Register 4 */
295 uint powbear4; /* 0x8c8c - PCIX Outbound Window Base Extended Address Register 4 */
296 uint powar4; /* 0x8c90 - PCIX Outbound Window Attributes Register 4 */
297 char res6[268];
298 uint pitar3; /* 0x8da0 - PCIX Inbound Translation Address Register 3 */
299 uint pitear3; /* 0x8da4 - PCIX Inbound Translation Extended Address Register 3 */
300 uint piwbar3; /* 0x8da8 - PCIX Inbound Window Base Address Register 3 */
301 uint piwbear3; /* 0x8dac - PCIX Inbound Window Base Extended Address Register 3 */
302 uint piwar3; /* 0x8db0 - PCIX Inbound Window Attributes Register 3 */
303 char res7[12];
304 uint pitar2; /* 0x8dc0 - PCIX Inbound Translation Address Register 2 */
305 uint pitear2; /* 0x8dc4 - PCIX Inbound Translation Extended Address Register 2 */
306 uint piwbar2; /* 0x8dc8 - PCIX Inbound Window Base Address Register 2 */
307 uint piwbear2; /* 0x8dcc - PCIX Inbound Window Base Extended Address Register 2 */
308 uint piwar2; /* 0x8dd0 - PCIX Inbound Window Attributes Register 2 */
309 char res8[12];
310 uint pitar1; /* 0x8de0 - PCIX Inbound Translation Address Register 1 */
311 uint pitear1; /* 0x8de4 - PCIX Inbound Translation Extended Address Register 1 */
312 uint piwbar1; /* 0x8de8 - PCIX Inbound Window Base Address Register 1 */
313 char res9[4];
314 uint piwar1; /* 0x8df0 - PCIX Inbound Window Attributes Register 1 */
315 char res10[12];
316 uint pedr; /* 0x8e00 - PCIX Error Detect Register */
317 uint pecdr; /* 0x8e04 - PCIX Error Capture Disable Register */
318 uint peer; /* 0x8e08 - PCIX Error Enable Register */
319 uint peattrcr; /* 0x8e0c - PCIX Error Attributes Capture Register */
320 uint peaddrcr; /* 0x8e10 - PCIX Error Address Capture Register */
321 uint peextaddrcr; /* 0x8e14 - PCIX Error Extended Address Capture Register */
322 uint pedlcr; /* 0x8e18 - PCIX Error Data Low Capture Register */
323 uint pedhcr; /* 0x8e1c - PCIX Error Error Data High Capture Register */
Matthew McClintock31db9c32006-06-28 10:45:17 -0500324 uint gas_timr; /* 0x8e20 - PCIX Gasket Timer Register */
325 char res11[476];
wdenk9c53f402003-10-15 23:53:47 +0000326} ccsr_pcix_t;
327
Matthew McClintock31db9c32006-06-28 10:45:17 -0500328#define PCIX_COMMAND 0x62
329#define POWAR_EN 0x80000000
330#define POWAR_IO_READ 0x00080000
331#define POWAR_MEM_READ 0x00040000
332#define POWAR_IO_WRITE 0x00008000
333#define POWAR_MEM_WRITE 0x00004000
334#define POWAR_MEM_512M 0x0000001c
335#define POWAR_IO_1M 0x00000013
336
337#define PIWAR_EN 0x80000000
338#define PIWAR_PF 0x20000000
339#define PIWAR_LOCAL 0x00f00000
340#define PIWAR_READ_SNOOP 0x00050000
341#define PIWAR_WRITE_SNOOP 0x00005000
342#define PIWAR_MEM_2G 0x0000001e
343
344
Jon Loeligerebc72242005-08-01 13:20:47 -0500345/*
346 * L2 Cache Registers(0x2_0000-0x2_1000)
347 */
wdenk9c53f402003-10-15 23:53:47 +0000348typedef struct ccsr_l2cache {
349 uint l2ctl; /* 0x20000 - L2 configuration register 0 */
350 char res1[12];
351 uint l2cewar0; /* 0x20010 - L2 cache external write address register 0 */
352 char res2[4];
353 uint l2cewcr0; /* 0x20018 - L2 cache external write control register 0 */
354 char res3[4];
355 uint l2cewar1; /* 0x20020 - L2 cache external write address register 1 */
356 char res4[4];
357 uint l2cewcr1; /* 0x20028 - L2 cache external write control register 1 */
358 char res5[4];
359 uint l2cewar2; /* 0x20030 - L2 cache external write address register 2 */
360 char res6[4];
361 uint l2cewcr2; /* 0x20038 - L2 cache external write control register 2 */
362 char res7[4];
363 uint l2cewar3; /* 0x20040 - L2 cache external write address register 3 */
364 char res8[4];
365 uint l2cewcr3; /* 0x20048 - L2 cache external write control register 3 */
366 char res9[180];
367 uint l2srbar0; /* 0x20100 - L2 memory-mapped SRAM base address register 0 */
368 char res10[4];
369 uint l2srbar1; /* 0x20108 - L2 memory-mapped SRAM base address register 1 */
370 char res11[3316];
371 uint l2errinjhi; /* 0x20e00 - L2 error injection mask high register */
372 uint l2errinjlo; /* 0x20e04 - L2 error injection mask low register */
373 uint l2errinjctl; /* 0x20e08 - L2 error injection tag/ECC control register */
374 char res12[20];
375 uint l2captdatahi; /* 0x20e20 - L2 error data high capture register */
376 uint l2captdatalo; /* 0x20e24 - L2 error data low capture register */
377 uint l2captecc; /* 0x20e28 - L2 error ECC capture register */
378 char res13[20];
379 uint l2errdet; /* 0x20e40 - L2 error detect register */
380 uint l2errdis; /* 0x20e44 - L2 error disable register */
381 uint l2errinten; /* 0x20e48 - L2 error interrupt enable register */
382 uint l2errattr; /* 0x20e4c - L2 error attributes capture register */
383 uint l2erraddr; /* 0x20e50 - L2 error address capture register */
384 char res14[4];
385 uint l2errctl; /* 0x20e58 - L2 error control register */
386 char res15[420];
387} ccsr_l2cache_t;
388
Jon Loeligerebc72242005-08-01 13:20:47 -0500389/*
390 * DMA Registers(0x2_1000-0x2_2000)
391 */
wdenk9c53f402003-10-15 23:53:47 +0000392typedef struct ccsr_dma {
393 char res1[256];
394 uint mr0; /* 0x21100 - DMA 0 Mode Register */
395 uint sr0; /* 0x21104 - DMA 0 Status Register */
396 char res2[4];
397 uint clndar0; /* 0x2110c - DMA 0 Current Link Descriptor Address Register */
398 uint satr0; /* 0x21110 - DMA 0 Source Attributes Register */
399 uint sar0; /* 0x21114 - DMA 0 Source Address Register */
400 uint datr0; /* 0x21118 - DMA 0 Destination Attributes Register */
401 uint dar0; /* 0x2111c - DMA 0 Destination Address Register */
402 uint bcr0; /* 0x21120 - DMA 0 Byte Count Register */
403 char res3[4];
404 uint nlndar0; /* 0x21128 - DMA 0 Next Link Descriptor Address Register */
405 char res4[8];
406 uint clabdar0; /* 0x21134 - DMA 0 Current List - Alternate Base Descriptor Address Register */
407 char res5[4];
408 uint nlsdar0; /* 0x2113c - DMA 0 Next List Descriptor Address Register */
409 uint ssr0; /* 0x21140 - DMA 0 Source Stride Register */
410 uint dsr0; /* 0x21144 - DMA 0 Destination Stride Register */
411 char res6[56];
412 uint mr1; /* 0x21180 - DMA 1 Mode Register */
413 uint sr1; /* 0x21184 - DMA 1 Status Register */
414 char res7[4];
415 uint clndar1; /* 0x2118c - DMA 1 Current Link Descriptor Address Register */
416 uint satr1; /* 0x21190 - DMA 1 Source Attributes Register */
417 uint sar1; /* 0x21194 - DMA 1 Source Address Register */
418 uint datr1; /* 0x21198 - DMA 1 Destination Attributes Register */
419 uint dar1; /* 0x2119c - DMA 1 Destination Address Register */
420 uint bcr1; /* 0x211a0 - DMA 1 Byte Count Register */
421 char res8[4];
422 uint nlndar1; /* 0x211a8 - DMA 1 Next Link Descriptor Address Register */
423 char res9[8];
424 uint clabdar1; /* 0x211b4 - DMA 1 Current List - Alternate Base Descriptor Address Register */
425 char res10[4];
426 uint nlsdar1; /* 0x211bc - DMA 1 Next List Descriptor Address Register */
427 uint ssr1; /* 0x211c0 - DMA 1 Source Stride Register */
428 uint dsr1; /* 0x211c4 - DMA 1 Destination Stride Register */
429 char res11[56];
430 uint mr2; /* 0x21200 - DMA 2 Mode Register */
431 uint sr2; /* 0x21204 - DMA 2 Status Register */
432 char res12[4];
433 uint clndar2; /* 0x2120c - DMA 2 Current Link Descriptor Address Register */
434 uint satr2; /* 0x21210 - DMA 2 Source Attributes Register */
435 uint sar2; /* 0x21214 - DMA 2 Source Address Register */
436 uint datr2; /* 0x21218 - DMA 2 Destination Attributes Register */
437 uint dar2; /* 0x2121c - DMA 2 Destination Address Register */
438 uint bcr2; /* 0x21220 - DMA 2 Byte Count Register */
439 char res13[4];
440 uint nlndar2; /* 0x21228 - DMA 2 Next Link Descriptor Address Register */
441 char res14[8];
442 uint clabdar2; /* 0x21234 - DMA 2 Current List - Alternate Base Descriptor Address Register */
443 char res15[4];
444 uint nlsdar2; /* 0x2123c - DMA 2 Next List Descriptor Address Register */
445 uint ssr2; /* 0x21240 - DMA 2 Source Stride Register */
446 uint dsr2; /* 0x21244 - DMA 2 Destination Stride Register */
447 char res16[56];
448 uint mr3; /* 0x21280 - DMA 3 Mode Register */
449 uint sr3; /* 0x21284 - DMA 3 Status Register */
450 char res17[4];
451 uint clndar3; /* 0x2128c - DMA 3 Current Link Descriptor Address Register */
452 uint satr3; /* 0x21290 - DMA 3 Source Attributes Register */
453 uint sar3; /* 0x21294 - DMA 3 Source Address Register */
454 uint datr3; /* 0x21298 - DMA 3 Destination Attributes Register */
455 uint dar3; /* 0x2129c - DMA 3 Destination Address Register */
456 uint bcr3; /* 0x212a0 - DMA 3 Byte Count Register */
457 char res18[4];
458 uint nlndar3; /* 0x212a8 - DMA 3 Next Link Descriptor Address Register */
459 char res19[8];
460 uint clabdar3; /* 0x212b4 - DMA 3 Current List - Alternate Base Descriptor Address Register */
461 char res20[4];
462 uint nlsdar3; /* 0x212bc - DMA 3 Next List Descriptor Address Register */
463 uint ssr3; /* 0x212c0 - DMA 3 Source Stride Register */
464 uint dsr3; /* 0x212c4 - DMA 3 Destination Stride Register */
465 char res21[56];
466 uint dgsr; /* 0x21300 - DMA General Status Register */
467 char res22[11516];
468} ccsr_dma_t;
469
Jon Loeligerebc72242005-08-01 13:20:47 -0500470/*
471 * tsec1 tsec2: 24000-26000
472 */
wdenk9c53f402003-10-15 23:53:47 +0000473typedef struct ccsr_tsec {
474 char res1[16];
475 uint ievent; /* 0x24010 - Interrupt Event Register */
476 uint imask; /* 0x24014 - Interrupt Mask Register */
477 uint edis; /* 0x24018 - Error Disabled Register */
478 char res2[4];
479 uint ecntrl; /* 0x24020 - Ethernet Control Register */
480 uint minflr; /* 0x24024 - Minimum Frame Length Register */
481 uint ptv; /* 0x24028 - Pause Time Value Register */
482 uint dmactrl; /* 0x2402c - DMA Control Register */
483 uint tbipa; /* 0x24030 - TBI PHY Address Register */
484 char res3[88];
485 uint fifo_tx_thr; /* 0x2408c - FIFO transmit threshold register */
486 char res4[8];
487 uint fifo_tx_starve; /* 0x24098 - FIFO transmit starve register */
488 uint fifo_tx_starve_shutoff; /* 0x2409c - FIFO transmit starve shutoff register */
489 char res5[96];
490 uint tctrl; /* 0x24100 - Transmit Control Register */
491 uint tstat; /* 0x24104 - Transmit Status Register */
492 char res6[4];
493 uint tbdlen; /* 0x2410c - Transmit Buffer Descriptor Data Length Register */
494 char res7[16];
495 uint ctbptrh; /* 0x24120 - Current Transmit Buffer Descriptor Pointer High Register */
496 uint ctbptr; /* 0x24124 - Current Transmit Buffer Descriptor Pointer Register */
497 char res8[88];
498 uint tbptrh; /* 0x24180 - Transmit Buffer Descriptor Pointer High Register */
499 uint tbptr; /* 0x24184 - Transmit Buffer Descriptor Pointer Low Register */
500 char res9[120];
501 uint tbaseh; /* 0x24200 - Transmit Descriptor Base Address High Register */
502 uint tbase; /* 0x24204 - Transmit Descriptor Base Address Register */
503 char res10[168];
504 uint ostbd; /* 0x242b0 - Out-of-Sequence Transmit Buffer Descriptor Register */
505 uint ostbdp; /* 0x242b4 - Out-of-Sequence Transmit Data Buffer Pointer Register */
506 uint os32tbdp; /* 0x242b8 - Out-of-Sequence 32 Bytes Transmit Data Buffer Pointer Low Register */
507 uint os32iptrh; /* 0x242bc - Out-of-Sequence 32 Bytes Transmit Insert Pointer High Register */
508 uint os32iptrl; /* 0x242c0 - Out-of-Sequence 32 Bytes Transmit Insert Pointer Low Register */
509 uint os32tbdr; /* 0x242c4 - Out-of-Sequence 32 Bytes Transmit Reserved Register */
510 uint os32iil; /* 0x242c8 - Out-of-Sequence 32 Bytes Transmit Insert Index/Length Register */
511 char res11[52];
512 uint rctrl; /* 0x24300 - Receive Control Register */
513 uint rstat; /* 0x24304 - Receive Status Register */
514 char res12[4];
515 uint rbdlen; /* 0x2430c - RxBD Data Length Register */
516 char res13[16];
517 uint crbptrh; /* 0x24320 - Current Receive Buffer Descriptor Pointer High */
518 uint crbptr; /* 0x24324 - Current Receive Buffer Descriptor Pointer */
519 char res14[24];
520 uint mrblr; /* 0x24340 - Maximum Receive Buffer Length Register */
521 uint mrblr2r3; /* 0x24344 - Maximum Receive Buffer Length R2R3 Register */
522 char res15[56];
523 uint rbptrh; /* 0x24380 - Receive Buffer Descriptor Pointer High 0 */
524 uint rbptr; /* 0x24384 - Receive Buffer Descriptor Pointer */
525 uint rbptrh1; /* 0x24388 - Receive Buffer Descriptor Pointer High 1 */
526 uint rbptrl1; /* 0x2438c - Receive Buffer Descriptor Pointer Low 1 */
527 uint rbptrh2; /* 0x24390 - Receive Buffer Descriptor Pointer High 2 */
528 uint rbptrl2; /* 0x24394 - Receive Buffer Descriptor Pointer Low 2 */
529 uint rbptrh3; /* 0x24398 - Receive Buffer Descriptor Pointer High 3 */
530 uint rbptrl3; /* 0x2439c - Receive Buffer Descriptor Pointer Low 3 */
531 char res16[96];
532 uint rbaseh; /* 0x24400 - Receive Descriptor Base Address High 0 */
533 uint rbase; /* 0x24404 - Receive Descriptor Base Address */
534 uint rbaseh1; /* 0x24408 - Receive Descriptor Base Address High 1 */
535 uint rbasel1; /* 0x2440c - Receive Descriptor Base Address Low 1 */
536 uint rbaseh2; /* 0x24410 - Receive Descriptor Base Address High 2 */
537 uint rbasel2; /* 0x24414 - Receive Descriptor Base Address Low 2 */
538 uint rbaseh3; /* 0x24418 - Receive Descriptor Base Address High 3 */
539 uint rbasel3; /* 0x2441c - Receive Descriptor Base Address Low 3 */
540 char res17[224];
541 uint maccfg1; /* 0x24500 - MAC Configuration 1 Register */
542 uint maccfg2; /* 0x24504 - MAC Configuration 2 Register */
543 uint ipgifg; /* 0x24508 - Inter Packet Gap/Inter Frame Gap Register */
544 uint hafdup; /* 0x2450c - Half Duplex Register */
545 uint maxfrm; /* 0x24510 - Maximum Frame Length Register */
546 char res18[12];
547 uint miimcfg; /* 0x24520 - MII Management Configuration Register */
548 uint miimcom; /* 0x24524 - MII Management Command Register */
549 uint miimadd; /* 0x24528 - MII Management Address Register */
550 uint miimcon; /* 0x2452c - MII Management Control Register */
551 uint miimstat; /* 0x24530 - MII Management Status Register */
552 uint miimind; /* 0x24534 - MII Management Indicator Register */
553 char res19[4];
554 uint ifstat; /* 0x2453c - Interface Status Register */
555 uint macstnaddr1; /* 0x24540 - Station Address Part 1 Register */
556 uint macstnaddr2; /* 0x24544 - Station Address Part 2 Register */
557 char res20[312];
558 uint tr64; /* 0x24680 - Transmit and Receive 64-byte Frame Counter */
559 uint tr127; /* 0x24684 - Transmit and Receive 65-127 byte Frame Counter */
560 uint tr255; /* 0x24688 - Transmit and Receive 128-255 byte Frame Counter */
561 uint tr511; /* 0x2468c - Transmit and Receive 256-511 byte Frame Counter */
562 uint tr1k; /* 0x24690 - Transmit and Receive 512-1023 byte Frame Counter */
563 uint trmax; /* 0x24694 - Transmit and Receive 1024-1518 byte Frame Counter */
564 uint trmgv; /* 0x24698 - Transmit and Receive 1519-1522 byte Good VLAN Frame */
565 uint rbyt; /* 0x2469c - Receive Byte Counter */
566 uint rpkt; /* 0x246a0 - Receive Packet Counter */
567 uint rfcs; /* 0x246a4 - Receive FCS Error Counter */
568 uint rmca; /* 0x246a8 - Receive Multicast Packet Counter */
569 uint rbca; /* 0x246ac - Receive Broadcast Packet Counter */
570 uint rxcf; /* 0x246b0 - Receive Control Frame Packet Counter */
571 uint rxpf; /* 0x246b4 - Receive Pause Frame Packet Counter */
572 uint rxuo; /* 0x246b8 - Receive Unknown OP Code Counter */
573 uint raln; /* 0x246bc - Receive Alignment Error Counter */
574 uint rflr; /* 0x246c0 - Receive Frame Length Error Counter */
575 uint rcde; /* 0x246c4 - Receive Code Error Counter */
576 uint rcse; /* 0x246c8 - Receive Carrier Sense Error Counter */
577 uint rund; /* 0x246cc - Receive Undersize Packet Counter */
578 uint rovr; /* 0x246d0 - Receive Oversize Packet Counter */
579 uint rfrg; /* 0x246d4 - Receive Fragments Counter */
580 uint rjbr; /* 0x246d8 - Receive Jabber Counter */
581 uint rdrp; /* 0x246dc - Receive Drop Counter */
582 uint tbyt; /* 0x246e0 - Transmit Byte Counter Counter */
583 uint tpkt; /* 0x246e4 - Transmit Packet Counter */
584 uint tmca; /* 0x246e8 - Transmit Multicast Packet Counter */
585 uint tbca; /* 0x246ec - Transmit Broadcast Packet Counter */
586 uint txpf; /* 0x246f0 - Transmit Pause Control Frame Counter */
587 uint tdfr; /* 0x246f4 - Transmit Deferral Packet Counter */
588 uint tedf; /* 0x246f8 - Transmit Excessive Deferral Packet Counter */
589 uint tscl; /* 0x246fc - Transmit Single Collision Packet Counter */
590 uint tmcl; /* 0x24700 - Transmit Multiple Collision Packet Counter */
591 uint tlcl; /* 0x24704 - Transmit Late Collision Packet Counter */
592 uint txcl; /* 0x24708 - Transmit Excessive Collision Packet Counter */
593 uint tncl; /* 0x2470c - Transmit Total Collision Counter */
594 char res21[4];
595 uint tdrp; /* 0x24714 - Transmit Drop Frame Counter */
596 uint tjbr; /* 0x24718 - Transmit Jabber Frame Counter */
597 uint tfcs; /* 0x2471c - Transmit FCS Error Counter */
598 uint txcf; /* 0x24720 - Transmit Control Frame Counter */
599 uint tovr; /* 0x24724 - Transmit Oversize Frame Counter */
600 uint tund; /* 0x24728 - Transmit Undersize Frame Counter */
601 uint tfrg; /* 0x2472c - Transmit Fragments Frame Counter */
602 uint car1; /* 0x24730 - Carry Register One */
603 uint car2; /* 0x24734 - Carry Register Two */
604 uint cam1; /* 0x24738 - Carry Mask Register One */
605 uint cam2; /* 0x2473c - Carry Mask Register Two */
606 char res22[192];
607 uint iaddr0; /* 0x24800 - Indivdual address register 0 */
608 uint iaddr1; /* 0x24804 - Indivdual address register 1 */
609 uint iaddr2; /* 0x24808 - Indivdual address register 2 */
610 uint iaddr3; /* 0x2480c - Indivdual address register 3 */
611 uint iaddr4; /* 0x24810 - Indivdual address register 4 */
612 uint iaddr5; /* 0x24814 - Indivdual address register 5 */
613 uint iaddr6; /* 0x24818 - Indivdual address register 6 */
614 uint iaddr7; /* 0x2481c - Indivdual address register 7 */
615 char res23[96];
616 uint gaddr0; /* 0x24880 - Global address register 0 */
617 uint gaddr1; /* 0x24884 - Global address register 1 */
618 uint gaddr2; /* 0x24888 - Global address register 2 */
619 uint gaddr3; /* 0x2488c - Global address register 3 */
620 uint gaddr4; /* 0x24890 - Global address register 4 */
621 uint gaddr5; /* 0x24894 - Global address register 5 */
622 uint gaddr6; /* 0x24898 - Global address register 6 */
623 uint gaddr7; /* 0x2489c - Global address register 7 */
624 char res24[96];
625 uint pmd0; /* 0x24900 - Pattern Match Data Register */
626 char res25[4];
627 uint pmask0; /* 0x24908 - Pattern Mask Register */
628 char res26[4];
629 uint pcntrl0; /* 0x24910 - Pattern Match Control Register */
630 char res27[4];
631 uint pattrb0; /* 0x24918 - Pattern Match Attributes Register */
632 uint pattrbeli0; /* 0x2491c - Pattern Match Attributes Extract Length and Extract Index Register */
633 uint pmd1; /* 0x24920 - Pattern Match Data Register */
634 char res28[4];
635 uint pmask1; /* 0x24928 - Pattern Mask Register */
636 char res29[4];
637 uint pcntrl1; /* 0x24930 - Pattern Match Control Register */
638 char res30[4];
639 uint pattrb1; /* 0x24938 - Pattern Match Attributes Register */
640 uint pattrbeli1; /* 0x2493c - Pattern Match Attributes Extract Length and Extract Index Register */
641 uint pmd2; /* 0x24940 - Pattern Match Data Register */
642 char res31[4];
643 uint pmask2; /* 0x24948 - Pattern Mask Register */
644 char res32[4];
645 uint pcntrl2; /* 0x24950 - Pattern Match Control Register */
646 char res33[4];
647 uint pattrb2; /* 0x24958 - Pattern Match Attributes Register */
648 uint pattrbeli2; /* 0x2495c - Pattern Match Attributes Extract Length and Extract Index Register */
649 uint pmd3; /* 0x24960 - Pattern Match Data Register */
650 char res34[4];
651 uint pmask3; /* 0x24968 - Pattern Mask Register */
652 char res35[4];
653 uint pcntrl3; /* 0x24970 - Pattern Match Control Register */
654 char res36[4];
655 uint pattrb3; /* 0x24978 - Pattern Match Attributes Register */
656 uint pattrbeli3; /* 0x2497c - Pattern Match Attributes Extract Length and Extract Index Register */
657 uint pmd4; /* 0x24980 - Pattern Match Data Register */
658 char res37[4];
659 uint pmask4; /* 0x24988 - Pattern Mask Register */
660 char res38[4];
661 uint pcntrl4; /* 0x24990 - Pattern Match Control Register */
662 char res39[4];
663 uint pattrb4; /* 0x24998 - Pattern Match Attributes Register */
664 uint pattrbeli4; /* 0x2499c - Pattern Match Attributes Extract Length and Extract Index Register */
665 uint pmd5; /* 0x249a0 - Pattern Match Data Register */
666 char res40[4];
667 uint pmask5; /* 0x249a8 - Pattern Mask Register */
668 char res41[4];
669 uint pcntrl5; /* 0x249b0 - Pattern Match Control Register */
670 char res42[4];
671 uint pattrb5; /* 0x249b8 - Pattern Match Attributes Register */
672 uint pattrbeli5; /* 0x249bc - Pattern Match Attributes Extract Length and Extract Index Register */
673 uint pmd6; /* 0x249c0 - Pattern Match Data Register */
674 char res43[4];
675 uint pmask6; /* 0x249c8 - Pattern Mask Register */
676 char res44[4];
677 uint pcntrl6; /* 0x249d0 - Pattern Match Control Register */
678 char res45[4];
679 uint pattrb6; /* 0x249d8 - Pattern Match Attributes Register */
680 uint pattrbeli6; /* 0x249dc - Pattern Match Attributes Extract Length and Extract Index Register */
681 uint pmd7; /* 0x249e0 - Pattern Match Data Register */
682 char res46[4];
683 uint pmask7; /* 0x249e8 - Pattern Mask Register */
684 char res47[4];
685 uint pcntrl7; /* 0x249f0 - Pattern Match Control Register */
686 char res48[4];
687 uint pattrb7; /* 0x249f8 - Pattern Match Attributes Register */
688 uint pattrbeli7; /* 0x249fc - Pattern Match Attributes Extract Length and Extract Index Register */
689 uint pmd8; /* 0x24a00 - Pattern Match Data Register */
690 char res49[4];
691 uint pmask8; /* 0x24a08 - Pattern Mask Register */
692 char res50[4];
693 uint pcntrl8; /* 0x24a10 - Pattern Match Control Register */
694 char res51[4];
695 uint pattrb8; /* 0x24a18 - Pattern Match Attributes Register */
696 uint pattrbeli8; /* 0x24a1c - Pattern Match Attributes Extract Length and Extract Index Register */
697 uint pmd9; /* 0x24a20 - Pattern Match Data Register */
698 char res52[4];
699 uint pmask9; /* 0x24a28 - Pattern Mask Register */
700 char res53[4];
701 uint pcntrl9; /* 0x24a30 - Pattern Match Control Register */
702 char res54[4];
703 uint pattrb9; /* 0x24a38 - Pattern Match Attributes Register */
704 uint pattrbeli9; /* 0x24a3c - Pattern Match Attributes Extract Length and Extract Index Register */
705 uint pmd10; /* 0x24a40 - Pattern Match Data Register */
706 char res55[4];
707 uint pmask10; /* 0x24a48 - Pattern Mask Register */
708 char res56[4];
709 uint pcntrl10; /* 0x24a50 - Pattern Match Control Register */
710 char res57[4];
711 uint pattrb10; /* 0x24a58 - Pattern Match Attributes Register */
712 uint pattrbeli10; /* 0x24a5c - Pattern Match Attributes Extract Length and Extract Index Register */
713 uint pmd11; /* 0x24a60 - Pattern Match Data Register */
714 char res58[4];
715 uint pmask11; /* 0x24a68 - Pattern Mask Register */
716 char res59[4];
717 uint pcntrl11; /* 0x24a70 - Pattern Match Control Register */
718 char res60[4];
719 uint pattrb11; /* 0x24a78 - Pattern Match Attributes Register */
720 uint pattrbeli11; /* 0x24a7c - Pattern Match Attributes Extract Length and Extract Index Register */
721 uint pmd12; /* 0x24a80 - Pattern Match Data Register */
722 char res61[4];
723 uint pmask12; /* 0x24a88 - Pattern Mask Register */
724 char res62[4];
725 uint pcntrl12; /* 0x24a90 - Pattern Match Control Register */
726 char res63[4];
727 uint pattrb12; /* 0x24a98 - Pattern Match Attributes Register */
728 uint pattrbeli12; /* 0x24a9c - Pattern Match Attributes Extract Length and Extract Index Register */
729 uint pmd13; /* 0x24aa0 - Pattern Match Data Register */
730 char res64[4];
731 uint pmask13; /* 0x24aa8 - Pattern Mask Register */
732 char res65[4];
733 uint pcntrl13; /* 0x24ab0 - Pattern Match Control Register */
734 char res66[4];
735 uint pattrb13; /* 0x24ab8 - Pattern Match Attributes Register */
736 uint pattrbeli13; /* 0x24abc - Pattern Match Attributes Extract Length and Extract Index Register */
737 uint pmd14; /* 0x24ac0 - Pattern Match Data Register */
738 char res67[4];
739 uint pmask14; /* 0x24ac8 - Pattern Mask Register */
740 char res68[4];
741 uint pcntrl14; /* 0x24ad0 - Pattern Match Control Register */
742 char res69[4];
743 uint pattrb14; /* 0x24ad8 - Pattern Match Attributes Register */
744 uint pattrbeli14; /* 0x24adc - Pattern Match Attributes Extract Length and Extract Index Register */
745 uint pmd15; /* 0x24ae0 - Pattern Match Data Register */
746 char res70[4];
747 uint pmask15; /* 0x24ae8 - Pattern Mask Register */
748 char res71[4];
749 uint pcntrl15; /* 0x24af0 - Pattern Match Control Register */
750 char res72[4];
751 uint pattrb15; /* 0x24af8 - Pattern Match Attributes Register */
752 uint pattrbeli15; /* 0x24afc - Pattern Match Attributes Extract Length and Extract Index Register */
753 char res73[248];
754 uint attr; /* 0x24bf8 - Attributes Register */
755 uint attreli; /* 0x24bfc - Attributes Extract Length and Extract Index Register */
756 char res74[1024];
757} ccsr_tsec_t;
758
Jon Loeligerebc72242005-08-01 13:20:47 -0500759/*
Kumar Gala0a7a0972007-11-29 02:10:09 -0600760 * PIC Registers(0x4_0000-0x8_0000)
Jon Loeligerebc72242005-08-01 13:20:47 -0500761 */
wdenk9c53f402003-10-15 23:53:47 +0000762typedef struct ccsr_pic {
Kumar Gala0a7a0972007-11-29 02:10:09 -0600763 char res1[64]; /* 0x40000 */
wdenk9c53f402003-10-15 23:53:47 +0000764 uint ipidr0; /* 0x40040 - Interprocessor Interrupt Dispatch Register 0 */
765 char res2[12];
766 uint ipidr1; /* 0x40050 - Interprocessor Interrupt Dispatch Register 1 */
767 char res3[12];
768 uint ipidr2; /* 0x40060 - Interprocessor Interrupt Dispatch Register 2 */
769 char res4[12];
770 uint ipidr3; /* 0x40070 - Interprocessor Interrupt Dispatch Register 3 */
771 char res5[12];
772 uint ctpr; /* 0x40080 - Current Task Priority Register */
773 char res6[12];
774 uint whoami; /* 0x40090 - Who Am I Register */
775 char res7[12];
776 uint iack; /* 0x400a0 - Interrupt Acknowledge Register */
777 char res8[12];
778 uint eoi; /* 0x400b0 - End Of Interrupt Register */
779 char res9[3916];
780 uint frr; /* 0x41000 - Feature Reporting Register */
781 char res10[28];
782 uint gcr; /* 0x41020 - Global Configuration Register */
wdenkf3da7cc2005-05-13 22:49:36 +0000783#define MPC85xx_PICGCR_RST 0x80000000
784#define MPC85xx_PICGCR_M 0x20000000
wdenk9c53f402003-10-15 23:53:47 +0000785 char res11[92];
786 uint vir; /* 0x41080 - Vendor Identification Register */
787 char res12[12];
788 uint pir; /* 0x41090 - Processor Initialization Register */
789 char res13[12];
790 uint ipivpr0; /* 0x410a0 - IPI Vector/Priority Register 0 */
791 char res14[12];
792 uint ipivpr1; /* 0x410b0 - IPI Vector/Priority Register 1 */
793 char res15[12];
794 uint ipivpr2; /* 0x410c0 - IPI Vector/Priority Register 2 */
795 char res16[12];
796 uint ipivpr3; /* 0x410d0 - IPI Vector/Priority Register 3 */
797 char res17[12];
798 uint svr; /* 0x410e0 - Spurious Vector Register */
799 char res18[12];
800 uint tfrr; /* 0x410f0 - Timer Frequency Reporting Register */
801 char res19[12];
802 uint gtccr0; /* 0x41100 - Global Timer Current Count Register 0 */
803 char res20[12];
804 uint gtbcr0; /* 0x41110 - Global Timer Base Count Register 0 */
805 char res21[12];
806 uint gtvpr0; /* 0x41120 - Global Timer Vector/Priority Register 0 */
807 char res22[12];
808 uint gtdr0; /* 0x41130 - Global Timer Destination Register 0 */
809 char res23[12];
810 uint gtccr1; /* 0x41140 - Global Timer Current Count Register 1 */
811 char res24[12];
812 uint gtbcr1; /* 0x41150 - Global Timer Base Count Register 1 */
813 char res25[12];
814 uint gtvpr1; /* 0x41160 - Global Timer Vector/Priority Register 1 */
815 char res26[12];
816 uint gtdr1; /* 0x41170 - Global Timer Destination Register 1 */
817 char res27[12];
818 uint gtccr2; /* 0x41180 - Global Timer Current Count Register 2 */
819 char res28[12];
820 uint gtbcr2; /* 0x41190 - Global Timer Base Count Register 2 */
821 char res29[12];
822 uint gtvpr2; /* 0x411a0 - Global Timer Vector/Priority Register 2 */
823 char res30[12];
824 uint gtdr2; /* 0x411b0 - Global Timer Destination Register 2 */
825 char res31[12];
826 uint gtccr3; /* 0x411c0 - Global Timer Current Count Register 3 */
827 char res32[12];
828 uint gtbcr3; /* 0x411d0 - Global Timer Base Count Register 3 */
829 char res33[12];
830 uint gtvpr3; /* 0x411e0 - Global Timer Vector/Priority Register 3 */
831 char res34[12];
832 uint gtdr3; /* 0x411f0 - Global Timer Destination Register 3 */
833 char res35[268];
834 uint tcr; /* 0x41300 - Timer Control Register */
835 char res36[12];
836 uint irqsr0; /* 0x41310 - IRQ_OUT Summary Register 0 */
837 char res37[12];
838 uint irqsr1; /* 0x41320 - IRQ_OUT Summary Register 1 */
839 char res38[12];
840 uint cisr0; /* 0x41330 - Critical Interrupt Summary Register 0 */
841 char res39[12];
842 uint cisr1; /* 0x41340 - Critical Interrupt Summary Register 1 */
843 char res40[188];
844 uint msgr0; /* 0x41400 - Message Register 0 */
845 char res41[12];
846 uint msgr1; /* 0x41410 - Message Register 1 */
847 char res42[12];
848 uint msgr2; /* 0x41420 - Message Register 2 */
849 char res43[12];
850 uint msgr3; /* 0x41430 - Message Register 3 */
851 char res44[204];
852 uint mer; /* 0x41500 - Message Enable Register */
853 char res45[12];
854 uint msr; /* 0x41510 - Message Status Register */
855 char res46[60140];
856 uint eivpr0; /* 0x50000 - External Interrupt Vector/Priority Register 0 */
857 char res47[12];
858 uint eidr0; /* 0x50010 - External Interrupt Destination Register 0 */
859 char res48[12];
860 uint eivpr1; /* 0x50020 - External Interrupt Vector/Priority Register 1 */
861 char res49[12];
862 uint eidr1; /* 0x50030 - External Interrupt Destination Register 1 */
863 char res50[12];
864 uint eivpr2; /* 0x50040 - External Interrupt Vector/Priority Register 2 */
865 char res51[12];
866 uint eidr2; /* 0x50050 - External Interrupt Destination Register 2 */
867 char res52[12];
868 uint eivpr3; /* 0x50060 - External Interrupt Vector/Priority Register 3 */
869 char res53[12];
870 uint eidr3; /* 0x50070 - External Interrupt Destination Register 3 */
871 char res54[12];
872 uint eivpr4; /* 0x50080 - External Interrupt Vector/Priority Register 4 */
873 char res55[12];
874 uint eidr4; /* 0x50090 - External Interrupt Destination Register 4 */
875 char res56[12];
876 uint eivpr5; /* 0x500a0 - External Interrupt Vector/Priority Register 5 */
877 char res57[12];
878 uint eidr5; /* 0x500b0 - External Interrupt Destination Register 5 */
879 char res58[12];
880 uint eivpr6; /* 0x500c0 - External Interrupt Vector/Priority Register 6 */
881 char res59[12];
882 uint eidr6; /* 0x500d0 - External Interrupt Destination Register 6 */
883 char res60[12];
884 uint eivpr7; /* 0x500e0 - External Interrupt Vector/Priority Register 7 */
885 char res61[12];
886 uint eidr7; /* 0x500f0 - External Interrupt Destination Register 7 */
887 char res62[12];
888 uint eivpr8; /* 0x50100 - External Interrupt Vector/Priority Register 8 */
889 char res63[12];
890 uint eidr8; /* 0x50110 - External Interrupt Destination Register 8 */
891 char res64[12];
892 uint eivpr9; /* 0x50120 - External Interrupt Vector/Priority Register 9 */
893 char res65[12];
894 uint eidr9; /* 0x50130 - External Interrupt Destination Register 9 */
895 char res66[12];
896 uint eivpr10; /* 0x50140 - External Interrupt Vector/Priority Register 10 */
897 char res67[12];
898 uint eidr10; /* 0x50150 - External Interrupt Destination Register 10 */
899 char res68[12];
900 uint eivpr11; /* 0x50160 - External Interrupt Vector/Priority Register 11 */
901 char res69[12];
902 uint eidr11; /* 0x50170 - External Interrupt Destination Register 11 */
903 char res70[140];
904 uint iivpr0; /* 0x50200 - Internal Interrupt Vector/Priority Register 0 */
905 char res71[12];
906 uint iidr0; /* 0x50210 - Internal Interrupt Destination Register 0 */
907 char res72[12];
908 uint iivpr1; /* 0x50220 - Internal Interrupt Vector/Priority Register 1 */
909 char res73[12];
910 uint iidr1; /* 0x50230 - Internal Interrupt Destination Register 1 */
911 char res74[12];
912 uint iivpr2; /* 0x50240 - Internal Interrupt Vector/Priority Register 2 */
913 char res75[12];
914 uint iidr2; /* 0x50250 - Internal Interrupt Destination Register 2 */
915 char res76[12];
916 uint iivpr3; /* 0x50260 - Internal Interrupt Vector/Priority Register 3 */
917 char res77[12];
918 uint iidr3; /* 0x50270 - Internal Interrupt Destination Register 3 */
919 char res78[12];
920 uint iivpr4; /* 0x50280 - Internal Interrupt Vector/Priority Register 4 */
921 char res79[12];
922 uint iidr4; /* 0x50290 - Internal Interrupt Destination Register 4 */
923 char res80[12];
924 uint iivpr5; /* 0x502a0 - Internal Interrupt Vector/Priority Register 5 */
925 char res81[12];
926 uint iidr5; /* 0x502b0 - Internal Interrupt Destination Register 5 */
927 char res82[12];
928 uint iivpr6; /* 0x502c0 - Internal Interrupt Vector/Priority Register 6 */
929 char res83[12];
930 uint iidr6; /* 0x502d0 - Internal Interrupt Destination Register 6 */
931 char res84[12];
932 uint iivpr7; /* 0x502e0 - Internal Interrupt Vector/Priority Register 7 */
933 char res85[12];
934 uint iidr7; /* 0x502f0 - Internal Interrupt Destination Register 7 */
935 char res86[12];
936 uint iivpr8; /* 0x50300 - Internal Interrupt Vector/Priority Register 8 */
937 char res87[12];
938 uint iidr8; /* 0x50310 - Internal Interrupt Destination Register 8 */
939 char res88[12];
940 uint iivpr9; /* 0x50320 - Internal Interrupt Vector/Priority Register 9 */
941 char res89[12];
942 uint iidr9; /* 0x50330 - Internal Interrupt Destination Register 9 */
943 char res90[12];
944 uint iivpr10; /* 0x50340 - Internal Interrupt Vector/Priority Register 10 */
945 char res91[12];
946 uint iidr10; /* 0x50350 - Internal Interrupt Destination Register 10 */
947 char res92[12];
948 uint iivpr11; /* 0x50360 - Internal Interrupt Vector/Priority Register 11 */
949 char res93[12];
950 uint iidr11; /* 0x50370 - Internal Interrupt Destination Register 11 */
951 char res94[12];
952 uint iivpr12; /* 0x50380 - Internal Interrupt Vector/Priority Register 12 */
953 char res95[12];
954 uint iidr12; /* 0x50390 - Internal Interrupt Destination Register 12 */
955 char res96[12];
956 uint iivpr13; /* 0x503a0 - Internal Interrupt Vector/Priority Register 13 */
957 char res97[12];
958 uint iidr13; /* 0x503b0 - Internal Interrupt Destination Register 13 */
959 char res98[12];
960 uint iivpr14; /* 0x503c0 - Internal Interrupt Vector/Priority Register 14 */
961 char res99[12];
962 uint iidr14; /* 0x503d0 - Internal Interrupt Destination Register 14 */
963 char res100[12];
964 uint iivpr15; /* 0x503e0 - Internal Interrupt Vector/Priority Register 15 */
965 char res101[12];
966 uint iidr15; /* 0x503f0 - Internal Interrupt Destination Register 15 */
967 char res102[12];
968 uint iivpr16; /* 0x50400 - Internal Interrupt Vector/Priority Register 16 */
969 char res103[12];
970 uint iidr16; /* 0x50410 - Internal Interrupt Destination Register 16 */
971 char res104[12];
972 uint iivpr17; /* 0x50420 - Internal Interrupt Vector/Priority Register 17 */
973 char res105[12];
974 uint iidr17; /* 0x50430 - Internal Interrupt Destination Register 17 */
975 char res106[12];
976 uint iivpr18; /* 0x50440 - Internal Interrupt Vector/Priority Register 18 */
977 char res107[12];
978 uint iidr18; /* 0x50450 - Internal Interrupt Destination Register 18 */
979 char res108[12];
980 uint iivpr19; /* 0x50460 - Internal Interrupt Vector/Priority Register 19 */
981 char res109[12];
982 uint iidr19; /* 0x50470 - Internal Interrupt Destination Register 19 */
983 char res110[12];
984 uint iivpr20; /* 0x50480 - Internal Interrupt Vector/Priority Register 20 */
985 char res111[12];
986 uint iidr20; /* 0x50490 - Internal Interrupt Destination Register 20 */
987 char res112[12];
988 uint iivpr21; /* 0x504a0 - Internal Interrupt Vector/Priority Register 21 */
989 char res113[12];
990 uint iidr21; /* 0x504b0 - Internal Interrupt Destination Register 21 */
991 char res114[12];
992 uint iivpr22; /* 0x504c0 - Internal Interrupt Vector/Priority Register 22 */
993 char res115[12];
994 uint iidr22; /* 0x504d0 - Internal Interrupt Destination Register 22 */
995 char res116[12];
996 uint iivpr23; /* 0x504e0 - Internal Interrupt Vector/Priority Register 23 */
997 char res117[12];
998 uint iidr23; /* 0x504f0 - Internal Interrupt Destination Register 23 */
999 char res118[12];
1000 uint iivpr24; /* 0x50500 - Internal Interrupt Vector/Priority Register 24 */
1001 char res119[12];
1002 uint iidr24; /* 0x50510 - Internal Interrupt Destination Register 24 */
1003 char res120[12];
1004 uint iivpr25; /* 0x50520 - Internal Interrupt Vector/Priority Register 25 */
1005 char res121[12];
1006 uint iidr25; /* 0x50530 - Internal Interrupt Destination Register 25 */
1007 char res122[12];
1008 uint iivpr26; /* 0x50540 - Internal Interrupt Vector/Priority Register 26 */
1009 char res123[12];
1010 uint iidr26; /* 0x50550 - Internal Interrupt Destination Register 26 */
1011 char res124[12];
1012 uint iivpr27; /* 0x50560 - Internal Interrupt Vector/Priority Register 27 */
1013 char res125[12];
1014 uint iidr27; /* 0x50570 - Internal Interrupt Destination Register 27 */
1015 char res126[12];
1016 uint iivpr28; /* 0x50580 - Internal Interrupt Vector/Priority Register 28 */
1017 char res127[12];
1018 uint iidr28; /* 0x50590 - Internal Interrupt Destination Register 28 */
1019 char res128[12];
1020 uint iivpr29; /* 0x505a0 - Internal Interrupt Vector/Priority Register 29 */
1021 char res129[12];
1022 uint iidr29; /* 0x505b0 - Internal Interrupt Destination Register 29 */
1023 char res130[12];
1024 uint iivpr30; /* 0x505c0 - Internal Interrupt Vector/Priority Register 30 */
1025 char res131[12];
1026 uint iidr30; /* 0x505d0 - Internal Interrupt Destination Register 30 */
1027 char res132[12];
1028 uint iivpr31; /* 0x505e0 - Internal Interrupt Vector/Priority Register 31 */
1029 char res133[12];
1030 uint iidr31; /* 0x505f0 - Internal Interrupt Destination Register 31 */
1031 char res134[4108];
1032 uint mivpr0; /* 0x51600 - Messaging Interrupt Vector/Priority Register 0 */
1033 char res135[12];
1034 uint midr0; /* 0x51610 - Messaging Interrupt Destination Register 0 */
1035 char res136[12];
1036 uint mivpr1; /* 0x51620 - Messaging Interrupt Vector/Priority Register 1 */
1037 char res137[12];
1038 uint midr1; /* 0x51630 - Messaging Interrupt Destination Register 1 */
1039 char res138[12];
1040 uint mivpr2; /* 0x51640 - Messaging Interrupt Vector/Priority Register 2 */
1041 char res139[12];
1042 uint midr2; /* 0x51650 - Messaging Interrupt Destination Register 2 */
1043 char res140[12];
1044 uint mivpr3; /* 0x51660 - Messaging Interrupt Vector/Priority Register 3 */
1045 char res141[12];
1046 uint midr3; /* 0x51670 - Messaging Interrupt Destination Register 3 */
1047 char res142[59852];
1048 uint ipi0dr0; /* 0x60040 - Processor 0 Interprocessor Interrupt Dispatch Register 0 */
1049 char res143[12];
1050 uint ipi0dr1; /* 0x60050 - Processor 0 Interprocessor Interrupt Dispatch Register 1 */
1051 char res144[12];
1052 uint ipi0dr2; /* 0x60060 - Processor 0 Interprocessor Interrupt Dispatch Register 2 */
1053 char res145[12];
1054 uint ipi0dr3; /* 0x60070 - Processor 0 Interprocessor Interrupt Dispatch Register 3 */
1055 char res146[12];
1056 uint ctpr0; /* 0x60080 - Current Task Priority Register for Processor 0 */
1057 char res147[12];
1058 uint whoami0; /* 0x60090 - Who Am I Register for Processor 0 */
1059 char res148[12];
1060 uint iack0; /* 0x600a0 - Interrupt Acknowledge Register for Processor 0 */
1061 char res149[12];
1062 uint eoi0; /* 0x600b0 - End Of Interrupt Register for Processor 0 */
1063 char res150[130892];
1064} ccsr_pic_t;
1065
Jon Loeligerebc72242005-08-01 13:20:47 -05001066/*
1067 * CPM Block(0x8_0000-0xc_0000)
1068 */
Jon Loeligerf5ad3782005-07-23 10:37:35 -05001069#ifndef CONFIG_CPM2
wdenk9c53f402003-10-15 23:53:47 +00001070typedef struct ccsr_cpm {
1071 char res[262144];
1072} ccsr_cpm_t;
1073#else
Jon Loeligerebc72242005-08-01 13:20:47 -05001074/*
1075 * 0x8000-0x8ffff:DPARM
1076 * 0x9000-0x90bff: General SIU
1077 */
wdenk9c53f402003-10-15 23:53:47 +00001078typedef struct ccsr_cpm_siu {
Wolfgang Denka1be4762008-05-20 16:00:29 +02001079 char res1[80];
wdenk9c53f402003-10-15 23:53:47 +00001080 uint smaer;
1081 uint smser;
1082 uint smevr;
1083 char res2[4];
1084 uint lmaer;
1085 uint lmser;
1086 uint lmevr;
1087 char res3[2964];
1088} ccsr_cpm_siu_t;
1089
1090/* 0x90c00-0x90cff: Interrupt Controller */
1091typedef struct ccsr_cpm_intctl {
1092 ushort sicr;
1093 char res1[2];
1094 uint sivec;
1095 uint sipnrh;
1096 uint sipnrl;
1097 uint siprr;
1098 uint scprrh;
1099 uint scprrl;
1100 uint simrh;
1101 uint simrl;
1102 uint siexr;
1103 char res2[88];
1104 uint sccr;
1105 char res3[124];
1106} ccsr_cpm_intctl_t;
1107
1108/* 0x90d00-0x90d7f: input/output port */
1109typedef struct ccsr_cpm_iop {
1110 uint pdira;
1111 uint ppara;
1112 uint psora;
1113 uint podra;
1114 uint pdata;
1115 char res1[12];
1116 uint pdirb;
1117 uint pparb;
1118 uint psorb;
1119 uint podrb;
1120 uint pdatb;
1121 char res2[12];
1122 uint pdirc;
1123 uint pparc;
1124 uint psorc;
1125 uint podrc;
1126 uint pdatc;
1127 char res3[12];
1128 uint pdird;
1129 uint ppard;
1130 uint psord;
1131 uint podrd;
1132 uint pdatd;
1133 char res4[12];
1134} ccsr_cpm_iop_t;
1135
1136/* 0x90d80-0x91017: CPM timers */
1137typedef struct ccsr_cpm_timer {
1138 u_char tgcr1;
1139 char res1[3];
1140 u_char tgcr2;
1141 char res2[11];
1142 ushort tmr1;
1143 ushort tmr2;
1144 ushort trr1;
1145 ushort trr2;
1146 ushort tcr1;
1147 ushort tcr2;
1148 ushort tcn1;
1149 ushort tcn2;
1150 ushort tmr3;
1151 ushort tmr4;
1152 ushort trr3;
1153 ushort trr4;
1154 ushort tcr3;
1155 ushort tcr4;
1156 ushort tcn3;
1157 ushort tcn4;
1158 ushort ter1;
1159 ushort ter2;
1160 ushort ter3;
1161 ushort ter4;
1162 char res3[608];
1163} ccsr_cpm_timer_t;
1164
1165/* 0x91018-0x912ff: SDMA */
1166typedef struct ccsr_cpm_sdma {
1167 uchar sdsr;
Wolfgang Denka1be4762008-05-20 16:00:29 +02001168 char res1[3];
1169 uchar sdmr;
1170 char res2[739];
wdenk9c53f402003-10-15 23:53:47 +00001171} ccsr_cpm_sdma_t;
1172
1173/* 0x91300-0x9131f: FCC1 */
1174typedef struct ccsr_cpm_fcc1 {
1175 uint gfmr;
1176 uint fpsmr;
1177 ushort ftodr;
1178 char res1[2];
1179 ushort fdsr;
1180 char res2[2];
1181 ushort fcce;
1182 char res3[2];
1183 ushort fccm;
1184 char res4[2];
1185 u_char fccs;
1186 char res5[3];
1187 u_char ftirr_phy[4];
1188} ccsr_cpm_fcc1_t;
1189
1190/* 0x91320-0x9133f: FCC2 */
1191typedef struct ccsr_cpm_fcc2 {
1192 uint gfmr;
1193 uint fpsmr;
1194 ushort ftodr;
1195 char res1[2];
1196 ushort fdsr;
1197 char res2[2];
1198 ushort fcce;
1199 char res3[2];
1200 ushort fccm;
1201 char res4[2];
1202 u_char fccs;
1203 char res5[3];
1204 u_char ftirr_phy[4];
1205} ccsr_cpm_fcc2_t;
1206
1207/* 0x91340-0x9137f: FCC3 */
1208typedef struct ccsr_cpm_fcc3 {
1209 uint gfmr;
1210 uint fpsmr;
1211 ushort ftodr;
1212 char res1[2];
1213 ushort fdsr;
1214 char res2[2];
1215 ushort fcce;
1216 char res3[2];
1217 ushort fccm;
1218 char res4[2];
1219 u_char fccs;
1220 char res5[3];
1221 char res[36];
1222} ccsr_cpm_fcc3_t;
1223
1224/* 0x91380-0x9139f: FCC1 extended */
1225typedef struct ccsr_cpm_fcc1_ext {
1226 uint firper;
1227 uint firer;
1228 uint firsr_h;
1229 uint firsr_l;
1230 u_char gfemr;
1231 char res[15];
1232
1233} ccsr_cpm_fcc1_ext_t;
1234
1235/* 0x913a0-0x913cf: FCC2 extended */
1236typedef struct ccsr_cpm_fcc2_ext {
1237 uint firper;
1238 uint firer;
1239 uint firsr_h;
1240 uint firsr_l;
1241 u_char gfemr;
1242 char res[31];
1243} ccsr_cpm_fcc2_ext_t;
1244
1245/* 0x913d0-0x913ff: FCC3 extended */
1246typedef struct ccsr_cpm_fcc3_ext {
1247 u_char gfemr;
1248 char res[47];
1249} ccsr_cpm_fcc3_ext_t;
1250
1251/* 0x91400-0x915ef: TC layers */
1252typedef struct ccsr_cpm_tmp1 {
Wolfgang Denka1be4762008-05-20 16:00:29 +02001253 char res[496];
wdenk9c53f402003-10-15 23:53:47 +00001254} ccsr_cpm_tmp1_t;
1255
1256/* 0x915f0-0x9185f: BRGs:5,6,7,8 */
1257typedef struct ccsr_cpm_brg2 {
1258 uint brgc5;
1259 uint brgc6;
1260 uint brgc7;
1261 uint brgc8;
1262 char res[608];
1263} ccsr_cpm_brg2_t;
1264
1265/* 0x91860-0x919bf: I2C */
1266typedef struct ccsr_cpm_i2c {
1267 u_char i2mod;
1268 char res1[3];
1269 u_char i2add;
1270 char res2[3];
1271 u_char i2brg;
1272 char res3[3];
1273 u_char i2com;
1274 char res4[3];
1275 u_char i2cer;
1276 char res5[3];
1277 u_char i2cmr;
1278 char res6[331];
1279} ccsr_cpm_i2c_t;
1280
1281/* 0x919c0-0x919ef: CPM core */
1282typedef struct ccsr_cpm_cp {
1283 uint cpcr;
1284 uint rccr;
1285 char res1[14];
1286 ushort rter;
1287 char res2[2];
1288 ushort rtmr;
1289 ushort rtscr;
1290 char res3[2];
1291 uint rtsr;
1292 char res4[12];
1293} ccsr_cpm_cp_t;
1294
1295/* 0x919f0-0x919ff: BRGs:1,2,3,4 */
1296typedef struct ccsr_cpm_brg1 {
1297 uint brgc1;
1298 uint brgc2;
1299 uint brgc3;
1300 uint brgc4;
1301} ccsr_cpm_brg1_t;
1302
1303/* 0x91a00-0x91a9f: SCC1-SCC4 */
1304typedef struct ccsr_cpm_scc {
1305 uint gsmrl;
1306 uint gsmrh;
1307 ushort psmr;
1308 char res1[2];
1309 ushort todr;
1310 ushort dsr;
1311 ushort scce;
1312 char res2[2];
1313 ushort sccm;
1314 char res3;
1315 u_char sccs;
1316 char res4[8];
1317} ccsr_cpm_scc_t;
1318
1319/* 0x91a80-0x91a9f */
1320typedef struct ccsr_cpm_tmp2 {
Wolfgang Denka1be4762008-05-20 16:00:29 +02001321 char res[32];
wdenk9c53f402003-10-15 23:53:47 +00001322} ccsr_cpm_tmp2_t;
1323
1324/* 0x91aa0-0x91aff: SPI */
1325typedef struct ccsr_cpm_spi {
1326 ushort spmode;
1327 char res1[4];
1328 u_char spie;
1329 char res2[3];
1330 u_char spim;
1331 char res3[2];
1332 u_char spcom;
1333 char res4[82];
1334} ccsr_cpm_spi_t;
1335
1336/* 0x91b00-0x91b1f: CPM MUX */
1337typedef struct ccsr_cpm_mux {
1338 u_char cmxsi1cr;
1339 char res1;
1340 u_char cmxsi2cr;
1341 char res2;
1342 uint cmxfcr;
1343 uint cmxscr;
1344 char res3[2];
1345 ushort cmxuar;
1346 char res4[16];
1347} ccsr_cpm_mux_t;
1348
1349/* 0x91b20-0xbffff: SI,MCC,etc */
1350typedef struct ccsr_cpm_tmp3 {
1351 char res[58592];
1352} ccsr_cpm_tmp3_t;
1353
1354typedef struct ccsr_cpm_iram {
1355 unsigned long iram[8192];
1356 char res[98304];
1357} ccsr_cpm_iram_t;
1358
1359typedef struct ccsr_cpm {
1360 /* Some references are into the unique and known dpram spaces,
1361 * others are from the generic base.
1362 */
Wolfgang Denka1be4762008-05-20 16:00:29 +02001363#define im_dprambase im_dpram1
1364 u_char im_dpram1[16*1024];
1365 char res1[16*1024];
1366 u_char im_dpram2[16*1024];
1367 char res2[16*1024];
1368 ccsr_cpm_siu_t im_cpm_siu; /* SIU Configuration */
1369 ccsr_cpm_intctl_t im_cpm_intctl; /* Interrupt Controller */
1370 ccsr_cpm_iop_t im_cpm_iop; /* IO Port control/status */
1371 ccsr_cpm_timer_t im_cpm_timer; /* CPM timers */
1372 ccsr_cpm_sdma_t im_cpm_sdma; /* SDMA control/status */
wdenk9c53f402003-10-15 23:53:47 +00001373 ccsr_cpm_fcc1_t im_cpm_fcc1;
1374 ccsr_cpm_fcc2_t im_cpm_fcc2;
1375 ccsr_cpm_fcc3_t im_cpm_fcc3;
1376 ccsr_cpm_fcc1_ext_t im_cpm_fcc1_ext;
1377 ccsr_cpm_fcc2_ext_t im_cpm_fcc2_ext;
1378 ccsr_cpm_fcc3_ext_t im_cpm_fcc3_ext;
1379 ccsr_cpm_tmp1_t im_cpm_tmp1;
1380 ccsr_cpm_brg2_t im_cpm_brg2;
1381 ccsr_cpm_i2c_t im_cpm_i2c;
1382 ccsr_cpm_cp_t im_cpm_cp;
1383 ccsr_cpm_brg1_t im_cpm_brg1;
1384 ccsr_cpm_scc_t im_cpm_scc[4];
1385 ccsr_cpm_tmp2_t im_cpm_tmp2;
1386 ccsr_cpm_spi_t im_cpm_spi;
1387 ccsr_cpm_mux_t im_cpm_mux;
1388 ccsr_cpm_tmp3_t im_cpm_tmp3;
1389 ccsr_cpm_iram_t im_cpm_iram;
1390} ccsr_cpm_t;
1391#endif
wdenk9c53f402003-10-15 23:53:47 +00001392
Jon Loeligerebc72242005-08-01 13:20:47 -05001393/*
1394 * RapidIO Registers(0xc_0000-0xe_0000)
1395 */
wdenk9c53f402003-10-15 23:53:47 +00001396typedef struct ccsr_rio {
1397 uint didcar; /* 0xc0000 - Device Identity Capability Register */
1398 uint dicar; /* 0xc0004 - Device Information Capability Register */
1399 uint aidcar; /* 0xc0008 - Assembly Identity Capability Register */
1400 uint aicar; /* 0xc000c - Assembly Information Capability Register */
1401 uint pefcar; /* 0xc0010 - Processing Element Features Capability Register */
1402 uint spicar; /* 0xc0014 - Switch Port Information Capability Register */
1403 uint socar; /* 0xc0018 - Source Operations Capability Register */
1404 uint docar; /* 0xc001c - Destination Operations Capability Register */
1405 char res1[32];
1406 uint msr; /* 0xc0040 - Mailbox Command And Status Register */
1407 uint pwdcsr; /* 0xc0044 - Port-Write and Doorbell Command And Status Register */
1408 char res2[4];
1409 uint pellccsr; /* 0xc004c - Processing Element Logic Layer Control Command and Status Register */
1410 char res3[12];
1411 uint lcsbacsr; /* 0xc005c - Local Configuration Space Base Address Command and Status Register */
1412 uint bdidcsr; /* 0xc0060 - Base Device ID Command and Status Register */
1413 char res4[4];
1414 uint hbdidlcsr; /* 0xc0068 - Host Base Device ID Lock Command and Status Register */
1415 uint ctcsr; /* 0xc006c - Component Tag Command and Status Register */
1416 char res5[144];
1417 uint pmbh0csr; /* 0xc0100 - 8/16 LP-LVDS Port Maintenance Block Header 0 Command and Status Register */
1418 char res6[28];
1419 uint pltoccsr; /* 0xc0120 - Port Link Time-out Control Command and Status Register */
1420 uint prtoccsr; /* 0xc0124 - Port Response Time-out Control Command and Status Register */
1421 char res7[20];
1422 uint pgccsr; /* 0xc013c - Port General Command and Status Register */
1423 uint plmreqcsr; /* 0xc0140 - Port Link Maintenance Request Command and Status Register */
1424 uint plmrespcsr; /* 0xc0144 - Port Link Maintenance Response Command and Status Register */
1425 uint plascsr; /* 0xc0148 - Port Local Ackid Status Command and Status Register */
1426 char res8[12];
1427 uint pescsr; /* 0xc0158 - Port Error and Status Command and Status Register */
1428 uint pccsr; /* 0xc015c - Port Control Command and Status Register */
1429 char res9[65184];
1430 uint cr; /* 0xd0000 - Port Control Command and Status Register */
1431 char res10[12];
1432 uint pcr; /* 0xd0010 - Port Configuration Register */
1433 uint peir; /* 0xd0014 - Port Error Injection Register */
1434 char res11[3048];
1435 uint rowtar0; /* 0xd0c00 - RapidIO Outbound Window Translation Address Register 0 */
1436 char res12[12];
1437 uint rowar0; /* 0xd0c10 - RapidIO Outbound Attributes Register 0 */
1438 char res13[12];
1439 uint rowtar1; /* 0xd0c20 - RapidIO Outbound Window Translation Address Register 1 */
1440 char res14[4];
1441 uint rowbar1; /* 0xd0c28 - RapidIO Outbound Window Base Address Register 1 */
1442 char res15[4];
1443 uint rowar1; /* 0xd0c30 - RapidIO Outbound Attributes Register 1 */
1444 char res16[12];
1445 uint rowtar2; /* 0xd0c40 - RapidIO Outbound Window Translation Address Register 2 */
1446 char res17[4];
1447 uint rowbar2; /* 0xd0c48 - RapidIO Outbound Window Base Address Register 2 */
1448 char res18[4];
1449 uint rowar2; /* 0xd0c50 - RapidIO Outbound Attributes Register 2 */
1450 char res19[12];
1451 uint rowtar3; /* 0xd0c60 - RapidIO Outbound Window Translation Address Register 3 */
1452 char res20[4];
1453 uint rowbar3; /* 0xd0c68 - RapidIO Outbound Window Base Address Register 3 */
1454 char res21[4];
1455 uint rowar3; /* 0xd0c70 - RapidIO Outbound Attributes Register 3 */
1456 char res22[12];
1457 uint rowtar4; /* 0xd0c80 - RapidIO Outbound Window Translation Address Register 4 */
1458 char res23[4];
1459 uint rowbar4; /* 0xd0c88 - RapidIO Outbound Window Base Address Register 4 */
1460 char res24[4];
1461 uint rowar4; /* 0xd0c90 - RapidIO Outbound Attributes Register 4 */
1462 char res25[12];
1463 uint rowtar5; /* 0xd0ca0 - RapidIO Outbound Window Translation Address Register 5 */
1464 char res26[4];
1465 uint rowbar5; /* 0xd0ca8 - RapidIO Outbound Window Base Address Register 5 */
1466 char res27[4];
1467 uint rowar5; /* 0xd0cb0 - RapidIO Outbound Attributes Register 5 */
1468 char res28[12];
1469 uint rowtar6; /* 0xd0cc0 - RapidIO Outbound Window Translation Address Register 6 */
1470 char res29[4];
1471 uint rowbar6; /* 0xd0cc8 - RapidIO Outbound Window Base Address Register 6 */
1472 char res30[4];
1473 uint rowar6; /* 0xd0cd0 - RapidIO Outbound Attributes Register 6 */
1474 char res31[12];
1475 uint rowtar7; /* 0xd0ce0 - RapidIO Outbound Window Translation Address Register 7 */
1476 char res32[4];
1477 uint rowbar7; /* 0xd0ce8 - RapidIO Outbound Window Base Address Register 7 */
1478 char res33[4];
1479 uint rowar7; /* 0xd0cf0 - RapidIO Outbound Attributes Register 7 */
1480 char res34[12];
1481 uint rowtar8; /* 0xd0d00 - RapidIO Outbound Window Translation Address Register 8 */
1482 char res35[4];
1483 uint rowbar8; /* 0xd0d08 - RapidIO Outbound Window Base Address Register 8 */
1484 char res36[4];
1485 uint rowar8; /* 0xd0d10 - RapidIO Outbound Attributes Register 8 */
1486 char res37[76];
1487 uint riwtar4; /* 0xd0d60 - RapidIO Inbound Window Translation Address Register 4 */
1488 char res38[4];
1489 uint riwbar4; /* 0xd0d68 - RapidIO Inbound Window Base Address Register 4 */
1490 char res39[4];
1491 uint riwar4; /* 0xd0d70 - RapidIO Inbound Attributes Register 4 */
1492 char res40[12];
1493 uint riwtar3; /* 0xd0d80 - RapidIO Inbound Window Translation Address Register 3 */
1494 char res41[4];
1495 uint riwbar3; /* 0xd0d88 - RapidIO Inbound Window Base Address Register 3 */
1496 char res42[4];
1497 uint riwar3; /* 0xd0d90 - RapidIO Inbound Attributes Register 3 */
1498 char res43[12];
1499 uint riwtar2; /* 0xd0da0 - RapidIO Inbound Window Translation Address Register 2 */
1500 char res44[4];
1501 uint riwbar2; /* 0xd0da8 - RapidIO Inbound Window Base Address Register 2 */
1502 char res45[4];
1503 uint riwar2; /* 0xd0db0 - RapidIO Inbound Attributes Register 2 */
1504 char res46[12];
1505 uint riwtar1; /* 0xd0dc0 - RapidIO Inbound Window Translation Address Register 1 */
1506 char res47[4];
1507 uint riwbar1; /* 0xd0dc8 - RapidIO Inbound Window Base Address Register 1 */
1508 char res48[4];
1509 uint riwar1; /* 0xd0dd0 - RapidIO Inbound Attributes Register 1 */
1510 char res49[12];
1511 uint riwtar0; /* 0xd0de0 - RapidIO Inbound Window Translation Address Register 0 */
1512 char res50[12];
1513 uint riwar0; /* 0xd0df0 - RapidIO Inbound Attributes Register 0 */
1514 char res51[12];
1515 uint pnfedr; /* 0xd0e00 - Port Notification/Fatal Error Detect Register */
1516 uint pnfedir; /* 0xd0e04 - Port Notification/Fatal Error Detect Register */
1517 uint pnfeier; /* 0xd0e08 - Port Notification/Fatal Error Interrupt Enable Register */
1518 uint pecr; /* 0xd0e0c - Port Error Control Register */
1519 uint pepcsr0; /* 0xd0e10 - Port Error Packet/Control Symbol Register 0 */
1520 uint pepr1; /* 0xd0e14 - Port Error Packet Register 1 */
1521 uint pepr2; /* 0xd0e18 - Port Error Packet Register 2 */
1522 char res52[4];
1523 uint predr; /* 0xd0e20 - Port Recoverable Error Detect Register */
1524 char res53[4];
1525 uint pertr; /* 0xd0e28 - Port Error Recovery Threshold Register */
1526 uint prtr; /* 0xd0e2c - Port Retry Threshold Register */
1527 char res54[464];
1528 uint omr; /* 0xd1000 - Outbound Mode Register */
1529 uint osr; /* 0xd1004 - Outbound Status Register */
1530 uint eodqtpar; /* 0xd1008 - Extended Outbound Descriptor Queue Tail Pointer Address Register */
1531 uint odqtpar; /* 0xd100c - Outbound Descriptor Queue Tail Pointer Address Register */
1532 uint eosar; /* 0xd1010 - Extended Outbound Unit Source Address Register */
1533 uint osar; /* 0xd1014 - Outbound Unit Source Address Register */
1534 uint odpr; /* 0xd1018 - Outbound Destination Port Register */
1535 uint odatr; /* 0xd101c - Outbound Destination Attributes Register */
1536 uint odcr; /* 0xd1020 - Outbound Doubleword Count Register */
1537 uint eodqhpar; /* 0xd1024 - Extended Outbound Descriptor Queue Head Pointer Address Register */
1538 uint odqhpar; /* 0xd1028 - Outbound Descriptor Queue Head Pointer Address Register */
1539 char res55[52];
1540 uint imr; /* 0xd1060 - Outbound Mode Register */
1541 uint isr; /* 0xd1064 - Inbound Status Register */
1542 uint eidqtpar; /* 0xd1068 - Extended Inbound Descriptor Queue Tail Pointer Address Register */
1543 uint idqtpar; /* 0xd106c - Inbound Descriptor Queue Tail Pointer Address Register */
1544 uint eifqhpar; /* 0xd1070 - Extended Inbound Frame Queue Head Pointer Address Register */
1545 uint ifqhpar; /* 0xd1074 - Inbound Frame Queue Head Pointer Address Register */
1546 char res56[1000];
1547 uint dmr; /* 0xd1460 - Doorbell Mode Register */
1548 uint dsr; /* 0xd1464 - Doorbell Status Register */
1549 uint edqtpar; /* 0xd1468 - Extended Doorbell Queue Tail Pointer Address Register */
1550 uint dqtpar; /* 0xd146c - Doorbell Queue Tail Pointer Address Register */
1551 uint edqhpar; /* 0xd1470 - Extended Doorbell Queue Head Pointer Address Register */
1552 uint dqhpar; /* 0xd1474 - Doorbell Queue Head Pointer Address Register */
1553 char res57[104];
1554 uint pwmr; /* 0xd14e0 - Port-Write Mode Register */
1555 uint pwsr; /* 0xd14e4 - Port-Write Status Register */
1556 uint epwqbar; /* 0xd14e8 - Extended Port-Write Queue Base Address Register */
1557 uint pwqbar; /* 0xd14ec - Port-Write Queue Base Address Register */
1558 char res58[60176];
1559} ccsr_rio_t;
1560
Haiying Wangc4fc8832007-06-19 14:18:34 -04001561/* Quick Engine Block Pin Muxing Registers (0xe_0100 - 0xe_01bf) */
1562typedef struct par_io {
1563 uint cpodr; /* 0x100 */
1564 uint cpdat; /* 0x104 */
1565 uint cpdir1; /* 0x108 */
1566 uint cpdir2; /* 0x10c */
1567 uint cppar1; /* 0x110 */
1568 uint cppar2; /* 0x114 */
1569 char res[8];
1570}par_io_t;
1571
Jon Loeligerebc72242005-08-01 13:20:47 -05001572/*
1573 * Global Utilities Register Block(0xe_0000-0xf_ffff)
1574 */
wdenk9c53f402003-10-15 23:53:47 +00001575typedef struct ccsr_gur {
1576 uint porpllsr; /* 0xe0000 - POR PLL ratio status register */
Jason Jinbfcd6c32008-09-27 14:40:57 +08001577#ifdef CONFIG_MPC8536
1578#define MPC85xx_PORPLLSR_DDR_RATIO 0x3e000000
1579#define MPC85xx_PORPLLSR_DDR_RATIO_SHIFT 25
1580#else
1581#define MPC85xx_PORPLLSR_DDR_RATIO 0x00003e00
1582#define MPC85xx_PORPLLSR_DDR_RATIO_SHIFT 9
1583#endif
wdenk9c53f402003-10-15 23:53:47 +00001584 uint porbmsr; /* 0xe0004 - POR boot mode status register */
Wolfgang Denka1be4762008-05-20 16:00:29 +02001585#define MPC85xx_PORBMSR_HA 0x00070000
wdenk9c53f402003-10-15 23:53:47 +00001586 uint porimpscr; /* 0xe0008 - POR I/O impedance status and control register */
1587 uint pordevsr; /* 0xe000c - POR I/O device status regsiter */
Ed Swarthout52b98522007-07-27 01:50:51 -05001588#define MPC85xx_PORDEVSR_SGMII1_DIS 0x20000000
1589#define MPC85xx_PORDEVSR_SGMII2_DIS 0x10000000
1590#define MPC85xx_PORDEVSR_SGMII3_DIS 0x08000000
1591#define MPC85xx_PORDEVSR_SGMII4_DIS 0x04000000
Kumar Galacd777282008-08-12 11:14:19 -05001592#define MPC85xx_PORDEVSR_SRDS2_IO_SEL 0x38000000
Peter Tyseraf7c3e32008-12-01 13:47:12 -06001593#define MPC85xx_PORDEVSR_PCI1 0x00800000
Peter Tyser603e6382008-10-27 16:42:00 -05001594#define MPC85xx_PORDEVSR_IO_SEL 0x00780000
Wolfgang Denka1be4762008-05-20 16:00:29 +02001595#define MPC85xx_PORDEVSR_PCI2_ARB 0x00040000
1596#define MPC85xx_PORDEVSR_PCI1_ARB 0x00020000
1597#define MPC85xx_PORDEVSR_PCI1_PCI32 0x00010000
1598#define MPC85xx_PORDEVSR_PCI1_SPD 0x00008000
1599#define MPC85xx_PORDEVSR_PCI2_SPD 0x00004000
Ed Swarthout52b98522007-07-27 01:50:51 -05001600#define MPC85xx_PORDEVSR_DRAM_RTYPE 0x00000060
Wolfgang Denka1be4762008-05-20 16:00:29 +02001601#define MPC85xx_PORDEVSR_RIO_CTLS 0x00000008
Ed Swarthout52b98522007-07-27 01:50:51 -05001602#define MPC85xx_PORDEVSR_RIO_DEV_ID 0x00000007
wdenk9c53f402003-10-15 23:53:47 +00001603 uint pordbgmsr; /* 0xe0010 - POR debug mode status register */
Timur Tabi44befe02008-04-04 11:15:58 -05001604 uint pordevsr2; /* 0xe0014 - POR I/O device status regsiter 2 */
Timur Tabi206c7262008-10-20 15:16:47 -05001605/* The 8544 RM says this is bit 26, but it's really bit 24 */
Kumar Galaa5694a12008-10-16 21:58:50 -05001606#define MPC85xx_PORDEVSR2_SEC_CFG 0x00000080
Timur Tabi44befe02008-04-04 11:15:58 -05001607 char res1[8];
wdenk9c53f402003-10-15 23:53:47 +00001608 uint gpporcr; /* 0xe0020 - General-purpose POR configuration register */
1609 char res2[12];
1610 uint gpiocr; /* 0xe0030 - GPIO control register */
1611 char res3[12];
1612 uint gpoutdr; /* 0xe0040 - General-purpose output data register */
1613 char res4[12];
1614 uint gpindr; /* 0xe0050 - General-purpose input data register */
1615 char res5[12];
1616 uint pmuxcr; /* 0xe0060 - Alternate function signal multiplex control */
1617 char res6[12];
1618 uint devdisr; /* 0xe0070 - Device disable control */
Ed Swarthout52b98522007-07-27 01:50:51 -05001619#define MPC85xx_DEVDISR_PCI1 0x80000000
1620#define MPC85xx_DEVDISR_PCI2 0x40000000
1621#define MPC85xx_DEVDISR_PCIE 0x20000000
1622#define MPC85xx_DEVDISR_LBC 0x08000000
1623#define MPC85xx_DEVDISR_PCIE2 0x04000000
1624#define MPC85xx_DEVDISR_PCIE3 0x02000000
1625#define MPC85xx_DEVDISR_SEC 0x01000000
1626#define MPC85xx_DEVDISR_SRIO 0x00080000
1627#define MPC85xx_DEVDISR_RMSG 0x00040000
Wolfgang Denka1be4762008-05-20 16:00:29 +02001628#define MPC85xx_DEVDISR_DDR 0x00010000
1629#define MPC85xx_DEVDISR_CPU 0x00008000
1630#define MPC85xx_DEVDISR_CPU0 MPC85xx_DEVDISR_CPU
1631#define MPC85xx_DEVDISR_TB 0x00004000
1632#define MPC85xx_DEVDISR_TB0 MPC85xx_DEVDISR_TB
1633#define MPC85xx_DEVDISR_CPU1 0x00002000
1634#define MPC85xx_DEVDISR_TB1 0x00001000
Ed Swarthout52b98522007-07-27 01:50:51 -05001635#define MPC85xx_DEVDISR_DMA 0x00000400
1636#define MPC85xx_DEVDISR_TSEC1 0x00000080
1637#define MPC85xx_DEVDISR_TSEC2 0x00000040
1638#define MPC85xx_DEVDISR_TSEC3 0x00000020
1639#define MPC85xx_DEVDISR_TSEC4 0x00000010
1640#define MPC85xx_DEVDISR_I2C 0x00000004
1641#define MPC85xx_DEVDISR_DUART 0x00000002
wdenk9c53f402003-10-15 23:53:47 +00001642 char res7[12];
1643 uint powmgtcsr; /* 0xe0080 - Power management status and control register */
1644 char res8[12];
1645 uint mcpsumr; /* 0xe0090 - Machine check summary register */
1646 char res9[12];
1647 uint pvr; /* 0xe00a0 - Processor version register */
1648 uint svr; /* 0xe00a4 - System version register */
Andy Fleming933c1b92007-06-05 16:38:44 -05001649 char res10a[8];
1650 uint rstcr; /* 0xe00b0 - Reset control register */
Andy Fleming088e82c2007-08-15 20:03:34 -05001651#ifdef CONFIG_MPC8568
Haiying Wangc4fc8832007-06-19 14:18:34 -04001652 char res10b[76];
1653 par_io_t qe_par_io[7]; /* 0xe0100 - 0xe01bf */
1654 char res10c[3136];
1655#else
Andy Fleming933c1b92007-06-05 16:38:44 -05001656 char res10b[3404];
Haiying Wangc4fc8832007-06-19 14:18:34 -04001657#endif
wdenk9c53f402003-10-15 23:53:47 +00001658 uint clkocr; /* 0xe0e00 - Clock out select register */
1659 char res11[12];
1660 uint ddrdllcr; /* 0xe0e10 - DDR DLL control register */
1661 char res12[12];
1662 uint lbcdllcr; /* 0xe0e20 - LBC DLL control register */
Jon Loeliger77a4f6e2005-07-25 14:05:07 -05001663 char res13[248];
1664 uint lbiuiplldcr0; /* 0xe0f1c -- LBIU PLL Debug Reg 0 */
1665 uint lbiuiplldcr1; /* 0xe0f20 -- LBIU PLL Debug Reg 1 */
1666 uint ddrioovcr; /* 0xe0f24 - DDR IO Override Control */
1667 uint res14; /* 0xe0f28 */
1668 uint tsec34ioovcr; /* 0xe0f2c - eTSEC 3/4 IO override control */
Ed Swarthout52b98522007-07-27 01:50:51 -05001669 char res15[61648]; /* 0xe0f30 to 0xefffff */
wdenk9c53f402003-10-15 23:53:47 +00001670} ccsr_gur_t;
1671
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +02001672#define CONFIG_SYS_MPC85xx_GUTS_OFFSET (0xE0000)
1673#define CONFIG_SYS_MPC85xx_GUTS_ADDR (CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_GUTS_OFFSET)
1674#define CONFIG_SYS_MPC85xx_ECM_OFFSET (0x0000)
1675#define CONFIG_SYS_MPC85xx_ECM_ADDR (CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_ECM_OFFSET)
1676#define CONFIG_SYS_MPC85xx_DDR_OFFSET (0x2000)
1677#define CONFIG_SYS_MPC85xx_DDR_ADDR (CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_DDR_OFFSET)
1678#define CONFIG_SYS_MPC85xx_DDR2_OFFSET (0x6000)
1679#define CONFIG_SYS_MPC85xx_DDR2_ADDR (CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_DDR2_OFFSET)
1680#define CONFIG_SYS_MPC85xx_LBC_OFFSET (0x5000)
1681#define CONFIG_SYS_MPC85xx_LBC_ADDR (CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_LBC_OFFSET)
1682#define CONFIG_SYS_MPC85xx_PCIX_OFFSET (0x8000)
1683#define CONFIG_SYS_MPC85xx_PCIX_ADDR (CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_PCIX_OFFSET)
1684#define CONFIG_SYS_MPC85xx_PCIX2_OFFSET (0x9000)
1685#define CONFIG_SYS_MPC85xx_PCIX2_ADDR (CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_PCIX2_OFFSET)
1686#define CONFIG_SYS_MPC85xx_SATA1_OFFSET (0x18000)
1687#define CONFIG_SYS_MPC85xx_SATA1_ADDR (CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_SATA1_OFFSET)
1688#define CONFIG_SYS_MPC85xx_SATA2_OFFSET (0x19000)
1689#define CONFIG_SYS_MPC85xx_SATA2_ADDR (CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_SATA2_OFFSET)
1690#define CONFIG_SYS_MPC85xx_L2_OFFSET (0x20000)
1691#define CONFIG_SYS_MPC85xx_L2_ADDR (CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_L2_OFFSET)
1692#define CONFIG_SYS_MPC85xx_DMA_OFFSET (0x21000)
1693#define CONFIG_SYS_MPC85xx_DMA_ADDR (CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_DMA_OFFSET)
1694#define CONFIG_SYS_MPC85xx_ESDHC_OFFSET (0x2e000)
1695#define CONFIG_SYS_MPC85xx_ESDHC_ADDR (CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_ESDHC_OFFSET)
1696#define CONFIG_SYS_MPC85xx_PIC_OFFSET (0x40000)
1697#define CONFIG_SYS_MPC85xx_PIC_ADDR (CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_PIC_OFFSET)
1698#define CONFIG_SYS_MPC85xx_CPM_OFFSET (0x80000)
1699#define CONFIG_SYS_MPC85xx_CPM_ADDR (CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_CPM_OFFSET)
1700#define CONFIG_SYS_MPC85xx_SERDES1_OFFSET (0xE3000)
1701#define CONFIG_SYS_MPC85xx_SERDES1_ADDR (CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_SERDES2_OFFSET)
1702#define CONFIG_SYS_MPC85xx_SERDES2_OFFSET (0xE3100)
1703#define CONFIG_SYS_MPC85xx_SERDES2_ADDR (CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_SERDES2_OFFSET)
Kumar Galacd113a02007-11-28 00:36:33 -06001704
wdenk9c53f402003-10-15 23:53:47 +00001705#endif /*__IMMAP_85xx__*/