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