xref: /rk3399_rockchip-uboot/arch/powerpc/include/asm/immap_85xx.h (revision 48ef0d2a1002d3da0bf7ed13d0959bcbf782c792)
1a47a12beSStefan Roese /*
2a47a12beSStefan Roese  * MPC85xx Internal Memory Map
3a47a12beSStefan Roese  *
419a8dbdcSPrabhakar Kushwaha  * Copyright 2007-2012 Freescale Semiconductor, Inc.
5a47a12beSStefan Roese  *
6a47a12beSStefan Roese  * Copyright(c) 2002,2003 Motorola Inc.
7a47a12beSStefan Roese  * Xianghua Xiao (x.xiao@motorola.com)
8a47a12beSStefan Roese  *
91a459660SWolfgang Denk  * SPDX-License-Identifier:	GPL-2.0+
10a47a12beSStefan Roese  */
11a47a12beSStefan Roese 
12a47a12beSStefan Roese #ifndef __IMMAP_85xx__
13a47a12beSStefan Roese #define __IMMAP_85xx__
14a47a12beSStefan Roese 
15a47a12beSStefan Roese #include <asm/types.h>
16a47a12beSStefan Roese #include <asm/fsl_dma.h>
17a47a12beSStefan Roese #include <asm/fsl_i2c.h>
180b66513bSYork Sun #include <fsl_ifc.h>
19*48ef0d2aSRuchika Gupta #include <fsl_sec.h>
20a47a12beSStefan Roese #include <asm/fsl_lbc.h>
21ebd7cb0bSKumar Gala #include <asm/fsl_fman.h>
229a17eb5bSYork Sun #include <fsl_immap.h>
23a47a12beSStefan Roese 
24a47a12beSStefan Roese typedef struct ccsr_local {
25a47a12beSStefan Roese 	u32	ccsrbarh;	/* CCSR Base Addr High */
26a47a12beSStefan Roese 	u32	ccsrbarl;	/* CCSR Base Addr Low */
27a47a12beSStefan Roese 	u32	ccsrar;		/* CCSR Attr */
28a47a12beSStefan Roese #define CCSRAR_C	0x80000000	/* Commit */
29a47a12beSStefan Roese 	u8	res1[4];
30a47a12beSStefan Roese 	u32	altcbarh;	/* Alternate Configuration Base Addr High */
31a47a12beSStefan Roese 	u32	altcbarl;	/* Alternate Configuration Base Addr Low */
32a47a12beSStefan Roese 	u32	altcar;		/* Alternate Configuration Attr */
33a47a12beSStefan Roese 	u8	res2[4];
34a47a12beSStefan Roese 	u32	bstrh;		/* Boot space translation high */
35a47a12beSStefan Roese 	u32	bstrl;		/* Boot space translation Low */
36a47a12beSStefan Roese 	u32	bstrar;		/* Boot space translation attributes */
37a47a12beSStefan Roese 	u8	res3[0xbd4];
38a47a12beSStefan Roese 	struct {
39a47a12beSStefan Roese 		u32	lawbarh;	/* LAWn base addr high */
40a47a12beSStefan Roese 		u32	lawbarl;	/* LAWn base addr low */
41a47a12beSStefan Roese 		u32	lawar;		/* LAWn attributes */
42a47a12beSStefan Roese 		u8	res4[4];
43a47a12beSStefan Roese 	} law[32];
44a47a12beSStefan Roese 	u8	res35[0x204];
45a47a12beSStefan Roese } ccsr_local_t;
46a47a12beSStefan Roese 
47a47a12beSStefan Roese /* Local-Access Registers & ECM Registers */
48a47a12beSStefan Roese typedef struct ccsr_local_ecm {
49a47a12beSStefan Roese 	u32	ccsrbar;	/* CCSR Base Addr */
50a47a12beSStefan Roese 	u8	res1[4];
51a47a12beSStefan Roese 	u32	altcbar;	/* Alternate Configuration Base Addr */
52a47a12beSStefan Roese 	u8	res2[4];
53a47a12beSStefan Roese 	u32	altcar;		/* Alternate Configuration Attr */
54a47a12beSStefan Roese 	u8	res3[12];
55a47a12beSStefan Roese 	u32	bptr;		/* Boot Page Translation */
56a47a12beSStefan Roese 	u8	res4[3044];
57a47a12beSStefan Roese 	u32	lawbar0;	/* Local Access Window 0 Base Addr */
58a47a12beSStefan Roese 	u8	res5[4];
59a47a12beSStefan Roese 	u32	lawar0;		/* Local Access Window 0 Attrs */
60a47a12beSStefan Roese 	u8	res6[20];
61a47a12beSStefan Roese 	u32	lawbar1;	/* Local Access Window 1 Base Addr */
62a47a12beSStefan Roese 	u8	res7[4];
63a47a12beSStefan Roese 	u32	lawar1;		/* Local Access Window 1 Attrs */
64a47a12beSStefan Roese 	u8	res8[20];
65a47a12beSStefan Roese 	u32	lawbar2;	/* Local Access Window 2 Base Addr */
66a47a12beSStefan Roese 	u8	res9[4];
67a47a12beSStefan Roese 	u32	lawar2;		/* Local Access Window 2 Attrs */
68a47a12beSStefan Roese 	u8	res10[20];
69a47a12beSStefan Roese 	u32	lawbar3;	/* Local Access Window 3 Base Addr */
70a47a12beSStefan Roese 	u8	res11[4];
71a47a12beSStefan Roese 	u32	lawar3;		/* Local Access Window 3 Attrs */
72a47a12beSStefan Roese 	u8	res12[20];
73a47a12beSStefan Roese 	u32	lawbar4;	/* Local Access Window 4 Base Addr */
74a47a12beSStefan Roese 	u8	res13[4];
75a47a12beSStefan Roese 	u32	lawar4;		/* Local Access Window 4 Attrs */
76a47a12beSStefan Roese 	u8	res14[20];
77a47a12beSStefan Roese 	u32	lawbar5;	/* Local Access Window 5 Base Addr */
78a47a12beSStefan Roese 	u8	res15[4];
79a47a12beSStefan Roese 	u32	lawar5;		/* Local Access Window 5 Attrs */
80a47a12beSStefan Roese 	u8	res16[20];
81a47a12beSStefan Roese 	u32	lawbar6;	/* Local Access Window 6 Base Addr */
82a47a12beSStefan Roese 	u8	res17[4];
83a47a12beSStefan Roese 	u32	lawar6;		/* Local Access Window 6 Attrs */
84a47a12beSStefan Roese 	u8	res18[20];
85a47a12beSStefan Roese 	u32	lawbar7;	/* Local Access Window 7 Base Addr */
86a47a12beSStefan Roese 	u8	res19[4];
87a47a12beSStefan Roese 	u32	lawar7;		/* Local Access Window 7 Attrs */
88a47a12beSStefan Roese 	u8	res19_8a[20];
89a47a12beSStefan Roese 	u32	lawbar8;	/* Local Access Window 8 Base Addr */
90a47a12beSStefan Roese 	u8	res19_8b[4];
91a47a12beSStefan Roese 	u32	lawar8;		/* Local Access Window 8 Attrs */
92a47a12beSStefan Roese 	u8	res19_9a[20];
93a47a12beSStefan Roese 	u32	lawbar9;	/* Local Access Window 9 Base Addr */
94a47a12beSStefan Roese 	u8	res19_9b[4];
95a47a12beSStefan Roese 	u32	lawar9;		/* Local Access Window 9 Attrs */
96a47a12beSStefan Roese 	u8	res19_10a[20];
97a47a12beSStefan Roese 	u32	lawbar10;	/* Local Access Window 10 Base Addr */
98a47a12beSStefan Roese 	u8	res19_10b[4];
99a47a12beSStefan Roese 	u32	lawar10;	/* Local Access Window 10 Attrs */
100a47a12beSStefan Roese 	u8	res19_11a[20];
101a47a12beSStefan Roese 	u32	lawbar11;	/* Local Access Window 11 Base Addr */
102a47a12beSStefan Roese 	u8	res19_11b[4];
103a47a12beSStefan Roese 	u32	lawar11;	/* Local Access Window 11 Attrs */
104a47a12beSStefan Roese 	u8	res20[652];
105a47a12beSStefan Roese 	u32	eebacr;		/* ECM CCB Addr Configuration */
106a47a12beSStefan Roese 	u8	res21[12];
107a47a12beSStefan Roese 	u32	eebpcr;		/* ECM CCB Port Configuration */
108a47a12beSStefan Roese 	u8	res22[3564];
109a47a12beSStefan Roese 	u32	eedr;		/* ECM Error Detect */
110a47a12beSStefan Roese 	u8	res23[4];
111a47a12beSStefan Roese 	u32	eeer;		/* ECM Error Enable */
112a47a12beSStefan Roese 	u32	eeatr;		/* ECM Error Attrs Capture */
113a47a12beSStefan Roese 	u32	eeadr;		/* ECM Error Addr Capture */
114a47a12beSStefan Roese 	u8	res24[492];
115a47a12beSStefan Roese } ccsr_local_ecm_t;
116a47a12beSStefan Roese 
1179ab87d04SKumar Gala #define DDR_EOR_RD_BDW_OPT_DIS	0x80000000 /* Read BDW Opt. disable */
1189ab87d04SKumar Gala #define DDR_EOR_ADDR_HASH_EN	0x40000000 /* Address hash enabled */
1199ab87d04SKumar Gala 
120a47a12beSStefan Roese /* I2C Registers */
121a47a12beSStefan Roese typedef struct ccsr_i2c {
122a47a12beSStefan Roese 	struct fsl_i2c	i2c[1];
123a47a12beSStefan Roese 	u8	res[4096 - 1 * sizeof(struct fsl_i2c)];
124a47a12beSStefan Roese } ccsr_i2c_t;
125a47a12beSStefan Roese 
126a47a12beSStefan Roese #if defined(CONFIG_MPC8540) \
127a47a12beSStefan Roese 	|| defined(CONFIG_MPC8541) \
128a47a12beSStefan Roese 	|| defined(CONFIG_MPC8548) \
129a47a12beSStefan Roese 	|| defined(CONFIG_MPC8555)
130a47a12beSStefan Roese /* DUART Registers */
131a47a12beSStefan Roese typedef struct ccsr_duart {
132a47a12beSStefan Roese 	u8	res1[1280];
133a47a12beSStefan Roese /* URBR1, UTHR1, UDLB1 with the same addr */
134a47a12beSStefan Roese 	u8	urbr1_uthr1_udlb1;
135a47a12beSStefan Roese /* UIER1, UDMB1 with the same addr01 */
136a47a12beSStefan Roese 	u8	uier1_udmb1;
137a47a12beSStefan Roese /* UIIR1, UFCR1, UAFR1 with the same addr */
138a47a12beSStefan Roese 	u8	uiir1_ufcr1_uafr1;
139a47a12beSStefan Roese 	u8	ulcr1;		/* UART1 Line Control */
140a47a12beSStefan Roese 	u8	umcr1;		/* UART1 Modem Control */
141a47a12beSStefan Roese 	u8	ulsr1;		/* UART1 Line Status */
142a47a12beSStefan Roese 	u8	umsr1;		/* UART1 Modem Status */
143a47a12beSStefan Roese 	u8	uscr1;		/* UART1 Scratch */
144a47a12beSStefan Roese 	u8	res2[8];
145a47a12beSStefan Roese 	u8	udsr1;		/* UART1 DMA Status */
146a47a12beSStefan Roese 	u8	res3[239];
147a47a12beSStefan Roese /* URBR2, UTHR2, UDLB2 with the same addr */
148a47a12beSStefan Roese 	u8	urbr2_uthr2_udlb2;
149a47a12beSStefan Roese /* UIER2, UDMB2 with the same addr */
150a47a12beSStefan Roese 	u8	uier2_udmb2;
151a47a12beSStefan Roese /* UIIR2, UFCR2, UAFR2 with the same addr */
152a47a12beSStefan Roese 	u8	uiir2_ufcr2_uafr2;
153a47a12beSStefan Roese 	u8	ulcr2;		/* UART2 Line Control */
154a47a12beSStefan Roese 	u8	umcr2;		/* UART2 Modem Control */
155a47a12beSStefan Roese 	u8	ulsr2;		/* UART2 Line Status */
156a47a12beSStefan Roese 	u8	umsr2;		/* UART2 Modem Status */
157a47a12beSStefan Roese 	u8	uscr2;		/* UART2 Scratch */
158a47a12beSStefan Roese 	u8	res4[8];
159a47a12beSStefan Roese 	u8	udsr2;		/* UART2 DMA Status */
160a47a12beSStefan Roese 	u8	res5[2543];
161a47a12beSStefan Roese } ccsr_duart_t;
162a47a12beSStefan Roese #else /* MPC8560 uses UART on its CPM */
163a47a12beSStefan Roese typedef struct ccsr_duart {
164a47a12beSStefan Roese 	u8 res[4096];
165a47a12beSStefan Roese } ccsr_duart_t;
166a47a12beSStefan Roese #endif
167a47a12beSStefan Roese 
168a47a12beSStefan Roese /* eSPI Registers */
169a47a12beSStefan Roese typedef struct ccsr_espi {
170a47a12beSStefan Roese 	u32	mode;		/* eSPI mode */
171a47a12beSStefan Roese 	u32	event;		/* eSPI event */
172a47a12beSStefan Roese 	u32	mask;		/* eSPI mask */
173a47a12beSStefan Roese 	u32	com;		/* eSPI command */
174a47a12beSStefan Roese 	u32	tx;		/* eSPI transmit FIFO access */
175a47a12beSStefan Roese 	u32	rx;		/* eSPI receive FIFO access */
176a47a12beSStefan Roese 	u8	res1[8];	/* reserved */
177a47a12beSStefan Roese 	u32	csmode[4];	/* 0x2c: sSPI CS0/1/2/3 mode */
178a47a12beSStefan Roese 	u8	res2[4048];	/* fill up to 0x1000 */
179a47a12beSStefan Roese } ccsr_espi_t;
180a47a12beSStefan Roese 
181a47a12beSStefan Roese /* PCI Registers */
182a47a12beSStefan Roese typedef struct ccsr_pcix {
183a47a12beSStefan Roese 	u32	cfg_addr;	/* PCIX Configuration Addr */
184a47a12beSStefan Roese 	u32	cfg_data;	/* PCIX Configuration Data */
185a47a12beSStefan Roese 	u32	int_ack;	/* PCIX IRQ Acknowledge */
186e389a377SLaurentiu Tudor 	u8	res000c[52];
187e389a377SLaurentiu Tudor 	u32	liodn_base;	/* PCIX LIODN base register */
1888f9fe660SLaurentiu TUDOR 	u8	res0044[2996];
1898f9fe660SLaurentiu TUDOR 	u32	ipver1;		/* PCIX IP block revision register 1 */
1908f9fe660SLaurentiu TUDOR 	u32	ipver2;		/* PCIX IP block revision register 2 */
191a47a12beSStefan Roese 	u32	potar0;		/* PCIX Outbound Transaction Addr 0 */
192a47a12beSStefan Roese 	u32	potear0;	/* PCIX Outbound Translation Extended Addr 0 */
193a47a12beSStefan Roese 	u32	powbar0;	/* PCIX Outbound Window Base Addr 0 */
194a47a12beSStefan Roese 	u32	powbear0;	/* PCIX Outbound Window Base Extended Addr 0 */
195a47a12beSStefan Roese 	u32	powar0;		/* PCIX Outbound Window Attrs 0 */
196a47a12beSStefan Roese 	u8	res2[12];
197a47a12beSStefan Roese 	u32	potar1;		/* PCIX Outbound Transaction Addr 1 */
198a47a12beSStefan Roese 	u32	potear1;	/* PCIX Outbound Translation Extended Addr 1 */
199a47a12beSStefan Roese 	u32	powbar1;	/* PCIX Outbound Window Base Addr 1 */
200a47a12beSStefan Roese 	u32	powbear1;	/* PCIX Outbound Window Base Extended Addr 1 */
201a47a12beSStefan Roese 	u32	powar1;		/* PCIX Outbound Window Attrs 1 */
202a47a12beSStefan Roese 	u8	res3[12];
203a47a12beSStefan Roese 	u32	potar2;		/* PCIX Outbound Transaction Addr 2 */
204a47a12beSStefan Roese 	u32	potear2;	/* PCIX Outbound Translation Extended Addr 2 */
205a47a12beSStefan Roese 	u32	powbar2;	/* PCIX Outbound Window Base Addr 2 */
206a47a12beSStefan Roese 	u32	powbear2;	/* PCIX Outbound Window Base Extended Addr 2 */
207a47a12beSStefan Roese 	u32	powar2;		/* PCIX Outbound Window Attrs 2 */
208a47a12beSStefan Roese 	u8	res4[12];
209a47a12beSStefan Roese 	u32	potar3;		/* PCIX Outbound Transaction Addr 3 */
210a47a12beSStefan Roese 	u32	potear3;	/* PCIX Outbound Translation Extended Addr 3 */
211a47a12beSStefan Roese 	u32	powbar3;	/* PCIX Outbound Window Base Addr 3 */
212a47a12beSStefan Roese 	u32	powbear3;	/* PCIX Outbound Window Base Extended Addr 3 */
213a47a12beSStefan Roese 	u32	powar3;		/* PCIX Outbound Window Attrs 3 */
214a47a12beSStefan Roese 	u8	res5[12];
215a47a12beSStefan Roese 	u32	potar4;		/* PCIX Outbound Transaction Addr 4 */
216a47a12beSStefan Roese 	u32	potear4;	/* PCIX Outbound Translation Extended Addr 4 */
217a47a12beSStefan Roese 	u32	powbar4;	/* PCIX Outbound Window Base Addr 4 */
218a47a12beSStefan Roese 	u32	powbear4;	/* PCIX Outbound Window Base Extended Addr 4 */
219a47a12beSStefan Roese 	u32	powar4;		/* PCIX Outbound Window Attrs 4 */
220a47a12beSStefan Roese 	u8	res6[268];
221a47a12beSStefan Roese 	u32	pitar3;		/* PCIX Inbound Translation Addr 3 */
222a47a12beSStefan Roese 	u32	pitear3;	/* PCIX Inbound Translation Extended Addr 3 */
223a47a12beSStefan Roese 	u32	piwbar3;	/* PCIX Inbound Window Base Addr 3 */
224a47a12beSStefan Roese 	u32	piwbear3;	/* PCIX Inbound Window Base Extended Addr 3 */
225a47a12beSStefan Roese 	u32	piwar3;		/* PCIX Inbound Window Attrs 3 */
226a47a12beSStefan Roese 	u8	res7[12];
227a47a12beSStefan Roese 	u32	pitar2;		/* PCIX Inbound Translation Addr 2 */
228a47a12beSStefan Roese 	u32	pitear2;	/* PCIX Inbound Translation Extended Addr 2 */
229a47a12beSStefan Roese 	u32	piwbar2;	/* PCIX Inbound Window Base Addr 2 */
230a47a12beSStefan Roese 	u32	piwbear2;	/* PCIX Inbound Window Base Extended Addr 2 */
231a47a12beSStefan Roese 	u32	piwar2;		/* PCIX Inbound Window Attrs 2 */
232a47a12beSStefan Roese 	u8	res8[12];
233a47a12beSStefan Roese 	u32	pitar1;		/* PCIX Inbound Translation Addr 1 */
234a47a12beSStefan Roese 	u32	pitear1;	/* PCIX Inbound Translation Extended Addr 1 */
235a47a12beSStefan Roese 	u32	piwbar1;	/* PCIX Inbound Window Base Addr 1 */
236a47a12beSStefan Roese 	u8	res9[4];
237a47a12beSStefan Roese 	u32	piwar1;		/* PCIX Inbound Window Attrs 1 */
238a47a12beSStefan Roese 	u8	res10[12];
239a47a12beSStefan Roese 	u32	pedr;		/* PCIX Error Detect */
240a47a12beSStefan Roese 	u32	pecdr;		/* PCIX Error Capture Disable */
241a47a12beSStefan Roese 	u32	peer;		/* PCIX Error Enable */
242a47a12beSStefan Roese 	u32	peattrcr;	/* PCIX Error Attrs Capture */
243a47a12beSStefan Roese 	u32	peaddrcr;	/* PCIX Error Addr Capture */
244a47a12beSStefan Roese 	u32	peextaddrcr;	/* PCIX Error Extended Addr Capture */
245a47a12beSStefan Roese 	u32	pedlcr;		/* PCIX Error Data Low Capture */
246a47a12beSStefan Roese 	u32	pedhcr;		/* PCIX Error Error Data High Capture */
247a47a12beSStefan Roese 	u32	gas_timr;	/* PCIX Gasket Timer */
248a47a12beSStefan Roese 	u8	res11[476];
249a47a12beSStefan Roese } ccsr_pcix_t;
250a47a12beSStefan Roese 
251a47a12beSStefan Roese #define PCIX_COMMAND	0x62
252a47a12beSStefan Roese #define POWAR_EN	0x80000000
253a47a12beSStefan Roese #define POWAR_IO_READ	0x00080000
254a47a12beSStefan Roese #define POWAR_MEM_READ	0x00040000
255a47a12beSStefan Roese #define POWAR_IO_WRITE	0x00008000
256a47a12beSStefan Roese #define POWAR_MEM_WRITE	0x00004000
257a47a12beSStefan Roese #define POWAR_MEM_512M	0x0000001c
258a47a12beSStefan Roese #define POWAR_IO_1M	0x00000013
259a47a12beSStefan Roese 
260a47a12beSStefan Roese #define PIWAR_EN	0x80000000
261a47a12beSStefan Roese #define PIWAR_PF	0x20000000
262a47a12beSStefan Roese #define PIWAR_LOCAL	0x00f00000
263a47a12beSStefan Roese #define PIWAR_READ_SNOOP	0x00050000
264a47a12beSStefan Roese #define PIWAR_WRITE_SNOOP	0x00005000
265a47a12beSStefan Roese #define PIWAR_MEM_2G		0x0000001e
266a47a12beSStefan Roese 
267a47a12beSStefan Roese typedef struct ccsr_gpio {
268a47a12beSStefan Roese 	u32	gpdir;
269a47a12beSStefan Roese 	u32	gpodr;
270a47a12beSStefan Roese 	u32	gpdat;
271a47a12beSStefan Roese 	u32	gpier;
272a47a12beSStefan Roese 	u32	gpimr;
273a47a12beSStefan Roese 	u32	gpicr;
274a47a12beSStefan Roese } ccsr_gpio_t;
275a47a12beSStefan Roese 
276a47a12beSStefan Roese /* L2 Cache Registers */
277a47a12beSStefan Roese typedef struct ccsr_l2cache {
278a47a12beSStefan Roese 	u32	l2ctl;		/* L2 configuration 0 */
279a47a12beSStefan Roese 	u8	res1[12];
280a47a12beSStefan Roese 	u32	l2cewar0;	/* L2 cache external write addr 0 */
281a47a12beSStefan Roese 	u8	res2[4];
282a47a12beSStefan Roese 	u32	l2cewcr0;	/* L2 cache external write control 0 */
283a47a12beSStefan Roese 	u8	res3[4];
284a47a12beSStefan Roese 	u32	l2cewar1;	/* L2 cache external write addr 1 */
285a47a12beSStefan Roese 	u8	res4[4];
286a47a12beSStefan Roese 	u32	l2cewcr1;	/* L2 cache external write control 1 */
287a47a12beSStefan Roese 	u8	res5[4];
288a47a12beSStefan Roese 	u32	l2cewar2;	/* L2 cache external write addr 2 */
289a47a12beSStefan Roese 	u8	res6[4];
290a47a12beSStefan Roese 	u32	l2cewcr2;	/* L2 cache external write control 2 */
291a47a12beSStefan Roese 	u8	res7[4];
292a47a12beSStefan Roese 	u32	l2cewar3;	/* L2 cache external write addr 3 */
293a47a12beSStefan Roese 	u8	res8[4];
294a47a12beSStefan Roese 	u32	l2cewcr3;	/* L2 cache external write control 3 */
295a47a12beSStefan Roese 	u8	res9[180];
296a47a12beSStefan Roese 	u32	l2srbar0;	/* L2 memory-mapped SRAM base addr 0 */
297a47a12beSStefan Roese 	u8	res10[4];
298a47a12beSStefan Roese 	u32	l2srbar1;	/* L2 memory-mapped SRAM base addr 1 */
299a47a12beSStefan Roese 	u8	res11[3316];
300a47a12beSStefan Roese 	u32	l2errinjhi;	/* L2 error injection mask high */
301a47a12beSStefan Roese 	u32	l2errinjlo;	/* L2 error injection mask low */
302a47a12beSStefan Roese 	u32	l2errinjctl;	/* L2 error injection tag/ECC control */
303a47a12beSStefan Roese 	u8	res12[20];
304a47a12beSStefan Roese 	u32	l2captdatahi;	/* L2 error data high capture */
305a47a12beSStefan Roese 	u32	l2captdatalo;	/* L2 error data low capture */
306a47a12beSStefan Roese 	u32	l2captecc;	/* L2 error ECC capture */
307a47a12beSStefan Roese 	u8	res13[20];
308a47a12beSStefan Roese 	u32	l2errdet;	/* L2 error detect */
309a47a12beSStefan Roese 	u32	l2errdis;	/* L2 error disable */
310a47a12beSStefan Roese 	u32	l2errinten;	/* L2 error interrupt enable */
311a47a12beSStefan Roese 	u32	l2errattr;	/* L2 error attributes capture */
312a47a12beSStefan Roese 	u32	l2erraddr;	/* L2 error addr capture */
313a47a12beSStefan Roese 	u8	res14[4];
314a47a12beSStefan Roese 	u32	l2errctl;	/* L2 error control */
315a47a12beSStefan Roese 	u8	res15[420];
316a47a12beSStefan Roese } ccsr_l2cache_t;
317a47a12beSStefan Roese 
318a47a12beSStefan Roese #define MPC85xx_L2CTL_L2E			0x80000000
319a47a12beSStefan Roese #define MPC85xx_L2CTL_L2SRAM_ENTIRE		0x00010000
320a47a12beSStefan Roese #define MPC85xx_L2ERRDIS_MBECC			0x00000008
321a47a12beSStefan Roese #define MPC85xx_L2ERRDIS_SBECC			0x00000004
322a47a12beSStefan Roese 
323a47a12beSStefan Roese /* DMA Registers */
324a47a12beSStefan Roese typedef struct ccsr_dma {
325a47a12beSStefan Roese 	u8	res1[256];
326a47a12beSStefan Roese 	struct fsl_dma dma[4];
327a47a12beSStefan Roese 	u32	dgsr;		/* DMA General Status */
328a47a12beSStefan Roese 	u8	res2[11516];
329a47a12beSStefan Roese } ccsr_dma_t;
330a47a12beSStefan Roese 
331a47a12beSStefan Roese /* tsec */
332a47a12beSStefan Roese typedef struct ccsr_tsec {
333a47a12beSStefan Roese 	u8	res1[16];
334a47a12beSStefan Roese 	u32	ievent;		/* IRQ Event */
335a47a12beSStefan Roese 	u32	imask;		/* IRQ Mask */
336a47a12beSStefan Roese 	u32	edis;		/* Error Disabled */
337a47a12beSStefan Roese 	u8	res2[4];
338a47a12beSStefan Roese 	u32	ecntrl;		/* Ethernet Control */
339a47a12beSStefan Roese 	u32	minflr;		/* Minimum Frame Len */
340a47a12beSStefan Roese 	u32	ptv;		/* Pause Time Value */
341a47a12beSStefan Roese 	u32	dmactrl;	/* DMA Control */
342a47a12beSStefan Roese 	u32	tbipa;		/* TBI PHY Addr */
343a47a12beSStefan Roese 	u8	res3[88];
344a47a12beSStefan Roese 	u32	fifo_tx_thr;		/* FIFO transmit threshold */
345a47a12beSStefan Roese 	u8	res4[8];
346a47a12beSStefan Roese 	u32	fifo_tx_starve;		/* FIFO transmit starve */
347a47a12beSStefan Roese 	u32	fifo_tx_starve_shutoff;	/* FIFO transmit starve shutoff */
348a47a12beSStefan Roese 	u8	res5[96];
349a47a12beSStefan Roese 	u32	tctrl;		/* TX Control */
350a47a12beSStefan Roese 	u32	tstat;		/* TX Status */
351a47a12beSStefan Roese 	u8	res6[4];
352a47a12beSStefan Roese 	u32	tbdlen;		/* TX Buffer Desc Data Len */
353a47a12beSStefan Roese 	u8	res7[16];
354a47a12beSStefan Roese 	u32	ctbptrh;	/* Current TX Buffer Desc Ptr High */
355a47a12beSStefan Roese 	u32	ctbptr;		/* Current TX Buffer Desc Ptr */
356a47a12beSStefan Roese 	u8	res8[88];
357a47a12beSStefan Roese 	u32	tbptrh;		/* TX Buffer Desc Ptr High */
358a47a12beSStefan Roese 	u32	tbptr;		/* TX Buffer Desc Ptr Low */
359a47a12beSStefan Roese 	u8	res9[120];
360a47a12beSStefan Roese 	u32	tbaseh;		/* TX Desc Base Addr High */
361a47a12beSStefan Roese 	u32	tbase;		/* TX Desc Base Addr */
362a47a12beSStefan Roese 	u8	res10[168];
363a47a12beSStefan Roese 	u32	ostbd;		/* Out-of-Sequence(OOS) TX Buffer Desc */
364a47a12beSStefan Roese 	u32	ostbdp;		/* OOS TX Data Buffer Ptr */
365a47a12beSStefan Roese 	u32	os32tbdp;	/* OOS 32 Bytes TX Data Buffer Ptr Low */
366a47a12beSStefan Roese 	u32	os32iptrh;	/* OOS 32 Bytes TX Insert Ptr High */
367a47a12beSStefan Roese 	u32	os32iptrl;	/* OOS 32 Bytes TX Insert Ptr Low */
368a47a12beSStefan Roese 	u32	os32tbdr;	/* OOS 32 Bytes TX Reserved */
369a47a12beSStefan Roese 	u32	os32iil;	/* OOS 32 Bytes TX Insert Idx/Len */
370a47a12beSStefan Roese 	u8	res11[52];
371a47a12beSStefan Roese 	u32	rctrl;		/* RX Control */
372a47a12beSStefan Roese 	u32	rstat;		/* RX Status */
373a47a12beSStefan Roese 	u8	res12[4];
374a47a12beSStefan Roese 	u32	rbdlen;		/* RxBD Data Len */
375a47a12beSStefan Roese 	u8	res13[16];
376a47a12beSStefan Roese 	u32	crbptrh;	/* Current RX Buffer Desc Ptr High */
377a47a12beSStefan Roese 	u32	crbptr;		/* Current RX Buffer Desc Ptr */
378a47a12beSStefan Roese 	u8	res14[24];
379a47a12beSStefan Roese 	u32	mrblr;		/* Maximum RX Buffer Len */
380a47a12beSStefan Roese 	u32	mrblr2r3;	/* Maximum RX Buffer Len R2R3 */
381a47a12beSStefan Roese 	u8	res15[56];
382a47a12beSStefan Roese 	u32	rbptrh;		/* RX Buffer Desc Ptr High 0 */
383a47a12beSStefan Roese 	u32	rbptr;		/* RX Buffer Desc Ptr */
384a47a12beSStefan Roese 	u32	rbptrh1;	/* RX Buffer Desc Ptr High 1 */
385a47a12beSStefan Roese 	u32	rbptrl1;	/* RX Buffer Desc Ptr Low 1 */
386a47a12beSStefan Roese 	u32	rbptrh2;	/* RX Buffer Desc Ptr High 2 */
387a47a12beSStefan Roese 	u32	rbptrl2;	/* RX Buffer Desc Ptr Low 2 */
388a47a12beSStefan Roese 	u32	rbptrh3;	/* RX Buffer Desc Ptr High 3 */
389a47a12beSStefan Roese 	u32	rbptrl3;	/* RX Buffer Desc Ptr Low 3 */
390a47a12beSStefan Roese 	u8	res16[96];
391a47a12beSStefan Roese 	u32	rbaseh;		/* RX Desc Base Addr High 0 */
392a47a12beSStefan Roese 	u32	rbase;		/* RX Desc Base Addr */
393a47a12beSStefan Roese 	u32	rbaseh1;	/* RX Desc Base Addr High 1 */
394a47a12beSStefan Roese 	u32	rbasel1;	/* RX Desc Base Addr Low 1 */
395a47a12beSStefan Roese 	u32	rbaseh2;	/* RX Desc Base Addr High 2 */
396a47a12beSStefan Roese 	u32	rbasel2;	/* RX Desc Base Addr Low 2 */
397a47a12beSStefan Roese 	u32	rbaseh3;	/* RX Desc Base Addr High 3 */
398a47a12beSStefan Roese 	u32	rbasel3;	/* RX Desc Base Addr Low 3 */
399a47a12beSStefan Roese 	u8	res17[224];
400a47a12beSStefan Roese 	u32	maccfg1;	/* MAC Configuration 1 */
401a47a12beSStefan Roese 	u32	maccfg2;	/* MAC Configuration 2 */
402a47a12beSStefan Roese 	u32	ipgifg;		/* Inter Packet Gap/Inter Frame Gap */
403a47a12beSStefan Roese 	u32	hafdup;		/* Half Duplex */
404a47a12beSStefan Roese 	u32	maxfrm;		/* Maximum Frame Len */
405a47a12beSStefan Roese 	u8	res18[12];
406a47a12beSStefan Roese 	u32	miimcfg;	/* MII Management Configuration */
407a47a12beSStefan Roese 	u32	miimcom;	/* MII Management Cmd */
408a47a12beSStefan Roese 	u32	miimadd;	/* MII Management Addr */
409a47a12beSStefan Roese 	u32	miimcon;	/* MII Management Control */
410a47a12beSStefan Roese 	u32	miimstat;	/* MII Management Status */
411a47a12beSStefan Roese 	u32	miimind;	/* MII Management Indicator */
412a47a12beSStefan Roese 	u8	res19[4];
413a47a12beSStefan Roese 	u32	ifstat;		/* Interface Status */
414a47a12beSStefan Roese 	u32	macstnaddr1;	/* Station Addr Part 1 */
415a47a12beSStefan Roese 	u32	macstnaddr2;	/* Station Addr Part 2 */
416a47a12beSStefan Roese 	u8	res20[312];
417a47a12beSStefan Roese 	u32	tr64;		/* TX & RX 64-byte Frame Counter */
418a47a12beSStefan Roese 	u32	tr127;		/* TX & RX 65-127 byte Frame Counter */
419a47a12beSStefan Roese 	u32	tr255;		/* TX & RX 128-255 byte Frame Counter */
420a47a12beSStefan Roese 	u32	tr511;		/* TX & RX 256-511 byte Frame Counter */
421a47a12beSStefan Roese 	u32	tr1k;		/* TX & RX 512-1023 byte Frame Counter */
422a47a12beSStefan Roese 	u32	trmax;		/* TX & RX 1024-1518 byte Frame Counter */
423a47a12beSStefan Roese 	u32	trmgv;		/* TX & RX 1519-1522 byte Good VLAN Frame */
424a47a12beSStefan Roese 	u32	rbyt;		/* RX Byte Counter */
425a47a12beSStefan Roese 	u32	rpkt;		/* RX Packet Counter */
426a47a12beSStefan Roese 	u32	rfcs;		/* RX FCS Error Counter */
427a47a12beSStefan Roese 	u32	rmca;		/* RX Multicast Packet Counter */
428a47a12beSStefan Roese 	u32	rbca;		/* RX Broadcast Packet Counter */
429a47a12beSStefan Roese 	u32	rxcf;		/* RX Control Frame Packet Counter */
430a47a12beSStefan Roese 	u32	rxpf;		/* RX Pause Frame Packet Counter */
431a47a12beSStefan Roese 	u32	rxuo;		/* RX Unknown OP Code Counter */
432a47a12beSStefan Roese 	u32	raln;		/* RX Alignment Error Counter */
433a47a12beSStefan Roese 	u32	rflr;		/* RX Frame Len Error Counter */
434a47a12beSStefan Roese 	u32	rcde;		/* RX Code Error Counter */
435a47a12beSStefan Roese 	u32	rcse;		/* RX Carrier Sense Error Counter */
436a47a12beSStefan Roese 	u32	rund;		/* RX Undersize Packet Counter */
437a47a12beSStefan Roese 	u32	rovr;		/* RX Oversize Packet Counter */
438a47a12beSStefan Roese 	u32	rfrg;		/* RX Fragments Counter */
439a47a12beSStefan Roese 	u32	rjbr;		/* RX Jabber Counter */
440a47a12beSStefan Roese 	u32	rdrp;		/* RX Drop Counter */
441a47a12beSStefan Roese 	u32	tbyt;		/* TX Byte Counter Counter */
442a47a12beSStefan Roese 	u32	tpkt;		/* TX Packet Counter */
443a47a12beSStefan Roese 	u32	tmca;		/* TX Multicast Packet Counter */
444a47a12beSStefan Roese 	u32	tbca;		/* TX Broadcast Packet Counter */
445a47a12beSStefan Roese 	u32	txpf;		/* TX Pause Control Frame Counter */
446a47a12beSStefan Roese 	u32	tdfr;		/* TX Deferral Packet Counter */
447a47a12beSStefan Roese 	u32	tedf;		/* TX Excessive Deferral Packet Counter */
448a47a12beSStefan Roese 	u32	tscl;		/* TX Single Collision Packet Counter */
449a47a12beSStefan Roese 	u32	tmcl;		/* TX Multiple Collision Packet Counter */
450a47a12beSStefan Roese 	u32	tlcl;		/* TX Late Collision Packet Counter */
451a47a12beSStefan Roese 	u32	txcl;		/* TX Excessive Collision Packet Counter */
452a47a12beSStefan Roese 	u32	tncl;		/* TX Total Collision Counter */
453a47a12beSStefan Roese 	u8	res21[4];
454a47a12beSStefan Roese 	u32	tdrp;		/* TX Drop Frame Counter */
455a47a12beSStefan Roese 	u32	tjbr;		/* TX Jabber Frame Counter */
456a47a12beSStefan Roese 	u32	tfcs;		/* TX FCS Error Counter */
457a47a12beSStefan Roese 	u32	txcf;		/* TX Control Frame Counter */
458a47a12beSStefan Roese 	u32	tovr;		/* TX Oversize Frame Counter */
459a47a12beSStefan Roese 	u32	tund;		/* TX Undersize Frame Counter */
460a47a12beSStefan Roese 	u32	tfrg;		/* TX Fragments Frame Counter */
461a47a12beSStefan Roese 	u32	car1;		/* Carry One */
462a47a12beSStefan Roese 	u32	car2;		/* Carry Two */
463a47a12beSStefan Roese 	u32	cam1;		/* Carry Mask One */
464a47a12beSStefan Roese 	u32	cam2;		/* Carry Mask Two */
465a47a12beSStefan Roese 	u8	res22[192];
466a47a12beSStefan Roese 	u32	iaddr0;		/* Indivdual addr 0 */
467a47a12beSStefan Roese 	u32	iaddr1;		/* Indivdual addr 1 */
468a47a12beSStefan Roese 	u32	iaddr2;		/* Indivdual addr 2 */
469a47a12beSStefan Roese 	u32	iaddr3;		/* Indivdual addr 3 */
470a47a12beSStefan Roese 	u32	iaddr4;		/* Indivdual addr 4 */
471a47a12beSStefan Roese 	u32	iaddr5;		/* Indivdual addr 5 */
472a47a12beSStefan Roese 	u32	iaddr6;		/* Indivdual addr 6 */
473a47a12beSStefan Roese 	u32	iaddr7;		/* Indivdual addr 7 */
474a47a12beSStefan Roese 	u8	res23[96];
475a47a12beSStefan Roese 	u32	gaddr0;		/* Global addr 0 */
476a47a12beSStefan Roese 	u32	gaddr1;		/* Global addr 1 */
477a47a12beSStefan Roese 	u32	gaddr2;		/* Global addr 2 */
478a47a12beSStefan Roese 	u32	gaddr3;		/* Global addr 3 */
479a47a12beSStefan Roese 	u32	gaddr4;		/* Global addr 4 */
480a47a12beSStefan Roese 	u32	gaddr5;		/* Global addr 5 */
481a47a12beSStefan Roese 	u32	gaddr6;		/* Global addr 6 */
482a47a12beSStefan Roese 	u32	gaddr7;		/* Global addr 7 */
483a47a12beSStefan Roese 	u8	res24[96];
484a47a12beSStefan Roese 	u32	pmd0;		/* Pattern Match Data */
485a47a12beSStefan Roese 	u8	res25[4];
486a47a12beSStefan Roese 	u32	pmask0;		/* Pattern Mask */
487a47a12beSStefan Roese 	u8	res26[4];
488a47a12beSStefan Roese 	u32	pcntrl0;	/* Pattern Match Control */
489a47a12beSStefan Roese 	u8	res27[4];
490a47a12beSStefan Roese 	u32	pattrb0;	/* Pattern Match Attrs */
491a47a12beSStefan Roese 	u32	pattrbeli0;	/* Pattern Match Attrs Extract Len & Idx */
492a47a12beSStefan Roese 	u32	pmd1;		/* Pattern Match Data */
493a47a12beSStefan Roese 	u8	res28[4];
494a47a12beSStefan Roese 	u32	pmask1;		/* Pattern Mask */
495a47a12beSStefan Roese 	u8	res29[4];
496a47a12beSStefan Roese 	u32	pcntrl1;	/* Pattern Match Control */
497a47a12beSStefan Roese 	u8	res30[4];
498a47a12beSStefan Roese 	u32	pattrb1;	/* Pattern Match Attrs */
499a47a12beSStefan Roese 	u32	pattrbeli1;	/* Pattern Match Attrs Extract Len & Idx */
500a47a12beSStefan Roese 	u32	pmd2;		/* Pattern Match Data */
501a47a12beSStefan Roese 	u8	res31[4];
502a47a12beSStefan Roese 	u32	pmask2;		/* Pattern Mask */
503a47a12beSStefan Roese 	u8	res32[4];
504a47a12beSStefan Roese 	u32	pcntrl2;	/* Pattern Match Control */
505a47a12beSStefan Roese 	u8	res33[4];
506a47a12beSStefan Roese 	u32	pattrb2;	/* Pattern Match Attrs */
507a47a12beSStefan Roese 	u32	pattrbeli2;	/* Pattern Match Attrs Extract Len & Idx */
508a47a12beSStefan Roese 	u32	pmd3;		/* Pattern Match Data */
509a47a12beSStefan Roese 	u8	res34[4];
510a47a12beSStefan Roese 	u32	pmask3;		/* Pattern Mask */
511a47a12beSStefan Roese 	u8	res35[4];
512a47a12beSStefan Roese 	u32	pcntrl3;	/* Pattern Match Control */
513a47a12beSStefan Roese 	u8	res36[4];
514a47a12beSStefan Roese 	u32	pattrb3;	/* Pattern Match Attrs */
515a47a12beSStefan Roese 	u32	pattrbeli3;	/* Pattern Match Attrs Extract Len & Idx */
516a47a12beSStefan Roese 	u32	pmd4;		/* Pattern Match Data */
517a47a12beSStefan Roese 	u8	res37[4];
518a47a12beSStefan Roese 	u32	pmask4;		/* Pattern Mask */
519a47a12beSStefan Roese 	u8	res38[4];
520a47a12beSStefan Roese 	u32	pcntrl4;	/* Pattern Match Control */
521a47a12beSStefan Roese 	u8	res39[4];
522a47a12beSStefan Roese 	u32	pattrb4;	/* Pattern Match Attrs */
523a47a12beSStefan Roese 	u32	pattrbeli4;	/* Pattern Match Attrs Extract Len & Idx */
524a47a12beSStefan Roese 	u32	pmd5;		/* Pattern Match Data */
525a47a12beSStefan Roese 	u8	res40[4];
526a47a12beSStefan Roese 	u32	pmask5;		/* Pattern Mask */
527a47a12beSStefan Roese 	u8	res41[4];
528a47a12beSStefan Roese 	u32	pcntrl5;	/* Pattern Match Control */
529a47a12beSStefan Roese 	u8	res42[4];
530a47a12beSStefan Roese 	u32	pattrb5;	/* Pattern Match Attrs */
531a47a12beSStefan Roese 	u32	pattrbeli5;	/* Pattern Match Attrs Extract Len & Idx */
532a47a12beSStefan Roese 	u32	pmd6;		/* Pattern Match Data */
533a47a12beSStefan Roese 	u8	res43[4];
534a47a12beSStefan Roese 	u32	pmask6;		/* Pattern Mask */
535a47a12beSStefan Roese 	u8	res44[4];
536a47a12beSStefan Roese 	u32	pcntrl6;	/* Pattern Match Control */
537a47a12beSStefan Roese 	u8	res45[4];
538a47a12beSStefan Roese 	u32	pattrb6;	/* Pattern Match Attrs */
539a47a12beSStefan Roese 	u32	pattrbeli6;	/* Pattern Match Attrs Extract Len & Idx */
540a47a12beSStefan Roese 	u32	pmd7;		/* Pattern Match Data */
541a47a12beSStefan Roese 	u8	res46[4];
542a47a12beSStefan Roese 	u32	pmask7;		/* Pattern Mask */
543a47a12beSStefan Roese 	u8	res47[4];
544a47a12beSStefan Roese 	u32	pcntrl7;	/* Pattern Match Control */
545a47a12beSStefan Roese 	u8	res48[4];
546a47a12beSStefan Roese 	u32	pattrb7;	/* Pattern Match Attrs */
547a47a12beSStefan Roese 	u32	pattrbeli7;	/* Pattern Match Attrs Extract Len & Idx */
548a47a12beSStefan Roese 	u32	pmd8;		/* Pattern Match Data */
549a47a12beSStefan Roese 	u8	res49[4];
550a47a12beSStefan Roese 	u32	pmask8;		/* Pattern Mask */
551a47a12beSStefan Roese 	u8	res50[4];
552a47a12beSStefan Roese 	u32	pcntrl8;	/* Pattern Match Control */
553a47a12beSStefan Roese 	u8	res51[4];
554a47a12beSStefan Roese 	u32	pattrb8;	/* Pattern Match Attrs */
555a47a12beSStefan Roese 	u32	pattrbeli8;	/* Pattern Match Attrs Extract Len & Idx */
556a47a12beSStefan Roese 	u32	pmd9;		/* Pattern Match Data */
557a47a12beSStefan Roese 	u8	res52[4];
558a47a12beSStefan Roese 	u32	pmask9;		/* Pattern Mask */
559a47a12beSStefan Roese 	u8	res53[4];
560a47a12beSStefan Roese 	u32	pcntrl9;	/* Pattern Match Control */
561a47a12beSStefan Roese 	u8	res54[4];
562a47a12beSStefan Roese 	u32	pattrb9;	/* Pattern Match Attrs */
563a47a12beSStefan Roese 	u32	pattrbeli9;	/* Pattern Match Attrs Extract Len & Idx */
564a47a12beSStefan Roese 	u32	pmd10;		/* Pattern Match Data */
565a47a12beSStefan Roese 	u8	res55[4];
566a47a12beSStefan Roese 	u32	pmask10;	/* Pattern Mask */
567a47a12beSStefan Roese 	u8	res56[4];
568a47a12beSStefan Roese 	u32	pcntrl10;	/* Pattern Match Control */
569a47a12beSStefan Roese 	u8	res57[4];
570a47a12beSStefan Roese 	u32	pattrb10;	/* Pattern Match Attrs */
571a47a12beSStefan Roese 	u32	pattrbeli10;	/* Pattern Match Attrs Extract Len & Idx */
572a47a12beSStefan Roese 	u32	pmd11;		/* Pattern Match Data */
573a47a12beSStefan Roese 	u8	res58[4];
574a47a12beSStefan Roese 	u32	pmask11;	/* Pattern Mask */
575a47a12beSStefan Roese 	u8	res59[4];
576a47a12beSStefan Roese 	u32	pcntrl11;	/* Pattern Match Control */
577a47a12beSStefan Roese 	u8	res60[4];
578a47a12beSStefan Roese 	u32	pattrb11;	/* Pattern Match Attrs */
579a47a12beSStefan Roese 	u32	pattrbeli11;	/* Pattern Match Attrs Extract Len & Idx */
580a47a12beSStefan Roese 	u32	pmd12;		/* Pattern Match Data */
581a47a12beSStefan Roese 	u8	res61[4];
582a47a12beSStefan Roese 	u32	pmask12;	/* Pattern Mask */
583a47a12beSStefan Roese 	u8	res62[4];
584a47a12beSStefan Roese 	u32	pcntrl12;	/* Pattern Match Control */
585a47a12beSStefan Roese 	u8	res63[4];
586a47a12beSStefan Roese 	u32	pattrb12;	/* Pattern Match Attrs */
587a47a12beSStefan Roese 	u32	pattrbeli12;	/* Pattern Match Attrs Extract Len & Idx */
588a47a12beSStefan Roese 	u32	pmd13;		/* Pattern Match Data */
589a47a12beSStefan Roese 	u8	res64[4];
590a47a12beSStefan Roese 	u32	pmask13;	/* Pattern Mask */
591a47a12beSStefan Roese 	u8	res65[4];
592a47a12beSStefan Roese 	u32	pcntrl13;	/* Pattern Match Control */
593a47a12beSStefan Roese 	u8	res66[4];
594a47a12beSStefan Roese 	u32	pattrb13;	/* Pattern Match Attrs */
595a47a12beSStefan Roese 	u32	pattrbeli13;	/* Pattern Match Attrs Extract Len & Idx */
596a47a12beSStefan Roese 	u32	pmd14;		/* Pattern Match Data */
597a47a12beSStefan Roese 	u8	res67[4];
598a47a12beSStefan Roese 	u32	pmask14;	/* Pattern Mask */
599a47a12beSStefan Roese 	u8	res68[4];
600a47a12beSStefan Roese 	u32	pcntrl14;	/* Pattern Match Control */
601a47a12beSStefan Roese 	u8	res69[4];
602a47a12beSStefan Roese 	u32	pattrb14;	/* Pattern Match Attrs */
603a47a12beSStefan Roese 	u32	pattrbeli14;	/* Pattern Match Attrs Extract Len & Idx */
604a47a12beSStefan Roese 	u32	pmd15;		/* Pattern Match Data */
605a47a12beSStefan Roese 	u8	res70[4];
606a47a12beSStefan Roese 	u32	pmask15;	/* Pattern Mask */
607a47a12beSStefan Roese 	u8	res71[4];
608a47a12beSStefan Roese 	u32	pcntrl15;	/* Pattern Match Control */
609a47a12beSStefan Roese 	u8	res72[4];
610a47a12beSStefan Roese 	u32	pattrb15;	/* Pattern Match Attrs */
611a47a12beSStefan Roese 	u32	pattrbeli15;	/* Pattern Match Attrs Extract Len & Idx */
612a47a12beSStefan Roese 	u8	res73[248];
613a47a12beSStefan Roese 	u32	attr;		/* Attrs */
614a47a12beSStefan Roese 	u32	attreli;	/* Attrs Extract Len & Idx */
615a47a12beSStefan Roese 	u8	res74[1024];
616a47a12beSStefan Roese } ccsr_tsec_t;
617a47a12beSStefan Roese 
618a47a12beSStefan Roese /* PIC Registers */
619a47a12beSStefan Roese typedef struct ccsr_pic {
620a47a12beSStefan Roese 	u8	res1[64];
621a47a12beSStefan Roese 	u32	ipidr0;		/* Interprocessor IRQ Dispatch 0 */
622a47a12beSStefan Roese 	u8	res2[12];
623a47a12beSStefan Roese 	u32	ipidr1;		/* Interprocessor IRQ Dispatch 1 */
624a47a12beSStefan Roese 	u8	res3[12];
625a47a12beSStefan Roese 	u32	ipidr2;		/* Interprocessor IRQ Dispatch 2 */
626a47a12beSStefan Roese 	u8	res4[12];
627a47a12beSStefan Roese 	u32	ipidr3;		/* Interprocessor IRQ Dispatch 3 */
628a47a12beSStefan Roese 	u8	res5[12];
629a47a12beSStefan Roese 	u32	ctpr;		/* Current Task Priority */
630a47a12beSStefan Roese 	u8	res6[12];
631a47a12beSStefan Roese 	u32	whoami;		/* Who Am I */
632a47a12beSStefan Roese 	u8	res7[12];
633a47a12beSStefan Roese 	u32	iack;		/* IRQ Acknowledge */
634a47a12beSStefan Roese 	u8	res8[12];
635a47a12beSStefan Roese 	u32	eoi;		/* End Of IRQ */
636a47a12beSStefan Roese 	u8	res9[3916];
637a47a12beSStefan Roese 	u32	frr;		/* Feature Reporting */
638a47a12beSStefan Roese 	u8	res10[28];
639a47a12beSStefan Roese 	u32	gcr;		/* Global Configuration */
640a47a12beSStefan Roese #define MPC85xx_PICGCR_RST	0x80000000
641a47a12beSStefan Roese #define MPC85xx_PICGCR_M	0x20000000
642a47a12beSStefan Roese 	u8	res11[92];
643a47a12beSStefan Roese 	u32	vir;		/* Vendor Identification */
644a47a12beSStefan Roese 	u8	res12[12];
645a47a12beSStefan Roese 	u32	pir;		/* Processor Initialization */
646a47a12beSStefan Roese 	u8	res13[12];
647a47a12beSStefan Roese 	u32	ipivpr0;	/* IPI Vector/Priority 0 */
648a47a12beSStefan Roese 	u8	res14[12];
649a47a12beSStefan Roese 	u32	ipivpr1;	/* IPI Vector/Priority 1 */
650a47a12beSStefan Roese 	u8	res15[12];
651a47a12beSStefan Roese 	u32	ipivpr2;	/* IPI Vector/Priority 2 */
652a47a12beSStefan Roese 	u8	res16[12];
653a47a12beSStefan Roese 	u32	ipivpr3;	/* IPI Vector/Priority 3 */
654a47a12beSStefan Roese 	u8	res17[12];
655a47a12beSStefan Roese 	u32	svr;		/* Spurious Vector */
656a47a12beSStefan Roese 	u8	res18[12];
657a47a12beSStefan Roese 	u32	tfrr;		/* Timer Frequency Reporting */
658a47a12beSStefan Roese 	u8	res19[12];
659a47a12beSStefan Roese 	u32	gtccr0;		/* Global Timer Current Count 0 */
660a47a12beSStefan Roese 	u8	res20[12];
661a47a12beSStefan Roese 	u32	gtbcr0;		/* Global Timer Base Count 0 */
662a47a12beSStefan Roese 	u8	res21[12];
663a47a12beSStefan Roese 	u32	gtvpr0;		/* Global Timer Vector/Priority 0 */
664a47a12beSStefan Roese 	u8	res22[12];
665a47a12beSStefan Roese 	u32	gtdr0;		/* Global Timer Destination 0 */
666a47a12beSStefan Roese 	u8	res23[12];
667a47a12beSStefan Roese 	u32	gtccr1;		/* Global Timer Current Count 1 */
668a47a12beSStefan Roese 	u8	res24[12];
669a47a12beSStefan Roese 	u32	gtbcr1;		/* Global Timer Base Count 1 */
670a47a12beSStefan Roese 	u8	res25[12];
671a47a12beSStefan Roese 	u32	gtvpr1;		/* Global Timer Vector/Priority 1 */
672a47a12beSStefan Roese 	u8	res26[12];
673a47a12beSStefan Roese 	u32	gtdr1;		/* Global Timer Destination 1 */
674a47a12beSStefan Roese 	u8	res27[12];
675a47a12beSStefan Roese 	u32	gtccr2;		/* Global Timer Current Count 2 */
676a47a12beSStefan Roese 	u8	res28[12];
677a47a12beSStefan Roese 	u32	gtbcr2;		/* Global Timer Base Count 2 */
678a47a12beSStefan Roese 	u8	res29[12];
679a47a12beSStefan Roese 	u32	gtvpr2;		/* Global Timer Vector/Priority 2 */
680a47a12beSStefan Roese 	u8	res30[12];
681a47a12beSStefan Roese 	u32	gtdr2;		/* Global Timer Destination 2 */
682a47a12beSStefan Roese 	u8	res31[12];
683a47a12beSStefan Roese 	u32	gtccr3;		/* Global Timer Current Count 3 */
684a47a12beSStefan Roese 	u8	res32[12];
685a47a12beSStefan Roese 	u32	gtbcr3;		/* Global Timer Base Count 3 */
686a47a12beSStefan Roese 	u8	res33[12];
687a47a12beSStefan Roese 	u32	gtvpr3;		/* Global Timer Vector/Priority 3 */
688a47a12beSStefan Roese 	u8	res34[12];
689a47a12beSStefan Roese 	u32	gtdr3;		/* Global Timer Destination 3 */
690a47a12beSStefan Roese 	u8	res35[268];
691a47a12beSStefan Roese 	u32	tcr;		/* Timer Control */
692a47a12beSStefan Roese 	u8	res36[12];
693a47a12beSStefan Roese 	u32	irqsr0;		/* IRQ_OUT Summary 0 */
694a47a12beSStefan Roese 	u8	res37[12];
695a47a12beSStefan Roese 	u32	irqsr1;		/* IRQ_OUT Summary 1 */
696a47a12beSStefan Roese 	u8	res38[12];
697a47a12beSStefan Roese 	u32	cisr0;		/* Critical IRQ Summary 0 */
698a47a12beSStefan Roese 	u8	res39[12];
699a47a12beSStefan Roese 	u32	cisr1;		/* Critical IRQ Summary 1 */
700a47a12beSStefan Roese 	u8	res40[188];
701a47a12beSStefan Roese 	u32	msgr0;		/* Message 0 */
702a47a12beSStefan Roese 	u8	res41[12];
703a47a12beSStefan Roese 	u32	msgr1;		/* Message 1 */
704a47a12beSStefan Roese 	u8	res42[12];
705a47a12beSStefan Roese 	u32	msgr2;		/* Message 2 */
706a47a12beSStefan Roese 	u8	res43[12];
707a47a12beSStefan Roese 	u32	msgr3;		/* Message 3 */
708a47a12beSStefan Roese 	u8	res44[204];
709a47a12beSStefan Roese 	u32	mer;		/* Message Enable */
710a47a12beSStefan Roese 	u8	res45[12];
711a47a12beSStefan Roese 	u32	msr;		/* Message Status */
712a47a12beSStefan Roese 	u8	res46[60140];
713a47a12beSStefan Roese 	u32	eivpr0;		/* External IRQ Vector/Priority 0 */
714a47a12beSStefan Roese 	u8	res47[12];
715a47a12beSStefan Roese 	u32	eidr0;		/* External IRQ Destination 0 */
716a47a12beSStefan Roese 	u8	res48[12];
717a47a12beSStefan Roese 	u32	eivpr1;		/* External IRQ Vector/Priority 1 */
718a47a12beSStefan Roese 	u8	res49[12];
719a47a12beSStefan Roese 	u32	eidr1;		/* External IRQ Destination 1 */
720a47a12beSStefan Roese 	u8	res50[12];
721a47a12beSStefan Roese 	u32	eivpr2;		/* External IRQ Vector/Priority 2 */
722a47a12beSStefan Roese 	u8	res51[12];
723a47a12beSStefan Roese 	u32	eidr2;		/* External IRQ Destination 2 */
724a47a12beSStefan Roese 	u8	res52[12];
725a47a12beSStefan Roese 	u32	eivpr3;		/* External IRQ Vector/Priority 3 */
726a47a12beSStefan Roese 	u8	res53[12];
727a47a12beSStefan Roese 	u32	eidr3;		/* External IRQ Destination 3 */
728a47a12beSStefan Roese 	u8	res54[12];
729a47a12beSStefan Roese 	u32	eivpr4;		/* External IRQ Vector/Priority 4 */
730a47a12beSStefan Roese 	u8	res55[12];
731a47a12beSStefan Roese 	u32	eidr4;		/* External IRQ Destination 4 */
732a47a12beSStefan Roese 	u8	res56[12];
733a47a12beSStefan Roese 	u32	eivpr5;		/* External IRQ Vector/Priority 5 */
734a47a12beSStefan Roese 	u8	res57[12];
735a47a12beSStefan Roese 	u32	eidr5;		/* External IRQ Destination 5 */
736a47a12beSStefan Roese 	u8	res58[12];
737a47a12beSStefan Roese 	u32	eivpr6;		/* External IRQ Vector/Priority 6 */
738a47a12beSStefan Roese 	u8	res59[12];
739a47a12beSStefan Roese 	u32	eidr6;		/* External IRQ Destination 6 */
740a47a12beSStefan Roese 	u8	res60[12];
741a47a12beSStefan Roese 	u32	eivpr7;		/* External IRQ Vector/Priority 7 */
742a47a12beSStefan Roese 	u8	res61[12];
743a47a12beSStefan Roese 	u32	eidr7;		/* External IRQ Destination 7 */
744a47a12beSStefan Roese 	u8	res62[12];
745a47a12beSStefan Roese 	u32	eivpr8;		/* External IRQ Vector/Priority 8 */
746a47a12beSStefan Roese 	u8	res63[12];
747a47a12beSStefan Roese 	u32	eidr8;		/* External IRQ Destination 8 */
748a47a12beSStefan Roese 	u8	res64[12];
749a47a12beSStefan Roese 	u32	eivpr9;		/* External IRQ Vector/Priority 9 */
750a47a12beSStefan Roese 	u8	res65[12];
751a47a12beSStefan Roese 	u32	eidr9;		/* External IRQ Destination 9 */
752a47a12beSStefan Roese 	u8	res66[12];
753a47a12beSStefan Roese 	u32	eivpr10;	/* External IRQ Vector/Priority 10 */
754a47a12beSStefan Roese 	u8	res67[12];
755a47a12beSStefan Roese 	u32	eidr10;		/* External IRQ Destination 10 */
756a47a12beSStefan Roese 	u8	res68[12];
757a47a12beSStefan Roese 	u32	eivpr11;	/* External IRQ Vector/Priority 11 */
758a47a12beSStefan Roese 	u8	res69[12];
759a47a12beSStefan Roese 	u32	eidr11;		/* External IRQ Destination 11 */
760a47a12beSStefan Roese 	u8	res70[140];
761a47a12beSStefan Roese 	u32	iivpr0;		/* Internal IRQ Vector/Priority 0 */
762a47a12beSStefan Roese 	u8	res71[12];
763a47a12beSStefan Roese 	u32	iidr0;		/* Internal IRQ Destination 0 */
764a47a12beSStefan Roese 	u8	res72[12];
765a47a12beSStefan Roese 	u32	iivpr1;		/* Internal IRQ Vector/Priority 1 */
766a47a12beSStefan Roese 	u8	res73[12];
767a47a12beSStefan Roese 	u32	iidr1;		/* Internal IRQ Destination 1 */
768a47a12beSStefan Roese 	u8	res74[12];
769a47a12beSStefan Roese 	u32	iivpr2;		/* Internal IRQ Vector/Priority 2 */
770a47a12beSStefan Roese 	u8	res75[12];
771a47a12beSStefan Roese 	u32	iidr2;		/* Internal IRQ Destination 2 */
772a47a12beSStefan Roese 	u8	res76[12];
773a47a12beSStefan Roese 	u32	iivpr3;		/* Internal IRQ Vector/Priority 3 */
774a47a12beSStefan Roese 	u8	res77[12];
775a47a12beSStefan Roese 	u32	iidr3;		/* Internal IRQ Destination 3 */
776a47a12beSStefan Roese 	u8	res78[12];
777a47a12beSStefan Roese 	u32	iivpr4;		/* Internal IRQ Vector/Priority 4 */
778a47a12beSStefan Roese 	u8	res79[12];
779a47a12beSStefan Roese 	u32	iidr4;		/* Internal IRQ Destination 4 */
780a47a12beSStefan Roese 	u8	res80[12];
781a47a12beSStefan Roese 	u32	iivpr5;		/* Internal IRQ Vector/Priority 5 */
782a47a12beSStefan Roese 	u8	res81[12];
783a47a12beSStefan Roese 	u32	iidr5;		/* Internal IRQ Destination 5 */
784a47a12beSStefan Roese 	u8	res82[12];
785a47a12beSStefan Roese 	u32	iivpr6;		/* Internal IRQ Vector/Priority 6 */
786a47a12beSStefan Roese 	u8	res83[12];
787a47a12beSStefan Roese 	u32	iidr6;		/* Internal IRQ Destination 6 */
788a47a12beSStefan Roese 	u8	res84[12];
789a47a12beSStefan Roese 	u32	iivpr7;		/* Internal IRQ Vector/Priority 7 */
790a47a12beSStefan Roese 	u8	res85[12];
791a47a12beSStefan Roese 	u32	iidr7;		/* Internal IRQ Destination 7 */
792a47a12beSStefan Roese 	u8	res86[12];
793a47a12beSStefan Roese 	u32	iivpr8;		/* Internal IRQ Vector/Priority 8 */
794a47a12beSStefan Roese 	u8	res87[12];
795a47a12beSStefan Roese 	u32	iidr8;		/* Internal IRQ Destination 8 */
796a47a12beSStefan Roese 	u8	res88[12];
797a47a12beSStefan Roese 	u32	iivpr9;		/* Internal IRQ Vector/Priority 9 */
798a47a12beSStefan Roese 	u8	res89[12];
799a47a12beSStefan Roese 	u32	iidr9;		/* Internal IRQ Destination 9 */
800a47a12beSStefan Roese 	u8	res90[12];
801a47a12beSStefan Roese 	u32	iivpr10;	/* Internal IRQ Vector/Priority 10 */
802a47a12beSStefan Roese 	u8	res91[12];
803a47a12beSStefan Roese 	u32	iidr10;		/* Internal IRQ Destination 10 */
804a47a12beSStefan Roese 	u8	res92[12];
805a47a12beSStefan Roese 	u32	iivpr11;	/* Internal IRQ Vector/Priority 11 */
806a47a12beSStefan Roese 	u8	res93[12];
807a47a12beSStefan Roese 	u32	iidr11;		/* Internal IRQ Destination 11 */
808a47a12beSStefan Roese 	u8	res94[12];
809a47a12beSStefan Roese 	u32	iivpr12;	/* Internal IRQ Vector/Priority 12 */
810a47a12beSStefan Roese 	u8	res95[12];
811a47a12beSStefan Roese 	u32	iidr12;		/* Internal IRQ Destination 12 */
812a47a12beSStefan Roese 	u8	res96[12];
813a47a12beSStefan Roese 	u32	iivpr13;	/* Internal IRQ Vector/Priority 13 */
814a47a12beSStefan Roese 	u8	res97[12];
815a47a12beSStefan Roese 	u32	iidr13;		/* Internal IRQ Destination 13 */
816a47a12beSStefan Roese 	u8	res98[12];
817a47a12beSStefan Roese 	u32	iivpr14;	/* Internal IRQ Vector/Priority 14 */
818a47a12beSStefan Roese 	u8	res99[12];
819a47a12beSStefan Roese 	u32	iidr14;		/* Internal IRQ Destination 14 */
820a47a12beSStefan Roese 	u8	res100[12];
821a47a12beSStefan Roese 	u32	iivpr15;	/* Internal IRQ Vector/Priority 15 */
822a47a12beSStefan Roese 	u8	res101[12];
823a47a12beSStefan Roese 	u32	iidr15;		/* Internal IRQ Destination 15 */
824a47a12beSStefan Roese 	u8	res102[12];
825a47a12beSStefan Roese 	u32	iivpr16;	/* Internal IRQ Vector/Priority 16 */
826a47a12beSStefan Roese 	u8	res103[12];
827a47a12beSStefan Roese 	u32	iidr16;		/* Internal IRQ Destination 16 */
828a47a12beSStefan Roese 	u8	res104[12];
829a47a12beSStefan Roese 	u32	iivpr17;	/* Internal IRQ Vector/Priority 17 */
830a47a12beSStefan Roese 	u8	res105[12];
831a47a12beSStefan Roese 	u32	iidr17;		/* Internal IRQ Destination 17 */
832a47a12beSStefan Roese 	u8	res106[12];
833a47a12beSStefan Roese 	u32	iivpr18;	/* Internal IRQ Vector/Priority 18 */
834a47a12beSStefan Roese 	u8	res107[12];
835a47a12beSStefan Roese 	u32	iidr18;		/* Internal IRQ Destination 18 */
836a47a12beSStefan Roese 	u8	res108[12];
837a47a12beSStefan Roese 	u32	iivpr19;	/* Internal IRQ Vector/Priority 19 */
838a47a12beSStefan Roese 	u8	res109[12];
839a47a12beSStefan Roese 	u32	iidr19;		/* Internal IRQ Destination 19 */
840a47a12beSStefan Roese 	u8	res110[12];
841a47a12beSStefan Roese 	u32	iivpr20;	/* Internal IRQ Vector/Priority 20 */
842a47a12beSStefan Roese 	u8	res111[12];
843a47a12beSStefan Roese 	u32	iidr20;		/* Internal IRQ Destination 20 */
844a47a12beSStefan Roese 	u8	res112[12];
845a47a12beSStefan Roese 	u32	iivpr21;	/* Internal IRQ Vector/Priority 21 */
846a47a12beSStefan Roese 	u8	res113[12];
847a47a12beSStefan Roese 	u32	iidr21;		/* Internal IRQ Destination 21 */
848a47a12beSStefan Roese 	u8	res114[12];
849a47a12beSStefan Roese 	u32	iivpr22;	/* Internal IRQ Vector/Priority 22 */
850a47a12beSStefan Roese 	u8	res115[12];
851a47a12beSStefan Roese 	u32	iidr22;		/* Internal IRQ Destination 22 */
852a47a12beSStefan Roese 	u8	res116[12];
853a47a12beSStefan Roese 	u32	iivpr23;	/* Internal IRQ Vector/Priority 23 */
854a47a12beSStefan Roese 	u8	res117[12];
855a47a12beSStefan Roese 	u32	iidr23;		/* Internal IRQ Destination 23 */
856a47a12beSStefan Roese 	u8	res118[12];
857a47a12beSStefan Roese 	u32	iivpr24;	/* Internal IRQ Vector/Priority 24 */
858a47a12beSStefan Roese 	u8	res119[12];
859a47a12beSStefan Roese 	u32	iidr24;		/* Internal IRQ Destination 24 */
860a47a12beSStefan Roese 	u8	res120[12];
861a47a12beSStefan Roese 	u32	iivpr25;	/* Internal IRQ Vector/Priority 25 */
862a47a12beSStefan Roese 	u8	res121[12];
863a47a12beSStefan Roese 	u32	iidr25;		/* Internal IRQ Destination 25 */
864a47a12beSStefan Roese 	u8	res122[12];
865a47a12beSStefan Roese 	u32	iivpr26;	/* Internal IRQ Vector/Priority 26 */
866a47a12beSStefan Roese 	u8	res123[12];
867a47a12beSStefan Roese 	u32	iidr26;		/* Internal IRQ Destination 26 */
868a47a12beSStefan Roese 	u8	res124[12];
869a47a12beSStefan Roese 	u32	iivpr27;	/* Internal IRQ Vector/Priority 27 */
870a47a12beSStefan Roese 	u8	res125[12];
871a47a12beSStefan Roese 	u32	iidr27;		/* Internal IRQ Destination 27 */
872a47a12beSStefan Roese 	u8	res126[12];
873a47a12beSStefan Roese 	u32	iivpr28;	/* Internal IRQ Vector/Priority 28 */
874a47a12beSStefan Roese 	u8	res127[12];
875a47a12beSStefan Roese 	u32	iidr28;		/* Internal IRQ Destination 28 */
876a47a12beSStefan Roese 	u8	res128[12];
877a47a12beSStefan Roese 	u32	iivpr29;	/* Internal IRQ Vector/Priority 29 */
878a47a12beSStefan Roese 	u8	res129[12];
879a47a12beSStefan Roese 	u32	iidr29;		/* Internal IRQ Destination 29 */
880a47a12beSStefan Roese 	u8	res130[12];
881a47a12beSStefan Roese 	u32	iivpr30;	/* Internal IRQ Vector/Priority 30 */
882a47a12beSStefan Roese 	u8	res131[12];
883a47a12beSStefan Roese 	u32	iidr30;		/* Internal IRQ Destination 30 */
884a47a12beSStefan Roese 	u8	res132[12];
885a47a12beSStefan Roese 	u32	iivpr31;	/* Internal IRQ Vector/Priority 31 */
886a47a12beSStefan Roese 	u8	res133[12];
887a47a12beSStefan Roese 	u32	iidr31;		/* Internal IRQ Destination 31 */
888a47a12beSStefan Roese 	u8	res134[4108];
889a47a12beSStefan Roese 	u32	mivpr0;		/* Messaging IRQ Vector/Priority 0 */
890a47a12beSStefan Roese 	u8	res135[12];
891a47a12beSStefan Roese 	u32	midr0;		/* Messaging IRQ Destination 0 */
892a47a12beSStefan Roese 	u8	res136[12];
893a47a12beSStefan Roese 	u32	mivpr1;		/* Messaging IRQ Vector/Priority 1 */
894a47a12beSStefan Roese 	u8	res137[12];
895a47a12beSStefan Roese 	u32	midr1;		/* Messaging IRQ Destination 1 */
896a47a12beSStefan Roese 	u8	res138[12];
897a47a12beSStefan Roese 	u32	mivpr2;		/* Messaging IRQ Vector/Priority 2 */
898a47a12beSStefan Roese 	u8	res139[12];
899a47a12beSStefan Roese 	u32	midr2;		/* Messaging IRQ Destination 2 */
900a47a12beSStefan Roese 	u8	res140[12];
901a47a12beSStefan Roese 	u32	mivpr3;		/* Messaging IRQ Vector/Priority 3 */
902a47a12beSStefan Roese 	u8	res141[12];
903a47a12beSStefan Roese 	u32	midr3;		/* Messaging IRQ Destination 3 */
904a47a12beSStefan Roese 	u8	res142[59852];
905a47a12beSStefan Roese 	u32	ipi0dr0;	/* Processor 0 Interprocessor IRQ Dispatch 0 */
906a47a12beSStefan Roese 	u8	res143[12];
907a47a12beSStefan Roese 	u32	ipi0dr1;	/* Processor 0 Interprocessor IRQ Dispatch 1 */
908a47a12beSStefan Roese 	u8	res144[12];
909a47a12beSStefan Roese 	u32	ipi0dr2;	/* Processor 0 Interprocessor IRQ Dispatch 2 */
910a47a12beSStefan Roese 	u8	res145[12];
911a47a12beSStefan Roese 	u32	ipi0dr3;	/* Processor 0 Interprocessor IRQ Dispatch 3 */
912a47a12beSStefan Roese 	u8	res146[12];
913a47a12beSStefan Roese 	u32	ctpr0;		/* Current Task Priority for Processor 0 */
914a47a12beSStefan Roese 	u8	res147[12];
915a47a12beSStefan Roese 	u32	whoami0;	/* Who Am I for Processor 0 */
916a47a12beSStefan Roese 	u8	res148[12];
917a47a12beSStefan Roese 	u32	iack0;		/* IRQ Acknowledge for Processor 0 */
918a47a12beSStefan Roese 	u8	res149[12];
919a47a12beSStefan Roese 	u32	eoi0;		/* End Of IRQ for Processor 0 */
920a47a12beSStefan Roese 	u8	res150[130892];
921a47a12beSStefan Roese } ccsr_pic_t;
922a47a12beSStefan Roese 
923a47a12beSStefan Roese /* CPM Block */
924a47a12beSStefan Roese #ifndef CONFIG_CPM2
925a47a12beSStefan Roese typedef struct ccsr_cpm {
926a47a12beSStefan Roese 	u8 res[262144];
927a47a12beSStefan Roese } ccsr_cpm_t;
928a47a12beSStefan Roese #else
929a47a12beSStefan Roese /*
930a47a12beSStefan Roese  * DPARM
931a47a12beSStefan Roese  * General SIU
932a47a12beSStefan Roese  */
933a47a12beSStefan Roese typedef struct ccsr_cpm_siu {
934a47a12beSStefan Roese 	u8	res1[80];
935a47a12beSStefan Roese 	u32	smaer;
936a47a12beSStefan Roese 	u32	smser;
937a47a12beSStefan Roese 	u32	smevr;
938a47a12beSStefan Roese 	u8	res2[4];
939a47a12beSStefan Roese 	u32	lmaer;
940a47a12beSStefan Roese 	u32	lmser;
941a47a12beSStefan Roese 	u32	lmevr;
942a47a12beSStefan Roese 	u8	res3[2964];
943a47a12beSStefan Roese } ccsr_cpm_siu_t;
944a47a12beSStefan Roese 
945a47a12beSStefan Roese /* IRQ Controller */
946a47a12beSStefan Roese typedef struct ccsr_cpm_intctl {
947a47a12beSStefan Roese 	u16	sicr;
948a47a12beSStefan Roese 	u8	res1[2];
949a47a12beSStefan Roese 	u32	sivec;
950a47a12beSStefan Roese 	u32	sipnrh;
951a47a12beSStefan Roese 	u32	sipnrl;
952a47a12beSStefan Roese 	u32	siprr;
953a47a12beSStefan Roese 	u32	scprrh;
954a47a12beSStefan Roese 	u32	scprrl;
955a47a12beSStefan Roese 	u32	simrh;
956a47a12beSStefan Roese 	u32	simrl;
957a47a12beSStefan Roese 	u32	siexr;
958a47a12beSStefan Roese 	u8	res2[88];
959a47a12beSStefan Roese 	u32	sccr;
960a47a12beSStefan Roese 	u8	res3[124];
961a47a12beSStefan Roese } ccsr_cpm_intctl_t;
962a47a12beSStefan Roese 
963a47a12beSStefan Roese /* input/output port */
964a47a12beSStefan Roese typedef struct ccsr_cpm_iop {
965a47a12beSStefan Roese 	u32	pdira;
966a47a12beSStefan Roese 	u32	ppara;
967a47a12beSStefan Roese 	u32	psora;
968a47a12beSStefan Roese 	u32	podra;
969a47a12beSStefan Roese 	u32	pdata;
970a47a12beSStefan Roese 	u8	res1[12];
971a47a12beSStefan Roese 	u32	pdirb;
972a47a12beSStefan Roese 	u32	pparb;
973a47a12beSStefan Roese 	u32	psorb;
974a47a12beSStefan Roese 	u32	podrb;
975a47a12beSStefan Roese 	u32	pdatb;
976a47a12beSStefan Roese 	u8	res2[12];
977a47a12beSStefan Roese 	u32	pdirc;
978a47a12beSStefan Roese 	u32	pparc;
979a47a12beSStefan Roese 	u32	psorc;
980a47a12beSStefan Roese 	u32	podrc;
981a47a12beSStefan Roese 	u32	pdatc;
982a47a12beSStefan Roese 	u8	res3[12];
983a47a12beSStefan Roese 	u32	pdird;
984a47a12beSStefan Roese 	u32	ppard;
985a47a12beSStefan Roese 	u32	psord;
986a47a12beSStefan Roese 	u32	podrd;
987a47a12beSStefan Roese 	u32	pdatd;
988a47a12beSStefan Roese 	u8	res4[12];
989a47a12beSStefan Roese } ccsr_cpm_iop_t;
990a47a12beSStefan Roese 
991a47a12beSStefan Roese /* CPM timers */
992a47a12beSStefan Roese typedef struct ccsr_cpm_timer {
993a47a12beSStefan Roese 	u8	tgcr1;
994a47a12beSStefan Roese 	u8	res1[3];
995a47a12beSStefan Roese 	u8	tgcr2;
996a47a12beSStefan Roese 	u8	res2[11];
997a47a12beSStefan Roese 	u16	tmr1;
998a47a12beSStefan Roese 	u16	tmr2;
999a47a12beSStefan Roese 	u16	trr1;
1000a47a12beSStefan Roese 	u16	trr2;
1001a47a12beSStefan Roese 	u16	tcr1;
1002a47a12beSStefan Roese 	u16	tcr2;
1003a47a12beSStefan Roese 	u16	tcn1;
1004a47a12beSStefan Roese 	u16	tcn2;
1005a47a12beSStefan Roese 	u16	tmr3;
1006a47a12beSStefan Roese 	u16	tmr4;
1007a47a12beSStefan Roese 	u16	trr3;
1008a47a12beSStefan Roese 	u16	trr4;
1009a47a12beSStefan Roese 	u16	tcr3;
1010a47a12beSStefan Roese 	u16	tcr4;
1011a47a12beSStefan Roese 	u16	tcn3;
1012a47a12beSStefan Roese 	u16	tcn4;
1013a47a12beSStefan Roese 	u16	ter1;
1014a47a12beSStefan Roese 	u16	ter2;
1015a47a12beSStefan Roese 	u16	ter3;
1016a47a12beSStefan Roese 	u16	ter4;
1017a47a12beSStefan Roese 	u8	res3[608];
1018a47a12beSStefan Roese } ccsr_cpm_timer_t;
1019a47a12beSStefan Roese 
1020a47a12beSStefan Roese /* SDMA */
1021a47a12beSStefan Roese typedef struct ccsr_cpm_sdma {
1022a47a12beSStefan Roese 	u8	sdsr;
1023a47a12beSStefan Roese 	u8	res1[3];
1024a47a12beSStefan Roese 	u8	sdmr;
1025a47a12beSStefan Roese 	u8	res2[739];
1026a47a12beSStefan Roese } ccsr_cpm_sdma_t;
1027a47a12beSStefan Roese 
1028a47a12beSStefan Roese /* FCC1 */
1029a47a12beSStefan Roese typedef struct ccsr_cpm_fcc1 {
1030a47a12beSStefan Roese 	u32	gfmr;
1031a47a12beSStefan Roese 	u32	fpsmr;
1032a47a12beSStefan Roese 	u16	ftodr;
1033a47a12beSStefan Roese 	u8	res1[2];
1034a47a12beSStefan Roese 	u16	fdsr;
1035a47a12beSStefan Roese 	u8	res2[2];
1036a47a12beSStefan Roese 	u16	fcce;
1037a47a12beSStefan Roese 	u8	res3[2];
1038a47a12beSStefan Roese 	u16	fccm;
1039a47a12beSStefan Roese 	u8	res4[2];
1040a47a12beSStefan Roese 	u8	fccs;
1041a47a12beSStefan Roese 	u8	res5[3];
1042a47a12beSStefan Roese 	u8	ftirr_phy[4];
1043a47a12beSStefan Roese } ccsr_cpm_fcc1_t;
1044a47a12beSStefan Roese 
1045a47a12beSStefan Roese /* FCC2 */
1046a47a12beSStefan Roese typedef struct ccsr_cpm_fcc2 {
1047a47a12beSStefan Roese 	u32	gfmr;
1048a47a12beSStefan Roese 	u32	fpsmr;
1049a47a12beSStefan Roese 	u16	ftodr;
1050a47a12beSStefan Roese 	u8	res1[2];
1051a47a12beSStefan Roese 	u16	fdsr;
1052a47a12beSStefan Roese 	u8	res2[2];
1053a47a12beSStefan Roese 	u16	fcce;
1054a47a12beSStefan Roese 	u8	res3[2];
1055a47a12beSStefan Roese 	u16	fccm;
1056a47a12beSStefan Roese 	u8	res4[2];
1057a47a12beSStefan Roese 	u8	fccs;
1058a47a12beSStefan Roese 	u8	res5[3];
1059a47a12beSStefan Roese 	u8	ftirr_phy[4];
1060a47a12beSStefan Roese } ccsr_cpm_fcc2_t;
1061a47a12beSStefan Roese 
1062a47a12beSStefan Roese /* FCC3 */
1063a47a12beSStefan Roese typedef struct ccsr_cpm_fcc3 {
1064a47a12beSStefan Roese 	u32	gfmr;
1065a47a12beSStefan Roese 	u32	fpsmr;
1066a47a12beSStefan Roese 	u16	ftodr;
1067a47a12beSStefan Roese 	u8	res1[2];
1068a47a12beSStefan Roese 	u16	fdsr;
1069a47a12beSStefan Roese 	u8	res2[2];
1070a47a12beSStefan Roese 	u16	fcce;
1071a47a12beSStefan Roese 	u8	res3[2];
1072a47a12beSStefan Roese 	u16	fccm;
1073a47a12beSStefan Roese 	u8	res4[2];
1074a47a12beSStefan Roese 	u8	fccs;
1075a47a12beSStefan Roese 	u8	res5[3];
1076a47a12beSStefan Roese 	u8	res[36];
1077a47a12beSStefan Roese } ccsr_cpm_fcc3_t;
1078a47a12beSStefan Roese 
1079a47a12beSStefan Roese /* FCC1 extended */
1080a47a12beSStefan Roese typedef struct ccsr_cpm_fcc1_ext {
1081a47a12beSStefan Roese 	u32	firper;
1082a47a12beSStefan Roese 	u32	firer;
1083a47a12beSStefan Roese 	u32	firsr_h;
1084a47a12beSStefan Roese 	u32	firsr_l;
1085a47a12beSStefan Roese 	u8	gfemr;
1086a47a12beSStefan Roese 	u8	res[15];
1087a47a12beSStefan Roese 
1088a47a12beSStefan Roese } ccsr_cpm_fcc1_ext_t;
1089a47a12beSStefan Roese 
1090a47a12beSStefan Roese /* FCC2 extended */
1091a47a12beSStefan Roese typedef struct ccsr_cpm_fcc2_ext {
1092a47a12beSStefan Roese 	u32	firper;
1093a47a12beSStefan Roese 	u32	firer;
1094a47a12beSStefan Roese 	u32	firsr_h;
1095a47a12beSStefan Roese 	u32	firsr_l;
1096a47a12beSStefan Roese 	u8	gfemr;
1097a47a12beSStefan Roese 	u8	res[31];
1098a47a12beSStefan Roese } ccsr_cpm_fcc2_ext_t;
1099a47a12beSStefan Roese 
1100a47a12beSStefan Roese /* FCC3 extended */
1101a47a12beSStefan Roese typedef struct ccsr_cpm_fcc3_ext {
1102a47a12beSStefan Roese 	u8	gfemr;
1103a47a12beSStefan Roese 	u8	res[47];
1104a47a12beSStefan Roese } ccsr_cpm_fcc3_ext_t;
1105a47a12beSStefan Roese 
1106a47a12beSStefan Roese /* TC layers */
1107a47a12beSStefan Roese typedef struct ccsr_cpm_tmp1 {
1108a47a12beSStefan Roese 	u8	res[496];
1109a47a12beSStefan Roese } ccsr_cpm_tmp1_t;
1110a47a12beSStefan Roese 
1111a47a12beSStefan Roese /* BRGs:5,6,7,8 */
1112a47a12beSStefan Roese typedef struct ccsr_cpm_brg2 {
1113a47a12beSStefan Roese 	u32	brgc5;
1114a47a12beSStefan Roese 	u32	brgc6;
1115a47a12beSStefan Roese 	u32	brgc7;
1116a47a12beSStefan Roese 	u32	brgc8;
1117a47a12beSStefan Roese 	u8	res[608];
1118a47a12beSStefan Roese } ccsr_cpm_brg2_t;
1119a47a12beSStefan Roese 
1120a47a12beSStefan Roese /* I2C */
1121a47a12beSStefan Roese typedef struct ccsr_cpm_i2c {
1122a47a12beSStefan Roese 	u8	i2mod;
1123a47a12beSStefan Roese 	u8	res1[3];
1124a47a12beSStefan Roese 	u8	i2add;
1125a47a12beSStefan Roese 	u8	res2[3];
1126a47a12beSStefan Roese 	u8	i2brg;
1127a47a12beSStefan Roese 	u8	res3[3];
1128a47a12beSStefan Roese 	u8	i2com;
1129a47a12beSStefan Roese 	u8	res4[3];
1130a47a12beSStefan Roese 	u8	i2cer;
1131a47a12beSStefan Roese 	u8	res5[3];
1132a47a12beSStefan Roese 	u8	i2cmr;
1133a47a12beSStefan Roese 	u8	res6[331];
1134a47a12beSStefan Roese } ccsr_cpm_i2c_t;
1135a47a12beSStefan Roese 
1136a47a12beSStefan Roese /* CPM core */
1137a47a12beSStefan Roese typedef struct ccsr_cpm_cp {
1138a47a12beSStefan Roese 	u32	cpcr;
1139a47a12beSStefan Roese 	u32	rccr;
1140a47a12beSStefan Roese 	u8	res1[14];
1141a47a12beSStefan Roese 	u16	rter;
1142a47a12beSStefan Roese 	u8	res2[2];
1143a47a12beSStefan Roese 	u16	rtmr;
1144a47a12beSStefan Roese 	u16	rtscr;
1145a47a12beSStefan Roese 	u8	res3[2];
1146a47a12beSStefan Roese 	u32	rtsr;
1147a47a12beSStefan Roese 	u8	res4[12];
1148a47a12beSStefan Roese } ccsr_cpm_cp_t;
1149a47a12beSStefan Roese 
1150a47a12beSStefan Roese /* BRGs:1,2,3,4 */
1151a47a12beSStefan Roese typedef struct ccsr_cpm_brg1 {
1152a47a12beSStefan Roese 	u32	brgc1;
1153a47a12beSStefan Roese 	u32	brgc2;
1154a47a12beSStefan Roese 	u32	brgc3;
1155a47a12beSStefan Roese 	u32	brgc4;
1156a47a12beSStefan Roese } ccsr_cpm_brg1_t;
1157a47a12beSStefan Roese 
1158a47a12beSStefan Roese /* SCC1-SCC4 */
1159a47a12beSStefan Roese typedef struct ccsr_cpm_scc {
1160a47a12beSStefan Roese 	u32	gsmrl;
1161a47a12beSStefan Roese 	u32	gsmrh;
1162a47a12beSStefan Roese 	u16	psmr;
1163a47a12beSStefan Roese 	u8	res1[2];
1164a47a12beSStefan Roese 	u16	todr;
1165a47a12beSStefan Roese 	u16	dsr;
1166a47a12beSStefan Roese 	u16	scce;
1167a47a12beSStefan Roese 	u8	res2[2];
1168a47a12beSStefan Roese 	u16	sccm;
1169a47a12beSStefan Roese 	u8	res3;
1170a47a12beSStefan Roese 	u8	sccs;
1171a47a12beSStefan Roese 	u8	res4[8];
1172a47a12beSStefan Roese } ccsr_cpm_scc_t;
1173a47a12beSStefan Roese 
1174a47a12beSStefan Roese typedef struct ccsr_cpm_tmp2 {
1175a47a12beSStefan Roese 	u8	res[32];
1176a47a12beSStefan Roese } ccsr_cpm_tmp2_t;
1177a47a12beSStefan Roese 
1178a47a12beSStefan Roese /* SPI */
1179a47a12beSStefan Roese typedef struct ccsr_cpm_spi {
1180a47a12beSStefan Roese 	u16	spmode;
1181a47a12beSStefan Roese 	u8	res1[4];
1182a47a12beSStefan Roese 	u8	spie;
1183a47a12beSStefan Roese 	u8	res2[3];
1184a47a12beSStefan Roese 	u8	spim;
1185a47a12beSStefan Roese 	u8	res3[2];
1186a47a12beSStefan Roese 	u8	spcom;
1187a47a12beSStefan Roese 	u8	res4[82];
1188a47a12beSStefan Roese } ccsr_cpm_spi_t;
1189a47a12beSStefan Roese 
1190a47a12beSStefan Roese /* CPM MUX */
1191a47a12beSStefan Roese typedef struct ccsr_cpm_mux {
1192a47a12beSStefan Roese 	u8	cmxsi1cr;
1193a47a12beSStefan Roese 	u8	res1;
1194a47a12beSStefan Roese 	u8	cmxsi2cr;
1195a47a12beSStefan Roese 	u8	res2;
1196a47a12beSStefan Roese 	u32	cmxfcr;
1197a47a12beSStefan Roese 	u32	cmxscr;
1198a47a12beSStefan Roese 	u8	res3[2];
1199a47a12beSStefan Roese 	u16	cmxuar;
1200a47a12beSStefan Roese 	u8	res4[16];
1201a47a12beSStefan Roese } ccsr_cpm_mux_t;
1202a47a12beSStefan Roese 
1203a47a12beSStefan Roese /* SI,MCC,etc */
1204a47a12beSStefan Roese typedef struct ccsr_cpm_tmp3 {
1205a47a12beSStefan Roese 	u8 res[58592];
1206a47a12beSStefan Roese } ccsr_cpm_tmp3_t;
1207a47a12beSStefan Roese 
1208a47a12beSStefan Roese typedef struct ccsr_cpm_iram {
1209a47a12beSStefan Roese 	u32	iram[8192];
1210a47a12beSStefan Roese 	u8	res[98304];
1211a47a12beSStefan Roese } ccsr_cpm_iram_t;
1212a47a12beSStefan Roese 
1213a47a12beSStefan Roese typedef struct ccsr_cpm {
1214a47a12beSStefan Roese 	/* Some references are into the unique & known dpram spaces,
1215a47a12beSStefan Roese 	 * others are from the generic base.
1216a47a12beSStefan Roese 	 */
1217a47a12beSStefan Roese #define im_dprambase		im_dpram1
1218a47a12beSStefan Roese 	u8			im_dpram1[16*1024];
1219a47a12beSStefan Roese 	u8			res1[16*1024];
1220a47a12beSStefan Roese 	u8			im_dpram2[16*1024];
1221a47a12beSStefan Roese 	u8			res2[16*1024];
1222a47a12beSStefan Roese 	ccsr_cpm_siu_t		im_cpm_siu; /* SIU Configuration */
1223a47a12beSStefan Roese 	ccsr_cpm_intctl_t	im_cpm_intctl; /* IRQ Controller */
1224a47a12beSStefan Roese 	ccsr_cpm_iop_t		im_cpm_iop; /* IO Port control/status */
1225a47a12beSStefan Roese 	ccsr_cpm_timer_t	im_cpm_timer; /* CPM timers */
1226a47a12beSStefan Roese 	ccsr_cpm_sdma_t		im_cpm_sdma; /* SDMA control/status */
1227a47a12beSStefan Roese 	ccsr_cpm_fcc1_t		im_cpm_fcc1;
1228a47a12beSStefan Roese 	ccsr_cpm_fcc2_t		im_cpm_fcc2;
1229a47a12beSStefan Roese 	ccsr_cpm_fcc3_t		im_cpm_fcc3;
1230a47a12beSStefan Roese 	ccsr_cpm_fcc1_ext_t	im_cpm_fcc1_ext;
1231a47a12beSStefan Roese 	ccsr_cpm_fcc2_ext_t	im_cpm_fcc2_ext;
1232a47a12beSStefan Roese 	ccsr_cpm_fcc3_ext_t	im_cpm_fcc3_ext;
1233a47a12beSStefan Roese 	ccsr_cpm_tmp1_t		im_cpm_tmp1;
1234a47a12beSStefan Roese 	ccsr_cpm_brg2_t		im_cpm_brg2;
1235a47a12beSStefan Roese 	ccsr_cpm_i2c_t		im_cpm_i2c;
1236a47a12beSStefan Roese 	ccsr_cpm_cp_t		im_cpm_cp;
1237a47a12beSStefan Roese 	ccsr_cpm_brg1_t		im_cpm_brg1;
1238a47a12beSStefan Roese 	ccsr_cpm_scc_t		im_cpm_scc[4];
1239a47a12beSStefan Roese 	ccsr_cpm_tmp2_t		im_cpm_tmp2;
1240a47a12beSStefan Roese 	ccsr_cpm_spi_t		im_cpm_spi;
1241a47a12beSStefan Roese 	ccsr_cpm_mux_t		im_cpm_mux;
1242a47a12beSStefan Roese 	ccsr_cpm_tmp3_t		im_cpm_tmp3;
1243a47a12beSStefan Roese 	ccsr_cpm_iram_t		im_cpm_iram;
1244a47a12beSStefan Roese } ccsr_cpm_t;
1245a47a12beSStefan Roese #endif
1246a47a12beSStefan Roese 
12477d67ed58SLiu Gang #ifdef CONFIG_SYS_SRIO
12487d67ed58SLiu Gang /* Architectural regsiters */
12497d67ed58SLiu Gang struct rio_arch {
12507d67ed58SLiu Gang 	u32	didcar;	/* Device Identity CAR */
12517d67ed58SLiu Gang 	u32	dicar;	/* Device Information CAR */
12527d67ed58SLiu Gang 	u32	aidcar;	/* Assembly Identity CAR */
12537d67ed58SLiu Gang 	u32	aicar;	/* Assembly Information CAR */
12547d67ed58SLiu Gang 	u32	pefcar;	/* Processing Element Features CAR */
12557d67ed58SLiu Gang 	u8	res0[4];
12567d67ed58SLiu Gang 	u32	socar;	/* Source Operations CAR */
12577d67ed58SLiu Gang 	u32	docar;	/* Destination Operations CAR */
1258a47a12beSStefan Roese 	u8	res1[32];
12597d67ed58SLiu Gang 	u32	mcsr;	/* Mailbox CSR */
12607d67ed58SLiu Gang 	u32	pwdcsr;	/* Port-Write and Doorbell CSR */
1261a47a12beSStefan Roese 	u8	res2[4];
1262a47a12beSStefan Roese 	u32	pellccsr;	/* Processing Element Logic Layer CCSR */
1263a47a12beSStefan Roese 	u8	res3[12];
12647d67ed58SLiu Gang 	u32	lcsbacsr;	/* Local Configuration Space BACSR */
12657d67ed58SLiu Gang 	u32	bdidcsr;	/* Base Device ID CSR */
1266a47a12beSStefan Roese 	u8	res4[4];
12677d67ed58SLiu Gang 	u32	hbdidlcsr;	/* Host Base Device ID Lock CSR */
12687d67ed58SLiu Gang 	u32	ctcsr;	/* Component Tag CSR */
12697d67ed58SLiu Gang };
12707d67ed58SLiu Gang 
12717d67ed58SLiu Gang /* Extended Features Space: 1x/4x LP-Serial Port registers */
12727d67ed58SLiu Gang struct rio_lp_serial_port {
12737d67ed58SLiu Gang 	u32	plmreqcsr;	/* Port Link Maintenance Request CSR */
12747d67ed58SLiu Gang 	u32	plmrespcsr;	/* Port Link Maintenance Response CS */
12757d67ed58SLiu Gang 	u32	plascsr;	/* Port Local Ackid Status CSR */
12767d67ed58SLiu Gang 	u8	res0[12];
12777d67ed58SLiu Gang 	u32	pescsr;	/* Port Error and Status CSR */
12787d67ed58SLiu Gang 	u32	pccsr;	/* Port Control CSR */
12797d67ed58SLiu Gang };
12807d67ed58SLiu Gang 
12817d67ed58SLiu Gang /* Extended Features Space: 1x/4x LP-Serial registers */
12827d67ed58SLiu Gang struct rio_lp_serial {
12837d67ed58SLiu Gang 	u32	pmbh0csr;	/* Port Maintenance Block Header 0 CSR */
12847d67ed58SLiu Gang 	u8	res0[28];
12857d67ed58SLiu Gang 	u32	pltoccsr;	/* Port Link Time-out CCSR */
12867d67ed58SLiu Gang 	u32	prtoccsr;	/* Port Response Time-out CCSR */
12877d67ed58SLiu Gang 	u8	res1[20];
12887d67ed58SLiu Gang 	u32	pgccsr;	/* Port General CSR */
12897d67ed58SLiu Gang 	struct rio_lp_serial_port	port[CONFIG_SYS_FSL_SRIO_MAX_PORTS];
12907d67ed58SLiu Gang };
12917d67ed58SLiu Gang 
12927d67ed58SLiu Gang /* Logical error reporting registers */
12937d67ed58SLiu Gang struct rio_logical_err {
12947d67ed58SLiu Gang 	u32	erbh;	/* Error Reporting Block Header Register */
12957d67ed58SLiu Gang 	u8	res0[4];
12967d67ed58SLiu Gang 	u32	ltledcsr;	/* Logical/Transport layer error DCSR */
12977d67ed58SLiu Gang 	u32	ltleecsr;	/* Logical/Transport layer error ECSR */
12987d67ed58SLiu Gang 	u8	res1[4];
12997d67ed58SLiu Gang 	u32	ltlaccsr;	/* Logical/Transport layer ACCSR */
13007d67ed58SLiu Gang 	u32	ltldidccsr;	/* Logical/Transport layer DID CCSR */
13017d67ed58SLiu Gang 	u32	ltlcccsr;	/* Logical/Transport layer control CCSR */
13027d67ed58SLiu Gang };
13037d67ed58SLiu Gang 
13047d67ed58SLiu Gang /* Physical error reporting port registers */
13057d67ed58SLiu Gang struct rio_phys_err_port {
13067d67ed58SLiu Gang 	u32	edcsr;	/* Port error detect CSR */
13077d67ed58SLiu Gang 	u32	erecsr;	/* Port error rate enable CSR */
13087d67ed58SLiu Gang 	u32	ecacsr;	/* Port error capture attributes CSR */
13097d67ed58SLiu Gang 	u32	pcseccsr0;	/* Port packet/control symbol ECCSR 0 */
13107d67ed58SLiu Gang 	u32	peccsr[3];	/* Port error capture CSR */
13117d67ed58SLiu Gang 	u8	res0[12];
13127d67ed58SLiu Gang 	u32	ercsr;	/* Port error rate CSR */
13137d67ed58SLiu Gang 	u32	ertcsr;	/* Port error rate threshold CSR */
13147d67ed58SLiu Gang 	u8	res1[16];
13157d67ed58SLiu Gang };
13167d67ed58SLiu Gang 
13177d67ed58SLiu Gang /* Physical error reporting registers */
13187d67ed58SLiu Gang struct rio_phys_err {
13197d67ed58SLiu Gang 	struct rio_phys_err_port	port[CONFIG_SYS_FSL_SRIO_MAX_PORTS];
13207d67ed58SLiu Gang };
13217d67ed58SLiu Gang 
13227d67ed58SLiu Gang /* Implementation Space: General Port-Common */
13237d67ed58SLiu Gang struct rio_impl_common {
13247d67ed58SLiu Gang 	u8	res0[4];
13257d67ed58SLiu Gang 	u32	llcr;	/* Logical Layer Configuration Register */
13267d67ed58SLiu Gang 	u8	res1[8];
13277d67ed58SLiu Gang 	u32	epwisr;	/* Error / Port-Write Interrupt SR */
13287d67ed58SLiu Gang 	u8	res2[12];
13297d67ed58SLiu Gang 	u32	lretcr;	/* Logical Retry Error Threshold CR */
13307d67ed58SLiu Gang 	u8	res3[92];
13317d67ed58SLiu Gang 	u32	pretcr;	/* Physical Retry Erorr Threshold CR */
13327d67ed58SLiu Gang 	u8	res4[124];
13337d67ed58SLiu Gang };
13347d67ed58SLiu Gang 
13357d67ed58SLiu Gang /* Implementation Space: Port Specific */
13367d67ed58SLiu Gang struct rio_impl_port_spec {
13377d67ed58SLiu Gang 	u32	adidcsr;	/* Port Alt. Device ID CSR */
13387d67ed58SLiu Gang 	u8	res0[28];
13397d67ed58SLiu Gang 	u32	ptaacr;	/* Port Pass-Through/Accept-All CR */
13407d67ed58SLiu Gang 	u32	lopttlcr;
13417d67ed58SLiu Gang 	u8	res1[8];
13427d67ed58SLiu Gang 	u32	iecsr;	/* Port Implementation Error CSR */
13437d67ed58SLiu Gang 	u8	res2[12];
13447d67ed58SLiu Gang 	u32	pcr;		/* Port Phsyical Configuration Register */
13457d67ed58SLiu Gang 	u8	res3[20];
13467d67ed58SLiu Gang 	u32	slcsr;	/* Port Serial Link CSR */
13477d67ed58SLiu Gang 	u8	res4[4];
13487d67ed58SLiu Gang 	u32	sleicr;	/* Port Serial Link Error Injection */
13497d67ed58SLiu Gang 	u32	a0txcr;	/* Port Arbitration 0 Tx CR */
13507d67ed58SLiu Gang 	u32	a1txcr;	/* Port Arbitration 1 Tx CR */
13517d67ed58SLiu Gang 	u32	a2txcr;	/* Port Arbitration 2 Tx CR */
13527d67ed58SLiu Gang 	u32	mreqtxbacr[3];	/* Port Request Tx Buffer ACR */
13537d67ed58SLiu Gang 	u32	mrspfctxbacr;	/* Port Response/Flow Control Tx Buffer ACR */
13547d67ed58SLiu Gang };
13557d67ed58SLiu Gang 
13567d67ed58SLiu Gang /* Implementation Space: register */
13577d67ed58SLiu Gang struct rio_implement {
13587d67ed58SLiu Gang 	struct rio_impl_common	com;
13597d67ed58SLiu Gang 	struct rio_impl_port_spec	port[CONFIG_SYS_FSL_SRIO_MAX_PORTS];
13607d67ed58SLiu Gang };
13617d67ed58SLiu Gang 
13627d67ed58SLiu Gang /* Revision Control Register */
13637d67ed58SLiu Gang struct rio_rev_ctrl {
13647d67ed58SLiu Gang 	u32	ipbrr[2];	/* IP Block Revision Register */
13657d67ed58SLiu Gang };
13667d67ed58SLiu Gang 
13677d67ed58SLiu Gang struct rio_atmu_row {
13687d67ed58SLiu Gang 	u32	rowtar; /* RapidIO Outbound Window TAR */
13697d67ed58SLiu Gang 	u32	rowtear; /* RapidIO Outbound Window TEAR */
13707d67ed58SLiu Gang 	u32	rowbar;
13717d67ed58SLiu Gang 	u8	res0[4];
13727d67ed58SLiu Gang 	u32	rowar; /* RapidIO Outbound Attributes Register */
13737d67ed58SLiu Gang 	u32	rowsr[3]; /* Port RapidIO outbound window segment register */
13747d67ed58SLiu Gang };
13757d67ed58SLiu Gang 
13767d67ed58SLiu Gang struct rio_atmu_riw {
13777d67ed58SLiu Gang 	u32	riwtar; /* RapidIO Inbound Window Translation AR */
13787d67ed58SLiu Gang 	u8	res0[4];
13797d67ed58SLiu Gang 	u32	riwbar; /* RapidIO Inbound Window Base AR */
13807d67ed58SLiu Gang 	u8	res1[4];
13817d67ed58SLiu Gang 	u32	riwar; /* RapidIO Inbound Attributes Register */
13827d67ed58SLiu Gang 	u8	res2[12];
13837d67ed58SLiu Gang };
13847d67ed58SLiu Gang 
13857d67ed58SLiu Gang /* ATMU window registers */
13867d67ed58SLiu Gang struct rio_atmu_win {
13877d67ed58SLiu Gang 	struct rio_atmu_row	outbw[CONFIG_SYS_FSL_SRIO_OB_WIN_NUM];
13887d67ed58SLiu Gang 	u8	res0[64];
13897d67ed58SLiu Gang 	struct rio_atmu_riw	inbw[CONFIG_SYS_FSL_SRIO_IB_WIN_NUM];
13907d67ed58SLiu Gang };
13917d67ed58SLiu Gang 
13927d67ed58SLiu Gang struct rio_atmu {
13937d67ed58SLiu Gang 	struct rio_atmu_win	port[CONFIG_SYS_FSL_SRIO_MAX_PORTS];
13947d67ed58SLiu Gang };
13957d67ed58SLiu Gang 
13967d67ed58SLiu Gang #ifdef CONFIG_SYS_FSL_RMU
13977d67ed58SLiu Gang struct rio_msg {
13987d67ed58SLiu Gang 	u32	omr; /* Outbound Mode Register */
13997d67ed58SLiu Gang 	u32	osr; /* Outbound Status Register */
14007d67ed58SLiu Gang 	u32	eodqdpar; /* Extended Outbound DQ DPAR */
14017d67ed58SLiu Gang 	u32	odqdpar; /* Outbound Descriptor Queue DPAR */
14027d67ed58SLiu Gang 	u32	eosar; /* Extended Outbound Unit Source AR */
14037d67ed58SLiu Gang 	u32	osar; /* Outbound Unit Source AR */
14047d67ed58SLiu Gang 	u32	odpr; /* Outbound Destination Port Register */
14057d67ed58SLiu Gang 	u32	odatr; /* Outbound Destination Attributes Register */
14067d67ed58SLiu Gang 	u32	odcr; /* Outbound Doubleword Count Register */
14077d67ed58SLiu Gang 	u32	eodqepar; /* Extended Outbound DQ EPAR */
14087d67ed58SLiu Gang 	u32	odqepar; /* Outbound Descriptor Queue EPAR */
14097d67ed58SLiu Gang 	u32	oretr; /* Outbound Retry Error Threshold Register */
14107d67ed58SLiu Gang 	u32	omgr; /* Outbound Multicast Group Register */
14117d67ed58SLiu Gang 	u32	omlr; /* Outbound Multicast List Register */
14127d67ed58SLiu Gang 	u8	res0[40];
14137d67ed58SLiu Gang 	u32	imr;	 /* Outbound Mode Register */
14147d67ed58SLiu Gang 	u32	isr; /* Inbound Status Register */
14157d67ed58SLiu Gang 	u32	eidqdpar; /* Extended Inbound Descriptor Queue DPAR */
14167d67ed58SLiu Gang 	u32	idqdpar; /* Inbound Descriptor Queue DPAR */
14177d67ed58SLiu Gang 	u32	eifqepar; /* Extended Inbound Frame Queue EPAR */
14187d67ed58SLiu Gang 	u32	ifqepar; /* Inbound Frame Queue EPAR */
14197d67ed58SLiu Gang 	u32	imirir; /* Inbound Maximum Interrutp RIR */
14207d67ed58SLiu Gang 	u8	res1[4];
14217d67ed58SLiu Gang 	u32 eihqepar; /* Extended inbound message header queue EPAR */
14227d67ed58SLiu Gang 	u32 ihqepar; /* Inbound message header queue EPAR */
14237d67ed58SLiu Gang 	u8	res2[120];
14247d67ed58SLiu Gang };
14257d67ed58SLiu Gang 
14267d67ed58SLiu Gang struct rio_dbell {
14277d67ed58SLiu Gang 	u32	odmr; /* Outbound Doorbell Mode Register */
14287d67ed58SLiu Gang 	u32	odsr; /* Outbound Doorbell Status Register */
14297d67ed58SLiu Gang 	u8	res0[16];
14307d67ed58SLiu Gang 	u32	oddpr; /* Outbound Doorbell Destination Port */
14317d67ed58SLiu Gang 	u32	oddatr; /* Outbound Doorbell Destination AR */
14327d67ed58SLiu Gang 	u8	res1[12];
14337d67ed58SLiu Gang 	u32	oddretr; /* Outbound Doorbell Retry Threshold CR */
14347d67ed58SLiu Gang 	u8	res2[48];
14357d67ed58SLiu Gang 	u32	idmr; /* Inbound Doorbell Mode Register */
14367d67ed58SLiu Gang 	u32	idsr;	 /* Inbound Doorbell Status Register */
14377d67ed58SLiu Gang 	u32	iedqdpar; /* Extended Inbound Doorbell Queue DPAR */
14387d67ed58SLiu Gang 	u32	iqdpar; /* Inbound Doorbell Queue DPAR */
14397d67ed58SLiu Gang 	u32	iedqepar; /* Extended Inbound Doorbell Queue EPAR */
14407d67ed58SLiu Gang 	u32	idqepar; /* Inbound Doorbell Queue EPAR */
14417d67ed58SLiu Gang 	u32	idmirir; /* Inbound Doorbell Max Interrupt RIR */
14427d67ed58SLiu Gang };
14437d67ed58SLiu Gang 
14447d67ed58SLiu Gang struct rio_pw {
14457d67ed58SLiu Gang 	u32	pwmr; /* Port-Write Mode Register */
14467d67ed58SLiu Gang 	u32	pwsr; /* Port-Write Status Register */
14477d67ed58SLiu Gang 	u32	epwqbar; /* Extended Port-Write Queue BAR */
14487d67ed58SLiu Gang 	u32	pwqbar; /* Port-Write Queue Base Address Register */
14497d67ed58SLiu Gang };
14507d67ed58SLiu Gang #endif
14517d67ed58SLiu Gang 
1452b3831020SLiu Gang #ifdef CONFIG_SYS_FSL_SRIO_LIODN
1453b3831020SLiu Gang struct rio_liodn {
1454b3831020SLiu Gang 	u32	plbr;
1455b3831020SLiu Gang 	u8	res0[28];
1456b3831020SLiu Gang 	u32	plaor;
1457b3831020SLiu Gang 	u8	res1[12];
1458b3831020SLiu Gang 	u32	pludr;
1459b3831020SLiu Gang 	u32	plldr;
1460b3831020SLiu Gang 	u8	res2[456];
1461b3831020SLiu Gang };
1462b3831020SLiu Gang #endif
1463b3831020SLiu Gang 
14647d67ed58SLiu Gang /* RapidIO Registers */
14657d67ed58SLiu Gang struct ccsr_rio {
14667d67ed58SLiu Gang 	struct rio_arch	arch;
14677d67ed58SLiu Gang 	u8	res0[144];
14687d67ed58SLiu Gang 	struct rio_lp_serial	lp_serial;
14697d67ed58SLiu Gang 	u8	res1[1152];
14707d67ed58SLiu Gang 	struct rio_logical_err	logical_err;
14717d67ed58SLiu Gang 	u8	res2[32];
14727d67ed58SLiu Gang 	struct rio_phys_err	phys_err;
14737d67ed58SLiu Gang 	u8	res3[63808];
14747d67ed58SLiu Gang 	struct rio_implement	impl;
14757d67ed58SLiu Gang 	u8	res4[2552];
14767d67ed58SLiu Gang 	struct rio_rev_ctrl	rev;
14777d67ed58SLiu Gang 	struct rio_atmu	atmu;
14787d67ed58SLiu Gang #ifdef CONFIG_SYS_FSL_RMU
14797d67ed58SLiu Gang 	u8	res5[8192];
14807d67ed58SLiu Gang 	struct rio_msg	msg[CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM];
14817d67ed58SLiu Gang 	u8	res6[512];
14827d67ed58SLiu Gang 	struct rio_dbell	dbell;
14837d67ed58SLiu Gang 	u8	res7[100];
14847d67ed58SLiu Gang 	struct rio_pw	pw;
14857d67ed58SLiu Gang #endif
1486b3831020SLiu Gang #ifdef CONFIG_SYS_FSL_SRIO_LIODN
1487b3831020SLiu Gang 	u8	res5[8192];
1488b3831020SLiu Gang 	struct rio_liodn liodn[CONFIG_SYS_FSL_SRIO_MAX_PORTS];
1489b3831020SLiu Gang #endif
14907d67ed58SLiu Gang };
14917d67ed58SLiu Gang #endif
1492a47a12beSStefan Roese 
1493a47a12beSStefan Roese /* Quick Engine Block Pin Muxing Registers */
1494a47a12beSStefan Roese typedef struct par_io {
1495a47a12beSStefan Roese 	u32	cpodr;
1496a47a12beSStefan Roese 	u32	cpdat;
1497a47a12beSStefan Roese 	u32	cpdir1;
1498a47a12beSStefan Roese 	u32	cpdir2;
1499a47a12beSStefan Roese 	u32	cppar1;
1500a47a12beSStefan Roese 	u32	cppar2;
1501a47a12beSStefan Roese 	u8	res[8];
1502a47a12beSStefan Roese } par_io_t;
1503a47a12beSStefan Roese 
1504a47a12beSStefan Roese #ifdef CONFIG_SYS_FSL_CPC
1505a47a12beSStefan Roese /*
1506a47a12beSStefan Roese  * Define a single offset that is the start of all the CPC register
1507a47a12beSStefan Roese  * blocks - if there is more than one CPC, we expect these to be
1508a47a12beSStefan Roese  * contiguous 4k regions
1509a47a12beSStefan Roese  */
1510a47a12beSStefan Roese 
1511a47a12beSStefan Roese typedef struct cpc_corenet {
1512a47a12beSStefan Roese 	u32 	cpccsr0;	/* Config/status reg */
1513a47a12beSStefan Roese 	u32	res1;
1514a47a12beSStefan Roese 	u32	cpccfg0;	/* Configuration register */
1515a47a12beSStefan Roese 	u32	res2;
1516a47a12beSStefan Roese 	u32	cpcewcr0;	/* External Write reg 0 */
1517a47a12beSStefan Roese 	u32	cpcewabr0;	/* External write base reg 0 */
1518a47a12beSStefan Roese 	u32	res3[2];
1519a47a12beSStefan Roese 	u32	cpcewcr1;	/* External Write reg 1 */
1520a47a12beSStefan Roese 	u32	cpcewabr1;	/* External write base reg 1 */
1521a47a12beSStefan Roese 	u32	res4[54];
1522a47a12beSStefan Roese 	u32	cpcsrcr1;	/* SRAM control reg 1 */
1523a47a12beSStefan Roese 	u32	cpcsrcr0;	/* SRAM control reg 0 */
1524a47a12beSStefan Roese 	u32	res5[62];
1525a47a12beSStefan Roese 	struct {
1526a47a12beSStefan Roese 		u32	id;	/* partition ID */
1527a47a12beSStefan Roese 		u32	res;
1528a47a12beSStefan Roese 		u32	alloc;	/* partition allocation */
1529a47a12beSStefan Roese 		u32	way;	/* partition way */
1530a47a12beSStefan Roese 	} partition_regs[16];
1531a47a12beSStefan Roese 	u32	res6[704];
1532a47a12beSStefan Roese 	u32	cpcerrinjhi;	/* Error injection high */
1533a47a12beSStefan Roese 	u32	cpcerrinjlo;	/* Error injection lo */
1534a47a12beSStefan Roese 	u32	cpcerrinjctl;	/* Error injection control */
1535a47a12beSStefan Roese 	u32	res7[5];
1536a47a12beSStefan Roese 	u32	cpccaptdatahi;	/* capture data high */
1537a47a12beSStefan Roese 	u32	cpccaptdatalo;	/* capture data low */
1538a47a12beSStefan Roese 	u32	cpcaptecc;	/* capture ECC */
1539a47a12beSStefan Roese 	u32	res8[5];
1540a47a12beSStefan Roese 	u32	cpcerrdet;	/* error detect */
1541a47a12beSStefan Roese 	u32	cpcerrdis;	/* error disable */
1542a47a12beSStefan Roese 	u32	cpcerrinten;	/* errir interrupt enable */
1543a47a12beSStefan Roese 	u32	cpcerrattr;	/* error attribute */
1544a47a12beSStefan Roese 	u32	cpcerreaddr;	/* error extended address */
1545a47a12beSStefan Roese 	u32	cpcerraddr;	/* error address */
1546a47a12beSStefan Roese 	u32	cpcerrctl;	/* error control */
15473c6a22b9SKumar Gala 	u32	res9[41];	/* pad out to 4k */
15483c6a22b9SKumar Gala 	u32	cpchdbcr0;	/* hardware debug control register 0 */
15493c6a22b9SKumar Gala 	u32	res10[63];	/* pad out to 4k */
1550a47a12beSStefan Roese } cpc_corenet_t;
1551a47a12beSStefan Roese 
1552a47a12beSStefan Roese #define CPC_CSR0_CE	0x80000000	/* Cache Enable */
1553a47a12beSStefan Roese #define CPC_CSR0_PE	0x40000000	/* Enable ECC */
1554a47a12beSStefan Roese #define CPC_CSR0_FI	0x00200000	/* Cache Flash Invalidate */
1555a47a12beSStefan Roese #define CPC_CSR0_WT	0x00080000	/* Write-through mode */
1556a47a12beSStefan Roese #define CPC_CSR0_FL	0x00000800	/* Hardware cache flush */
1557a47a12beSStefan Roese #define CPC_CSR0_LFC	0x00000400	/* Cache Lock Flash Clear */
1558a47a12beSStefan Roese #define CPC_CFG0_SZ_MASK	0x00003fff
1559a47a12beSStefan Roese #define CPC_CFG0_SZ_K(x)	((x & CPC_CFG0_SZ_MASK) << 6)
1560a47a12beSStefan Roese #define CPC_CFG0_NUM_WAYS(x)	(((x >> 14) & 0x1f) + 1)
1561a47a12beSStefan Roese #define CPC_CFG0_LINE_SZ(x)	((((x >> 23) & 0x3) + 1) * 32)
1562a47a12beSStefan Roese #define CPC_SRCR1_SRBARU_MASK	0x0000ffff
1563a47a12beSStefan Roese #define CPC_SRCR1_SRBARU(x)	(((unsigned long long)x >> 32) \
1564a47a12beSStefan Roese 				 & CPC_SRCR1_SRBARU_MASK)
1565a47a12beSStefan Roese #define	CPC_SRCR0_SRBARL_MASK	0xffff8000
1566a47a12beSStefan Roese #define CPC_SRCR0_SRBARL(x)	(x & CPC_SRCR0_SRBARL_MASK)
1567a47a12beSStefan Roese #define CPC_SRCR0_INTLVEN	0x00000100
1568a47a12beSStefan Roese #define CPC_SRCR0_SRAMSZ_1_WAY	0x00000000
1569a47a12beSStefan Roese #define CPC_SRCR0_SRAMSZ_2_WAY	0x00000002
1570a47a12beSStefan Roese #define CPC_SRCR0_SRAMSZ_4_WAY	0x00000004
1571a47a12beSStefan Roese #define CPC_SRCR0_SRAMSZ_8_WAY	0x00000006
1572a47a12beSStefan Roese #define CPC_SRCR0_SRAMSZ_16_WAY	0x00000008
1573a47a12beSStefan Roese #define CPC_SRCR0_SRAMSZ_32_WAY	0x0000000a
1574a47a12beSStefan Roese #define CPC_SRCR0_SRAMEN	0x00000001
1575a47a12beSStefan Roese #define	CPC_ERRDIS_TMHITDIS  	0x00000080	/* multi-way hit disable */
15763c6a22b9SKumar Gala #define CPC_HDBCR0_CDQ_SPEC_DIS	0x08000000
15771d2c2a62SKumar Gala #define CPC_HDBCR0_TAG_ECC_SCRUB_DIS	0x01000000
1578868da593SKumar Gala #define CPC_HDBCR0_DATA_ECC_SCRUB_DIS	0x00400000
1579133fbfa9SYork Sun #define CPC_HDBCR0_SPLRU_LEVEL_EN	0x003c0000
1580a47a12beSStefan Roese #endif /* CONFIG_SYS_FSL_CPC */
1581a47a12beSStefan Roese 
1582a47a12beSStefan Roese /* Global Utilities Block */
1583a47a12beSStefan Roese #ifdef CONFIG_FSL_CORENET
1584a47a12beSStefan Roese typedef struct ccsr_gur {
158545c18853SYork Sun 	u32	porsr1;		/* POR status 1 */
158645c18853SYork Sun 	u32	porsr2;		/* POR status 2 */
15870c12a159Svijay rai #ifdef	CONFIG_SYS_FSL_SINGLE_SOURCE_CLK
15880c12a159Svijay rai #define	FSL_DCFG_PORSR1_SYSCLK_SHIFT	15
15890c12a159Svijay rai #define	FSL_DCFG_PORSR1_SYSCLK_MASK	0x1
15900c12a159Svijay rai #define	FSL_DCFG_PORSR1_SYSCLK_SINGLE_ENDED	0x1
15910c12a159Svijay rai #define	FSL_DCFG_PORSR1_SYSCLK_DIFF	0x0
15920c12a159Svijay rai #endif
159345c18853SYork Sun 	u8	res_008[0x20-0x8];
1594a47a12beSStefan Roese 	u32	gpporcr1;	/* General-purpose POR configuration */
159545c18853SYork Sun 	u32	gpporcr2;	/* General-purpose POR configuration 2 */
159645c18853SYork Sun 	u32	dcfg_fusesr;	/* Fuse status register */
159745c18853SYork Sun #define FSL_CORENET_DCFG_FUSESR_VID_SHIFT	25
159845c18853SYork Sun #define FSL_CORENET_DCFG_FUSESR_VID_MASK	0x1F
159945c18853SYork Sun #define FSL_CORENET_DCFG_FUSESR_ALTVID_SHIFT	20
160045c18853SYork Sun #define FSL_CORENET_DCFG_FUSESR_ALTVID_MASK	0x1F
160145c18853SYork Sun 	u8	res_02c[0x70-0x2c];
1602a47a12beSStefan Roese 	u32	devdisr;	/* Device disable control */
16039e758758SYork Sun 	u32	devdisr2;	/* Device disable control 2 */
16049e758758SYork Sun 	u32	devdisr3;	/* Device disable control 3 */
16059e758758SYork Sun 	u32	devdisr4;	/* Device disable control 4 */
16069e758758SYork Sun #ifdef CONFIG_SYS_FSL_QORIQ_CHASSIS2
16079e758758SYork Sun 	u32	devdisr5;	/* Device disable control 5 */
16089e758758SYork Sun #define FSL_CORENET_DEVDISR_PBL	0x80000000
16099e758758SYork Sun #define FSL_CORENET_DEVDISR_PMAN	0x40000000
16109e758758SYork Sun #define FSL_CORENET_DEVDISR_ESDHC	0x20000000
16119e758758SYork Sun #define FSL_CORENET_DEVDISR_DMA1	0x00800000
16129e758758SYork Sun #define FSL_CORENET_DEVDISR_DMA2	0x00400000
16139e758758SYork Sun #define FSL_CORENET_DEVDISR_USB1	0x00080000
16149e758758SYork Sun #define FSL_CORENET_DEVDISR_USB2	0x00040000
16159e758758SYork Sun #define FSL_CORENET_DEVDISR_SATA1	0x00008000
16169e758758SYork Sun #define FSL_CORENET_DEVDISR_SATA2	0x00004000
16179e758758SYork Sun #define FSL_CORENET_DEVDISR_PME	0x00000800
16189e758758SYork Sun #define FSL_CORENET_DEVDISR_SEC	0x00000200
16199e758758SYork Sun #define FSL_CORENET_DEVDISR_RMU	0x00000080
16209e758758SYork Sun #define FSL_CORENET_DEVDISR_DCE	0x00000040
16219e758758SYork Sun #define FSL_CORENET_DEVDISR2_DTSEC1_1	0x80000000
16229e758758SYork Sun #define FSL_CORENET_DEVDISR2_DTSEC1_2	0x40000000
16239e758758SYork Sun #define FSL_CORENET_DEVDISR2_DTSEC1_3	0x20000000
16249e758758SYork Sun #define FSL_CORENET_DEVDISR2_DTSEC1_4	0x10000000
16259e758758SYork Sun #define FSL_CORENET_DEVDISR2_DTSEC1_5	0x08000000
16269e758758SYork Sun #define FSL_CORENET_DEVDISR2_DTSEC1_6	0x04000000
16279e758758SYork Sun #define FSL_CORENET_DEVDISR2_DTSEC1_9	0x00800000
16289e758758SYork Sun #define FSL_CORENET_DEVDISR2_DTSEC1_10	0x00400000
16299e758758SYork Sun #define FSL_CORENET_DEVDISR2_10GEC1_1	0x00800000
16309e758758SYork Sun #define FSL_CORENET_DEVDISR2_10GEC1_2	0x00400000
163182a55c1eSShengzhou Liu #define FSL_CORENET_DEVDISR2_10GEC1_3	0x80000000
163282a55c1eSShengzhou Liu #define FSL_CORENET_DEVDISR2_10GEC1_4	0x40000000
16339e758758SYork Sun #define FSL_CORENET_DEVDISR2_DTSEC2_1	0x00080000
16349e758758SYork Sun #define FSL_CORENET_DEVDISR2_DTSEC2_2	0x00040000
16359e758758SYork Sun #define FSL_CORENET_DEVDISR2_DTSEC2_3	0x00020000
16369e758758SYork Sun #define FSL_CORENET_DEVDISR2_DTSEC2_4	0x00010000
16379e758758SYork Sun #define FSL_CORENET_DEVDISR2_DTSEC2_5	0x00008000
16389e758758SYork Sun #define FSL_CORENET_DEVDISR2_DTSEC2_6	0x00004000
16399e758758SYork Sun #define FSL_CORENET_DEVDISR2_DTSEC2_9	0x00000800
16409e758758SYork Sun #define FSL_CORENET_DEVDISR2_DTSEC2_10	0x00000400
16419e758758SYork Sun #define FSL_CORENET_DEVDISR2_10GEC2_1	0x00000800
16429e758758SYork Sun #define FSL_CORENET_DEVDISR2_10GEC2_2	0x00000400
16439e758758SYork Sun #define FSL_CORENET_DEVDISR2_FM1	0x00000080
16449e758758SYork Sun #define FSL_CORENET_DEVDISR2_FM2	0x00000040
1645d2404141SYork Sun #define FSL_CORENET_DEVDISR2_CPRI	0x00000008
16469e758758SYork Sun #define FSL_CORENET_DEVDISR3_PCIE1	0x80000000
16479e758758SYork Sun #define FSL_CORENET_DEVDISR3_PCIE2	0x40000000
16489e758758SYork Sun #define FSL_CORENET_DEVDISR3_PCIE3	0x20000000
16499e758758SYork Sun #define FSL_CORENET_DEVDISR3_PCIE4	0x10000000
16509e758758SYork Sun #define FSL_CORENET_DEVDISR3_SRIO1	0x08000000
16519e758758SYork Sun #define FSL_CORENET_DEVDISR3_SRIO2	0x04000000
16529e758758SYork Sun #define FSL_CORENET_DEVDISR3_QMAN	0x00080000
16539e758758SYork Sun #define FSL_CORENET_DEVDISR3_BMAN	0x00040000
16549e758758SYork Sun #define FSL_CORENET_DEVDISR3_LA1	0x00008000
1655d2404141SYork Sun #define FSL_CORENET_DEVDISR3_MAPLE1	0x00000800
1656d2404141SYork Sun #define FSL_CORENET_DEVDISR3_MAPLE2	0x00000400
1657d2404141SYork Sun #define FSL_CORENET_DEVDISR3_MAPLE3	0x00000200
16589e758758SYork Sun #define FSL_CORENET_DEVDISR4_I2C1	0x80000000
16599e758758SYork Sun #define FSL_CORENET_DEVDISR4_I2C2	0x40000000
16609e758758SYork Sun #define FSL_CORENET_DEVDISR4_DUART1	0x20000000
16619e758758SYork Sun #define FSL_CORENET_DEVDISR4_DUART2	0x10000000
16629e758758SYork Sun #define FSL_CORENET_DEVDISR4_ESPI	0x08000000
16639e758758SYork Sun #define FSL_CORENET_DEVDISR5_DDR1	0x80000000
16649e758758SYork Sun #define FSL_CORENET_DEVDISR5_DDR2	0x40000000
16659e758758SYork Sun #define FSL_CORENET_DEVDISR5_DDR3	0x20000000
16669e758758SYork Sun #define FSL_CORENET_DEVDISR5_CPC1	0x08000000
16679e758758SYork Sun #define FSL_CORENET_DEVDISR5_CPC2	0x04000000
16689e758758SYork Sun #define FSL_CORENET_DEVDISR5_CPC3	0x02000000
16699e758758SYork Sun #define FSL_CORENET_DEVDISR5_IFC	0x00800000
16709e758758SYork Sun #define FSL_CORENET_DEVDISR5_GPIO	0x00400000
16719e758758SYork Sun #define FSL_CORENET_DEVDISR5_DBG	0x00200000
16729e758758SYork Sun #define FSL_CORENET_DEVDISR5_NAL	0x00100000
1673d2404141SYork Sun #define FSL_CORENET_DEVDISR5_TIMERS	0x00020000
16749e758758SYork Sun #define FSL_CORENET_NUM_DEVDISR		5
16759e758758SYork Sun #else
1676a47a12beSStefan Roese #define FSL_CORENET_DEVDISR_PCIE1	0x80000000
1677a47a12beSStefan Roese #define FSL_CORENET_DEVDISR_PCIE2	0x40000000
1678a47a12beSStefan Roese #define FSL_CORENET_DEVDISR_PCIE3	0x20000000
16799ab87d04SKumar Gala #define FSL_CORENET_DEVDISR_PCIE4	0x10000000
1680a47a12beSStefan Roese #define FSL_CORENET_DEVDISR_RMU		0x08000000
1681a47a12beSStefan Roese #define FSL_CORENET_DEVDISR_SRIO1	0x04000000
1682a47a12beSStefan Roese #define FSL_CORENET_DEVDISR_SRIO2	0x02000000
1683a47a12beSStefan Roese #define FSL_CORENET_DEVDISR_DMA1	0x00400000
1684a47a12beSStefan Roese #define FSL_CORENET_DEVDISR_DMA2	0x00200000
1685a47a12beSStefan Roese #define FSL_CORENET_DEVDISR_DDR1	0x00100000
1686a47a12beSStefan Roese #define FSL_CORENET_DEVDISR_DDR2	0x00080000
1687a47a12beSStefan Roese #define FSL_CORENET_DEVDISR_DBG		0x00010000
1688a47a12beSStefan Roese #define FSL_CORENET_DEVDISR_NAL		0x00008000
16899ab87d04SKumar Gala #define FSL_CORENET_DEVDISR_SATA1	0x00004000
16909ab87d04SKumar Gala #define FSL_CORENET_DEVDISR_SATA2	0x00002000
1691a47a12beSStefan Roese #define FSL_CORENET_DEVDISR_ELBC	0x00001000
1692a47a12beSStefan Roese #define FSL_CORENET_DEVDISR_USB1	0x00000800
1693a47a12beSStefan Roese #define FSL_CORENET_DEVDISR_USB2	0x00000400
1694a47a12beSStefan Roese #define FSL_CORENET_DEVDISR_ESDHC	0x00000100
1695a47a12beSStefan Roese #define FSL_CORENET_DEVDISR_GPIO	0x00000080
1696a47a12beSStefan Roese #define FSL_CORENET_DEVDISR_ESPI	0x00000040
1697a47a12beSStefan Roese #define FSL_CORENET_DEVDISR_I2C1	0x00000020
1698a47a12beSStefan Roese #define FSL_CORENET_DEVDISR_I2C2	0x00000010
1699a47a12beSStefan Roese #define FSL_CORENET_DEVDISR_DUART1	0x00000002
1700a47a12beSStefan Roese #define FSL_CORENET_DEVDISR_DUART2	0x00000001
17011231c498SKumar Gala #define FSL_CORENET_DEVDISR2_PME	0x80000000
17021231c498SKumar Gala #define FSL_CORENET_DEVDISR2_SEC	0x40000000
17031231c498SKumar Gala #define FSL_CORENET_DEVDISR2_QMBM	0x08000000
17041231c498SKumar Gala #define FSL_CORENET_DEVDISR2_FM1	0x02000000
17051231c498SKumar Gala #define FSL_CORENET_DEVDISR2_10GEC1	0x01000000
17061231c498SKumar Gala #define FSL_CORENET_DEVDISR2_DTSEC1_1	0x00800000
17071231c498SKumar Gala #define FSL_CORENET_DEVDISR2_DTSEC1_2	0x00400000
17081231c498SKumar Gala #define FSL_CORENET_DEVDISR2_DTSEC1_3	0x00200000
17091231c498SKumar Gala #define FSL_CORENET_DEVDISR2_DTSEC1_4	0x00100000
17109ab87d04SKumar Gala #define FSL_CORENET_DEVDISR2_DTSEC1_5	0x00080000
17111231c498SKumar Gala #define FSL_CORENET_DEVDISR2_FM2	0x00020000
17121231c498SKumar Gala #define FSL_CORENET_DEVDISR2_10GEC2	0x00010000
17131231c498SKumar Gala #define FSL_CORENET_DEVDISR2_DTSEC2_1	0x00008000
17141231c498SKumar Gala #define FSL_CORENET_DEVDISR2_DTSEC2_2	0x00004000
17151231c498SKumar Gala #define FSL_CORENET_DEVDISR2_DTSEC2_3	0x00002000
17161231c498SKumar Gala #define FSL_CORENET_DEVDISR2_DTSEC2_4	0x00001000
171799abf7deSTimur Tabi #define FSL_CORENET_DEVDISR2_DTSEC2_5	0x00000800
17189ab87d04SKumar Gala #define FSL_CORENET_NUM_DEVDISR		2
1719a47a12beSStefan Roese 	u32	powmgtcsr;	/* Power management status & control */
17209e758758SYork Sun #endif
1721a47a12beSStefan Roese 	u8	res8[12];
1722a47a12beSStefan Roese 	u32	coredisru;	/* uppper portion for support of 64 cores */
1723a47a12beSStefan Roese 	u32	coredisrl;	/* lower portion for support of 64 cores */
1724a47a12beSStefan Roese 	u8	res9[8];
1725a47a12beSStefan Roese 	u32	pvr;		/* Processor version */
1726a47a12beSStefan Roese 	u32	svr;		/* System version */
1727a47a12beSStefan Roese 	u8	res10[8];
1728a47a12beSStefan Roese 	u32	rstcr;		/* Reset control */
1729a47a12beSStefan Roese 	u32	rstrqpblsr;	/* Reset request preboot loader status */
1730a47a12beSStefan Roese 	u8	res11[8];
1731a47a12beSStefan Roese 	u32	rstrqmr1;	/* Reset request mask */
1732fb07c0a1SShaveta Leekha #ifdef CONFIG_SYS_FSL_QORIQ_CHASSIS2
1733fb07c0a1SShaveta Leekha #define FSL_CORENET_RSTRQMR1_SRDS_RST_MSK      0x00000800
1734fb07c0a1SShaveta Leekha #endif
1735a47a12beSStefan Roese 	u8	res12[4];
1736a47a12beSStefan Roese 	u32	rstrqsr1;	/* Reset request status */
1737a47a12beSStefan Roese 	u8	res13[4];
1738a47a12beSStefan Roese 	u8	res14[4];
1739a47a12beSStefan Roese 	u32	rstrqwdtmrl;	/* Reset request WDT mask */
1740a47a12beSStefan Roese 	u8	res15[4];
1741a47a12beSStefan Roese 	u32	rstrqwdtsrl;	/* Reset request WDT status */
1742a47a12beSStefan Roese 	u8	res16[4];
1743a47a12beSStefan Roese 	u32	brrl;		/* Boot release */
1744a47a12beSStefan Roese 	u8	res17[24];
1745a47a12beSStefan Roese 	u32	rcwsr[16];	/* Reset control word status */
1746fd3cebd0SYork Sun 
1747fd3cebd0SYork Sun #ifdef CONFIG_SYS_FSL_QORIQ_CHASSIS2
1748f77329cfSYork Sun #define FSL_CORENET_RCWSR0_MEM_PLL_RAT_SHIFT	16
1749c3678b09SYork Sun /* use reserved bits 18~23 as scratch space to host DDR PLL ratio */
1750c3678b09SYork Sun #define FSL_CORENET_RCWSR0_MEM_PLL_RAT_RESV_SHIFT	8
1751f77329cfSYork Sun #define FSL_CORENET_RCWSR0_MEM_PLL_RAT_MASK	0x3f
17525122dfaeSShengzhou Liu #if defined(CONFIG_PPC_T4240) || defined(CONFIG_PPC_T4160) || \
17535122dfaeSShengzhou Liu 	defined(CONFIG_PPC_T4080)
1754fd3cebd0SYork Sun #define FSL_CORENET2_RCWSR4_SRDS1_PRTCL		0xfc000000
1755fd3cebd0SYork Sun #define FSL_CORENET2_RCWSR4_SRDS1_PRTCL_SHIFT	26
1756fd3cebd0SYork Sun #define FSL_CORENET2_RCWSR4_SRDS2_PRTCL		0x00fe0000
1757fd3cebd0SYork Sun #define FSL_CORENET2_RCWSR4_SRDS2_PRTCL_SHIFT	17
1758fd3cebd0SYork Sun #define FSL_CORENET2_RCWSR4_SRDS3_PRTCL		0x0000f800
1759fd3cebd0SYork Sun #define FSL_CORENET2_RCWSR4_SRDS3_PRTCL_SHIFT	11
1760fd3cebd0SYork Sun #define FSL_CORENET2_RCWSR4_SRDS4_PRTCL		0x000000f8
1761fd3cebd0SYork Sun #define FSL_CORENET2_RCWSR4_SRDS4_PRTCL_SHIFT	3
176269fdf900SLiu Gang #define FSL_CORENET_RCWSR6_BOOT_LOC	0x0f800000
1763e1dbdd81SPoonam Aggrwal #elif defined(CONFIG_PPC_B4860) || defined(CONFIG_PPC_B4420)
1764d2404141SYork Sun #define FSL_CORENET2_RCWSR4_SRDS1_PRTCL	0xfe000000
1765d2404141SYork Sun #define FSL_CORENET2_RCWSR4_SRDS1_PRTCL_SHIFT	25
1766d2404141SYork Sun #define FSL_CORENET2_RCWSR4_SRDS2_PRTCL	0x00ff0000
1767d2404141SYork Sun #define FSL_CORENET2_RCWSR4_SRDS2_PRTCL_SHIFT	16
17685870fe44SLiu Gang #define FSL_CORENET_RCWSR6_BOOT_LOC	0x0f800000
17692967af68SPriyanka Jain #elif defined(CONFIG_PPC_T1040) || defined(CONFIG_PPC_T1042) ||\
17702967af68SPriyanka Jain defined(CONFIG_PPC_T1020) || defined(CONFIG_PPC_T1022)
17715f208d11SYork Sun #define FSL_CORENET2_RCWSR4_SRDS1_PRTCL	0xff000000
17725f208d11SYork Sun #define FSL_CORENET2_RCWSR4_SRDS1_PRTCL_SHIFT	24
17735f208d11SYork Sun #define FSL_CORENET2_RCWSR4_SRDS2_PRTCL	0x00fe0000
17745f208d11SYork Sun #define FSL_CORENET2_RCWSR4_SRDS2_PRTCL_SHIFT	17
17755b7672fcSPrabhakar Kushwaha #define FSL_CORENET_RCWSR13_EC1	0x30000000 /* bits 418..419 */
17765b7672fcSPrabhakar Kushwaha #define FSL_CORENET_RCWSR13_EC1_FM1_DTSEC4_RGMII	0x00000000
17775b7672fcSPrabhakar Kushwaha #define FSL_CORENET_RCWSR13_EC1_FM1_GPIO	0x10000000
17785b7672fcSPrabhakar Kushwaha #define FSL_CORENET_RCWSR13_EC1_FM1_DTSEC4_MII	0x20000000
17795b7672fcSPrabhakar Kushwaha #define FSL_CORENET_RCWSR13_EC2	0x0c000000 /* bits 420..421 */
17805b7672fcSPrabhakar Kushwaha #define FSL_CORENET_RCWSR13_EC2_FM1_DTSEC5_RGMII	0x00000000
17815b7672fcSPrabhakar Kushwaha #define FSL_CORENET_RCWSR13_EC2_FM1_GPIO	0x10000000
17825b7672fcSPrabhakar Kushwaha #define FSL_CORENET_RCWSR13_EC2_FM1_DTSEC5_MII	0x20000000
17835b7672fcSPrabhakar Kushwaha #define FSL_CORENET_RCWSR13_MAC2_GMII_SEL	0x00000080
17845b7672fcSPrabhakar Kushwaha #define FSL_CORENET_RCWSR13_MAC2_GMII_SEL_L2_SWITCH	0x00000000
17855b7672fcSPrabhakar Kushwaha #define FSL_CORENET_RCWSR13_MAC2_GMII_SEL_ENET_PORT	0x80000000
1786bf4699dbSPriyanka Jain #define CONFIG_SYS_FSL_SCFG_PIXCLKCR_OFFSET	0x28
1787bf4699dbSPriyanka Jain #define PXCKEN_MASK	0x80000000
1788bf4699dbSPriyanka Jain #define PXCK_MASK	0x00FF0000
1789bf4699dbSPriyanka Jain #define PXCK_BITS_START	16
1790629d6b32SShengzhou Liu #elif defined(CONFIG_PPC_T2080) || defined(CONFIG_PPC_T2081)
1791629d6b32SShengzhou Liu #define FSL_CORENET2_RCWSR4_SRDS1_PRTCL		0xff000000
1792629d6b32SShengzhou Liu #define FSL_CORENET2_RCWSR4_SRDS1_PRTCL_SHIFT	24
1793629d6b32SShengzhou Liu #define FSL_CORENET2_RCWSR4_SRDS2_PRTCL		0x00ff0000
1794629d6b32SShengzhou Liu #define FSL_CORENET2_RCWSR4_SRDS2_PRTCL_SHIFT	16
1795629d6b32SShengzhou Liu #define FSL_CORENET_RCWSR6_BOOT_LOC		0x0f800000
17969e758758SYork Sun #endif
1797fd3cebd0SYork Sun #define FSL_CORENET2_RCWSR5_SRDS_PLL_PD_S1_PLL1	0x00800000
1798fd3cebd0SYork Sun #define FSL_CORENET2_RCWSR5_SRDS_PLL_PD_S1_PLL2	0x00400000
1799fd3cebd0SYork Sun #define FSL_CORENET2_RCWSR5_SRDS_PLL_PD_S2_PLL1	0x00200000
1800fd3cebd0SYork Sun #define FSL_CORENET2_RCWSR5_SRDS_PLL_PD_S2_PLL2	0x00100000
1801fd3cebd0SYork Sun #define FSL_CORENET2_RCWSR5_SRDS_PLL_PD_S3_PLL1	0x00080000
1802fd3cebd0SYork Sun #define FSL_CORENET2_RCWSR5_SRDS_PLL_PD_S3_PLL2	0x00040000
1803fd3cebd0SYork Sun #define FSL_CORENET2_RCWSR5_SRDS_PLL_PD_S4_PLL1	0x00020000
1804fd3cebd0SYork Sun #define FSL_CORENET2_RCWSR5_SRDS_PLL_PD_S4_PLL2	0x00010000
1805b135991aSPriyanka Jain #define FSL_CORENET2_RCWSR5_DDR_REFCLK_SEL_SHIFT 4
1806b135991aSPriyanka Jain #define FSL_CORENET2_RCWSR5_DDR_REFCLK_SEL_MASK	0x00000011
1807b135991aSPriyanka Jain #define FSL_CORENET2_RCWSR5_DDR_REFCLK_SINGLE_CLK	1
1808fd3cebd0SYork Sun 
1809fd3cebd0SYork Sun #else /* CONFIG_SYS_FSL_QORIQ_CHASSIS2 */
1810fd3cebd0SYork Sun #define FSL_CORENET_RCWSR0_MEM_PLL_RAT_SHIFT	17
1811fd3cebd0SYork Sun #define FSL_CORENET_RCWSR0_MEM_PLL_RAT_MASK	0x1f
1812a47a12beSStefan Roese #define FSL_CORENET_RCWSR4_SRDS_PRTCL		0xfc000000
1813ab48ca1aSSrikanth Srinivasan #define FSL_CORENET_RCWSR5_DDR_SYNC		0x00000080
1814ab48ca1aSSrikanth Srinivasan #define FSL_CORENET_RCWSR5_DDR_SYNC_SHIFT		 7
18151231c498SKumar Gala #define FSL_CORENET_RCWSR5_SRDS_EN		0x00002000
18164905443fSTimur Tabi #define FSL_CORENET_RCWSR5_SRDS2_EN		0x00001000
181781fa73baSLiu Gang #define FSL_CORENET_RCWSR6_BOOT_LOC	0x0f800000
18189ab87d04SKumar Gala #define FSL_CORENET_RCWSRn_SRDS_LPD_B2		0x3c000000 /* bits 162..165 */
18199ab87d04SKumar Gala #define FSL_CORENET_RCWSRn_SRDS_LPD_B3		0x003c0000 /* bits 170..173 */
1820fd3cebd0SYork Sun #endif /* CONFIG_SYS_FSL_QORIQ_CHASSIS2 */
1821fd3cebd0SYork Sun 
1822a47a12beSStefan Roese #define FSL_CORENET_RCWSR7_MCK_TO_PLAT_RAT	0x00400000
1823a47a12beSStefan Roese #define FSL_CORENET_RCWSR8_HOST_AGT_B1		0x00e00000
1824a47a12beSStefan Roese #define FSL_CORENET_RCWSR8_HOST_AGT_B2		0x00100000
18259ab87d04SKumar Gala #define FSL_CORENET_RCWSR11_EC1			0x00c00000 /* bits 360..361 */
1826055ce080STimur Tabi #ifdef CONFIG_PPC_P4080
18279ab87d04SKumar Gala #define FSL_CORENET_RCWSR11_EC1_FM1_DTSEC1		0x00000000
18289ab87d04SKumar Gala #define FSL_CORENET_RCWSR11_EC1_FM1_USB1		0x00800000
18299ab87d04SKumar Gala #define FSL_CORENET_RCWSR11_EC2			0x001c0000 /* bits 363..365 */
18309ab87d04SKumar Gala #define FSL_CORENET_RCWSR11_EC2_FM2_DTSEC1		0x00000000
18319ab87d04SKumar Gala #define FSL_CORENET_RCWSR11_EC2_FM1_DTSEC2		0x00080000
18329ab87d04SKumar Gala #define FSL_CORENET_RCWSR11_EC2_USB2			0x00100000
1833c916d7c9SKumar Gala #endif
18343e978f5dSScott Wood #if defined(CONFIG_PPC_P2041) \
1835c916d7c9SKumar Gala 	|| defined(CONFIG_PPC_P3041) || defined(CONFIG_PPC_P5020)
1836c916d7c9SKumar Gala #define FSL_CORENET_RCWSR11_EC1_FM1_DTSEC4_RGMII	0x00000000
1837c916d7c9SKumar Gala #define FSL_CORENET_RCWSR11_EC1_FM1_DTSEC4_MII		0x00800000
1838c916d7c9SKumar Gala #define FSL_CORENET_RCWSR11_EC1_FM1_DTSEC4_NONE		0x00c00000
1839c916d7c9SKumar Gala #define FSL_CORENET_RCWSR11_EC2			0x00180000 /* bits 363..364 */
1840c916d7c9SKumar Gala #define FSL_CORENET_RCWSR11_EC2_FM1_DTSEC5_RGMII	0x00000000
1841c916d7c9SKumar Gala #define FSL_CORENET_RCWSR11_EC2_FM1_DTSEC5_MII		0x00100000
1842c916d7c9SKumar Gala #define FSL_CORENET_RCWSR11_EC2_FM1_DTSEC5_NONE		0x00180000
1843c916d7c9SKumar Gala #endif
18444905443fSTimur Tabi #if defined(CONFIG_PPC_P5040)
18454905443fSTimur Tabi #define FSL_CORENET_RCWSR11_EC1_FM1_DTSEC5_RGMII        0x00000000
18464905443fSTimur Tabi #define FSL_CORENET_RCWSR11_EC1_FM1_DTSEC5_MII          0x00800000
18474905443fSTimur Tabi #define FSL_CORENET_RCWSR11_EC1_FM1_DTSEC5_NONE         0x00c00000
18484905443fSTimur Tabi #define FSL_CORENET_RCWSR11_EC2                 0x00180000 /* bits 363..364 */
18494905443fSTimur Tabi #define FSL_CORENET_RCWSR11_EC2_FM2_DTSEC5_RGMII        0x00000000
18504905443fSTimur Tabi #define FSL_CORENET_RCWSR11_EC2_FM2_DTSEC5_MII          0x00100000
18514905443fSTimur Tabi #define FSL_CORENET_RCWSR11_EC2_FM2_DTSEC5_NONE         0x00180000
18524905443fSTimur Tabi #endif
18535122dfaeSShengzhou Liu #if defined(CONFIG_PPC_T4240) || defined(CONFIG_PPC_T4160) || \
18545122dfaeSShengzhou Liu 	defined(CONFIG_PPC_T4080)
18559e758758SYork Sun #define FSL_CORENET_RCWSR13_EC1			0x60000000 /* bits 417..418 */
18569e758758SYork Sun #define FSL_CORENET_RCWSR13_EC1_FM2_DTSEC5_RGMII	0x00000000
18579e758758SYork Sun #define FSL_CORENET_RCWSR13_EC1_FM2_GPIO		0x40000000
18589e758758SYork Sun #define FSL_CORENET_RCWSR13_EC2			0x18000000 /* bits 419..420 */
18599e758758SYork Sun #define FSL_CORENET_RCWSR13_EC2_FM1_DTSEC5_RGMII	0x00000000
18609e758758SYork Sun #define FSL_CORENET_RCWSR13_EC2_FM1_DTSEC6_RGMII	0x08000000
18619e758758SYork Sun #define FSL_CORENET_RCWSR13_EC2_FM1_GPIO		0x10000000
18629e758758SYork Sun #endif
1863629d6b32SShengzhou Liu #if defined(CONFIG_PPC_T2080) || defined(CONFIG_PPC_T2081)
1864629d6b32SShengzhou Liu #define FSL_CORENET_RCWSR13_EC1			0x60000000 /* bits 417..418 */
1865629d6b32SShengzhou Liu #define FSL_CORENET_RCWSR13_EC1_DTSEC3_RGMII	0x00000000
1866629d6b32SShengzhou Liu #define FSL_CORENET_RCWSR13_EC1_GPIO		0x40000000
1867629d6b32SShengzhou Liu #define FSL_CORENET_RCWSR13_EC2			0x18000000 /* bits 419..420 */
1868629d6b32SShengzhou Liu #define FSL_CORENET_RCWSR13_EC2_DTSEC4_RGMII	0x00000000
1869629d6b32SShengzhou Liu #define FSL_CORENET_RCWSR13_EC2_DTSEC10_RGMII	0x08000000
1870629d6b32SShengzhou Liu #define FSL_CORENET_RCWSR13_EC2_GPIO		0x10000000
1871629d6b32SShengzhou Liu #endif
1872a47a12beSStefan Roese 	u8	res18[192];
1873a47a12beSStefan Roese 	u32	scratchrw[4];	/* Scratch Read/Write */
1874a47a12beSStefan Roese 	u8	res19[240];
1875a47a12beSStefan Roese 	u32	scratchw1r[4];	/* Scratch Read (Write once) */
1876a47a12beSStefan Roese 	u8	res20[240];
1877a47a12beSStefan Roese 	u32	scrtsr[8];	/* Core reset status */
1878a47a12beSStefan Roese 	u8	res21[224];
1879a47a12beSStefan Roese 	u32	pex1liodnr;	/* PCI Express 1 LIODN */
1880a47a12beSStefan Roese 	u32	pex2liodnr;	/* PCI Express 2 LIODN */
1881a47a12beSStefan Roese 	u32	pex3liodnr;	/* PCI Express 3 LIODN */
1882a47a12beSStefan Roese 	u32	pex4liodnr;	/* PCI Express 4 LIODN */
1883a47a12beSStefan Roese 	u32	rio1liodnr;	/* RIO 1 LIODN */
1884a47a12beSStefan Roese 	u32	rio2liodnr;	/* RIO 2 LIODN */
1885a47a12beSStefan Roese 	u32	rio3liodnr;	/* RIO 3 LIODN */
1886a47a12beSStefan Roese 	u32	rio4liodnr;	/* RIO 4 LIODN */
1887a47a12beSStefan Roese 	u32	usb1liodnr;	/* USB 1 LIODN */
1888a47a12beSStefan Roese 	u32	usb2liodnr;	/* USB 2 LIODN */
1889a47a12beSStefan Roese 	u32	usb3liodnr;	/* USB 3 LIODN */
1890a47a12beSStefan Roese 	u32	usb4liodnr;	/* USB 4 LIODN */
1891a47a12beSStefan Roese 	u32	sdmmc1liodnr;	/* SD/MMC 1 LIODN */
1892a47a12beSStefan Roese 	u32	sdmmc2liodnr;	/* SD/MMC 2 LIODN */
1893a47a12beSStefan Roese 	u32	sdmmc3liodnr;	/* SD/MMC 3 LIODN */
1894a47a12beSStefan Roese 	u32	sdmmc4liodnr;	/* SD/MMC 4 LIODN */
18959ab87d04SKumar Gala 	u32	rio1maintliodnr;/* RIO 1 Maintenance LIODN */
18969ab87d04SKumar Gala 	u32	rio2maintliodnr;/* RIO 2 Maintenance LIODN */
18979ab87d04SKumar Gala 	u32	rio3maintliodnr;/* RIO 3 Maintenance LIODN */
18989ab87d04SKumar Gala 	u32	rio4maintliodnr;/* RIO 4 Maintenance LIODN */
18999ab87d04SKumar Gala 	u32	sata1liodnr;	/* SATA 1 LIODN */
19009ab87d04SKumar Gala 	u32	sata2liodnr;	/* SATA 2 LIODN */
19019ab87d04SKumar Gala 	u32	sata3liodnr;	/* SATA 3 LIODN */
19029ab87d04SKumar Gala 	u32	sata4liodnr;	/* SATA 4 LIODN */
1903377ffcfaSSandeep Singh 	u8	res22[20];
1904377ffcfaSSandeep Singh 	u32	tdmliodnr;	/* TDM LIODN */
19052a44efebSZhao Qiang 	u32     qeliodnr;       /* QE LIODN */
19062a44efebSZhao Qiang 	u8      res_57c[4];
1907a47a12beSStefan Roese 	u32	dma1liodnr;	/* DMA 1 LIODN */
1908a47a12beSStefan Roese 	u32	dma2liodnr;	/* DMA 2 LIODN */
1909a47a12beSStefan Roese 	u32	dma3liodnr;	/* DMA 3 LIODN */
1910a47a12beSStefan Roese 	u32	dma4liodnr;	/* DMA 4 LIODN */
1911a47a12beSStefan Roese 	u8	res23[48];
1912a47a12beSStefan Roese 	u8	res24[64];
1913a47a12beSStefan Roese 	u32	pblsr;		/* Preboot loader status */
1914a47a12beSStefan Roese 	u32	pamubypenr;	/* PAMU bypass enable */
1915a47a12beSStefan Roese 	u32	dmacr1;		/* DMA control */
1916a47a12beSStefan Roese 	u8	res25[4];
1917a47a12beSStefan Roese 	u32	gensr1;		/* General status */
1918a47a12beSStefan Roese 	u8	res26[12];
1919a47a12beSStefan Roese 	u32	gencr1;		/* General control */
1920a47a12beSStefan Roese 	u8	res27[12];
1921a47a12beSStefan Roese 	u8	res28[4];
1922a47a12beSStefan Roese 	u32	cgensrl;	/* Core general status */
1923a47a12beSStefan Roese 	u8	res29[8];
1924a47a12beSStefan Roese 	u8	res30[4];
1925a47a12beSStefan Roese 	u32	cgencrl;	/* Core general control */
1926a47a12beSStefan Roese 	u8	res31[184];
1927a47a12beSStefan Roese 	u32	sriopstecr;	/* SRIO prescaler timer enable control */
1928f110fe94SStephen George 	u32	dcsrcr;		/* DCSR Control register */
19291ca8690dSYork Sun 	u8	res31a[56];
19301ca8690dSYork Sun 	u32	tp_ityp[64];	/* Topology Initiator Type Register */
19311ca8690dSYork Sun 	struct {
19321ca8690dSYork Sun 		u32	upper;
19331ca8690dSYork Sun 		u32	lower;
19341ca8690dSYork Sun 	} tp_cluster[16];	/* Core Cluster n Topology Register */
19351ca8690dSYork Sun 	u8	res32[1344];
193617d90f31SDave Liu 	u32	pmuxcr;		/* Pin multiplexing control */
193717d90f31SDave Liu 	u8	res33[60];
193817d90f31SDave Liu 	u32	iovselsr;	/* I/O voltage selection status */
193917d90f31SDave Liu 	u8	res34[28];
194017d90f31SDave Liu 	u32	ddrclkdr;	/* DDR clock disable */
194117d90f31SDave Liu 	u8	res35;
194217d90f31SDave Liu 	u32	elbcclkdr;	/* eLBC clock disable */
194317d90f31SDave Liu 	u8	res36[20];
194417d90f31SDave Liu 	u32	sdhcpcr;	/* eSDHC polarity configuration */
194517d90f31SDave Liu 	u8	res37[380];
1946a47a12beSStefan Roese } ccsr_gur_t;
1947a47a12beSStefan Roese 
19481ca8690dSYork Sun #define TP_ITYP_AV	0x00000001		/* Initiator available */
19491ca8690dSYork Sun #define TP_ITYP_TYPE(x)	(((x) & 0x6) >> 1)	/* Initiator Type */
19501ca8690dSYork Sun #define TP_ITYP_TYPE_OTHER	0x0
19511ca8690dSYork Sun #define TP_ITYP_TYPE_PPC	0x1	/* PowerPC */
19521ca8690dSYork Sun #define TP_ITYP_TYPE_SC		0x2	/* StarCore DSP */
19531ca8690dSYork Sun #define TP_ITYP_TYPE_HA		0x3	/* HW Accelerator */
19541ca8690dSYork Sun #define TP_ITYP_THDS(x)	(((x) & 0x18) >> 3)	/* # threads */
19551ca8690dSYork Sun #define TP_ITYP_VER(x)	(((x) & 0xe0) >> 5)	/* Initiator Version */
19561ca8690dSYork Sun 
19571ca8690dSYork Sun #define TP_CLUSTER_EOC		0x80000000	/* end of clusters */
19581ca8690dSYork Sun #define TP_CLUSTER_INIT_MASK	0x0000003f	/* initiator mask */
1959f6981439SYork Sun #define TP_INIT_PER_CLUSTER	4
19601ca8690dSYork Sun 
1961f110fe94SStephen George #define FSL_CORENET_DCSR_SZ_MASK	0x00000003
1962f110fe94SStephen George #define FSL_CORENET_DCSR_SZ_4M		0x0
1963f110fe94SStephen George #define FSL_CORENET_DCSR_SZ_1G		0x3
1964f110fe94SStephen George 
19659ab87d04SKumar Gala /*
19669ab87d04SKumar Gala  * On p4080 we have an LIODN for msg unit (rmu) but not maintenance
19679ab87d04SKumar Gala  * everything after has RMan thus msg unit LIODN is used for maintenance
19689ab87d04SKumar Gala  */
19699ab87d04SKumar Gala #define rmuliodnr rio1maintliodnr
19709ab87d04SKumar Gala 
1971a47a12beSStefan Roese typedef struct ccsr_clk {
1972f6981439SYork Sun 	struct {
1973f6981439SYork Sun 		u32 clkcncsr;	/* core cluster n clock control status */
1974f6981439SYork Sun 		u8  res_004[0x0c];
1975f6981439SYork Sun 		u32 clkcgnhwacsr;/* clock generator n hardware accelerator */
1976f6981439SYork Sun 		u8  res_014[0x0c];
1977ce746fe0SPrabhakar Kushwaha 	} clkcsr[12];
1978ce746fe0SPrabhakar Kushwaha 	u8	res_100[0x680]; /* 0x100 */
1979ce746fe0SPrabhakar Kushwaha 	struct {
1980ce746fe0SPrabhakar Kushwaha 		u32 pllcngsr;
1981a47a12beSStefan Roese 		u8 res10[0x1c];
1982ce746fe0SPrabhakar Kushwaha 	} pllcgsr[12];
1983ce746fe0SPrabhakar Kushwaha 	u8	res21[0x280];
19849a653a98SYork Sun 	u32	pllpgsr;	/* 0xc00 Platform PLL General Status */
19859a653a98SYork Sun 	u8	res16[0x1c];
19869a653a98SYork Sun 	u32	plldgsr;	/* 0xc20 DDR PLL General Status */
19879a653a98SYork Sun 	u8	res17[0x3dc];
1988a47a12beSStefan Roese } ccsr_clk_t;
1989a47a12beSStefan Roese 
19901ca8690dSYork Sun #ifdef CONFIG_SYS_FSL_QORIQ_CHASSIS2
19911ca8690dSYork Sun typedef struct ccsr_rcpm {
19921ca8690dSYork Sun 	u8	res_00[12];
19931ca8690dSYork Sun 	u32	tph10sr0;	/* Thread PH10 Status Register */
19941ca8690dSYork Sun 	u8	res_10[12];
19951ca8690dSYork Sun 	u32	tph10setr0;	/* Thread PH10 Set Control Register */
19961ca8690dSYork Sun 	u8	res_20[12];
19971ca8690dSYork Sun 	u32	tph10clrr0;	/* Thread PH10 Clear Control Register */
19981ca8690dSYork Sun 	u8	res_30[12];
19991ca8690dSYork Sun 	u32	tph10psr0;	/* Thread PH10 Previous Status Register */
20001ca8690dSYork Sun 	u8	res_40[12];
20011ca8690dSYork Sun 	u32	twaitsr0;	/* Thread Wait Status Register */
20021ca8690dSYork Sun 	u8	res_50[96];
20031ca8690dSYork Sun 	u32	pcph15sr;	/* Physical Core PH15 Status Register */
20041ca8690dSYork Sun 	u32	pcph15setr;	/* Physical Core PH15 Set Control Register */
20051ca8690dSYork Sun 	u32	pcph15clrr;	/* Physical Core PH15 Clear Control Register */
20061ca8690dSYork Sun 	u32	pcph15psr;	/* Physical Core PH15 Prev Status Register */
20071ca8690dSYork Sun 	u8	res_c0[16];
20081ca8690dSYork Sun 	u32	pcph20sr;	/* Physical Core PH20 Status Register */
20091ca8690dSYork Sun 	u32	pcph20setr;	/* Physical Core PH20 Set Control Register */
20101ca8690dSYork Sun 	u32	pcph20clrr;	/* Physical Core PH20 Clear Control Register */
20111ca8690dSYork Sun 	u32	pcph20psr;	/* Physical Core PH20 Prev Status Register */
20121ca8690dSYork Sun 	u32	pcpw20sr;	/* Physical Core PW20 Status Register */
20131ca8690dSYork Sun 	u8	res_e0[12];
20141ca8690dSYork Sun 	u32	pcph30sr;	/* Physical Core PH30 Status Register */
20151ca8690dSYork Sun 	u32	pcph30setr;	/* Physical Core PH30 Set Control Register */
20161ca8690dSYork Sun 	u32	pcph30clrr;	/* Physical Core PH30 Clear Control Register */
20171ca8690dSYork Sun 	u32	pcph30psr;	/* Physical Core PH30 Prev Status Register */
20181ca8690dSYork Sun 	u8	res_100[32];
20191ca8690dSYork Sun 	u32	ippwrgatecr;	/* IP Power Gating Control Register */
20201ca8690dSYork Sun 	u8	res_124[12];
20211ca8690dSYork Sun 	u32	powmgtcsr;	/* Power Management Control & Status Reg */
20221ca8690dSYork Sun 	u8	res_134[12];
20231ca8690dSYork Sun 	u32	ippdexpcr[4];	/* IP Powerdown Exception Control Reg */
20241ca8690dSYork Sun 	u8	res_150[12];
20251ca8690dSYork Sun 	u32	tpmimr0;	/* Thread PM Interrupt Mask Reg */
20261ca8690dSYork Sun 	u8	res_160[12];
20271ca8690dSYork Sun 	u32	tpmcimr0;	/* Thread PM Crit Interrupt Mask Reg */
20281ca8690dSYork Sun 	u8	res_170[12];
20291ca8690dSYork Sun 	u32	tpmmcmr0;	/* Thread PM Machine Check Interrupt Mask Reg */
20301ca8690dSYork Sun 	u8	res_180[12];
20311ca8690dSYork Sun 	u32	tpmnmimr0;	/* Thread PM NMI Mask Reg */
20321ca8690dSYork Sun 	u8	res_190[12];
20331ca8690dSYork Sun 	u32	tmcpmaskcr0;	/* Thread Machine Check Mask Control Reg */
20341ca8690dSYork Sun 	u32	pctbenr;	/* Physical Core Time Base Enable Reg */
20351ca8690dSYork Sun 	u32	pctbclkselr;	/* Physical Core Time Base Clock Select */
20361ca8690dSYork Sun 	u32	tbclkdivr;	/* Time Base Clock Divider Register */
20371ca8690dSYork Sun 	u8	res_1ac[4];
20381ca8690dSYork Sun 	u32	ttbhltcr[4];	/* Thread Time Base Halt Control Register */
20391ca8690dSYork Sun 	u32	clpcl10sr;	/* Cluster PCL10 Status Register */
20401ca8690dSYork Sun 	u32	clpcl10setr;	/* Cluster PCL30 Set Control Register */
20411ca8690dSYork Sun 	u32	clpcl10clrr;	/* Cluster PCL30 Clear Control Register */
20421ca8690dSYork Sun 	u32	clpcl10psr;	/* Cluster PCL30 Prev Status Register */
20431ca8690dSYork Sun 	u32	cddslpsetr;	/* Core Domain Deep Sleep Set Register */
20441ca8690dSYork Sun 	u32	cddslpclrr;	/* Core Domain Deep Sleep Clear Register */
20451ca8690dSYork Sun 	u32	cdpwroksetr;	/* Core Domain Power OK Set Register */
20461ca8690dSYork Sun 	u32	cdpwrokclrr;	/* Core Domain Power OK Clear Register */
20471ca8690dSYork Sun 	u32	cdpwrensr;	/* Core Domain Power Enable Status Register */
20481ca8690dSYork Sun 	u32	cddslsr;	/* Core Domain Deep Sleep Status Register */
20491ca8690dSYork Sun 	u8	res_1e8[8];
20501ca8690dSYork Sun 	u32	dslpcntcr[8];	/* Deep Sleep Counter Cfg Register */
20511ca8690dSYork Sun 	u8	res_300[3568];
20521ca8690dSYork Sun } ccsr_rcpm_t;
20531ca8690dSYork Sun 
20541ca8690dSYork Sun #define ctbenrl pctbenr
20551ca8690dSYork Sun 
20561ca8690dSYork Sun #else
2057a47a12beSStefan Roese typedef struct ccsr_rcpm {
2058a47a12beSStefan Roese 	u8	res1[4];
2059a47a12beSStefan Roese 	u32	cdozsrl;	/* Core Doze Status */
2060a47a12beSStefan Roese 	u8	res2[4];
2061a47a12beSStefan Roese 	u32	cdozcrl;	/* Core Doze Control */
2062a47a12beSStefan Roese 	u8	res3[4];
2063a47a12beSStefan Roese 	u32	cnapsrl;	/* Core Nap Status */
2064a47a12beSStefan Roese 	u8	res4[4];
2065a47a12beSStefan Roese 	u32	cnapcrl;	/* Core Nap Control */
2066a47a12beSStefan Roese 	u8	res5[4];
2067a47a12beSStefan Roese 	u32	cdozpsrl;	/* Core Doze Previous Status */
2068a47a12beSStefan Roese 	u8	res6[4];
2069a47a12beSStefan Roese 	u32	cdozpcrl;	/* Core Doze Previous Control */
2070a47a12beSStefan Roese 	u8	res7[4];
2071a47a12beSStefan Roese 	u32	cwaitsrl;	/* Core Wait Status */
2072a47a12beSStefan Roese 	u8	res8[8];
2073a47a12beSStefan Roese 	u32	powmgtcsr;	/* Power Mangement Control & Status */
2074a47a12beSStefan Roese 	u8	res9[12];
2075a47a12beSStefan Roese 	u32	ippdexpcr0;	/* IP Powerdown Exception Control 0 */
2076a47a12beSStefan Roese 	u8	res10[12];
2077a47a12beSStefan Roese 	u8	res11[4];
2078a47a12beSStefan Roese 	u32	cpmimrl;	/* Core PM IRQ Masking */
2079a47a12beSStefan Roese 	u8	res12[4];
2080a47a12beSStefan Roese 	u32	cpmcimrl;	/* Core PM Critical IRQ Masking */
2081a47a12beSStefan Roese 	u8	res13[4];
2082a47a12beSStefan Roese 	u32	cpmmcimrl;	/* Core PM Machine Check IRQ Masking */
2083a47a12beSStefan Roese 	u8	res14[4];
2084a47a12beSStefan Roese 	u32	cpmnmimrl;	/* Core PM NMI Masking */
2085a47a12beSStefan Roese 	u8	res15[4];
2086a47a12beSStefan Roese 	u32	ctbenrl;	/* Core Time Base Enable */
2087a47a12beSStefan Roese 	u8	res16[4];
2088a47a12beSStefan Roese 	u32	ctbclkselrl;	/* Core Time Base Clock Select */
2089a47a12beSStefan Roese 	u8	res17[4];
2090a47a12beSStefan Roese 	u32	ctbhltcrl;	/* Core Time Base Halt Control */
2091a47a12beSStefan Roese 	u8	res18[0xf68];
2092a47a12beSStefan Roese } ccsr_rcpm_t;
20931ca8690dSYork Sun #endif /* CONFIG_SYS_FSL_QORIQ_CHASSIS2 */
2094a47a12beSStefan Roese 
2095a47a12beSStefan Roese #else
2096a47a12beSStefan Roese typedef struct ccsr_gur {
2097a47a12beSStefan Roese 	u32	porpllsr;	/* POR PLL ratio status */
2098a47a12beSStefan Roese #ifdef CONFIG_MPC8536
2099a47a12beSStefan Roese #define MPC85xx_PORPLLSR_DDR_RATIO	0x3e000000
2100a47a12beSStefan Roese #define MPC85xx_PORPLLSR_DDR_RATIO_SHIFT	25
21013b75e982SMingkai Hu #elif defined(CONFIG_PPC_C29X)
21023b75e982SMingkai Hu #define MPC85xx_PORPLLSR_DDR_RATIO	0x00003f00
21033b75e982SMingkai Hu #define MPC85xx_PORPLLSR_DDR_RATIO_SHIFT	(9 - ((gur->pordevsr2 \
21043b75e982SMingkai Hu 					& MPC85xx_PORDEVSR2_DDR_SPD_0) \
21053b75e982SMingkai Hu 					>> MPC85xx_PORDEVSR2_DDR_SPD_0_SHIFT))
2106a47a12beSStefan Roese #else
210735fe948eSPrabhakar Kushwaha #if defined(CONFIG_BSC9131) || defined(CONFIG_BSC9132)
210819a8dbdcSPrabhakar Kushwaha #define MPC85xx_PORPLLSR_DDR_RATIO	0x00003f00
210919a8dbdcSPrabhakar Kushwaha #else
2110a47a12beSStefan Roese #define MPC85xx_PORPLLSR_DDR_RATIO	0x00003e00
211119a8dbdcSPrabhakar Kushwaha #endif
2112a47a12beSStefan Roese #define MPC85xx_PORPLLSR_DDR_RATIO_SHIFT	9
2113a47a12beSStefan Roese #endif
2114a47a12beSStefan Roese #define MPC85xx_PORPLLSR_QE_RATIO	0x3e000000
2115a47a12beSStefan Roese #define MPC85xx_PORPLLSR_QE_RATIO_SHIFT		25
2116a47a12beSStefan Roese #define MPC85xx_PORPLLSR_PLAT_RATIO	0x0000003e
2117a47a12beSStefan Roese #define MPC85xx_PORPLLSR_PLAT_RATIO_SHIFT	1
2118a47a12beSStefan Roese 	u32	porbmsr;	/* POR boot mode status */
2119a47a12beSStefan Roese #define MPC85xx_PORBMSR_HA		0x00070000
2120a47a12beSStefan Roese #define MPC85xx_PORBMSR_HA_SHIFT	16
21218bd00c94SAndy Fleming #define MPC85xx_PORBMSR_ROMLOC_SHIFT	24
212235fe948eSPrabhakar Kushwaha #define PORBMSR_ROMLOC_SPI	0x6
212335fe948eSPrabhakar Kushwaha #define PORBMSR_ROMLOC_SDHC	0x7
212435fe948eSPrabhakar Kushwaha #define PORBMSR_ROMLOC_NAND_2K	0x9
212535fe948eSPrabhakar Kushwaha #define PORBMSR_ROMLOC_NOR	0xf
2126a47a12beSStefan Roese 	u32	porimpscr;	/* POR I/O impedance status & control */
2127a47a12beSStefan Roese 	u32	pordevsr;	/* POR I/O device status regsiter */
212867a719daSRoy Zang #if defined(CONFIG_P1017) || defined(CONFIG_P1023)
212967a719daSRoy Zang #define MPC85xx_PORDEVSR_SGMII1_DIS	0x10000000
213067a719daSRoy Zang #define MPC85xx_PORDEVSR_SGMII2_DIS	0x08000000
2131c916d7c9SKumar Gala #define MPC85xx_PORDEVSR_TSEC1_PRTC	0x02000000
213267a719daSRoy Zang #else
2133a47a12beSStefan Roese #define MPC85xx_PORDEVSR_SGMII1_DIS	0x20000000
2134a47a12beSStefan Roese #define MPC85xx_PORDEVSR_SGMII2_DIS	0x10000000
213567a719daSRoy Zang #endif
2136a47a12beSStefan Roese #define MPC85xx_PORDEVSR_SGMII3_DIS	0x08000000
2137a47a12beSStefan Roese #define MPC85xx_PORDEVSR_SGMII4_DIS	0x04000000
2138a47a12beSStefan Roese #define MPC85xx_PORDEVSR_SRDS2_IO_SEL	0x38000000
2139a47a12beSStefan Roese #define MPC85xx_PORDEVSR_PCI1		0x00800000
21400c955dafSDave Liu #if defined(CONFIG_P1013) || defined(CONFIG_P1022)
21410c955dafSDave Liu #define MPC85xx_PORDEVSR_IO_SEL		0x007c0000
21420c955dafSDave Liu #define MPC85xx_PORDEVSR_IO_SEL_SHIFT	18
214367a719daSRoy Zang #elif defined(CONFIG_P1017) || defined(CONFIG_P1023)
214467a719daSRoy Zang #define MPC85xx_PORDEVSR_IO_SEL		0x00600000
214567a719daSRoy Zang #define MPC85xx_PORDEVSR_IO_SEL_SHIFT	21
21460c955dafSDave Liu #else
214728747f9bSPrabhakar Kushwaha #if defined(CONFIG_P1010)
214828747f9bSPrabhakar Kushwaha #define MPC85xx_PORDEVSR_IO_SEL		0x00600000
214928747f9bSPrabhakar Kushwaha #define MPC85xx_PORDEVSR_IO_SEL_SHIFT	21
215035fe948eSPrabhakar Kushwaha #elif defined(CONFIG_BSC9132)
215135fe948eSPrabhakar Kushwaha #define MPC85xx_PORDEVSR_IO_SEL		0x00FE0000
215235fe948eSPrabhakar Kushwaha #define MPC85xx_PORDEVSR_IO_SEL_SHIFT	17
21533b75e982SMingkai Hu #elif defined(CONFIG_PPC_C29X)
21543b75e982SMingkai Hu #define MPC85xx_PORDEVSR_IO_SEL		0x00e00000
21553b75e982SMingkai Hu #define MPC85xx_PORDEVSR_IO_SEL_SHIFT	21
215628747f9bSPrabhakar Kushwaha #else
2157a47a12beSStefan Roese #define MPC85xx_PORDEVSR_IO_SEL		0x00780000
2158a47a12beSStefan Roese #define MPC85xx_PORDEVSR_IO_SEL_SHIFT	19
215928747f9bSPrabhakar Kushwaha #endif /* if defined(CONFIG_P1010) */
21600c955dafSDave Liu #endif
2161a47a12beSStefan Roese #define MPC85xx_PORDEVSR_PCI2_ARB	0x00040000
2162a47a12beSStefan Roese #define MPC85xx_PORDEVSR_PCI1_ARB	0x00020000
2163a47a12beSStefan Roese #define MPC85xx_PORDEVSR_PCI1_PCI32	0x00010000
2164a47a12beSStefan Roese #define MPC85xx_PORDEVSR_PCI1_SPD	0x00008000
2165a47a12beSStefan Roese #define MPC85xx_PORDEVSR_PCI2_SPD	0x00004000
2166a47a12beSStefan Roese #define MPC85xx_PORDEVSR_DRAM_RTYPE	0x00000060
2167a47a12beSStefan Roese #define MPC85xx_PORDEVSR_RIO_CTLS	0x00000008
2168a47a12beSStefan Roese #define MPC85xx_PORDEVSR_RIO_DEV_ID	0x00000007
2169a47a12beSStefan Roese 	u32	pordbgmsr;	/* POR debug mode status */
2170a47a12beSStefan Roese 	u32	pordevsr2;	/* POR I/O device status 2 */
21713b75e982SMingkai Hu #if defined(CONFIG_PPC_C29X)
21723b75e982SMingkai Hu #define MPC85xx_PORDEVSR2_DDR_SPD_0	0x00000008
21733b75e982SMingkai Hu #define MPC85xx_PORDEVSR2_DDR_SPD_0_SHIFT	3
21743b75e982SMingkai Hu #endif
2175a47a12beSStefan Roese /* The 8544 RM says this is bit 26, but it's really bit 24 */
2176a47a12beSStefan Roese #define MPC85xx_PORDEVSR2_SEC_CFG	0x00000080
2177a47a12beSStefan Roese 	u8	res1[8];
2178a47a12beSStefan Roese 	u32	gpporcr;	/* General-purpose POR configuration */
2179a47a12beSStefan Roese 	u8	res2[12];
2180ae2044d8SXie Xiaobo #if defined(CONFIG_MPC8536)
2181ae2044d8SXie Xiaobo 	u32	gencfgr;	/* General Configuration Register */
2182ae2044d8SXie Xiaobo #define MPC85xx_GENCFGR_SDHC_WP_INV	0x20000000
2183ae2044d8SXie Xiaobo #else
2184a47a12beSStefan Roese 	u32	gpiocr;		/* GPIO control */
2185ae2044d8SXie Xiaobo #endif
2186a47a12beSStefan Roese 	u8	res3[12];
2187a47a12beSStefan Roese #if defined(CONFIG_MPC8569)
2188a47a12beSStefan Roese 	u32	plppar1;	/* Platform port pin assignment 1 */
2189a47a12beSStefan Roese 	u32	plppar2;	/* Platform port pin assignment 2 */
2190a47a12beSStefan Roese 	u32	plpdir1;	/* Platform port pin direction 1 */
2191a47a12beSStefan Roese 	u32	plpdir2;	/* Platform port pin direction 2 */
2192a47a12beSStefan Roese #else
2193a47a12beSStefan Roese 	u32	gpoutdr;	/* General-purpose output data */
2194a47a12beSStefan Roese 	u8	res4[12];
2195a47a12beSStefan Roese #endif
2196a47a12beSStefan Roese 	u32	gpindr;		/* General-purpose input data */
2197a47a12beSStefan Roese 	u8	res5[12];
2198a47a12beSStefan Roese 	u32	pmuxcr;		/* Alt. function signal multiplex control */
21994b77047cSDipen Dudhat #if defined(CONFIG_P1010) || defined(CONFIG_P1014)
22004b77047cSDipen Dudhat #define MPC85xx_PMUXCR_TSEC1_0_1588		0x40000000
22014b77047cSDipen Dudhat #define MPC85xx_PMUXCR_TSEC1_0_RES		0xC0000000
22024b77047cSDipen Dudhat #define MPC85xx_PMUXCR_TSEC1_1_1588_TRIG	0x10000000
22034b77047cSDipen Dudhat #define MPC85xx_PMUXCR_TSEC1_1_GPIO_12		0x20000000
22044b77047cSDipen Dudhat #define MPC85xx_PMUXCR_TSEC1_1_RES		0x30000000
22054b77047cSDipen Dudhat #define MPC85xx_PMUXCR_TSEC1_2_DMA		0x04000000
22064b77047cSDipen Dudhat #define MPC85xx_PMUXCR_TSEC1_2_GPIO		0x08000000
22074b77047cSDipen Dudhat #define MPC85xx_PMUXCR_TSEC1_2_RES		0x0C000000
22084b77047cSDipen Dudhat #define MPC85xx_PMUXCR_TSEC1_3_RES		0x01000000
22094b77047cSDipen Dudhat #define MPC85xx_PMUXCR_TSEC1_3_GPIO_15		0x02000000
22104b77047cSDipen Dudhat #define MPC85xx_PMUXCR_IFC_ADDR16_SDHC		0x00400000
22114b77047cSDipen Dudhat #define MPC85xx_PMUXCR_IFC_ADDR16_USB		0x00800000
22124b77047cSDipen Dudhat #define MPC85xx_PMUXCR_IFC_ADDR16_IFC_CS2	0x00C00000
22134b77047cSDipen Dudhat #define MPC85xx_PMUXCR_IFC_ADDR17_18_SDHC	0x00100000
22144b77047cSDipen Dudhat #define MPC85xx_PMUXCR_IFC_ADDR17_18_USB	0x00200000
22154b77047cSDipen Dudhat #define MPC85xx_PMUXCR_IFC_ADDR17_18_DMA	0x00300000
22164b77047cSDipen Dudhat #define MPC85xx_PMUXCR_IFC_ADDR19_SDHC_DATA	0x00040000
22174b77047cSDipen Dudhat #define MPC85xx_PMUXCR_IFC_ADDR19_USB		0x00080000
22184b77047cSDipen Dudhat #define MPC85xx_PMUXCR_IFC_ADDR19_DMA		0x000C0000
22194b77047cSDipen Dudhat #define MPC85xx_PMUXCR_IFC_ADDR20_21_SDHC_DATA	0x00010000
22204b77047cSDipen Dudhat #define MPC85xx_PMUXCR_IFC_ADDR20_21_USB	0x00020000
22214b77047cSDipen Dudhat #define MPC85xx_PMUXCR_IFC_ADDR20_21_RES	0x00030000
22224b77047cSDipen Dudhat #define MPC85xx_PMUXCR_IFC_ADDR22_SDHC		0x00004000
22234b77047cSDipen Dudhat #define MPC85xx_PMUXCR_IFC_ADDR22_USB		0x00008000
22244b77047cSDipen Dudhat #define MPC85xx_PMUXCR_IFC_ADDR22_RES		0x0000C000
22254b77047cSDipen Dudhat #define MPC85xx_PMUXCR_IFC_ADDR23_SDHC		0x00001000
22264b77047cSDipen Dudhat #define MPC85xx_PMUXCR_IFC_ADDR23_USB		0x00002000
22274b77047cSDipen Dudhat #define MPC85xx_PMUXCR_IFC_ADDR23_RES		0x00003000
22284b77047cSDipen Dudhat #define MPC85xx_PMUXCR_IFC_ADDR24_SDHC		0x00000400
22294b77047cSDipen Dudhat #define MPC85xx_PMUXCR_IFC_ADDR24_USB		0x00000800
22304b77047cSDipen Dudhat #define MPC85xx_PMUXCR_IFC_ADDR24_RES		0x00000C00
22314b77047cSDipen Dudhat #define MPC85xx_PMUXCR_IFC_PAR_PERR_RES		0x00000300
22324b77047cSDipen Dudhat #define MPC85xx_PMUXCR_IFC_PAR_PERR_USB		0x00000200
22334b77047cSDipen Dudhat #define MPC85xx_PMUXCR_LCLK_RES			0x00000040
22344b77047cSDipen Dudhat #define MPC85xx_PMUXCR_LCLK_USB			0x00000080
22354b77047cSDipen Dudhat #define MPC85xx_PMUXCR_LCLK_IFC_CS3		0x000000C0
22364b77047cSDipen Dudhat #define MPC85xx_PMUXCR_SPI_RES			0x00000030
22374b77047cSDipen Dudhat #define MPC85xx_PMUXCR_SPI_GPIO			0x00000020
22384b77047cSDipen Dudhat #define MPC85xx_PMUXCR_CAN1_UART		0x00000004
22394b77047cSDipen Dudhat #define MPC85xx_PMUXCR_CAN1_TDM			0x00000008
22404b77047cSDipen Dudhat #define MPC85xx_PMUXCR_CAN1_RES			0x0000000C
22414b77047cSDipen Dudhat #define MPC85xx_PMUXCR_CAN2_UART		0x00000001
22424b77047cSDipen Dudhat #define MPC85xx_PMUXCR_CAN2_TDM			0x00000002
22434b77047cSDipen Dudhat #define MPC85xx_PMUXCR_CAN2_RES			0x00000003
22444b77047cSDipen Dudhat #endif
2245fe1a1da0SRoy Zang #if defined(CONFIG_P1017) || defined(CONFIG_P1023)
2246fe1a1da0SRoy Zang #define MPC85xx_PMUXCR_TSEC1_1		0x10000000
2247fe1a1da0SRoy Zang #else
2248a47a12beSStefan Roese #define MPC85xx_PMUXCR_SD_DATA		0x80000000
2249a47a12beSStefan Roese #define MPC85xx_PMUXCR_SDHC_CD		0x40000000
2250a47a12beSStefan Roese #define MPC85xx_PMUXCR_SDHC_WP		0x20000000
22512bad42a0SRamneek Mehresh #define MPC85xx_PMUXCR_ELBC_OFF_USB2_ON	0x01000000
22524aa8405cSZhao Chenhui #define MPC85xx_PMUXCR_TDM_ENA		0x00800000
2253a52d2f81SHaiying Wang #define MPC85xx_PMUXCR_QE0		0x00008000
2254a52d2f81SHaiying Wang #define MPC85xx_PMUXCR_QE1		0x00004000
2255a52d2f81SHaiying Wang #define MPC85xx_PMUXCR_QE2		0x00002000
2256a52d2f81SHaiying Wang #define MPC85xx_PMUXCR_QE3		0x00001000
2257a52d2f81SHaiying Wang #define MPC85xx_PMUXCR_QE4		0x00000800
2258a52d2f81SHaiying Wang #define MPC85xx_PMUXCR_QE5		0x00000400
2259a52d2f81SHaiying Wang #define MPC85xx_PMUXCR_QE6		0x00000200
2260a52d2f81SHaiying Wang #define MPC85xx_PMUXCR_QE7		0x00000100
2261a52d2f81SHaiying Wang #define MPC85xx_PMUXCR_QE8		0x00000080
2262a52d2f81SHaiying Wang #define MPC85xx_PMUXCR_QE9		0x00000040
2263a52d2f81SHaiying Wang #define MPC85xx_PMUXCR_QE10		0x00000020
2264a52d2f81SHaiying Wang #define MPC85xx_PMUXCR_QE11		0x00000010
2265a52d2f81SHaiying Wang #define MPC85xx_PMUXCR_QE12		0x00000008
2266fe1a1da0SRoy Zang #endif
2267b93f81a4SJiang Yutang #if defined(CONFIG_P1013) || defined(CONFIG_P1022)
2268b93f81a4SJiang Yutang #define MPC85xx_PMUXCR_TDM_MASK		0x0001cc00
2269b93f81a4SJiang Yutang #define MPC85xx_PMUXCR_TDM		0x00014800
2270b93f81a4SJiang Yutang #define MPC85xx_PMUXCR_SPI_MASK		0x00600000
2271b93f81a4SJiang Yutang #define MPC85xx_PMUXCR_SPI		0x00000000
2272b93f81a4SJiang Yutang #endif
227319a8dbdcSPrabhakar Kushwaha #if defined(CONFIG_BSC9131)
227419a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_TSEC2_DMA_GPIO_IRQ	0x40000000
227519a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_TSEC2_USB		0xC0000000
227619a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_TSEC2_1588_PPS		0x10000000
227719a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_TSEC2_1588_RSVD		0x30000000
227819a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_IFC_AD_GPIO		0x04000000
227919a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_IFC_AD_GPIO_MASK		0x0C000000
228019a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_IFC_AD15_GPIO		0x01000000
228119a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_IFC_AD15_TIMER2		0x02000000
228219a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_IFC_AD16_GPO8		0x00400000
228319a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_IFC_AD16_MSRCID0		0x00800000
228419a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_IFC_AD17_GPO		0x00100000
228519a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_IFC_AD17_GPO_MASK	0x00300000
228619a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_IFC_AD17_MSRCID_DSP	0x00200000
228719a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_IFC_CS2_GPO65		0x00040000
228819a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_IFC_CS2_DSP_TDI		0x00080000
228919a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_SDHC_USIM		0x00010000
229019a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_SDHC_TDM_RFS_RCK		0x00020000
229119a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_SDHC_GPIO77		0x00030000
229219a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_SDHC_RESV		0x00004000
229319a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_SDHC_TDM_TXD_RXD		0x00008000
229419a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_SDHC_GPIO_TIMER4		0x0000C000
229519a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_USB_CLK_UART_SIN		0x00001000
229619a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_USB_CLK_GPIO69		0x00002000
229719a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_USB_CLK_TIMER3		0x00003000
229819a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_USB_UART_GPIO0		0x00000400
229919a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_USB_RSVD			0x00000C00
230019a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_USB_GPIO62_TRIG_IN	0x00000800
230119a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_USB_D1_2_IIC2_SDA_SCL	0x00000100
230219a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_USB_D1_2_GPIO71_72	0x00000200
230319a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_USB_D1_2_RSVD		0x00000300
230419a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_USB_DIR_GPIO2		0x00000040
230519a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_USB_DIR_TIMER1		0x00000080
230619a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_USB_DIR_MCP_B		0x000000C0
230719a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_SPI1_UART3		0x00000010
230819a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_SPI1_SIM			0x00000020
230919a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_SPI1_CKSTP_IN_GPO74	0x00000030
231019a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_SPI1_CS2_CKSTP_OUT_B	0x00000004
231119a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_SPI1_CS2_dbg_adi1_rxen	0x00000008
231219a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_SPI1_CS2_GPO75		0x0000000C
231319a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_SPI1_CS3_ANT_TCXO_PWM	0x00000001
231419a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_SPI1_CS3_dbg_adi2_rxen	0x00000002
231519a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_SPI1_CS3_GPO76		0x00000003
231619a8dbdcSPrabhakar Kushwaha #endif
231735fe948eSPrabhakar Kushwaha #ifdef CONFIG_BSC9132
231835fe948eSPrabhakar Kushwaha #define MPC85xx_PMUXCR0_SIM_SEL_MASK	0x0003b000
231935fe948eSPrabhakar Kushwaha #define MPC85xx_PMUXCR0_SIM_SEL		0x00014000
232035fe948eSPrabhakar Kushwaha #endif
23213b75e982SMingkai Hu #if defined(CONFIG_PPC_C29X)
23223b75e982SMingkai Hu #define MPC85xx_PMUXCR_SPI_MASK			0x00000300
23233b75e982SMingkai Hu #define MPC85xx_PMUXCR_SPI			0x00000000
23243b75e982SMingkai Hu #define MPC85xx_PMUXCR_SPI_GPIO			0x00000100
23253b75e982SMingkai Hu #endif
23266e37a044STimur Tabi 	u32	pmuxcr2;	/* Alt. function signal multiplex control 2 */
23274b77047cSDipen Dudhat #if defined(CONFIG_P1010) || defined(CONFIG_P1014)
23284b77047cSDipen Dudhat #define MPC85xx_PMUXCR2_UART_GPIO		0x40000000
23294b77047cSDipen Dudhat #define MPC85xx_PMUXCR2_UART_TDM		0x80000000
23304b77047cSDipen Dudhat #define MPC85xx_PMUXCR2_UART_RES		0xC0000000
23314b77047cSDipen Dudhat #define MPC85xx_PMUXCR2_IRQ2_TRIG_IN		0x10000000
23324b77047cSDipen Dudhat #define MPC85xx_PMUXCR2_IRQ2_RES		0x30000000
23334b77047cSDipen Dudhat #define MPC85xx_PMUXCR2_IRQ3_SRESET		0x04000000
23344b77047cSDipen Dudhat #define MPC85xx_PMUXCR2_IRQ3_RES		0x0C000000
23354b77047cSDipen Dudhat #define MPC85xx_PMUXCR2_GPIO01_DRVVBUS		0x01000000
23364b77047cSDipen Dudhat #define MPC85xx_PMUXCR2_GPIO01_RES		0x03000000
23374b77047cSDipen Dudhat #define MPC85xx_PMUXCR2_GPIO23_CKSTP		0x00400000
23384b77047cSDipen Dudhat #define MPC85xx_PMUXCR2_GPIO23_RES		0x00800000
23394b77047cSDipen Dudhat #define MPC85xx_PMUXCR2_GPIO23_USB		0x00C00000
23404b77047cSDipen Dudhat #define MPC85xx_PMUXCR2_GPIO4_MCP		0x00100000
23414b77047cSDipen Dudhat #define MPC85xx_PMUXCR2_GPIO4_RES		0x00200000
23424b77047cSDipen Dudhat #define MPC85xx_PMUXCR2_GPIO4_CLK_OUT		0x00300000
23434b77047cSDipen Dudhat #define MPC85xx_PMUXCR2_GPIO5_UDE		0x00040000
23444b77047cSDipen Dudhat #define MPC85xx_PMUXCR2_GPIO5_RES		0x00080000
23454b77047cSDipen Dudhat #define MPC85xx_PMUXCR2_READY_ASLEEP		0x00020000
23464b77047cSDipen Dudhat #define MPC85xx_PMUXCR2_DDR_ECC_MUX		0x00010000
23474b77047cSDipen Dudhat #define MPC85xx_PMUXCR2_DEBUG_PORT_EXPOSE	0x00008000
23484b77047cSDipen Dudhat #define MPC85xx_PMUXCR2_POST_EXPOSE		0x00004000
23494b77047cSDipen Dudhat #define MPC85xx_PMUXCR2_DEBUG_MUX_SEL_USBPHY	0x00002000
23504b77047cSDipen Dudhat #define MPC85xx_PMUXCR2_PLL_LKDT_EXPOSE		0x00001000
23514b77047cSDipen Dudhat #endif
2352b93f81a4SJiang Yutang #if defined(CONFIG_P1013) || defined(CONFIG_P1022)
2353aeb6716aSFelix Radensky #define MPC85xx_PMUXCR2_ETSECUSB_MASK	0x001f8000
2354b93f81a4SJiang Yutang #define MPC85xx_PMUXCR2_USB		0x00150000
2355b93f81a4SJiang Yutang #endif
235635fe948eSPrabhakar Kushwaha #if defined(CONFIG_BSC9131) || defined(CONFIG_BSC9132)
235719a8dbdcSPrabhakar Kushwaha #if defined(CONFIG_BSC9131)
235819a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_UART_CTS_B0_SIM_PD		0X40000000
235919a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_UART_CTS_B0_DSP_TMS		0X80000000
236019a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_UART_CTS_B0_GPIO42		0xC0000000
236119a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_UART_RTS_B0_PWM2		0x10000000
236219a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_UART_RTS_B0_DSP_TCK		0x20000000
236319a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_UART_RTS_B0_GPIO43		0x30000000
236419a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_UART_CTS_B1_SIM_PD		0x04000000
236519a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_UART_CTS_B1_SRESET_B		0x08000000
236619a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_UART_CTS_B1_GPIO44		0x0C000000
236719a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_UART_RTS_B1_PPS_LED		0x01000000
236819a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_UART_RTS_B1_RSVD		0x02000000
236919a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_UART_RTS_B1_GPIO45		0x03000000
237019a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_TRIG_OUT_ASLEEP			0x00400000
237119a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_TRIG_OUT_DSP_TRST_B		0x00800000
237219a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_ANT1_TIMER5			0x00100000
237319a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_ANT1_TSEC_1588			0x00200000
237419a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_ANT1_GPIO95_19			0x00300000
237519a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_ANT1_TX_RX_FRAME_MAX3_LOCK	0x00040000
237619a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_ANT1_TX_RX_FRAME_RSVD		0x00080000
237719a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_ANT1_TX_RX_FRAME_GPIO80_20	0x000C0000
237819a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_ANT1_DIO0_3_SPI3_CS0		0x00010000
237919a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_ANT1_DIO0_3_ANT2_DO_3		0x00020000
238019a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_ANT1_DIO0_3_GPIO81_84		0x00030000
238119a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_ANT1_DIO4_7_SPI4		0x00004000
238219a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_ANT1_DIO4_7_ANT2_DO4_7		0x00008000
238319a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_ANT1_DIO4_7_GPIO85_88		0x0000C000
238419a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_ANT1_DIO8_9_MAX2_1_LOCK		0x00001000
238519a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_ANT1_DIO8_9_ANT2_DO8_9		0x00002000
238619a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_ANT1_DIO8_9_GPIO21_22		0x00003000
238719a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_ANT1_DIO10_11_TIMER6_7		0x00000400
238819a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_ANT1_DIO10_11_ANT2_DO10_11	0x00000800
238919a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_ANT1_DIO10_11_GPIO23_24		0x00000C00
239019a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_ANT2_RSVD			0x00000100
239119a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_ANT2_GPO90_91_DMA		0x00000300
239219a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_ANT2_ENABLE_DIO0_10_USB		0x00000040
239319a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_ANT2_ENABLE_DIO0_10_GPIO	0x000000C0
239419a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_ANT2_DIO11_RSVD			0x00000010
239519a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_ANT2_DIO11_TIMER8		0x00000020
239619a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_ANT2_DIO11_GPIO61		0x00000030
239719a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_ANT3_AGC_GPO53			0x00000004
239819a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_ANT3_DO_TDM			0x00000001
239919a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_ANT3_DO_GPIO46_49		0x00000002
240035fe948eSPrabhakar Kushwaha #endif
240119a8dbdcSPrabhakar Kushwaha 	u32	pmuxcr3;
240235fe948eSPrabhakar Kushwaha #if defined(CONFIG_BSC9131)
240319a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR3_ANT3_DO4_5_TDM			0x40000000
240419a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR3_ANT3_DO4_5_GPIO_50_51		0x80000000
240519a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR3_ANT3_DO6_7_TRIG_IN_SRESET_B	0x10000000
240619a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR3_ANT3_DO6_7_GPIO_52_53		0x20000000
240719a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR3_ANT3_DO8_MCP_B			0x04000000
240819a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR3_ANT3_DO8_GPIO54			0x08000000
240919a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR3_ANT3_DO9_10_CKSTP_IN_OUT	0x01000000
241019a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR3_ANT3_DO9_10_GPIO55_56		0x02000000
241119a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR3_ANT3_DO11_IRQ_OUT		0x00400000
241219a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR3_ANT3_DO11_GPIO57		0x00800000
241319a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR3_SPI2_CS2_GPO93			0x00100000
241419a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR3_SPI2_CS3_GPO94			0x00040000
241519a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR3_ANT2_AGC_RSVD			0x00010000
241619a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR3_ANT2_GPO89			0x00030000
241735fe948eSPrabhakar Kushwaha #endif
241835fe948eSPrabhakar Kushwaha #ifdef CONFIG_BSC9132
241935fe948eSPrabhakar Kushwaha #define MPC85xx_PMUXCR3_USB_SEL_MASK	0x0000ff00
242035fe948eSPrabhakar Kushwaha #define MPC85xx_PMUXCR3_UART2_SEL	0x00005000
242135fe948eSPrabhakar Kushwaha #define MPC85xx_PMUXCR3_UART3_SEL_MASK	0xc0000000
242235fe948eSPrabhakar Kushwaha #define MPC85xx_PMUXCR3_UART3_SEL	0x40000000
242335fe948eSPrabhakar Kushwaha #endif
242419a8dbdcSPrabhakar Kushwaha 	u32 pmuxcr4;
242519a8dbdcSPrabhakar Kushwaha #else
24266e37a044STimur Tabi 	u8	res6[8];
242719a8dbdcSPrabhakar Kushwaha #endif
2428a47a12beSStefan Roese 	u32	devdisr;	/* Device disable control */
2429a47a12beSStefan Roese #define MPC85xx_DEVDISR_PCI1		0x80000000
2430a47a12beSStefan Roese #define MPC85xx_DEVDISR_PCI2		0x40000000
2431a47a12beSStefan Roese #define MPC85xx_DEVDISR_PCIE		0x20000000
2432a47a12beSStefan Roese #define MPC85xx_DEVDISR_LBC		0x08000000
2433a47a12beSStefan Roese #define MPC85xx_DEVDISR_PCIE2		0x04000000
2434a47a12beSStefan Roese #define MPC85xx_DEVDISR_PCIE3		0x02000000
2435a47a12beSStefan Roese #define MPC85xx_DEVDISR_SEC		0x01000000
2436a47a12beSStefan Roese #define MPC85xx_DEVDISR_SRIO		0x00080000
2437a47a12beSStefan Roese #define MPC85xx_DEVDISR_RMSG		0x00040000
2438a47a12beSStefan Roese #define MPC85xx_DEVDISR_DDR		0x00010000
2439a47a12beSStefan Roese #define MPC85xx_DEVDISR_CPU		0x00008000
2440a47a12beSStefan Roese #define MPC85xx_DEVDISR_CPU0		MPC85xx_DEVDISR_CPU
2441a47a12beSStefan Roese #define MPC85xx_DEVDISR_TB		0x00004000
2442a47a12beSStefan Roese #define MPC85xx_DEVDISR_TB0		MPC85xx_DEVDISR_TB
2443a47a12beSStefan Roese #define MPC85xx_DEVDISR_CPU1		0x00002000
2444a47a12beSStefan Roese #define MPC85xx_DEVDISR_TB1		0x00001000
2445a47a12beSStefan Roese #define MPC85xx_DEVDISR_DMA		0x00000400
2446a47a12beSStefan Roese #define MPC85xx_DEVDISR_TSEC1		0x00000080
2447a47a12beSStefan Roese #define MPC85xx_DEVDISR_TSEC2		0x00000040
2448a47a12beSStefan Roese #define MPC85xx_DEVDISR_TSEC3		0x00000020
2449a47a12beSStefan Roese #define MPC85xx_DEVDISR_TSEC4		0x00000010
2450a47a12beSStefan Roese #define MPC85xx_DEVDISR_I2C		0x00000004
2451a47a12beSStefan Roese #define MPC85xx_DEVDISR_DUART		0x00000002
2452a47a12beSStefan Roese 	u8	res7[12];
2453a47a12beSStefan Roese 	u32	powmgtcsr;	/* Power management status & control */
2454a47a12beSStefan Roese 	u8	res8[12];
2455a47a12beSStefan Roese 	u32	mcpsumr;	/* Machine check summary */
2456a47a12beSStefan Roese 	u8	res9[12];
2457a47a12beSStefan Roese 	u32	pvr;		/* Processor version */
2458a47a12beSStefan Roese 	u32	svr;		/* System version */
2459a52d2f81SHaiying Wang 	u8	res10[8];
2460a47a12beSStefan Roese 	u32	rstcr;		/* Reset control */
2461a47a12beSStefan Roese #if defined(CONFIG_MPC8568)||defined(CONFIG_MPC8569)
2462a52d2f81SHaiying Wang 	u8	res11a[76];
2463a47a12beSStefan Roese 	par_io_t qe_par_io[7];
2464a52d2f81SHaiying Wang 	u8	res11b[1600];
2465be7bebeaSYork Sun #elif defined(CONFIG_P1012) || defined(CONFIG_P1021) || defined(CONFIG_P1025)
2466a52d2f81SHaiying Wang 	u8      res11a[12];
2467a52d2f81SHaiying Wang 	u32     iovselsr;
2468a52d2f81SHaiying Wang 	u8      res11b[60];
2469a52d2f81SHaiying Wang 	par_io_t qe_par_io[3];
2470a52d2f81SHaiying Wang 	u8      res11c[1496];
2471a47a12beSStefan Roese #else
2472a52d2f81SHaiying Wang 	u8	res11a[1868];
2473a47a12beSStefan Roese #endif
24746e37a044STimur Tabi 	u32	clkdvdr;	/* Clock Divide register */
2475a52d2f81SHaiying Wang 	u8	res12[1532];
2476a47a12beSStefan Roese 	u32	clkocr;		/* Clock out select */
2477a52d2f81SHaiying Wang 	u8	res13[12];
2478a47a12beSStefan Roese 	u32	ddrdllcr;	/* DDR DLL control */
2479a52d2f81SHaiying Wang 	u8	res14[12];
2480a47a12beSStefan Roese 	u32	lbcdllcr;	/* LBC DLL control */
248119a8dbdcSPrabhakar Kushwaha #if defined(CONFIG_BSC9131)
248219a8dbdcSPrabhakar Kushwaha 	u8	res15[12];
248319a8dbdcSPrabhakar Kushwaha 	u32	halt_req_mask;
248419a8dbdcSPrabhakar Kushwaha #define HALTED_TO_HALT_REQ_MASK_0	0x80000000
248519a8dbdcSPrabhakar Kushwaha 	u8	res18[232];
248619a8dbdcSPrabhakar Kushwaha #else
2487a52d2f81SHaiying Wang 	u8	res15[248];
248819a8dbdcSPrabhakar Kushwaha #endif
2489a47a12beSStefan Roese 	u32	lbiuiplldcr0;	/* LBIU PLL Debug Reg 0 */
2490a47a12beSStefan Roese 	u32	lbiuiplldcr1;	/* LBIU PLL Debug Reg 1 */
2491a47a12beSStefan Roese 	u32	ddrioovcr;	/* DDR IO Override Control */
2492a47a12beSStefan Roese 	u32	tsec12ioovcr;	/* eTSEC 1/2 IO override control */
2493a47a12beSStefan Roese 	u32	tsec34ioovcr;	/* eTSEC 3/4 IO override control */
24944aa8405cSZhao Chenhui 	u8      res16[52];
24954aa8405cSZhao Chenhui 	u32	sdhcdcr;	/* SDHC debug control register */
24964aa8405cSZhao Chenhui 	u8      res17[61592];
2497a47a12beSStefan Roese } ccsr_gur_t;
2498a47a12beSStefan Roese #endif
2499a47a12beSStefan Roese 
25004aa8405cSZhao Chenhui #define SDHCDCR_CD_INV		0x80000000 /* invert SDHC card detect */
25014aa8405cSZhao Chenhui 
2502fd3cebd0SYork Sun #ifdef CONFIG_SYS_FSL_QORIQ_CHASSIS2
2503fd3cebd0SYork Sun #define MAX_SERDES 4
2504d1001e3fSYork Sun #define SRDS_MAX_LANES 8
2505d1001e3fSYork Sun #define SRDS_MAX_BANK 2
2506fd3cebd0SYork Sun typedef struct serdes_corenet {
2507fd3cebd0SYork Sun 	struct {
2508fd3cebd0SYork Sun 		u32	rstctl;	/* Reset Control Register */
2509fd3cebd0SYork Sun #define SRDS_RSTCTL_RST		0x80000000
2510fd3cebd0SYork Sun #define SRDS_RSTCTL_RSTDONE	0x40000000
2511fd3cebd0SYork Sun #define SRDS_RSTCTL_RSTERR	0x20000000
2512fd3cebd0SYork Sun #define SRDS_RSTCTL_SWRST	0x10000000
25136fbe9889SShaveta Leekha #define SRDS_RSTCTL_SDEN	0x00000020
25146fbe9889SShaveta Leekha #define SRDS_RSTCTL_SDRST_B	0x00000040
25156fbe9889SShaveta Leekha #define SRDS_RSTCTL_PLLRST_B	0x00000080
25167af9a074SShaveta Leekha #define SRDS_RSTCTL_RSTERR_SHIFT  29
2517fd3cebd0SYork Sun 		u32	pllcr0; /* PLL Control Register 0 */
2518fd3cebd0SYork Sun #define SRDS_PLLCR0_POFF		0x80000000
2519fd3cebd0SYork Sun #define SRDS_PLLCR0_RFCK_SEL_MASK	0x70000000
2520fd3cebd0SYork Sun #define SRDS_PLLCR0_RFCK_SEL_100	0x00000000
2521fd3cebd0SYork Sun #define SRDS_PLLCR0_RFCK_SEL_125	0x10000000
2522fd3cebd0SYork Sun #define SRDS_PLLCR0_RFCK_SEL_156_25	0x20000000
2523fd3cebd0SYork Sun #define SRDS_PLLCR0_RFCK_SEL_150	0x30000000
2524fd3cebd0SYork Sun #define SRDS_PLLCR0_RFCK_SEL_161_13	0x40000000
2525fd3cebd0SYork Sun #define SRDS_PLLCR0_RFCK_SEL_122_88	0x50000000
2526b6808cd8SShaveta Leekha #define SRDS_PLLCR0_PLL_LCK		0x00800000
25277af9a074SShaveta Leekha #define SRDS_PLLCR0_DCBIAS_OUT_EN      0x02000000
2528fd3cebd0SYork Sun #define SRDS_PLLCR0_FRATE_SEL_MASK	0x000f0000
2529fd3cebd0SYork Sun #define SRDS_PLLCR0_FRATE_SEL_5		0x00000000
2530b6808cd8SShaveta Leekha #define SRDS_PLLCR0_FRATE_SEL_4_9152	0x00030000
2531fd3cebd0SYork Sun #define SRDS_PLLCR0_FRATE_SEL_3_75	0x00050000
2532fd3cebd0SYork Sun #define SRDS_PLLCR0_FRATE_SEL_5_15	0x00060000
2533fd3cebd0SYork Sun #define SRDS_PLLCR0_FRATE_SEL_4		0x00070000
2534b6808cd8SShaveta Leekha #define SRDS_PLLCR0_FRATE_SEL_3_125	0x00090000
2535b6808cd8SShaveta Leekha #define SRDS_PLLCR0_FRATE_SEL_3_0	0x000a0000
2536b6808cd8SShaveta Leekha #define SRDS_PLLCR0_FRATE_SEL_3_072	0x000c0000
25377af9a074SShaveta Leekha #define SRDS_PLLCR0_DCBIAS_OVRD		0x000000F0
25387af9a074SShaveta Leekha #define SRDS_PLLCR0_DCBIAS_OVRD_SHIFT	4
2539fd3cebd0SYork Sun 		u32	pllcr1; /* PLL Control Register 1 */
25407af9a074SShaveta Leekha #define SRDS_PLLCR1_BCAP_EN		0x20000000
25417af9a074SShaveta Leekha #define SRDS_PLLCR1_BCAP_OVD		0x10000000
25427af9a074SShaveta Leekha #define SRDS_PLLCR1_PLL_FCAP		0x001F8000
25437af9a074SShaveta Leekha #define SRDS_PLLCR1_PLL_FCAP_SHIFT	15
2544fd3cebd0SYork Sun #define SRDS_PLLCR1_PLL_BWSEL		0x08000000
25457af9a074SShaveta Leekha #define SRDS_PLLCR1_BYP_CAL		0x02000000
25467af9a074SShaveta Leekha 		u32	pllsr2;	/* At 0x00c, PLL Status Register 2 */
25477af9a074SShaveta Leekha #define SRDS_PLLSR2_BCAP_EN		0x00800000
25487af9a074SShaveta Leekha #define SRDS_PLLSR2_BCAP_EN_SHIFT	23
25497af9a074SShaveta Leekha #define SRDS_PLLSR2_FCAP		0x003F0000
25507af9a074SShaveta Leekha #define SRDS_PLLSR2_FCAP_SHIFT		16
25517af9a074SShaveta Leekha #define SRDS_PLLSR2_DCBIAS		0x000F0000
25527af9a074SShaveta Leekha #define SRDS_PLLSR2_DCBIAS_SHIFT	16
2553fd3cebd0SYork Sun 		u32	pllcr3;
2554fd3cebd0SYork Sun 		u32	pllcr4;
2555fd3cebd0SYork Sun 		u8	res_18[0x20-0x18];
2556fd3cebd0SYork Sun 	} bank[2];
2557fd3cebd0SYork Sun 	u8	res_40[0x90-0x40];
2558fd3cebd0SYork Sun 	u32	srdstcalcr;	/* 0x90 TX Calibration Control */
2559fd3cebd0SYork Sun 	u8	res_94[0xa0-0x94];
2560fd3cebd0SYork Sun 	u32	srdsrcalcr;	/* 0xa0 RX Calibration Control */
2561fd3cebd0SYork Sun 	u8	res_a4[0xb0-0xa4];
2562fd3cebd0SYork Sun 	u32	srdsgr0;	/* 0xb0 General Register 0 */
2563fd3cebd0SYork Sun 	u8	res_b4[0xe0-0xb4];
2564fd3cebd0SYork Sun 	u32	srdspccr0;	/* 0xe0 Protocol Converter Config 0 */
2565fd3cebd0SYork Sun 	u32	srdspccr1;	/* 0xe4 Protocol Converter Config 1 */
2566fd3cebd0SYork Sun 	u32	srdspccr2;	/* 0xe8 Protocol Converter Config 2 */
2567fd3cebd0SYork Sun 	u32	srdspccr3;	/* 0xec Protocol Converter Config 3 */
2568fd3cebd0SYork Sun 	u32	srdspccr4;	/* 0xf0 Protocol Converter Config 4 */
2569fd3cebd0SYork Sun 	u8	res_f4[0x100-0xf4];
2570fd3cebd0SYork Sun 	struct {
2571fd3cebd0SYork Sun 		u32	lnpssr;	/* 0x100, 0x120, ..., 0x1e0 */
2572fd3cebd0SYork Sun 		u8	res_104[0x120-0x104];
2573fd3cebd0SYork Sun 	} srdslnpssr[8];
2574fd3cebd0SYork Sun 	u8	res_200[0x800-0x200];
2575fd3cebd0SYork Sun 	struct {
2576fd3cebd0SYork Sun 		u32	gcr0;	/* 0x800 General Control Register 0 */
2577fd3cebd0SYork Sun 		u32	gcr1;	/* 0x804 General Control Register 1 */
2578fd3cebd0SYork Sun 		u32	gcr2;	/* 0x808 General Control Register 2 */
2579fd3cebd0SYork Sun 		u32	res_80c;
2580fd3cebd0SYork Sun 		u32	recr0;	/* 0x810 Receive Equalization Control */
2581fd3cebd0SYork Sun 		u32	res_814;
2582fd3cebd0SYork Sun 		u32	tecr0;	/* 0x818 Transmit Equalization Control */
2583fd3cebd0SYork Sun 		u32	res_81c;
2584fd3cebd0SYork Sun 		u32	ttlcr0;	/* 0x820 Transition Tracking Loop Ctrl 0 */
2585fd3cebd0SYork Sun 		u8	res_824[0x840-0x824];
2586fd3cebd0SYork Sun 	} lane[8];	/* Lane A, B, C, D, E, F, G, H */
2587fd3cebd0SYork Sun 	u8	res_a00[0x1000-0xa00];	/* from 0xa00 to 0xfff */
2588fd3cebd0SYork Sun } serdes_corenet_t;
2589fd3cebd0SYork Sun 
2590fd3cebd0SYork Sun #else /* CONFIG_SYS_FSL_QORIQ_CHASSIS2 */
2591fd3cebd0SYork Sun 
2592d1001e3fSYork Sun #define SRDS_MAX_LANES		18
2593d1001e3fSYork Sun #define SRDS_MAX_BANK		3
2594a47a12beSStefan Roese typedef struct serdes_corenet {
2595a47a12beSStefan Roese 	struct {
2596a47a12beSStefan Roese 		u32	rstctl;	/* Reset Control Register */
2597a47a12beSStefan Roese #define SRDS_RSTCTL_RST		0x80000000
2598a47a12beSStefan Roese #define SRDS_RSTCTL_RSTDONE	0x40000000
2599a47a12beSStefan Roese #define SRDS_RSTCTL_RSTERR	0x20000000
26001231c498SKumar Gala #define SRDS_RSTCTL_SDPD	0x00000020
2601a47a12beSStefan Roese 		u32	pllcr0; /* PLL Control Register 0 */
2602f8f85b04SYork Sun #define SRDS_PLLCR0_RFCK_SEL_MASK	0x70000000
26034905443fSTimur Tabi #define SRDS_PLLCR0_PVCOCNT_EN		0x02000000
26041231c498SKumar Gala #define SRDS_PLLCR0_RFCK_SEL_100	0x00000000
26051231c498SKumar Gala #define SRDS_PLLCR0_RFCK_SEL_125	0x10000000
26061231c498SKumar Gala #define SRDS_PLLCR0_RFCK_SEL_156_25	0x20000000
2607e02aea61SKumar Gala #define SRDS_PLLCR0_RFCK_SEL_150	0x30000000
2608f8f85b04SYork Sun #define SRDS_PLLCR0_RFCK_SEL_161_13	0x40000000
26091231c498SKumar Gala #define SRDS_PLLCR0_FRATE_SEL_MASK	0x00030000
26101231c498SKumar Gala #define SRDS_PLLCR0_FRATE_SEL_5		0x00000000
26111231c498SKumar Gala #define SRDS_PLLCR0_FRATE_SEL_6_25	0x00010000
2612a47a12beSStefan Roese 		u32	pllcr1; /* PLL Control Register 1 */
2613a47a12beSStefan Roese #define SRDS_PLLCR1_PLL_BWSEL	0x08000000
2614a47a12beSStefan Roese 		u32	res[5];
2615a47a12beSStefan Roese 	} bank[3];
2616a47a12beSStefan Roese 	u32	res1[12];
2617a47a12beSStefan Roese 	u32	srdstcalcr;	/* TX Calibration Control */
2618a47a12beSStefan Roese 	u32	res2[3];
2619a47a12beSStefan Roese 	u32	srdsrcalcr;	/* RX Calibration Control */
2620a47a12beSStefan Roese 	u32	res3[3];
2621a47a12beSStefan Roese 	u32	srdsgr0;	/* General Register 0 */
2622a47a12beSStefan Roese 	u32	res4[11];
2623a47a12beSStefan Roese 	u32	srdspccr0;	/* Protocol Converter Config 0 */
2624a47a12beSStefan Roese 	u32	srdspccr1;	/* Protocol Converter Config 1 */
2625a47a12beSStefan Roese 	u32	srdspccr2;	/* Protocol Converter Config 2 */
2626a47a12beSStefan Roese #define SRDS_PCCR2_RST_XGMII1		0x00800000
2627a47a12beSStefan Roese #define SRDS_PCCR2_RST_XGMII2		0x00400000
2628a47a12beSStefan Roese 	u32	res5[197];
2629d607b968STimur Tabi 	struct serdes_lane {
2630a47a12beSStefan Roese 		u32	gcr0;	/* General Control Register 0 */
2631a47a12beSStefan Roese #define SRDS_GCR0_RRST			0x00400000
2632a47a12beSStefan Roese #define SRDS_GCR0_1STLANE		0x00010000
26334905443fSTimur Tabi #define SRDS_GCR0_UOTHL			0x00100000
2634a47a12beSStefan Roese 		u32	gcr1;	/* General Control Register 1 */
2635a47a12beSStefan Roese #define SRDS_GCR1_REIDL_CTL_MASK	0x001f0000
2636a47a12beSStefan Roese #define SRDS_GCR1_REIDL_CTL_PCIE	0x00100000
2637a47a12beSStefan Roese #define SRDS_GCR1_REIDL_CTL_SRIO	0x00000000
2638a47a12beSStefan Roese #define SRDS_GCR1_REIDL_CTL_SGMII	0x00040000
2639a47a12beSStefan Roese #define SRDS_GCR1_OPAD_CTL		0x04000000
2640a47a12beSStefan Roese 		u32	res1[4];
2641a47a12beSStefan Roese 		u32	tecr0;	/* TX Equalization Control Reg 0 */
2642a47a12beSStefan Roese #define SRDS_TECR0_TEQ_TYPE_MASK	0x30000000
2643a47a12beSStefan Roese #define SRDS_TECR0_TEQ_TYPE_2LVL	0x10000000
2644a47a12beSStefan Roese 		u32	res3;
2645a47a12beSStefan Roese 		u32	ttlcr0;	/* Transition Tracking Loop Ctrl 0 */
2646df8af0b4SEmil Medve #define SRDS_TTLCR0_FLT_SEL_MASK	0x3f000000
2647b25f6de7STimur Tabi #define SRDS_TTLCR0_FLT_SEL_KFR_26	0x10000000
2648b25f6de7STimur Tabi #define SRDS_TTLCR0_FLT_SEL_KPH_28	0x08000000
2649f68d3063STimur Tabi #define SRDS_TTLCR0_FLT_SEL_750PPM	0x03000000
2650df8af0b4SEmil Medve #define SRDS_TTLCR0_PM_DIS		0x00004000
2651b25f6de7STimur Tabi #define SRDS_TTLCR0_FREQOVD_EN		0x00000001
2652a47a12beSStefan Roese 		u32	res4[7];
2653a47a12beSStefan Roese 	} lane[24];
2654a47a12beSStefan Roese 	u32 res6[384];
2655a47a12beSStefan Roese } serdes_corenet_t;
2656fd3cebd0SYork Sun #endif /* CONFIG_SYS_FSL_QORIQ_CHASSIS2 */
2657a47a12beSStefan Roese 
2658a47a12beSStefan Roese enum {
2659a47a12beSStefan Roese 	FSL_SRDS_B1_LANE_A = 0,
2660a47a12beSStefan Roese 	FSL_SRDS_B1_LANE_B = 1,
2661a47a12beSStefan Roese 	FSL_SRDS_B1_LANE_C = 2,
2662a47a12beSStefan Roese 	FSL_SRDS_B1_LANE_D = 3,
2663a47a12beSStefan Roese 	FSL_SRDS_B1_LANE_E = 4,
2664a47a12beSStefan Roese 	FSL_SRDS_B1_LANE_F = 5,
2665a47a12beSStefan Roese 	FSL_SRDS_B1_LANE_G = 6,
2666a47a12beSStefan Roese 	FSL_SRDS_B1_LANE_H = 7,
2667a47a12beSStefan Roese 	FSL_SRDS_B1_LANE_I = 8,
2668a47a12beSStefan Roese 	FSL_SRDS_B1_LANE_J = 9,
2669a47a12beSStefan Roese 	FSL_SRDS_B2_LANE_A = 16,
2670a47a12beSStefan Roese 	FSL_SRDS_B2_LANE_B = 17,
2671a47a12beSStefan Roese 	FSL_SRDS_B2_LANE_C = 18,
2672a47a12beSStefan Roese 	FSL_SRDS_B2_LANE_D = 19,
2673a47a12beSStefan Roese 	FSL_SRDS_B3_LANE_A = 20,
2674a47a12beSStefan Roese 	FSL_SRDS_B3_LANE_B = 21,
2675a47a12beSStefan Roese 	FSL_SRDS_B3_LANE_C = 22,
2676a47a12beSStefan Roese 	FSL_SRDS_B3_LANE_D = 23,
2677a47a12beSStefan Roese };
2678a47a12beSStefan Roese 
26799ab87d04SKumar Gala typedef struct ccsr_qman {
268092230d49SYork Sun #ifdef CONFIG_SYS_FSL_QMAN_V3
268192230d49SYork Sun 	u8	res0[0x200];
268292230d49SYork Sun #else
26839ab87d04SKumar Gala 	struct {
26849ab87d04SKumar Gala 		u32	qcsp_lio_cfg;	/* 0x0 - SW Portal n LIO cfg */
26859ab87d04SKumar Gala 		u32	qcsp_io_cfg;	/* 0x4 - SW Portal n IO cfg */
26869ab87d04SKumar Gala 		u32	res;
26879ab87d04SKumar Gala 		u32	qcsp_dd_cfg;	/* 0xc - SW Portal n Dynamic Debug cfg */
26889ab87d04SKumar Gala 	} qcsp[32];
268992230d49SYork Sun #endif
26909ab87d04SKumar Gala 	/* Not actually reserved, but irrelevant to u-boot */
26919ab87d04SKumar Gala 	u8	res[0xbf8 - 0x200];
26929ab87d04SKumar Gala 	u32	ip_rev_1;
26939ab87d04SKumar Gala 	u32	ip_rev_2;
26949ab87d04SKumar Gala 	u32	fqd_bare;	/* FQD Extended Base Addr Register */
26959ab87d04SKumar Gala 	u32	fqd_bar;	/* FQD Base Addr Register */
26969ab87d04SKumar Gala 	u8	res1[0x8];
26979ab87d04SKumar Gala 	u32	fqd_ar;		/* FQD Attributes Register */
26989ab87d04SKumar Gala 	u8	res2[0xc];
26999ab87d04SKumar Gala 	u32	pfdr_bare;	/* PFDR Extended Base Addr Register */
27009ab87d04SKumar Gala 	u32	pfdr_bar;	/* PFDR Base Addr Register */
27019ab87d04SKumar Gala 	u8	res3[0x8];
27029ab87d04SKumar Gala 	u32	pfdr_ar;	/* PFDR Attributes Register */
27039ab87d04SKumar Gala 	u8	res4[0x4c];
27049ab87d04SKumar Gala 	u32	qcsp_bare;	/* QCSP Extended Base Addr Register */
27059ab87d04SKumar Gala 	u32	qcsp_bar;	/* QCSP Base Addr Register */
27069ab87d04SKumar Gala 	u8	res5[0x78];
27079ab87d04SKumar Gala 	u32	ci_sched_cfg;	/* Initiator Scheduling Configuration */
27089ab87d04SKumar Gala 	u32	srcidr;		/* Source ID Register */
27099ab87d04SKumar Gala 	u32	liodnr;		/* LIODN Register */
27109ab87d04SKumar Gala 	u8	res6[4];
27119ab87d04SKumar Gala 	u32	ci_rlm_cfg;	/* Initiator Read Latency Monitor Cfg */
27129ab87d04SKumar Gala 	u32	ci_rlm_avg;	/* Initiator Read Latency Monitor Avg */
27139ab87d04SKumar Gala 	u8	res7[0x2e8];
271492230d49SYork Sun #ifdef CONFIG_SYS_FSL_QMAN_V3
271592230d49SYork Sun 	struct {
271692230d49SYork Sun 		u32	qcsp_lio_cfg;	/* 0x0 - SW Portal n LIO cfg */
271792230d49SYork Sun 		u32	qcsp_io_cfg;	/* 0x4 - SW Portal n IO cfg */
271892230d49SYork Sun 		u32	res;
271992230d49SYork Sun 		u32	qcsp_dd_cfg;	/* 0xc - SW Portal n Dynamic Debug cfg*/
272092230d49SYork Sun 	} qcsp[50];
272192230d49SYork Sun #endif
27229ab87d04SKumar Gala } ccsr_qman_t;
27239ab87d04SKumar Gala 
27249ab87d04SKumar Gala typedef struct ccsr_bman {
27259ab87d04SKumar Gala 	/* Not actually reserved, but irrelevant to u-boot */
27269ab87d04SKumar Gala 	u8	res[0xbf8];
27279ab87d04SKumar Gala 	u32	ip_rev_1;
27289ab87d04SKumar Gala 	u32	ip_rev_2;
27299ab87d04SKumar Gala 	u32	fbpr_bare;	/* FBPR Extended Base Addr Register */
27309ab87d04SKumar Gala 	u32	fbpr_bar;	/* FBPR Base Addr Register */
27319ab87d04SKumar Gala 	u8	res1[0x8];
27329ab87d04SKumar Gala 	u32	fbpr_ar;	/* FBPR Attributes Register */
27339ab87d04SKumar Gala 	u8	res2[0xf0];
27349ab87d04SKumar Gala 	u32	srcidr;		/* Source ID Register */
27359ab87d04SKumar Gala 	u32	liodnr;		/* LIODN Register */
27369ab87d04SKumar Gala 	u8	res7[0x2f4];
27379ab87d04SKumar Gala } ccsr_bman_t;
27389ab87d04SKumar Gala 
27399ab87d04SKumar Gala typedef struct ccsr_pme {
27409ab87d04SKumar Gala 	u8	res0[0x804];
27419ab87d04SKumar Gala 	u32	liodnbr;	/* LIODN Base Register */
27429ab87d04SKumar Gala 	u8	res1[0x1f8];
27439ab87d04SKumar Gala 	u32	srcidr;		/* Source ID Register */
27449ab87d04SKumar Gala 	u8	res2[8];
27459ab87d04SKumar Gala 	u32	liodnr;		/* LIODN Register */
27469ab87d04SKumar Gala 	u8	res3[0x1e8];
27479ab87d04SKumar Gala 	u32	pm_ip_rev_1;	/* PME IP Block Revision Reg 1*/
27489ab87d04SKumar Gala 	u32	pm_ip_rev_2;	/* PME IP Block Revision Reg 1*/
27499ab87d04SKumar Gala 	u8	res4[0x400];
27509ab87d04SKumar Gala } ccsr_pme_t;
27519ab87d04SKumar Gala 
27526b3a8d00SKumar Gala #ifdef CONFIG_SYS_FSL_RAID_ENGINE
27536b3a8d00SKumar Gala struct ccsr_raide {
27546b3a8d00SKumar Gala 	u8	res0[0x543];
27556b3a8d00SKumar Gala 	u32	liodnbr;			/* LIODN Base Register */
27566b3a8d00SKumar Gala 	u8	res1[0xab8];
27576b3a8d00SKumar Gala 	struct {
27586b3a8d00SKumar Gala 		struct {
27596b3a8d00SKumar Gala 			u32	cfg0;		/* cfg register 0 */
27606b3a8d00SKumar Gala 			u32	cfg1;		/* cfg register 1 */
27616b3a8d00SKumar Gala 			u8	res1[0x3f8];
27626b3a8d00SKumar Gala 		} ring[2];
27636b3a8d00SKumar Gala 		u8	res[0x800];
27646b3a8d00SKumar Gala 	} jq[2];
27656b3a8d00SKumar Gala };
27666b3a8d00SKumar Gala #endif
27676b3a8d00SKumar Gala 
27684d28db8aSKumar Gala #ifdef CONFIG_SYS_DPAA_RMAN
27694d28db8aSKumar Gala struct ccsr_rman {
27704d28db8aSKumar Gala 	u8	res0[0xf64];
27714d28db8aSKumar Gala 	u32	mmliodnbr;	/* Message Manager LIODN Base Register */
27724d28db8aSKumar Gala 	u32	mmitar;		/* RMAN Inbound Translation Address Register */
27734d28db8aSKumar Gala 	u32	mmitdr;		/* RMAN Inbound Translation Data Register */
27744d28db8aSKumar Gala 	u8	res4[0x1f090];
27754d28db8aSKumar Gala };
27764d28db8aSKumar Gala #endif
27774d28db8aSKumar Gala 
2778f311838dSAndy Fleming #ifdef CONFIG_SYS_PMAN
2779f311838dSAndy Fleming struct ccsr_pman {
2780f311838dSAndy Fleming 	u8	res_00[0x40];
2781f311838dSAndy Fleming 	u32	poes1;		/* PMAN Operation Error Status Register 1 */
2782f311838dSAndy Fleming 	u32	poes2;		/* PMAN Operation Error Status Register 2 */
2783f311838dSAndy Fleming 	u32	poeah;		/* PMAN Operation Error Address High */
2784f311838dSAndy Fleming 	u32	poeal;		/* PMAN Operation Error Address Low */
2785f311838dSAndy Fleming 	u8	res_50[0x50];
2786f311838dSAndy Fleming 	u32	pr1;		/* PMAN Revision Register 1 */
2787f311838dSAndy Fleming 	u32	pr2;		/* PMAN Revision Register 2 */
2788f311838dSAndy Fleming 	u8	res_a8[0x8];
2789f311838dSAndy Fleming 	u32	pcap;		/* PMAN Capabilities Register */
2790f311838dSAndy Fleming 	u8	res_b4[0xc];
2791f311838dSAndy Fleming 	u32	pc1;		/* PMAN Control Register 1 */
2792f311838dSAndy Fleming 	u32	pc2;		/* PMAN Control Register 2 */
2793f311838dSAndy Fleming 	u32	pc3;		/* PMAN Control Register 3 */
2794f311838dSAndy Fleming 	u32	pc4;		/* PMAN Control Register 4 */
2795f311838dSAndy Fleming 	u32	pc5;		/* PMAN Control Register 5 */
2796f311838dSAndy Fleming 	u32	pc6;		/* PMAN Control Register 6 */
2797f311838dSAndy Fleming 	u8	res_d8[0x8];
2798f311838dSAndy Fleming 	u32	ppa1;		/* PMAN Prefetch Attributes Register 1 */
2799f311838dSAndy Fleming 	u32	ppa2;		/* PMAN Prefetch Attributes Register 2 */
2800f311838dSAndy Fleming 	u8	res_e8[0x8];
2801f311838dSAndy Fleming 	u32	pics;		/* PMAN Interrupt Control and Status */
2802f311838dSAndy Fleming 	u8	res_f4[0xf0c];
2803f311838dSAndy Fleming };
2804f311838dSAndy Fleming #endif
2805b6808cd8SShaveta Leekha #ifdef CONFIG_SYS_FSL_SFP_VER_3_0
2806b6808cd8SShaveta Leekha struct ccsr_sfp_regs {
2807b6808cd8SShaveta Leekha 	u32 ospr;		/* 0x200 */
2808b6808cd8SShaveta Leekha 	u32 reserved0[14];
2809b6808cd8SShaveta Leekha 	u32 srk_hash[8];	/* 0x23c Super Root Key Hash */
2810b6808cd8SShaveta Leekha 	u32 oem_uid;		/* 0x9c OEM Unique ID */
2811b6808cd8SShaveta Leekha 	u8 reserved2[0x04];
2812b6808cd8SShaveta Leekha 	u32 ovpr;			/* 0xA4  Intent To Secure */
2813b6808cd8SShaveta Leekha 	u8 reserved4[0x08];
2814b6808cd8SShaveta Leekha 	u32 fsl_uid;		/* 0xB0  FSL Unique ID */
2815b6808cd8SShaveta Leekha 	u8 reserved5[0x04];
2816b6808cd8SShaveta Leekha 	u32 fsl_spfr0;		/* Scratch Pad Fuse Register 0 */
2817b6808cd8SShaveta Leekha 	u32 fsl_spfr1;		/* Scratch Pad Fuse Register 1 */
2818b6808cd8SShaveta Leekha };
2819b6808cd8SShaveta Leekha #endif
2820f311838dSAndy Fleming 
2821a47a12beSStefan Roese #ifdef CONFIG_FSL_CORENET
2822a47a12beSStefan Roese #define CONFIG_SYS_FSL_CORENET_CCM_OFFSET	0x0000
2823f311838dSAndy Fleming #ifdef CONFIG_SYS_PMAN
2824f311838dSAndy Fleming #define CONFIG_SYS_FSL_CORENET_PMAN1_OFFSET	0x4000
2825f311838dSAndy Fleming #define CONFIG_SYS_FSL_CORENET_PMAN2_OFFSET	0x5000
2826f311838dSAndy Fleming #define CONFIG_SYS_FSL_CORENET_PMAN3_OFFSET	0x6000
2827f311838dSAndy Fleming #endif
2828e76cd5d4SAndy Fleming #define CONFIG_SYS_MPC8xxx_DDR_OFFSET		0x8000
2829e76cd5d4SAndy Fleming #define CONFIG_SYS_MPC8xxx_DDR2_OFFSET		0x9000
2830e76cd5d4SAndy Fleming #define CONFIG_SYS_MPC8xxx_DDR3_OFFSET		0xA000
2831a47a12beSStefan Roese #define CONFIG_SYS_FSL_CORENET_CLK_OFFSET	0xE1000
2832a47a12beSStefan Roese #define CONFIG_SYS_FSL_CORENET_RCPM_OFFSET	0xE2000
2833b6808cd8SShaveta Leekha #ifdef CONFIG_SYS_FSL_SFP_VER_3_0
2834b6808cd8SShaveta Leekha /* In SFPv3, OSPR register is now at offset 0x200.
2835b6808cd8SShaveta Leekha  *  * So directly mapping sfp register map to this address */
2836b6808cd8SShaveta Leekha #define CONFIG_SYS_OSPR_OFFSET                  0x200
2837b6808cd8SShaveta Leekha #define CONFIG_SYS_SFP_OFFSET            (0xE8000 + CONFIG_SYS_OSPR_OFFSET)
2838b6808cd8SShaveta Leekha #else
2839b6808cd8SShaveta Leekha #define CONFIG_SYS_SFP_OFFSET                   0xE8000
2840b6808cd8SShaveta Leekha #endif
2841a47a12beSStefan Roese #define CONFIG_SYS_FSL_CORENET_SERDES_OFFSET	0xEA000
28424905443fSTimur Tabi #define CONFIG_SYS_FSL_CORENET_SERDES2_OFFSET	0xEB000
2843e55782ecSShaohui Xie #define CONFIG_SYS_FSL_CORENET_SERDES3_OFFSET	0xEC000
2844e55782ecSShaohui Xie #define CONFIG_SYS_FSL_CORENET_SERDES4_OFFSET	0xED000
2845a47a12beSStefan Roese #define CONFIG_SYS_FSL_CPC_OFFSET		0x10000
2846bf4699dbSPriyanka Jain #define CONFIG_SYS_FSL_SCFG_OFFSET		0xFC000
28479ab87d04SKumar Gala #define CONFIG_SYS_MPC85xx_DMA1_OFFSET		0x100000
28489ab87d04SKumar Gala #define CONFIG_SYS_MPC85xx_DMA2_OFFSET		0x101000
2849629d6b32SShengzhou Liu #define CONFIG_SYS_MPC85xx_DMA3_OFFSET		0x102000
28509ab87d04SKumar Gala #define CONFIG_SYS_MPC85xx_DMA_OFFSET		CONFIG_SYS_MPC85xx_DMA1_OFFSET
2851a47a12beSStefan Roese #define CONFIG_SYS_MPC85xx_ESPI_OFFSET		0x110000
2852a47a12beSStefan Roese #define CONFIG_SYS_MPC85xx_ESDHC_OFFSET		0x114000
2853a47a12beSStefan Roese #define CONFIG_SYS_MPC85xx_LBC_OFFSET		0x124000
285450d96e95SKumar Gala #define CONFIG_SYS_MPC85xx_IFC_OFFSET		0x124000
2855a47a12beSStefan Roese #define CONFIG_SYS_MPC85xx_GPIO_OFFSET		0x130000
2856377ffcfaSSandeep Singh #define CONFIG_SYS_MPC85xx_TDM_OFFSET		0x185000
28572a44efebSZhao Qiang #define CONFIG_SYS_MPC85xx_QE_OFFSET		0x140000
28584d28db8aSKumar Gala #define CONFIG_SYS_FSL_CORENET_RMAN_OFFSET	0x1e0000
2859ada961e2SLiu Gang #if defined(CONFIG_SYS_FSL_QORIQ_CHASSIS2) && !defined(CONFIG_PPC_B4860)\
2860ada961e2SLiu Gang 	&& !defined(CONFIG_PPC_B4420)
28619e758758SYork Sun #define CONFIG_SYS_MPC85xx_PCIE1_OFFSET		0x240000
28629e758758SYork Sun #define CONFIG_SYS_MPC85xx_PCIE2_OFFSET		0x250000
28639e758758SYork Sun #define CONFIG_SYS_MPC85xx_PCIE3_OFFSET		0x260000
28649e758758SYork Sun #define CONFIG_SYS_MPC85xx_PCIE4_OFFSET		0x270000
28659e758758SYork Sun #else
28669ab87d04SKumar Gala #define CONFIG_SYS_MPC85xx_PCIE1_OFFSET		0x200000
28679ab87d04SKumar Gala #define CONFIG_SYS_MPC85xx_PCIE2_OFFSET		0x201000
28689ab87d04SKumar Gala #define CONFIG_SYS_MPC85xx_PCIE3_OFFSET		0x202000
28699ab87d04SKumar Gala #define CONFIG_SYS_MPC85xx_PCIE4_OFFSET		0x203000
28709e758758SYork Sun #endif
28719ab87d04SKumar Gala #define CONFIG_SYS_MPC85xx_USB1_OFFSET		0x210000
28729ab87d04SKumar Gala #define CONFIG_SYS_MPC85xx_USB2_OFFSET		0x211000
287386221f09SRoy Zang #define CONFIG_SYS_MPC85xx_USB1_PHY_OFFSET 0x214000
287486221f09SRoy Zang #define CONFIG_SYS_MPC85xx_USB2_PHY_OFFSET 0x214100
28759ab87d04SKumar Gala #define CONFIG_SYS_MPC85xx_SATA1_OFFSET		0x220000
28769ab87d04SKumar Gala #define CONFIG_SYS_MPC85xx_SATA2_OFFSET		0x221000
287722f292c7SKim Phillips #define CONFIG_SYS_FSL_SEC_OFFSET		0x300000
28789ab87d04SKumar Gala #define CONFIG_SYS_FSL_CORENET_PME_OFFSET	0x316000
287924995d82SHaiying Wang #define CONFIG_SYS_FSL_QMAN_OFFSET		0x318000
288024995d82SHaiying Wang #define CONFIG_SYS_FSL_BMAN_OFFSET		0x31a000
28816b3a8d00SKumar Gala #define CONFIG_SYS_FSL_RAID_ENGINE_OFFSET	0x320000
28829ab87d04SKumar Gala #define CONFIG_SYS_FSL_FM1_OFFSET		0x400000
28839ab87d04SKumar Gala #define CONFIG_SYS_FSL_FM1_RX0_1G_OFFSET	0x488000
28849ab87d04SKumar Gala #define CONFIG_SYS_FSL_FM1_RX1_1G_OFFSET	0x489000
28859ab87d04SKumar Gala #define CONFIG_SYS_FSL_FM1_RX2_1G_OFFSET	0x48a000
28869ab87d04SKumar Gala #define CONFIG_SYS_FSL_FM1_RX3_1G_OFFSET	0x48b000
28879ab87d04SKumar Gala #define CONFIG_SYS_FSL_FM1_RX4_1G_OFFSET	0x48c000
2888f311838dSAndy Fleming #define CONFIG_SYS_FSL_FM1_RX5_1G_OFFSET	0x48d000
28899ab87d04SKumar Gala #define CONFIG_SYS_FSL_FM1_RX0_10G_OFFSET	0x490000
2890f311838dSAndy Fleming #define CONFIG_SYS_FSL_FM1_RX1_10G_OFFSET	0x491000
28919ab87d04SKumar Gala #define CONFIG_SYS_FSL_FM1_DTSEC1_OFFSET	0x4e0000
28929ab87d04SKumar Gala #define CONFIG_SYS_FSL_FM2_OFFSET		0x500000
28939ab87d04SKumar Gala #define CONFIG_SYS_FSL_FM2_RX0_1G_OFFSET	0x588000
28949ab87d04SKumar Gala #define CONFIG_SYS_FSL_FM2_RX1_1G_OFFSET	0x589000
28959ab87d04SKumar Gala #define CONFIG_SYS_FSL_FM2_RX2_1G_OFFSET	0x58a000
28969ab87d04SKumar Gala #define CONFIG_SYS_FSL_FM2_RX3_1G_OFFSET	0x58b000
28979ab87d04SKumar Gala #define CONFIG_SYS_FSL_FM2_RX4_1G_OFFSET	0x58c000
2898f311838dSAndy Fleming #define CONFIG_SYS_FSL_FM2_RX5_1G_OFFSET	0x58d000
28999ab87d04SKumar Gala #define CONFIG_SYS_FSL_FM2_RX0_10G_OFFSET	0x590000
2900f311838dSAndy Fleming #define CONFIG_SYS_FSL_FM2_RX1_10G_OFFSET	0x591000
29016d2b9da1SYork Sun #define CONFIG_SYS_FSL_CLUSTER_1_L2_OFFSET	0xC20000
2902a47a12beSStefan Roese #else
2903a47a12beSStefan Roese #define CONFIG_SYS_MPC85xx_ECM_OFFSET		0x0000
2904e76cd5d4SAndy Fleming #define CONFIG_SYS_MPC8xxx_DDR_OFFSET		0x2000
2905a47a12beSStefan Roese #define CONFIG_SYS_MPC85xx_LBC_OFFSET		0x5000
2906e76cd5d4SAndy Fleming #define CONFIG_SYS_MPC8xxx_DDR2_OFFSET		0x6000
2907a47a12beSStefan Roese #define CONFIG_SYS_MPC85xx_ESPI_OFFSET		0x7000
290899d9c07eSKumar Gala #define CONFIG_SYS_MPC85xx_PCI1_OFFSET		0x8000
2909a47a12beSStefan Roese #define CONFIG_SYS_MPC85xx_PCIX_OFFSET		0x8000
291099d9c07eSKumar Gala #define CONFIG_SYS_MPC85xx_PCI2_OFFSET		0x9000
2911a47a12beSStefan Roese #define CONFIG_SYS_MPC85xx_PCIX2_OFFSET		0x9000
291299d9c07eSKumar Gala #define CONFIG_SYS_MPC85xx_PCIE1_OFFSET         0xa000
291399d9c07eSKumar Gala #define CONFIG_SYS_MPC85xx_PCIE2_OFFSET         0x9000
291499d9c07eSKumar Gala #if defined(CONFIG_MPC8572) || defined(CONFIG_P2020)
291599d9c07eSKumar Gala #define CONFIG_SYS_MPC85xx_PCIE3_OFFSET         0x8000
291699d9c07eSKumar Gala #else
291799d9c07eSKumar Gala #define CONFIG_SYS_MPC85xx_PCIE3_OFFSET         0xb000
291899d9c07eSKumar Gala #endif
2919a47a12beSStefan Roese #define CONFIG_SYS_MPC85xx_GPIO_OFFSET		0xF000
2920a47a12beSStefan Roese #define CONFIG_SYS_MPC85xx_SATA1_OFFSET		0x18000
2921a47a12beSStefan Roese #define CONFIG_SYS_MPC85xx_SATA2_OFFSET		0x19000
2922d789b5f5SDipen Dudhat #define CONFIG_SYS_MPC85xx_IFC_OFFSET		0x1e000
2923a47a12beSStefan Roese #define CONFIG_SYS_MPC85xx_L2_OFFSET		0x20000
2924a47a12beSStefan Roese #define CONFIG_SYS_MPC85xx_DMA_OFFSET		0x21000
292577354e9dSramneek mehresh #define CONFIG_SYS_MPC85xx_USB1_OFFSET		0x22000
29269839709eSIra W. Snyder #define CONFIG_SYS_MPC85xx_USB2_OFFSET		0x23000
2927a47a12beSStefan Roese #ifdef CONFIG_TSECV2
2928a47a12beSStefan Roese #define CONFIG_SYS_TSEC1_OFFSET			0xB0000
29293b75e982SMingkai Hu #elif defined(CONFIG_TSECV2_1)
29303b75e982SMingkai Hu #define CONFIG_SYS_TSEC1_OFFSET			0x10000
2931a47a12beSStefan Roese #else
2932a47a12beSStefan Roese #define CONFIG_SYS_TSEC1_OFFSET			0x24000
2933a47a12beSStefan Roese #endif
2934a47a12beSStefan Roese #define CONFIG_SYS_MDIO1_OFFSET			0x24000
2935a47a12beSStefan Roese #define CONFIG_SYS_MPC85xx_ESDHC_OFFSET		0x2e000
29363b75e982SMingkai Hu #if defined(CONFIG_PPC_C29X)
29373b75e982SMingkai Hu #define CONFIG_SYS_FSL_SEC_OFFSET		0x80000
29383b75e982SMingkai Hu #else
29395e95e2d8SVakul Garg #define CONFIG_SYS_FSL_SEC_OFFSET		0x30000
29403b75e982SMingkai Hu #endif
2941a47a12beSStefan Roese #define CONFIG_SYS_MPC85xx_SERDES2_OFFSET	0xE3100
2942a47a12beSStefan Roese #define CONFIG_SYS_MPC85xx_SERDES1_OFFSET	0xE3000
29437065b7d4SRuchika Gupta #define CONFIG_SYS_SNVS_OFFSET			0xE6000
29447065b7d4SRuchika Gupta #define CONFIG_SYS_SFP_OFFSET			0xE7000
2945a47a12beSStefan Roese #define CONFIG_SYS_MPC85xx_CPM_OFFSET		0x80000
294667a719daSRoy Zang #define CONFIG_SYS_FSL_QMAN_OFFSET		0x88000
294767a719daSRoy Zang #define CONFIG_SYS_FSL_BMAN_OFFSET		0x8a000
294867a719daSRoy Zang #define CONFIG_SYS_FSL_FM1_OFFSET		0x100000
294967a719daSRoy Zang #define CONFIG_SYS_FSL_FM1_RX0_1G_OFFSET	0x188000
295067a719daSRoy Zang #define CONFIG_SYS_FSL_FM1_RX1_1G_OFFSET	0x189000
295167a719daSRoy Zang #define CONFIG_SYS_FSL_FM1_DTSEC1_OFFSET	0x1e0000
2952a47a12beSStefan Roese #endif
2953a47a12beSStefan Roese 
2954a47a12beSStefan Roese #define CONFIG_SYS_MPC85xx_PIC_OFFSET		0x40000
2955a47a12beSStefan Roese #define CONFIG_SYS_MPC85xx_GUTS_OFFSET		0xE0000
29565ffa88ecSLiu Gang #define CONFIG_SYS_FSL_SRIO_OFFSET		0xC0000
2957a47a12beSStefan Roese 
2958f9d379a7SPriyanka Jain #if defined(CONFIG_BSC9132)
2959f9d379a7SPriyanka Jain #define CONFIG_SYS_FSL_DSP_CCSR_DDR_OFFSET	0x10000
2960f9d379a7SPriyanka Jain #define CONFIG_SYS_FSL_DSP_CCSR_DDR_ADDR \
2961f9d379a7SPriyanka Jain 	(CONFIG_SYS_FSL_DSP_CCSRBAR + CONFIG_SYS_FSL_DSP_CCSR_DDR_OFFSET)
2962f9d379a7SPriyanka Jain #endif
2963f9d379a7SPriyanka Jain 
2964a47a12beSStefan Roese #define CONFIG_SYS_FSL_CPC_ADDR	\
2965a47a12beSStefan Roese 	(CONFIG_SYS_CCSRBAR + CONFIG_SYS_FSL_CPC_OFFSET)
2966bf4699dbSPriyanka Jain #define CONFIG_SYS_FSL_SCFG_ADDR	\
2967bf4699dbSPriyanka Jain 	(CONFIG_SYS_CCSRBAR + CONFIG_SYS_FSL_SCFG_OFFSET)
2968bf4699dbSPriyanka Jain #define CONFIG_SYS_FSL_SCFG_PIXCLK_ADDR	\
2969bf4699dbSPriyanka Jain 	(CONFIG_SYS_FSL_SCFG_ADDR + CONFIG_SYS_FSL_SCFG_PIXCLKCR_OFFSET)
297024995d82SHaiying Wang #define CONFIG_SYS_FSL_QMAN_ADDR \
297124995d82SHaiying Wang 	(CONFIG_SYS_IMMR + CONFIG_SYS_FSL_QMAN_OFFSET)
297224995d82SHaiying Wang #define CONFIG_SYS_FSL_BMAN_ADDR \
297324995d82SHaiying Wang 	(CONFIG_SYS_IMMR + CONFIG_SYS_FSL_BMAN_OFFSET)
29749ab87d04SKumar Gala #define CONFIG_SYS_FSL_CORENET_PME_ADDR \
29759ab87d04SKumar Gala 	(CONFIG_SYS_IMMR + CONFIG_SYS_FSL_CORENET_PME_OFFSET)
29766b3a8d00SKumar Gala #define CONFIG_SYS_FSL_RAID_ENGINE_ADDR \
29776b3a8d00SKumar Gala 	(CONFIG_SYS_IMMR + CONFIG_SYS_FSL_RAID_ENGINE_OFFSET)
29784d28db8aSKumar Gala #define CONFIG_SYS_FSL_CORENET_RMAN_ADDR \
29794d28db8aSKumar Gala 	(CONFIG_SYS_IMMR + CONFIG_SYS_FSL_CORENET_RMAN_OFFSET)
2980a47a12beSStefan Roese #define CONFIG_SYS_MPC85xx_GUTS_ADDR \
2981a47a12beSStefan Roese 	(CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_GUTS_OFFSET)
2982a47a12beSStefan Roese #define CONFIG_SYS_FSL_CORENET_CCM_ADDR \
2983a47a12beSStefan Roese 	(CONFIG_SYS_IMMR + CONFIG_SYS_FSL_CORENET_CCM_OFFSET)
2984a47a12beSStefan Roese #define CONFIG_SYS_FSL_CORENET_CLK_ADDR \
2985a47a12beSStefan Roese 	(CONFIG_SYS_IMMR + CONFIG_SYS_FSL_CORENET_CLK_OFFSET)
2986a47a12beSStefan Roese #define CONFIG_SYS_FSL_CORENET_RCPM_ADDR \
2987a47a12beSStefan Roese 	(CONFIG_SYS_IMMR + CONFIG_SYS_FSL_CORENET_RCPM_OFFSET)
2988a47a12beSStefan Roese #define CONFIG_SYS_MPC85xx_ECM_ADDR \
2989a47a12beSStefan Roese 	(CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_ECM_OFFSET)
29905614e71bSYork Sun #define CONFIG_SYS_FSL_DDR_ADDR \
2991e76cd5d4SAndy Fleming 	(CONFIG_SYS_IMMR + CONFIG_SYS_MPC8xxx_DDR_OFFSET)
29925614e71bSYork Sun #define CONFIG_SYS_FSL_DDR2_ADDR \
2993e76cd5d4SAndy Fleming 	(CONFIG_SYS_IMMR + CONFIG_SYS_MPC8xxx_DDR2_OFFSET)
29945614e71bSYork Sun #define CONFIG_SYS_FSL_DDR3_ADDR \
2995e76cd5d4SAndy Fleming 	(CONFIG_SYS_IMMR + CONFIG_SYS_MPC8xxx_DDR3_OFFSET)
2996f51cdaf1SBecky Bruce #define CONFIG_SYS_LBC_ADDR \
2997a47a12beSStefan Roese 	(CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_LBC_OFFSET)
2998d789b5f5SDipen Dudhat #define CONFIG_SYS_IFC_ADDR \
2999d789b5f5SDipen Dudhat 	(CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_IFC_OFFSET)
3000a47a12beSStefan Roese #define CONFIG_SYS_MPC85xx_ESPI_ADDR \
3001a47a12beSStefan Roese 	(CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_ESPI_OFFSET)
3002a47a12beSStefan Roese #define CONFIG_SYS_MPC85xx_PCIX_ADDR \
3003a47a12beSStefan Roese 	(CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_PCIX_OFFSET)
3004a47a12beSStefan Roese #define CONFIG_SYS_MPC85xx_PCIX2_ADDR \
3005a47a12beSStefan Roese 	(CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_PCIX2_OFFSET)
3006a47a12beSStefan Roese #define CONFIG_SYS_MPC85xx_GPIO_ADDR \
3007a47a12beSStefan Roese 	(CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_GPIO_OFFSET)
3008a47a12beSStefan Roese #define CONFIG_SYS_MPC85xx_SATA1_ADDR \
3009a47a12beSStefan Roese 	(CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_SATA1_OFFSET)
3010a47a12beSStefan Roese #define CONFIG_SYS_MPC85xx_SATA2_ADDR \
3011a47a12beSStefan Roese 	(CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_SATA2_OFFSET)
3012a47a12beSStefan Roese #define CONFIG_SYS_MPC85xx_L2_ADDR \
3013a47a12beSStefan Roese 	(CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_L2_OFFSET)
3014a47a12beSStefan Roese #define CONFIG_SYS_MPC85xx_DMA_ADDR \
3015a47a12beSStefan Roese 	(CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_DMA_OFFSET)
3016a47a12beSStefan Roese #define CONFIG_SYS_MPC85xx_ESDHC_ADDR \
3017a47a12beSStefan Roese 	(CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_ESDHC_OFFSET)
3018680c613aSKim Phillips #define CONFIG_SYS_MPC8xxx_PIC_ADDR \
3019a47a12beSStefan Roese 	(CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_PIC_OFFSET)
3020a47a12beSStefan Roese #define CONFIG_SYS_MPC85xx_CPM_ADDR \
3021a47a12beSStefan Roese 	(CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_CPM_OFFSET)
3022a47a12beSStefan Roese #define CONFIG_SYS_MPC85xx_SERDES1_ADDR \
302317028be2SPrabhakar 	(CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_SERDES1_OFFSET)
3024a47a12beSStefan Roese #define CONFIG_SYS_MPC85xx_SERDES2_ADDR \
3025a47a12beSStefan Roese 	(CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_SERDES2_OFFSET)
3026a47a12beSStefan Roese #define CONFIG_SYS_FSL_CORENET_SERDES_ADDR \
3027a47a12beSStefan Roese 	(CONFIG_SYS_IMMR + CONFIG_SYS_FSL_CORENET_SERDES_OFFSET)
30284905443fSTimur Tabi #define CONFIG_SYS_FSL_CORENET_SERDES2_ADDR \
30294905443fSTimur Tabi 	(CONFIG_SYS_IMMR + CONFIG_SYS_FSL_CORENET_SERDES2_OFFSET)
3030e55782ecSShaohui Xie #define CONFIG_SYS_FSL_CORENET_SERDES3_ADDR \
3031e55782ecSShaohui Xie 	(CONFIG_SYS_IMMR + CONFIG_SYS_FSL_CORENET_SERDES3_OFFSET)
3032e55782ecSShaohui Xie #define CONFIG_SYS_FSL_CORENET_SERDES4_ADDR \
3033e55782ecSShaohui Xie 	(CONFIG_SYS_IMMR + CONFIG_SYS_FSL_CORENET_SERDES4_OFFSET)
303477354e9dSramneek mehresh #define CONFIG_SYS_MPC85xx_USB1_ADDR \
303577354e9dSramneek mehresh 	(CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_USB1_OFFSET)
303677354e9dSramneek mehresh #define CONFIG_SYS_MPC85xx_USB2_ADDR \
303777354e9dSramneek mehresh 	(CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_USB2_OFFSET)
303886221f09SRoy Zang #define CONFIG_SYS_MPC85xx_USB1_PHY_ADDR \
303986221f09SRoy Zang 	(CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_USB1_PHY_OFFSET)
304086221f09SRoy Zang #define CONFIG_SYS_MPC85xx_USB2_PHY_ADDR \
304186221f09SRoy Zang 	(CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_USB2_PHY_OFFSET)
304222f292c7SKim Phillips #define CONFIG_SYS_FSL_SEC_ADDR \
304322f292c7SKim Phillips 	(CONFIG_SYS_IMMR + CONFIG_SYS_FSL_SEC_OFFSET)
30449ab87d04SKumar Gala #define CONFIG_SYS_FSL_FM1_ADDR \
30459ab87d04SKumar Gala 	(CONFIG_SYS_IMMR + CONFIG_SYS_FSL_FM1_OFFSET)
30469ab87d04SKumar Gala #define CONFIG_SYS_FSL_FM1_DTSEC1_ADDR \
30479ab87d04SKumar Gala 	(CONFIG_SYS_IMMR + CONFIG_SYS_FSL_FM1_DTSEC1_OFFSET)
30489ab87d04SKumar Gala #define CONFIG_SYS_FSL_FM2_ADDR \
30499ab87d04SKumar Gala 	(CONFIG_SYS_IMMR + CONFIG_SYS_FSL_FM2_OFFSET)
30505ffa88ecSLiu Gang #define CONFIG_SYS_FSL_SRIO_ADDR \
30515ffa88ecSLiu Gang 	(CONFIG_SYS_IMMR + CONFIG_SYS_FSL_SRIO_OFFSET)
3052a47a12beSStefan Roese 
305399d9c07eSKumar Gala #define CONFIG_SYS_PCI1_ADDR \
305499d9c07eSKumar Gala 	(CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_PCI1_OFFSET)
305599d9c07eSKumar Gala #define CONFIG_SYS_PCI2_ADDR \
305699d9c07eSKumar Gala 	(CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_PCI2_OFFSET)
305799d9c07eSKumar Gala #define CONFIG_SYS_PCIE1_ADDR \
305899d9c07eSKumar Gala 	(CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_PCIE1_OFFSET)
305999d9c07eSKumar Gala #define CONFIG_SYS_PCIE2_ADDR \
306099d9c07eSKumar Gala 	(CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_PCIE2_OFFSET)
306199d9c07eSKumar Gala #define CONFIG_SYS_PCIE3_ADDR \
306299d9c07eSKumar Gala 	(CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_PCIE3_OFFSET)
30639ab87d04SKumar Gala #define CONFIG_SYS_PCIE4_ADDR \
30649ab87d04SKumar Gala 	(CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_PCIE4_OFFSET)
306599d9c07eSKumar Gala 
3066b6808cd8SShaveta Leekha #define CONFIG_SYS_SFP_ADDR  \
3067b6808cd8SShaveta Leekha 	(CONFIG_SYS_IMMR + CONFIG_SYS_SFP_OFFSET)
3068b6808cd8SShaveta Leekha 
3069a47a12beSStefan Roese #define TSEC_BASE_ADDR		(CONFIG_SYS_IMMR + CONFIG_SYS_TSEC1_OFFSET)
3070a47a12beSStefan Roese #define MDIO_BASE_ADDR		(CONFIG_SYS_IMMR + CONFIG_SYS_MDIO1_OFFSET)
3071a47a12beSStefan Roese 
30726d2b9da1SYork Sun #ifdef CONFIG_SYS_FSL_QORIQ_CHASSIS2
30736d2b9da1SYork Sun struct ccsr_cluster_l2 {
30746d2b9da1SYork Sun 	u32 l2csr0;	/* 0x000 L2 cache control and status register 0 */
30756d2b9da1SYork Sun 	u32 l2csr1;	/* 0x004 L2 cache control and status register 1 */
30766d2b9da1SYork Sun 	u32 l2cfg0;	/* 0x008 L2 cache configuration register 0 */
30776d2b9da1SYork Sun 	u8  res_0c[500];/* 0x00c - 0x1ff */
30786d2b9da1SYork Sun 	u32 l2pir0;	/* 0x200 L2 cache partitioning ID register 0 */
30796d2b9da1SYork Sun 	u8  res_204[4];
30806d2b9da1SYork Sun 	u32 l2par0;	/* 0x208 L2 cache partitioning allocation register 0 */
30816d2b9da1SYork Sun 	u32 l2pwr0;	/* 0x20c L2 cache partitioning way register 0 */
30826d2b9da1SYork Sun 	u32 l2pir1;	/* 0x210 L2 cache partitioning ID register 1 */
30836d2b9da1SYork Sun 	u8  res_214[4];
30846d2b9da1SYork Sun 	u32 l2par1;	/* 0x218 L2 cache partitioning allocation register 1 */
30856d2b9da1SYork Sun 	u32 l2pwr1;	/* 0x21c L2 cache partitioning way register 1 */
30866d2b9da1SYork Sun 	u32 u2pir2;	/* 0x220 L2 cache partitioning ID register 2 */
30876d2b9da1SYork Sun 	u8  res_224[4];
30886d2b9da1SYork Sun 	u32 l2par2;	/* 0x228 L2 cache partitioning allocation register 2 */
30896d2b9da1SYork Sun 	u32 l2pwr2;	/* 0x22c L2 cache partitioning way register 2 */
30906d2b9da1SYork Sun 	u32 l2pir3;	/* 0x230 L2 cache partitioning ID register 3 */
30916d2b9da1SYork Sun 	u8  res_234[4];
30926d2b9da1SYork Sun 	u32 l2par3;	/* 0x238 L2 cache partitining allocation register 3 */
30936d2b9da1SYork Sun 	u32 l2pwr3;	/* 0x23c L2 cache partitining way register 3 */
30946d2b9da1SYork Sun 	u32 l2pir4;	/* 0x240 L2 cache partitioning ID register 3 */
30956d2b9da1SYork Sun 	u8  res244[4];
30966d2b9da1SYork Sun 	u32 l2par4;	/* 0x248 L2 cache partitioning allocation register 3 */
30976d2b9da1SYork Sun 	u32 l2pwr4;	/* 0x24c L2 cache partitioning way register 3 */
30986d2b9da1SYork Sun 	u32 l2pir5;	/* 0x250 L2 cache partitioning ID register 3 */
30996d2b9da1SYork Sun 	u8  res_254[4];
31006d2b9da1SYork Sun 	u32 l2par5;	/* 0x258 L2 cache partitioning allocation register 3 */
31016d2b9da1SYork Sun 	u32 l2pwr5;	/* 0x25c L2 cache partitioning way register 3 */
31026d2b9da1SYork Sun 	u32 l2pir6;	/* 0x260 L2 cache partitioning ID register 3 */
31036d2b9da1SYork Sun 	u8  res_264[4];
31046d2b9da1SYork Sun 	u32 l2par6;	/* 0x268 L2 cache partitioning allocation register 3 */
31056d2b9da1SYork Sun 	u32 l2pwr6;	/* 0x26c L2 cache partitioning way register 3 */
31066d2b9da1SYork Sun 	u32 l2pir7;	/* 0x270 L2 cache partitioning ID register 3 */
31076d2b9da1SYork Sun 	u8  res274[4];
31086d2b9da1SYork Sun 	u32 l2par7;	/* 0x278 L2 cache partitioning allocation register 3 */
31096d2b9da1SYork Sun 	u32 l2pwr7;	/* 0x27c L2 cache partitioning way register 3 */
31106d2b9da1SYork Sun 	u8  res_280[0xb80]; /* 0x280 - 0xdff */
31116d2b9da1SYork Sun 	u32 l2errinjhi;	/* 0xe00 L2 cache error injection mask high */
31126d2b9da1SYork Sun 	u32 l2errinjlo;	/* 0xe04 L2 cache error injection mask low */
31136d2b9da1SYork Sun 	u32 l2errinjctl;/* 0xe08 L2 cache error injection control */
31146d2b9da1SYork Sun 	u8  res_e0c[20];	/* 0xe0c - 0x01f */
31156d2b9da1SYork Sun 	u32 l2captdatahi; /* 0xe20 L2 cache error capture data high */
31166d2b9da1SYork Sun 	u32 l2captdatalo; /* 0xe24 L2 cache error capture data low */
31176d2b9da1SYork Sun 	u32 l2captecc;	/* 0xe28 L2 cache error capture ECC syndrome */
31186d2b9da1SYork Sun 	u8  res_e2c[20];	/* 0xe2c - 0xe3f */
31196d2b9da1SYork Sun 	u32 l2errdet;	/* 0xe40 L2 cache error detect */
31206d2b9da1SYork Sun 	u32 l2errdis;	/* 0xe44 L2 cache error disable */
31216d2b9da1SYork Sun 	u32 l2errinten;	/* 0xe48 L2 cache error interrupt enable */
31226d2b9da1SYork Sun 	u32 l2errattr;	/* 0xe4c L2 cache error attribute */
31236d2b9da1SYork Sun 	u32 l2erreaddr;	/* 0xe50 L2 cache error extended address */
31246d2b9da1SYork Sun 	u32 l2erraddr;	/* 0xe54 L2 cache error address */
31256d2b9da1SYork Sun 	u32 l2errctl;	/* 0xe58 L2 cache error control */
31266d2b9da1SYork Sun };
31276d2b9da1SYork Sun #define CONFIG_SYS_FSL_CLUSTER_1_L2 \
31286d2b9da1SYork Sun 	(CONFIG_SYS_IMMR + CONFIG_SYS_FSL_CLUSTER_1_L2_OFFSET)
31296d2b9da1SYork Sun #endif /* CONFIG_SYS_FSL_QORIQ_CHASSIS2 */
313099d7b0a4SXulei 
313199d7b0a4SXulei #define	CONFIG_SYS_DCSR_DCFG_OFFSET	0X20000
313299d7b0a4SXulei struct dcsr_dcfg_regs {
313399d7b0a4SXulei 	u8  res_0[0x520];
313499d7b0a4SXulei 	u32 ecccr1;
313599d7b0a4SXulei #define	DCSR_DCFG_ECC_DISABLE_USB1	0x00008000
313699d7b0a4SXulei #define	DCSR_DCFG_ECC_DISABLE_USB2	0x00004000
313799d7b0a4SXulei 	u8  res_524[0x1000 - 0x524]; /* 0x524 - 0x1000 */
313899d7b0a4SXulei };
31395aef4c86STang Yuantian 
31405aef4c86STang Yuantian #define CONFIG_SYS_MPC85xx_SCFG \
31415aef4c86STang Yuantian 	(CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_SCFG_OFFSET)
31425aef4c86STang Yuantian #define CONFIG_SYS_MPC85xx_SCFG_OFFSET	0xfc000
31435aef4c86STang Yuantian /* The supplement configuration unit register */
31445aef4c86STang Yuantian struct ccsr_scfg {
31455aef4c86STang Yuantian 	u32 dpslpcr;	/* 0x000 Deep Sleep Control register */
31465aef4c86STang Yuantian 	u32 usb1dpslpcsr;/* 0x004 USB1 Deep Sleep Control Status register */
31475aef4c86STang Yuantian 	u32 usb2dpslpcsr;/* 0x008 USB2 Deep Sleep Control Status register */
31485aef4c86STang Yuantian 	u32 fmclkdpslpcr;/* 0x00c FM Clock Deep Sleep Control register */
31495aef4c86STang Yuantian 	u32 res1[4];
31505aef4c86STang Yuantian 	u32 esgmiiselcr;/* 0x020 Ethernet Switch SGMII Select Control reg */
31515aef4c86STang Yuantian 	u32 res2;
31525aef4c86STang Yuantian 	u32 pixclkcr;	/* 0x028 Pixel Clock Control register */
31535aef4c86STang Yuantian 	u32 res3[245];
31545aef4c86STang Yuantian 	u32 qeioclkcr;	/* 0x400 QUICC Engine IO Clock Control register */
31555aef4c86STang Yuantian 	u32 emiiocr;	/* 0x404 EMI MDIO Control Register */
31565aef4c86STang Yuantian 	u32 sdhciovselcr;/* 0x408 SDHC IO VSEL Control register */
31575aef4c86STang Yuantian 	u32 qmifrstcr;	/* 0x40c QMAN Interface Reset Control register */
31585aef4c86STang Yuantian 	u32 res4[60];
31595aef4c86STang Yuantian 	u32 sparecr[8];	/* 0x500 Spare Control register(0-7) */
31605aef4c86STang Yuantian };
3161a47a12beSStefan Roese #endif /*__IMMAP_85xx__*/
3162