xref: /rk3399_rockchip-uboot/arch/powerpc/include/asm/immap_85xx.h (revision b62408464b749b57c4ec83594e09fa78dbd6bca4)
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  *
9a47a12beSStefan Roese  * See file CREDITS for list of people who contributed to this
10a47a12beSStefan Roese  * project.
11a47a12beSStefan Roese  *
12a47a12beSStefan Roese  * This program is free software; you can redistribute it and/or
13a47a12beSStefan Roese  * modify it under the terms of the GNU General Public License as
14a47a12beSStefan Roese  * published by the Free Software Foundation; either version 2 of
15a47a12beSStefan Roese  * the License, or (at your option) any later version.
16a47a12beSStefan Roese  *
17a47a12beSStefan Roese  * This program is distributed in the hope that it will be useful,
18a47a12beSStefan Roese  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19a47a12beSStefan Roese  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20a47a12beSStefan Roese  * GNU General Public License for more details.
21a47a12beSStefan Roese  *
22a47a12beSStefan Roese  * You should have received a copy of the GNU General Public License
23a47a12beSStefan Roese  * along with this program; if not, write to the Free Software
24a47a12beSStefan Roese  * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
25a47a12beSStefan Roese  * MA 02111-1307 USA
26a47a12beSStefan Roese  */
27a47a12beSStefan Roese 
28a47a12beSStefan Roese #ifndef __IMMAP_85xx__
29a47a12beSStefan Roese #define __IMMAP_85xx__
30a47a12beSStefan Roese 
31a47a12beSStefan Roese #include <asm/types.h>
32a47a12beSStefan Roese #include <asm/fsl_dma.h>
33a47a12beSStefan Roese #include <asm/fsl_i2c.h>
34d789b5f5SDipen Dudhat #include <asm/fsl_ifc.h>
35a47a12beSStefan Roese #include <asm/fsl_lbc.h>
36ebd7cb0bSKumar Gala #include <asm/fsl_fman.h>
37a47a12beSStefan Roese 
38a47a12beSStefan Roese typedef struct ccsr_local {
39a47a12beSStefan Roese 	u32	ccsrbarh;	/* CCSR Base Addr High */
40a47a12beSStefan Roese 	u32	ccsrbarl;	/* CCSR Base Addr Low */
41a47a12beSStefan Roese 	u32	ccsrar;		/* CCSR Attr */
42a47a12beSStefan Roese #define CCSRAR_C	0x80000000	/* Commit */
43a47a12beSStefan Roese 	u8	res1[4];
44a47a12beSStefan Roese 	u32	altcbarh;	/* Alternate Configuration Base Addr High */
45a47a12beSStefan Roese 	u32	altcbarl;	/* Alternate Configuration Base Addr Low */
46a47a12beSStefan Roese 	u32	altcar;		/* Alternate Configuration Attr */
47a47a12beSStefan Roese 	u8	res2[4];
48a47a12beSStefan Roese 	u32	bstrh;		/* Boot space translation high */
49a47a12beSStefan Roese 	u32	bstrl;		/* Boot space translation Low */
50a47a12beSStefan Roese 	u32	bstrar;		/* Boot space translation attributes */
51a47a12beSStefan Roese 	u8	res3[0xbd4];
52a47a12beSStefan Roese 	struct {
53a47a12beSStefan Roese 		u32	lawbarh;	/* LAWn base addr high */
54a47a12beSStefan Roese 		u32	lawbarl;	/* LAWn base addr low */
55a47a12beSStefan Roese 		u32	lawar;		/* LAWn attributes */
56a47a12beSStefan Roese 		u8	res4[4];
57a47a12beSStefan Roese 	} law[32];
58a47a12beSStefan Roese 	u8	res35[0x204];
59a47a12beSStefan Roese } ccsr_local_t;
60a47a12beSStefan Roese 
61a47a12beSStefan Roese /* Local-Access Registers & ECM Registers */
62a47a12beSStefan Roese typedef struct ccsr_local_ecm {
63a47a12beSStefan Roese 	u32	ccsrbar;	/* CCSR Base Addr */
64a47a12beSStefan Roese 	u8	res1[4];
65a47a12beSStefan Roese 	u32	altcbar;	/* Alternate Configuration Base Addr */
66a47a12beSStefan Roese 	u8	res2[4];
67a47a12beSStefan Roese 	u32	altcar;		/* Alternate Configuration Attr */
68a47a12beSStefan Roese 	u8	res3[12];
69a47a12beSStefan Roese 	u32	bptr;		/* Boot Page Translation */
70a47a12beSStefan Roese 	u8	res4[3044];
71a47a12beSStefan Roese 	u32	lawbar0;	/* Local Access Window 0 Base Addr */
72a47a12beSStefan Roese 	u8	res5[4];
73a47a12beSStefan Roese 	u32	lawar0;		/* Local Access Window 0 Attrs */
74a47a12beSStefan Roese 	u8	res6[20];
75a47a12beSStefan Roese 	u32	lawbar1;	/* Local Access Window 1 Base Addr */
76a47a12beSStefan Roese 	u8	res7[4];
77a47a12beSStefan Roese 	u32	lawar1;		/* Local Access Window 1 Attrs */
78a47a12beSStefan Roese 	u8	res8[20];
79a47a12beSStefan Roese 	u32	lawbar2;	/* Local Access Window 2 Base Addr */
80a47a12beSStefan Roese 	u8	res9[4];
81a47a12beSStefan Roese 	u32	lawar2;		/* Local Access Window 2 Attrs */
82a47a12beSStefan Roese 	u8	res10[20];
83a47a12beSStefan Roese 	u32	lawbar3;	/* Local Access Window 3 Base Addr */
84a47a12beSStefan Roese 	u8	res11[4];
85a47a12beSStefan Roese 	u32	lawar3;		/* Local Access Window 3 Attrs */
86a47a12beSStefan Roese 	u8	res12[20];
87a47a12beSStefan Roese 	u32	lawbar4;	/* Local Access Window 4 Base Addr */
88a47a12beSStefan Roese 	u8	res13[4];
89a47a12beSStefan Roese 	u32	lawar4;		/* Local Access Window 4 Attrs */
90a47a12beSStefan Roese 	u8	res14[20];
91a47a12beSStefan Roese 	u32	lawbar5;	/* Local Access Window 5 Base Addr */
92a47a12beSStefan Roese 	u8	res15[4];
93a47a12beSStefan Roese 	u32	lawar5;		/* Local Access Window 5 Attrs */
94a47a12beSStefan Roese 	u8	res16[20];
95a47a12beSStefan Roese 	u32	lawbar6;	/* Local Access Window 6 Base Addr */
96a47a12beSStefan Roese 	u8	res17[4];
97a47a12beSStefan Roese 	u32	lawar6;		/* Local Access Window 6 Attrs */
98a47a12beSStefan Roese 	u8	res18[20];
99a47a12beSStefan Roese 	u32	lawbar7;	/* Local Access Window 7 Base Addr */
100a47a12beSStefan Roese 	u8	res19[4];
101a47a12beSStefan Roese 	u32	lawar7;		/* Local Access Window 7 Attrs */
102a47a12beSStefan Roese 	u8	res19_8a[20];
103a47a12beSStefan Roese 	u32	lawbar8;	/* Local Access Window 8 Base Addr */
104a47a12beSStefan Roese 	u8	res19_8b[4];
105a47a12beSStefan Roese 	u32	lawar8;		/* Local Access Window 8 Attrs */
106a47a12beSStefan Roese 	u8	res19_9a[20];
107a47a12beSStefan Roese 	u32	lawbar9;	/* Local Access Window 9 Base Addr */
108a47a12beSStefan Roese 	u8	res19_9b[4];
109a47a12beSStefan Roese 	u32	lawar9;		/* Local Access Window 9 Attrs */
110a47a12beSStefan Roese 	u8	res19_10a[20];
111a47a12beSStefan Roese 	u32	lawbar10;	/* Local Access Window 10 Base Addr */
112a47a12beSStefan Roese 	u8	res19_10b[4];
113a47a12beSStefan Roese 	u32	lawar10;	/* Local Access Window 10 Attrs */
114a47a12beSStefan Roese 	u8	res19_11a[20];
115a47a12beSStefan Roese 	u32	lawbar11;	/* Local Access Window 11 Base Addr */
116a47a12beSStefan Roese 	u8	res19_11b[4];
117a47a12beSStefan Roese 	u32	lawar11;	/* Local Access Window 11 Attrs */
118a47a12beSStefan Roese 	u8	res20[652];
119a47a12beSStefan Roese 	u32	eebacr;		/* ECM CCB Addr Configuration */
120a47a12beSStefan Roese 	u8	res21[12];
121a47a12beSStefan Roese 	u32	eebpcr;		/* ECM CCB Port Configuration */
122a47a12beSStefan Roese 	u8	res22[3564];
123a47a12beSStefan Roese 	u32	eedr;		/* ECM Error Detect */
124a47a12beSStefan Roese 	u8	res23[4];
125a47a12beSStefan Roese 	u32	eeer;		/* ECM Error Enable */
126a47a12beSStefan Roese 	u32	eeatr;		/* ECM Error Attrs Capture */
127a47a12beSStefan Roese 	u32	eeadr;		/* ECM Error Addr Capture */
128a47a12beSStefan Roese 	u8	res24[492];
129a47a12beSStefan Roese } ccsr_local_ecm_t;
130a47a12beSStefan Roese 
131a47a12beSStefan Roese /* DDR memory controller registers */
132a47a12beSStefan Roese typedef struct ccsr_ddr {
133a47a12beSStefan Roese 	u32	cs0_bnds;		/* Chip Select 0 Memory Bounds */
134a47a12beSStefan Roese 	u8	res1[4];
135a47a12beSStefan Roese 	u32	cs1_bnds;		/* Chip Select 1 Memory Bounds */
136a47a12beSStefan Roese 	u8	res2[4];
137a47a12beSStefan Roese 	u32	cs2_bnds;		/* Chip Select 2 Memory Bounds */
138a47a12beSStefan Roese 	u8	res3[4];
139a47a12beSStefan Roese 	u32	cs3_bnds;		/* Chip Select 3 Memory Bounds */
140a47a12beSStefan Roese 	u8	res4[100];
141a47a12beSStefan Roese 	u32	cs0_config;		/* Chip Select Configuration */
142a47a12beSStefan Roese 	u32	cs1_config;		/* Chip Select Configuration */
143a47a12beSStefan Roese 	u32	cs2_config;		/* Chip Select Configuration */
144a47a12beSStefan Roese 	u32	cs3_config;		/* Chip Select Configuration */
145a47a12beSStefan Roese 	u8	res4a[48];
146a47a12beSStefan Roese 	u32	cs0_config_2;		/* Chip Select Configuration 2 */
147a47a12beSStefan Roese 	u32	cs1_config_2;		/* Chip Select Configuration 2 */
148a47a12beSStefan Roese 	u32	cs2_config_2;		/* Chip Select Configuration 2 */
149a47a12beSStefan Roese 	u32	cs3_config_2;		/* Chip Select Configuration 2 */
150a47a12beSStefan Roese 	u8	res5[48];
151a47a12beSStefan Roese 	u32	timing_cfg_3;		/* SDRAM Timing Configuration 3 */
152a47a12beSStefan Roese 	u32	timing_cfg_0;		/* SDRAM Timing Configuration 0 */
153a47a12beSStefan Roese 	u32	timing_cfg_1;		/* SDRAM Timing Configuration 1 */
154a47a12beSStefan Roese 	u32	timing_cfg_2;		/* SDRAM Timing Configuration 2 */
155a47a12beSStefan Roese 	u32	sdram_cfg;		/* SDRAM Control Configuration */
156a47a12beSStefan Roese 	u32	sdram_cfg_2;		/* SDRAM Control Configuration 2 */
157a47a12beSStefan Roese 	u32	sdram_mode;		/* SDRAM Mode Configuration */
158a47a12beSStefan Roese 	u32	sdram_mode_2;		/* SDRAM Mode Configuration 2 */
159a47a12beSStefan Roese 	u32	sdram_md_cntl;		/* SDRAM Mode Control */
160a47a12beSStefan Roese 	u32	sdram_interval;		/* SDRAM Interval Configuration */
161a47a12beSStefan Roese 	u32	sdram_data_init;	/* SDRAM Data initialization */
162a47a12beSStefan Roese 	u8	res6[4];
163a47a12beSStefan Roese 	u32	sdram_clk_cntl;		/* SDRAM Clock Control */
164a47a12beSStefan Roese 	u8	res7[20];
165a47a12beSStefan Roese 	u32	init_addr;		/* training init addr */
166a47a12beSStefan Roese 	u32	init_ext_addr;		/* training init extended addr */
167a47a12beSStefan Roese 	u8	res8_1[16];
168a47a12beSStefan Roese 	u32	timing_cfg_4;		/* SDRAM Timing Configuration 4 */
169a47a12beSStefan Roese 	u32	timing_cfg_5;		/* SDRAM Timing Configuration 5 */
170a47a12beSStefan Roese 	u8	reg8_1a[8];
171a47a12beSStefan Roese 	u32	ddr_zq_cntl;		/* ZQ calibration control*/
172a47a12beSStefan Roese 	u32	ddr_wrlvl_cntl;		/* write leveling control*/
173a47a12beSStefan Roese 	u8	reg8_1aa[4];
174a47a12beSStefan Roese 	u32	ddr_sr_cntr;		/* self refresh counter */
175a47a12beSStefan Roese 	u32	ddr_sdram_rcw_1;	/* Control Words 1 */
176a47a12beSStefan Roese 	u32	ddr_sdram_rcw_2;	/* Control Words 2 */
1779ab87d04SKumar Gala 	u8	reg_1ab[8];
1789ab87d04SKumar Gala 	u32	ddr_wrlvl_cntl_2;	/* write leveling control 2 */
1799ab87d04SKumar Gala 	u32	ddr_wrlvl_cntl_3;	/* write leveling control 3 */
1809ab87d04SKumar Gala 	u8	res8_1b[104];
1819ab87d04SKumar Gala 	u32	sdram_mode_3;		/* SDRAM Mode Configuration 3 */
1829ab87d04SKumar Gala 	u32	sdram_mode_4;		/* SDRAM Mode Configuration 4 */
1839ab87d04SKumar Gala 	u32	sdram_mode_5;		/* SDRAM Mode Configuration 5 */
1849ab87d04SKumar Gala 	u32	sdram_mode_6;		/* SDRAM Mode Configuration 6 */
1859ab87d04SKumar Gala 	u32	sdram_mode_7;		/* SDRAM Mode Configuration 7 */
1869ab87d04SKumar Gala 	u32	sdram_mode_8;		/* SDRAM Mode Configuration 8 */
1879ab87d04SKumar Gala 	u8	res8_1ba[0x908];
188a47a12beSStefan Roese 	u32	ddr_dsr1;		/* Debug Status 1 */
189a47a12beSStefan Roese 	u32	ddr_dsr2;		/* Debug Status 2 */
190a47a12beSStefan Roese 	u32	ddr_cdr1;		/* Control Driver 1 */
191a47a12beSStefan Roese 	u32	ddr_cdr2;		/* Control Driver 2 */
192a47a12beSStefan Roese 	u8	res8_1c[200];
193a47a12beSStefan Roese 	u32	ip_rev1;		/* IP Block Revision 1 */
194a47a12beSStefan Roese 	u32	ip_rev2;		/* IP Block Revision 2 */
1959ab87d04SKumar Gala 	u32	eor;			/* Enhanced Optimization Register */
1969ab87d04SKumar Gala 	u8	res8_2[252];
1979ab87d04SKumar Gala 	u32	mtcr;			/* Memory Test Control Register */
1989ab87d04SKumar Gala 	u8	res8_3[28];
1999ab87d04SKumar Gala 	u32	mtp1;			/* Memory Test Pattern 1 */
2009ab87d04SKumar Gala 	u32	mtp2;			/* Memory Test Pattern 2 */
2019ab87d04SKumar Gala 	u32	mtp3;			/* Memory Test Pattern 3 */
2029ab87d04SKumar Gala 	u32	mtp4;			/* Memory Test Pattern 4 */
2039ab87d04SKumar Gala 	u32	mtp5;			/* Memory Test Pattern 5 */
2049ab87d04SKumar Gala 	u32	mtp6;			/* Memory Test Pattern 6 */
2059ab87d04SKumar Gala 	u32	mtp7;			/* Memory Test Pattern 7 */
2069ab87d04SKumar Gala 	u32	mtp8;			/* Memory Test Pattern 8 */
2079ab87d04SKumar Gala 	u32	mtp9;			/* Memory Test Pattern 9 */
2089ab87d04SKumar Gala 	u32	mtp10;			/* Memory Test Pattern 10 */
2099ab87d04SKumar Gala 	u8	res8_4[184];
210a47a12beSStefan Roese 	u32	data_err_inject_hi;	/* Data Path Err Injection Mask High */
211a47a12beSStefan Roese 	u32	data_err_inject_lo;	/* Data Path Err Injection Mask Low */
212a47a12beSStefan Roese 	u32	ecc_err_inject;		/* Data Path Err Injection Mask ECC */
213a47a12beSStefan Roese 	u8	res9[20];
214a47a12beSStefan Roese 	u32	capture_data_hi;	/* Data Path Read Capture High */
215a47a12beSStefan Roese 	u32	capture_data_lo;	/* Data Path Read Capture Low */
216a47a12beSStefan Roese 	u32	capture_ecc;		/* Data Path Read Capture ECC */
217a47a12beSStefan Roese 	u8	res10[20];
218a47a12beSStefan Roese 	u32	err_detect;		/* Error Detect */
219a47a12beSStefan Roese 	u32	err_disable;		/* Error Disable */
220a47a12beSStefan Roese 	u32	err_int_en;
221a47a12beSStefan Roese 	u32	capture_attributes;	/* Error Attrs Capture */
222a47a12beSStefan Roese 	u32	capture_address;	/* Error Addr Capture */
223a47a12beSStefan Roese 	u32	capture_ext_address;	/* Error Extended Addr Capture */
224a47a12beSStefan Roese 	u32	err_sbe;		/* Single-Bit ECC Error Management */
225a47a12beSStefan Roese 	u8	res11[164];
226d2a9568cSYork Sun 	u32	debug[32];		/* debug_1 to debug_32 */
227d2a9568cSYork Sun 	u8	res12[128];
228a47a12beSStefan Roese } ccsr_ddr_t;
229a47a12beSStefan Roese 
2309ab87d04SKumar Gala #define DDR_EOR_RD_BDW_OPT_DIS	0x80000000 /* Read BDW Opt. disable */
2319ab87d04SKumar Gala #define DDR_EOR_ADDR_HASH_EN	0x40000000 /* Address hash enabled */
2329ab87d04SKumar Gala 
233a47a12beSStefan Roese /* I2C Registers */
234a47a12beSStefan Roese typedef struct ccsr_i2c {
235a47a12beSStefan Roese 	struct fsl_i2c	i2c[1];
236a47a12beSStefan Roese 	u8	res[4096 - 1 * sizeof(struct fsl_i2c)];
237a47a12beSStefan Roese } ccsr_i2c_t;
238a47a12beSStefan Roese 
239a47a12beSStefan Roese #if defined(CONFIG_MPC8540) \
240a47a12beSStefan Roese 	|| defined(CONFIG_MPC8541) \
241a47a12beSStefan Roese 	|| defined(CONFIG_MPC8548) \
242a47a12beSStefan Roese 	|| defined(CONFIG_MPC8555)
243a47a12beSStefan Roese /* DUART Registers */
244a47a12beSStefan Roese typedef struct ccsr_duart {
245a47a12beSStefan Roese 	u8	res1[1280];
246a47a12beSStefan Roese /* URBR1, UTHR1, UDLB1 with the same addr */
247a47a12beSStefan Roese 	u8	urbr1_uthr1_udlb1;
248a47a12beSStefan Roese /* UIER1, UDMB1 with the same addr01 */
249a47a12beSStefan Roese 	u8	uier1_udmb1;
250a47a12beSStefan Roese /* UIIR1, UFCR1, UAFR1 with the same addr */
251a47a12beSStefan Roese 	u8	uiir1_ufcr1_uafr1;
252a47a12beSStefan Roese 	u8	ulcr1;		/* UART1 Line Control */
253a47a12beSStefan Roese 	u8	umcr1;		/* UART1 Modem Control */
254a47a12beSStefan Roese 	u8	ulsr1;		/* UART1 Line Status */
255a47a12beSStefan Roese 	u8	umsr1;		/* UART1 Modem Status */
256a47a12beSStefan Roese 	u8	uscr1;		/* UART1 Scratch */
257a47a12beSStefan Roese 	u8	res2[8];
258a47a12beSStefan Roese 	u8	udsr1;		/* UART1 DMA Status */
259a47a12beSStefan Roese 	u8	res3[239];
260a47a12beSStefan Roese /* URBR2, UTHR2, UDLB2 with the same addr */
261a47a12beSStefan Roese 	u8	urbr2_uthr2_udlb2;
262a47a12beSStefan Roese /* UIER2, UDMB2 with the same addr */
263a47a12beSStefan Roese 	u8	uier2_udmb2;
264a47a12beSStefan Roese /* UIIR2, UFCR2, UAFR2 with the same addr */
265a47a12beSStefan Roese 	u8	uiir2_ufcr2_uafr2;
266a47a12beSStefan Roese 	u8	ulcr2;		/* UART2 Line Control */
267a47a12beSStefan Roese 	u8	umcr2;		/* UART2 Modem Control */
268a47a12beSStefan Roese 	u8	ulsr2;		/* UART2 Line Status */
269a47a12beSStefan Roese 	u8	umsr2;		/* UART2 Modem Status */
270a47a12beSStefan Roese 	u8	uscr2;		/* UART2 Scratch */
271a47a12beSStefan Roese 	u8	res4[8];
272a47a12beSStefan Roese 	u8	udsr2;		/* UART2 DMA Status */
273a47a12beSStefan Roese 	u8	res5[2543];
274a47a12beSStefan Roese } ccsr_duart_t;
275a47a12beSStefan Roese #else /* MPC8560 uses UART on its CPM */
276a47a12beSStefan Roese typedef struct ccsr_duart {
277a47a12beSStefan Roese 	u8 res[4096];
278a47a12beSStefan Roese } ccsr_duart_t;
279a47a12beSStefan Roese #endif
280a47a12beSStefan Roese 
281a47a12beSStefan Roese /* eSPI Registers */
282a47a12beSStefan Roese typedef struct ccsr_espi {
283a47a12beSStefan Roese 	u32	mode;		/* eSPI mode */
284a47a12beSStefan Roese 	u32	event;		/* eSPI event */
285a47a12beSStefan Roese 	u32	mask;		/* eSPI mask */
286a47a12beSStefan Roese 	u32	com;		/* eSPI command */
287a47a12beSStefan Roese 	u32	tx;		/* eSPI transmit FIFO access */
288a47a12beSStefan Roese 	u32	rx;		/* eSPI receive FIFO access */
289a47a12beSStefan Roese 	u8	res1[8];	/* reserved */
290a47a12beSStefan Roese 	u32	csmode[4];	/* 0x2c: sSPI CS0/1/2/3 mode */
291a47a12beSStefan Roese 	u8	res2[4048];	/* fill up to 0x1000 */
292a47a12beSStefan Roese } ccsr_espi_t;
293a47a12beSStefan Roese 
294a47a12beSStefan Roese /* PCI Registers */
295a47a12beSStefan Roese typedef struct ccsr_pcix {
296a47a12beSStefan Roese 	u32	cfg_addr;	/* PCIX Configuration Addr */
297a47a12beSStefan Roese 	u32	cfg_data;	/* PCIX Configuration Data */
298a47a12beSStefan Roese 	u32	int_ack;	/* PCIX IRQ Acknowledge */
299e389a377SLaurentiu Tudor 	u8	res000c[52];
300e389a377SLaurentiu Tudor 	u32	liodn_base;	/* PCIX LIODN base register */
301e389a377SLaurentiu Tudor 	u8	res0044[3004];
302a47a12beSStefan Roese 	u32	potar0;		/* PCIX Outbound Transaction Addr 0 */
303a47a12beSStefan Roese 	u32	potear0;	/* PCIX Outbound Translation Extended Addr 0 */
304a47a12beSStefan Roese 	u32	powbar0;	/* PCIX Outbound Window Base Addr 0 */
305a47a12beSStefan Roese 	u32	powbear0;	/* PCIX Outbound Window Base Extended Addr 0 */
306a47a12beSStefan Roese 	u32	powar0;		/* PCIX Outbound Window Attrs 0 */
307a47a12beSStefan Roese 	u8	res2[12];
308a47a12beSStefan Roese 	u32	potar1;		/* PCIX Outbound Transaction Addr 1 */
309a47a12beSStefan Roese 	u32	potear1;	/* PCIX Outbound Translation Extended Addr 1 */
310a47a12beSStefan Roese 	u32	powbar1;	/* PCIX Outbound Window Base Addr 1 */
311a47a12beSStefan Roese 	u32	powbear1;	/* PCIX Outbound Window Base Extended Addr 1 */
312a47a12beSStefan Roese 	u32	powar1;		/* PCIX Outbound Window Attrs 1 */
313a47a12beSStefan Roese 	u8	res3[12];
314a47a12beSStefan Roese 	u32	potar2;		/* PCIX Outbound Transaction Addr 2 */
315a47a12beSStefan Roese 	u32	potear2;	/* PCIX Outbound Translation Extended Addr 2 */
316a47a12beSStefan Roese 	u32	powbar2;	/* PCIX Outbound Window Base Addr 2 */
317a47a12beSStefan Roese 	u32	powbear2;	/* PCIX Outbound Window Base Extended Addr 2 */
318a47a12beSStefan Roese 	u32	powar2;		/* PCIX Outbound Window Attrs 2 */
319a47a12beSStefan Roese 	u8	res4[12];
320a47a12beSStefan Roese 	u32	potar3;		/* PCIX Outbound Transaction Addr 3 */
321a47a12beSStefan Roese 	u32	potear3;	/* PCIX Outbound Translation Extended Addr 3 */
322a47a12beSStefan Roese 	u32	powbar3;	/* PCIX Outbound Window Base Addr 3 */
323a47a12beSStefan Roese 	u32	powbear3;	/* PCIX Outbound Window Base Extended Addr 3 */
324a47a12beSStefan Roese 	u32	powar3;		/* PCIX Outbound Window Attrs 3 */
325a47a12beSStefan Roese 	u8	res5[12];
326a47a12beSStefan Roese 	u32	potar4;		/* PCIX Outbound Transaction Addr 4 */
327a47a12beSStefan Roese 	u32	potear4;	/* PCIX Outbound Translation Extended Addr 4 */
328a47a12beSStefan Roese 	u32	powbar4;	/* PCIX Outbound Window Base Addr 4 */
329a47a12beSStefan Roese 	u32	powbear4;	/* PCIX Outbound Window Base Extended Addr 4 */
330a47a12beSStefan Roese 	u32	powar4;		/* PCIX Outbound Window Attrs 4 */
331a47a12beSStefan Roese 	u8	res6[268];
332a47a12beSStefan Roese 	u32	pitar3;		/* PCIX Inbound Translation Addr 3 */
333a47a12beSStefan Roese 	u32	pitear3;	/* PCIX Inbound Translation Extended Addr 3 */
334a47a12beSStefan Roese 	u32	piwbar3;	/* PCIX Inbound Window Base Addr 3 */
335a47a12beSStefan Roese 	u32	piwbear3;	/* PCIX Inbound Window Base Extended Addr 3 */
336a47a12beSStefan Roese 	u32	piwar3;		/* PCIX Inbound Window Attrs 3 */
337a47a12beSStefan Roese 	u8	res7[12];
338a47a12beSStefan Roese 	u32	pitar2;		/* PCIX Inbound Translation Addr 2 */
339a47a12beSStefan Roese 	u32	pitear2;	/* PCIX Inbound Translation Extended Addr 2 */
340a47a12beSStefan Roese 	u32	piwbar2;	/* PCIX Inbound Window Base Addr 2 */
341a47a12beSStefan Roese 	u32	piwbear2;	/* PCIX Inbound Window Base Extended Addr 2 */
342a47a12beSStefan Roese 	u32	piwar2;		/* PCIX Inbound Window Attrs 2 */
343a47a12beSStefan Roese 	u8	res8[12];
344a47a12beSStefan Roese 	u32	pitar1;		/* PCIX Inbound Translation Addr 1 */
345a47a12beSStefan Roese 	u32	pitear1;	/* PCIX Inbound Translation Extended Addr 1 */
346a47a12beSStefan Roese 	u32	piwbar1;	/* PCIX Inbound Window Base Addr 1 */
347a47a12beSStefan Roese 	u8	res9[4];
348a47a12beSStefan Roese 	u32	piwar1;		/* PCIX Inbound Window Attrs 1 */
349a47a12beSStefan Roese 	u8	res10[12];
350a47a12beSStefan Roese 	u32	pedr;		/* PCIX Error Detect */
351a47a12beSStefan Roese 	u32	pecdr;		/* PCIX Error Capture Disable */
352a47a12beSStefan Roese 	u32	peer;		/* PCIX Error Enable */
353a47a12beSStefan Roese 	u32	peattrcr;	/* PCIX Error Attrs Capture */
354a47a12beSStefan Roese 	u32	peaddrcr;	/* PCIX Error Addr Capture */
355a47a12beSStefan Roese 	u32	peextaddrcr;	/* PCIX Error Extended Addr Capture */
356a47a12beSStefan Roese 	u32	pedlcr;		/* PCIX Error Data Low Capture */
357a47a12beSStefan Roese 	u32	pedhcr;		/* PCIX Error Error Data High Capture */
358a47a12beSStefan Roese 	u32	gas_timr;	/* PCIX Gasket Timer */
359a47a12beSStefan Roese 	u8	res11[476];
360a47a12beSStefan Roese } ccsr_pcix_t;
361a47a12beSStefan Roese 
362a47a12beSStefan Roese #define PCIX_COMMAND	0x62
363a47a12beSStefan Roese #define POWAR_EN	0x80000000
364a47a12beSStefan Roese #define POWAR_IO_READ	0x00080000
365a47a12beSStefan Roese #define POWAR_MEM_READ	0x00040000
366a47a12beSStefan Roese #define POWAR_IO_WRITE	0x00008000
367a47a12beSStefan Roese #define POWAR_MEM_WRITE	0x00004000
368a47a12beSStefan Roese #define POWAR_MEM_512M	0x0000001c
369a47a12beSStefan Roese #define POWAR_IO_1M	0x00000013
370a47a12beSStefan Roese 
371a47a12beSStefan Roese #define PIWAR_EN	0x80000000
372a47a12beSStefan Roese #define PIWAR_PF	0x20000000
373a47a12beSStefan Roese #define PIWAR_LOCAL	0x00f00000
374a47a12beSStefan Roese #define PIWAR_READ_SNOOP	0x00050000
375a47a12beSStefan Roese #define PIWAR_WRITE_SNOOP	0x00005000
376a47a12beSStefan Roese #define PIWAR_MEM_2G		0x0000001e
377a47a12beSStefan Roese 
378a47a12beSStefan Roese typedef struct ccsr_gpio {
379a47a12beSStefan Roese 	u32	gpdir;
380a47a12beSStefan Roese 	u32	gpodr;
381a47a12beSStefan Roese 	u32	gpdat;
382a47a12beSStefan Roese 	u32	gpier;
383a47a12beSStefan Roese 	u32	gpimr;
384a47a12beSStefan Roese 	u32	gpicr;
385a47a12beSStefan Roese } ccsr_gpio_t;
386a47a12beSStefan Roese 
387a47a12beSStefan Roese /* L2 Cache Registers */
388a47a12beSStefan Roese typedef struct ccsr_l2cache {
389a47a12beSStefan Roese 	u32	l2ctl;		/* L2 configuration 0 */
390a47a12beSStefan Roese 	u8	res1[12];
391a47a12beSStefan Roese 	u32	l2cewar0;	/* L2 cache external write addr 0 */
392a47a12beSStefan Roese 	u8	res2[4];
393a47a12beSStefan Roese 	u32	l2cewcr0;	/* L2 cache external write control 0 */
394a47a12beSStefan Roese 	u8	res3[4];
395a47a12beSStefan Roese 	u32	l2cewar1;	/* L2 cache external write addr 1 */
396a47a12beSStefan Roese 	u8	res4[4];
397a47a12beSStefan Roese 	u32	l2cewcr1;	/* L2 cache external write control 1 */
398a47a12beSStefan Roese 	u8	res5[4];
399a47a12beSStefan Roese 	u32	l2cewar2;	/* L2 cache external write addr 2 */
400a47a12beSStefan Roese 	u8	res6[4];
401a47a12beSStefan Roese 	u32	l2cewcr2;	/* L2 cache external write control 2 */
402a47a12beSStefan Roese 	u8	res7[4];
403a47a12beSStefan Roese 	u32	l2cewar3;	/* L2 cache external write addr 3 */
404a47a12beSStefan Roese 	u8	res8[4];
405a47a12beSStefan Roese 	u32	l2cewcr3;	/* L2 cache external write control 3 */
406a47a12beSStefan Roese 	u8	res9[180];
407a47a12beSStefan Roese 	u32	l2srbar0;	/* L2 memory-mapped SRAM base addr 0 */
408a47a12beSStefan Roese 	u8	res10[4];
409a47a12beSStefan Roese 	u32	l2srbar1;	/* L2 memory-mapped SRAM base addr 1 */
410a47a12beSStefan Roese 	u8	res11[3316];
411a47a12beSStefan Roese 	u32	l2errinjhi;	/* L2 error injection mask high */
412a47a12beSStefan Roese 	u32	l2errinjlo;	/* L2 error injection mask low */
413a47a12beSStefan Roese 	u32	l2errinjctl;	/* L2 error injection tag/ECC control */
414a47a12beSStefan Roese 	u8	res12[20];
415a47a12beSStefan Roese 	u32	l2captdatahi;	/* L2 error data high capture */
416a47a12beSStefan Roese 	u32	l2captdatalo;	/* L2 error data low capture */
417a47a12beSStefan Roese 	u32	l2captecc;	/* L2 error ECC capture */
418a47a12beSStefan Roese 	u8	res13[20];
419a47a12beSStefan Roese 	u32	l2errdet;	/* L2 error detect */
420a47a12beSStefan Roese 	u32	l2errdis;	/* L2 error disable */
421a47a12beSStefan Roese 	u32	l2errinten;	/* L2 error interrupt enable */
422a47a12beSStefan Roese 	u32	l2errattr;	/* L2 error attributes capture */
423a47a12beSStefan Roese 	u32	l2erraddr;	/* L2 error addr capture */
424a47a12beSStefan Roese 	u8	res14[4];
425a47a12beSStefan Roese 	u32	l2errctl;	/* L2 error control */
426a47a12beSStefan Roese 	u8	res15[420];
427a47a12beSStefan Roese } ccsr_l2cache_t;
428a47a12beSStefan Roese 
429a47a12beSStefan Roese #define MPC85xx_L2CTL_L2E			0x80000000
430a47a12beSStefan Roese #define MPC85xx_L2CTL_L2SRAM_ENTIRE		0x00010000
431a47a12beSStefan Roese #define MPC85xx_L2ERRDIS_MBECC			0x00000008
432a47a12beSStefan Roese #define MPC85xx_L2ERRDIS_SBECC			0x00000004
433a47a12beSStefan Roese 
434a47a12beSStefan Roese /* DMA Registers */
435a47a12beSStefan Roese typedef struct ccsr_dma {
436a47a12beSStefan Roese 	u8	res1[256];
437a47a12beSStefan Roese 	struct fsl_dma dma[4];
438a47a12beSStefan Roese 	u32	dgsr;		/* DMA General Status */
439a47a12beSStefan Roese 	u8	res2[11516];
440a47a12beSStefan Roese } ccsr_dma_t;
441a47a12beSStefan Roese 
442a47a12beSStefan Roese /* tsec */
443a47a12beSStefan Roese typedef struct ccsr_tsec {
444a47a12beSStefan Roese 	u8	res1[16];
445a47a12beSStefan Roese 	u32	ievent;		/* IRQ Event */
446a47a12beSStefan Roese 	u32	imask;		/* IRQ Mask */
447a47a12beSStefan Roese 	u32	edis;		/* Error Disabled */
448a47a12beSStefan Roese 	u8	res2[4];
449a47a12beSStefan Roese 	u32	ecntrl;		/* Ethernet Control */
450a47a12beSStefan Roese 	u32	minflr;		/* Minimum Frame Len */
451a47a12beSStefan Roese 	u32	ptv;		/* Pause Time Value */
452a47a12beSStefan Roese 	u32	dmactrl;	/* DMA Control */
453a47a12beSStefan Roese 	u32	tbipa;		/* TBI PHY Addr */
454a47a12beSStefan Roese 	u8	res3[88];
455a47a12beSStefan Roese 	u32	fifo_tx_thr;		/* FIFO transmit threshold */
456a47a12beSStefan Roese 	u8	res4[8];
457a47a12beSStefan Roese 	u32	fifo_tx_starve;		/* FIFO transmit starve */
458a47a12beSStefan Roese 	u32	fifo_tx_starve_shutoff;	/* FIFO transmit starve shutoff */
459a47a12beSStefan Roese 	u8	res5[96];
460a47a12beSStefan Roese 	u32	tctrl;		/* TX Control */
461a47a12beSStefan Roese 	u32	tstat;		/* TX Status */
462a47a12beSStefan Roese 	u8	res6[4];
463a47a12beSStefan Roese 	u32	tbdlen;		/* TX Buffer Desc Data Len */
464a47a12beSStefan Roese 	u8	res7[16];
465a47a12beSStefan Roese 	u32	ctbptrh;	/* Current TX Buffer Desc Ptr High */
466a47a12beSStefan Roese 	u32	ctbptr;		/* Current TX Buffer Desc Ptr */
467a47a12beSStefan Roese 	u8	res8[88];
468a47a12beSStefan Roese 	u32	tbptrh;		/* TX Buffer Desc Ptr High */
469a47a12beSStefan Roese 	u32	tbptr;		/* TX Buffer Desc Ptr Low */
470a47a12beSStefan Roese 	u8	res9[120];
471a47a12beSStefan Roese 	u32	tbaseh;		/* TX Desc Base Addr High */
472a47a12beSStefan Roese 	u32	tbase;		/* TX Desc Base Addr */
473a47a12beSStefan Roese 	u8	res10[168];
474a47a12beSStefan Roese 	u32	ostbd;		/* Out-of-Sequence(OOS) TX Buffer Desc */
475a47a12beSStefan Roese 	u32	ostbdp;		/* OOS TX Data Buffer Ptr */
476a47a12beSStefan Roese 	u32	os32tbdp;	/* OOS 32 Bytes TX Data Buffer Ptr Low */
477a47a12beSStefan Roese 	u32	os32iptrh;	/* OOS 32 Bytes TX Insert Ptr High */
478a47a12beSStefan Roese 	u32	os32iptrl;	/* OOS 32 Bytes TX Insert Ptr Low */
479a47a12beSStefan Roese 	u32	os32tbdr;	/* OOS 32 Bytes TX Reserved */
480a47a12beSStefan Roese 	u32	os32iil;	/* OOS 32 Bytes TX Insert Idx/Len */
481a47a12beSStefan Roese 	u8	res11[52];
482a47a12beSStefan Roese 	u32	rctrl;		/* RX Control */
483a47a12beSStefan Roese 	u32	rstat;		/* RX Status */
484a47a12beSStefan Roese 	u8	res12[4];
485a47a12beSStefan Roese 	u32	rbdlen;		/* RxBD Data Len */
486a47a12beSStefan Roese 	u8	res13[16];
487a47a12beSStefan Roese 	u32	crbptrh;	/* Current RX Buffer Desc Ptr High */
488a47a12beSStefan Roese 	u32	crbptr;		/* Current RX Buffer Desc Ptr */
489a47a12beSStefan Roese 	u8	res14[24];
490a47a12beSStefan Roese 	u32	mrblr;		/* Maximum RX Buffer Len */
491a47a12beSStefan Roese 	u32	mrblr2r3;	/* Maximum RX Buffer Len R2R3 */
492a47a12beSStefan Roese 	u8	res15[56];
493a47a12beSStefan Roese 	u32	rbptrh;		/* RX Buffer Desc Ptr High 0 */
494a47a12beSStefan Roese 	u32	rbptr;		/* RX Buffer Desc Ptr */
495a47a12beSStefan Roese 	u32	rbptrh1;	/* RX Buffer Desc Ptr High 1 */
496a47a12beSStefan Roese 	u32	rbptrl1;	/* RX Buffer Desc Ptr Low 1 */
497a47a12beSStefan Roese 	u32	rbptrh2;	/* RX Buffer Desc Ptr High 2 */
498a47a12beSStefan Roese 	u32	rbptrl2;	/* RX Buffer Desc Ptr Low 2 */
499a47a12beSStefan Roese 	u32	rbptrh3;	/* RX Buffer Desc Ptr High 3 */
500a47a12beSStefan Roese 	u32	rbptrl3;	/* RX Buffer Desc Ptr Low 3 */
501a47a12beSStefan Roese 	u8	res16[96];
502a47a12beSStefan Roese 	u32	rbaseh;		/* RX Desc Base Addr High 0 */
503a47a12beSStefan Roese 	u32	rbase;		/* RX Desc Base Addr */
504a47a12beSStefan Roese 	u32	rbaseh1;	/* RX Desc Base Addr High 1 */
505a47a12beSStefan Roese 	u32	rbasel1;	/* RX Desc Base Addr Low 1 */
506a47a12beSStefan Roese 	u32	rbaseh2;	/* RX Desc Base Addr High 2 */
507a47a12beSStefan Roese 	u32	rbasel2;	/* RX Desc Base Addr Low 2 */
508a47a12beSStefan Roese 	u32	rbaseh3;	/* RX Desc Base Addr High 3 */
509a47a12beSStefan Roese 	u32	rbasel3;	/* RX Desc Base Addr Low 3 */
510a47a12beSStefan Roese 	u8	res17[224];
511a47a12beSStefan Roese 	u32	maccfg1;	/* MAC Configuration 1 */
512a47a12beSStefan Roese 	u32	maccfg2;	/* MAC Configuration 2 */
513a47a12beSStefan Roese 	u32	ipgifg;		/* Inter Packet Gap/Inter Frame Gap */
514a47a12beSStefan Roese 	u32	hafdup;		/* Half Duplex */
515a47a12beSStefan Roese 	u32	maxfrm;		/* Maximum Frame Len */
516a47a12beSStefan Roese 	u8	res18[12];
517a47a12beSStefan Roese 	u32	miimcfg;	/* MII Management Configuration */
518a47a12beSStefan Roese 	u32	miimcom;	/* MII Management Cmd */
519a47a12beSStefan Roese 	u32	miimadd;	/* MII Management Addr */
520a47a12beSStefan Roese 	u32	miimcon;	/* MII Management Control */
521a47a12beSStefan Roese 	u32	miimstat;	/* MII Management Status */
522a47a12beSStefan Roese 	u32	miimind;	/* MII Management Indicator */
523a47a12beSStefan Roese 	u8	res19[4];
524a47a12beSStefan Roese 	u32	ifstat;		/* Interface Status */
525a47a12beSStefan Roese 	u32	macstnaddr1;	/* Station Addr Part 1 */
526a47a12beSStefan Roese 	u32	macstnaddr2;	/* Station Addr Part 2 */
527a47a12beSStefan Roese 	u8	res20[312];
528a47a12beSStefan Roese 	u32	tr64;		/* TX & RX 64-byte Frame Counter */
529a47a12beSStefan Roese 	u32	tr127;		/* TX & RX 65-127 byte Frame Counter */
530a47a12beSStefan Roese 	u32	tr255;		/* TX & RX 128-255 byte Frame Counter */
531a47a12beSStefan Roese 	u32	tr511;		/* TX & RX 256-511 byte Frame Counter */
532a47a12beSStefan Roese 	u32	tr1k;		/* TX & RX 512-1023 byte Frame Counter */
533a47a12beSStefan Roese 	u32	trmax;		/* TX & RX 1024-1518 byte Frame Counter */
534a47a12beSStefan Roese 	u32	trmgv;		/* TX & RX 1519-1522 byte Good VLAN Frame */
535a47a12beSStefan Roese 	u32	rbyt;		/* RX Byte Counter */
536a47a12beSStefan Roese 	u32	rpkt;		/* RX Packet Counter */
537a47a12beSStefan Roese 	u32	rfcs;		/* RX FCS Error Counter */
538a47a12beSStefan Roese 	u32	rmca;		/* RX Multicast Packet Counter */
539a47a12beSStefan Roese 	u32	rbca;		/* RX Broadcast Packet Counter */
540a47a12beSStefan Roese 	u32	rxcf;		/* RX Control Frame Packet Counter */
541a47a12beSStefan Roese 	u32	rxpf;		/* RX Pause Frame Packet Counter */
542a47a12beSStefan Roese 	u32	rxuo;		/* RX Unknown OP Code Counter */
543a47a12beSStefan Roese 	u32	raln;		/* RX Alignment Error Counter */
544a47a12beSStefan Roese 	u32	rflr;		/* RX Frame Len Error Counter */
545a47a12beSStefan Roese 	u32	rcde;		/* RX Code Error Counter */
546a47a12beSStefan Roese 	u32	rcse;		/* RX Carrier Sense Error Counter */
547a47a12beSStefan Roese 	u32	rund;		/* RX Undersize Packet Counter */
548a47a12beSStefan Roese 	u32	rovr;		/* RX Oversize Packet Counter */
549a47a12beSStefan Roese 	u32	rfrg;		/* RX Fragments Counter */
550a47a12beSStefan Roese 	u32	rjbr;		/* RX Jabber Counter */
551a47a12beSStefan Roese 	u32	rdrp;		/* RX Drop Counter */
552a47a12beSStefan Roese 	u32	tbyt;		/* TX Byte Counter Counter */
553a47a12beSStefan Roese 	u32	tpkt;		/* TX Packet Counter */
554a47a12beSStefan Roese 	u32	tmca;		/* TX Multicast Packet Counter */
555a47a12beSStefan Roese 	u32	tbca;		/* TX Broadcast Packet Counter */
556a47a12beSStefan Roese 	u32	txpf;		/* TX Pause Control Frame Counter */
557a47a12beSStefan Roese 	u32	tdfr;		/* TX Deferral Packet Counter */
558a47a12beSStefan Roese 	u32	tedf;		/* TX Excessive Deferral Packet Counter */
559a47a12beSStefan Roese 	u32	tscl;		/* TX Single Collision Packet Counter */
560a47a12beSStefan Roese 	u32	tmcl;		/* TX Multiple Collision Packet Counter */
561a47a12beSStefan Roese 	u32	tlcl;		/* TX Late Collision Packet Counter */
562a47a12beSStefan Roese 	u32	txcl;		/* TX Excessive Collision Packet Counter */
563a47a12beSStefan Roese 	u32	tncl;		/* TX Total Collision Counter */
564a47a12beSStefan Roese 	u8	res21[4];
565a47a12beSStefan Roese 	u32	tdrp;		/* TX Drop Frame Counter */
566a47a12beSStefan Roese 	u32	tjbr;		/* TX Jabber Frame Counter */
567a47a12beSStefan Roese 	u32	tfcs;		/* TX FCS Error Counter */
568a47a12beSStefan Roese 	u32	txcf;		/* TX Control Frame Counter */
569a47a12beSStefan Roese 	u32	tovr;		/* TX Oversize Frame Counter */
570a47a12beSStefan Roese 	u32	tund;		/* TX Undersize Frame Counter */
571a47a12beSStefan Roese 	u32	tfrg;		/* TX Fragments Frame Counter */
572a47a12beSStefan Roese 	u32	car1;		/* Carry One */
573a47a12beSStefan Roese 	u32	car2;		/* Carry Two */
574a47a12beSStefan Roese 	u32	cam1;		/* Carry Mask One */
575a47a12beSStefan Roese 	u32	cam2;		/* Carry Mask Two */
576a47a12beSStefan Roese 	u8	res22[192];
577a47a12beSStefan Roese 	u32	iaddr0;		/* Indivdual addr 0 */
578a47a12beSStefan Roese 	u32	iaddr1;		/* Indivdual addr 1 */
579a47a12beSStefan Roese 	u32	iaddr2;		/* Indivdual addr 2 */
580a47a12beSStefan Roese 	u32	iaddr3;		/* Indivdual addr 3 */
581a47a12beSStefan Roese 	u32	iaddr4;		/* Indivdual addr 4 */
582a47a12beSStefan Roese 	u32	iaddr5;		/* Indivdual addr 5 */
583a47a12beSStefan Roese 	u32	iaddr6;		/* Indivdual addr 6 */
584a47a12beSStefan Roese 	u32	iaddr7;		/* Indivdual addr 7 */
585a47a12beSStefan Roese 	u8	res23[96];
586a47a12beSStefan Roese 	u32	gaddr0;		/* Global addr 0 */
587a47a12beSStefan Roese 	u32	gaddr1;		/* Global addr 1 */
588a47a12beSStefan Roese 	u32	gaddr2;		/* Global addr 2 */
589a47a12beSStefan Roese 	u32	gaddr3;		/* Global addr 3 */
590a47a12beSStefan Roese 	u32	gaddr4;		/* Global addr 4 */
591a47a12beSStefan Roese 	u32	gaddr5;		/* Global addr 5 */
592a47a12beSStefan Roese 	u32	gaddr6;		/* Global addr 6 */
593a47a12beSStefan Roese 	u32	gaddr7;		/* Global addr 7 */
594a47a12beSStefan Roese 	u8	res24[96];
595a47a12beSStefan Roese 	u32	pmd0;		/* Pattern Match Data */
596a47a12beSStefan Roese 	u8	res25[4];
597a47a12beSStefan Roese 	u32	pmask0;		/* Pattern Mask */
598a47a12beSStefan Roese 	u8	res26[4];
599a47a12beSStefan Roese 	u32	pcntrl0;	/* Pattern Match Control */
600a47a12beSStefan Roese 	u8	res27[4];
601a47a12beSStefan Roese 	u32	pattrb0;	/* Pattern Match Attrs */
602a47a12beSStefan Roese 	u32	pattrbeli0;	/* Pattern Match Attrs Extract Len & Idx */
603a47a12beSStefan Roese 	u32	pmd1;		/* Pattern Match Data */
604a47a12beSStefan Roese 	u8	res28[4];
605a47a12beSStefan Roese 	u32	pmask1;		/* Pattern Mask */
606a47a12beSStefan Roese 	u8	res29[4];
607a47a12beSStefan Roese 	u32	pcntrl1;	/* Pattern Match Control */
608a47a12beSStefan Roese 	u8	res30[4];
609a47a12beSStefan Roese 	u32	pattrb1;	/* Pattern Match Attrs */
610a47a12beSStefan Roese 	u32	pattrbeli1;	/* Pattern Match Attrs Extract Len & Idx */
611a47a12beSStefan Roese 	u32	pmd2;		/* Pattern Match Data */
612a47a12beSStefan Roese 	u8	res31[4];
613a47a12beSStefan Roese 	u32	pmask2;		/* Pattern Mask */
614a47a12beSStefan Roese 	u8	res32[4];
615a47a12beSStefan Roese 	u32	pcntrl2;	/* Pattern Match Control */
616a47a12beSStefan Roese 	u8	res33[4];
617a47a12beSStefan Roese 	u32	pattrb2;	/* Pattern Match Attrs */
618a47a12beSStefan Roese 	u32	pattrbeli2;	/* Pattern Match Attrs Extract Len & Idx */
619a47a12beSStefan Roese 	u32	pmd3;		/* Pattern Match Data */
620a47a12beSStefan Roese 	u8	res34[4];
621a47a12beSStefan Roese 	u32	pmask3;		/* Pattern Mask */
622a47a12beSStefan Roese 	u8	res35[4];
623a47a12beSStefan Roese 	u32	pcntrl3;	/* Pattern Match Control */
624a47a12beSStefan Roese 	u8	res36[4];
625a47a12beSStefan Roese 	u32	pattrb3;	/* Pattern Match Attrs */
626a47a12beSStefan Roese 	u32	pattrbeli3;	/* Pattern Match Attrs Extract Len & Idx */
627a47a12beSStefan Roese 	u32	pmd4;		/* Pattern Match Data */
628a47a12beSStefan Roese 	u8	res37[4];
629a47a12beSStefan Roese 	u32	pmask4;		/* Pattern Mask */
630a47a12beSStefan Roese 	u8	res38[4];
631a47a12beSStefan Roese 	u32	pcntrl4;	/* Pattern Match Control */
632a47a12beSStefan Roese 	u8	res39[4];
633a47a12beSStefan Roese 	u32	pattrb4;	/* Pattern Match Attrs */
634a47a12beSStefan Roese 	u32	pattrbeli4;	/* Pattern Match Attrs Extract Len & Idx */
635a47a12beSStefan Roese 	u32	pmd5;		/* Pattern Match Data */
636a47a12beSStefan Roese 	u8	res40[4];
637a47a12beSStefan Roese 	u32	pmask5;		/* Pattern Mask */
638a47a12beSStefan Roese 	u8	res41[4];
639a47a12beSStefan Roese 	u32	pcntrl5;	/* Pattern Match Control */
640a47a12beSStefan Roese 	u8	res42[4];
641a47a12beSStefan Roese 	u32	pattrb5;	/* Pattern Match Attrs */
642a47a12beSStefan Roese 	u32	pattrbeli5;	/* Pattern Match Attrs Extract Len & Idx */
643a47a12beSStefan Roese 	u32	pmd6;		/* Pattern Match Data */
644a47a12beSStefan Roese 	u8	res43[4];
645a47a12beSStefan Roese 	u32	pmask6;		/* Pattern Mask */
646a47a12beSStefan Roese 	u8	res44[4];
647a47a12beSStefan Roese 	u32	pcntrl6;	/* Pattern Match Control */
648a47a12beSStefan Roese 	u8	res45[4];
649a47a12beSStefan Roese 	u32	pattrb6;	/* Pattern Match Attrs */
650a47a12beSStefan Roese 	u32	pattrbeli6;	/* Pattern Match Attrs Extract Len & Idx */
651a47a12beSStefan Roese 	u32	pmd7;		/* Pattern Match Data */
652a47a12beSStefan Roese 	u8	res46[4];
653a47a12beSStefan Roese 	u32	pmask7;		/* Pattern Mask */
654a47a12beSStefan Roese 	u8	res47[4];
655a47a12beSStefan Roese 	u32	pcntrl7;	/* Pattern Match Control */
656a47a12beSStefan Roese 	u8	res48[4];
657a47a12beSStefan Roese 	u32	pattrb7;	/* Pattern Match Attrs */
658a47a12beSStefan Roese 	u32	pattrbeli7;	/* Pattern Match Attrs Extract Len & Idx */
659a47a12beSStefan Roese 	u32	pmd8;		/* Pattern Match Data */
660a47a12beSStefan Roese 	u8	res49[4];
661a47a12beSStefan Roese 	u32	pmask8;		/* Pattern Mask */
662a47a12beSStefan Roese 	u8	res50[4];
663a47a12beSStefan Roese 	u32	pcntrl8;	/* Pattern Match Control */
664a47a12beSStefan Roese 	u8	res51[4];
665a47a12beSStefan Roese 	u32	pattrb8;	/* Pattern Match Attrs */
666a47a12beSStefan Roese 	u32	pattrbeli8;	/* Pattern Match Attrs Extract Len & Idx */
667a47a12beSStefan Roese 	u32	pmd9;		/* Pattern Match Data */
668a47a12beSStefan Roese 	u8	res52[4];
669a47a12beSStefan Roese 	u32	pmask9;		/* Pattern Mask */
670a47a12beSStefan Roese 	u8	res53[4];
671a47a12beSStefan Roese 	u32	pcntrl9;	/* Pattern Match Control */
672a47a12beSStefan Roese 	u8	res54[4];
673a47a12beSStefan Roese 	u32	pattrb9;	/* Pattern Match Attrs */
674a47a12beSStefan Roese 	u32	pattrbeli9;	/* Pattern Match Attrs Extract Len & Idx */
675a47a12beSStefan Roese 	u32	pmd10;		/* Pattern Match Data */
676a47a12beSStefan Roese 	u8	res55[4];
677a47a12beSStefan Roese 	u32	pmask10;	/* Pattern Mask */
678a47a12beSStefan Roese 	u8	res56[4];
679a47a12beSStefan Roese 	u32	pcntrl10;	/* Pattern Match Control */
680a47a12beSStefan Roese 	u8	res57[4];
681a47a12beSStefan Roese 	u32	pattrb10;	/* Pattern Match Attrs */
682a47a12beSStefan Roese 	u32	pattrbeli10;	/* Pattern Match Attrs Extract Len & Idx */
683a47a12beSStefan Roese 	u32	pmd11;		/* Pattern Match Data */
684a47a12beSStefan Roese 	u8	res58[4];
685a47a12beSStefan Roese 	u32	pmask11;	/* Pattern Mask */
686a47a12beSStefan Roese 	u8	res59[4];
687a47a12beSStefan Roese 	u32	pcntrl11;	/* Pattern Match Control */
688a47a12beSStefan Roese 	u8	res60[4];
689a47a12beSStefan Roese 	u32	pattrb11;	/* Pattern Match Attrs */
690a47a12beSStefan Roese 	u32	pattrbeli11;	/* Pattern Match Attrs Extract Len & Idx */
691a47a12beSStefan Roese 	u32	pmd12;		/* Pattern Match Data */
692a47a12beSStefan Roese 	u8	res61[4];
693a47a12beSStefan Roese 	u32	pmask12;	/* Pattern Mask */
694a47a12beSStefan Roese 	u8	res62[4];
695a47a12beSStefan Roese 	u32	pcntrl12;	/* Pattern Match Control */
696a47a12beSStefan Roese 	u8	res63[4];
697a47a12beSStefan Roese 	u32	pattrb12;	/* Pattern Match Attrs */
698a47a12beSStefan Roese 	u32	pattrbeli12;	/* Pattern Match Attrs Extract Len & Idx */
699a47a12beSStefan Roese 	u32	pmd13;		/* Pattern Match Data */
700a47a12beSStefan Roese 	u8	res64[4];
701a47a12beSStefan Roese 	u32	pmask13;	/* Pattern Mask */
702a47a12beSStefan Roese 	u8	res65[4];
703a47a12beSStefan Roese 	u32	pcntrl13;	/* Pattern Match Control */
704a47a12beSStefan Roese 	u8	res66[4];
705a47a12beSStefan Roese 	u32	pattrb13;	/* Pattern Match Attrs */
706a47a12beSStefan Roese 	u32	pattrbeli13;	/* Pattern Match Attrs Extract Len & Idx */
707a47a12beSStefan Roese 	u32	pmd14;		/* Pattern Match Data */
708a47a12beSStefan Roese 	u8	res67[4];
709a47a12beSStefan Roese 	u32	pmask14;	/* Pattern Mask */
710a47a12beSStefan Roese 	u8	res68[4];
711a47a12beSStefan Roese 	u32	pcntrl14;	/* Pattern Match Control */
712a47a12beSStefan Roese 	u8	res69[4];
713a47a12beSStefan Roese 	u32	pattrb14;	/* Pattern Match Attrs */
714a47a12beSStefan Roese 	u32	pattrbeli14;	/* Pattern Match Attrs Extract Len & Idx */
715a47a12beSStefan Roese 	u32	pmd15;		/* Pattern Match Data */
716a47a12beSStefan Roese 	u8	res70[4];
717a47a12beSStefan Roese 	u32	pmask15;	/* Pattern Mask */
718a47a12beSStefan Roese 	u8	res71[4];
719a47a12beSStefan Roese 	u32	pcntrl15;	/* Pattern Match Control */
720a47a12beSStefan Roese 	u8	res72[4];
721a47a12beSStefan Roese 	u32	pattrb15;	/* Pattern Match Attrs */
722a47a12beSStefan Roese 	u32	pattrbeli15;	/* Pattern Match Attrs Extract Len & Idx */
723a47a12beSStefan Roese 	u8	res73[248];
724a47a12beSStefan Roese 	u32	attr;		/* Attrs */
725a47a12beSStefan Roese 	u32	attreli;	/* Attrs Extract Len & Idx */
726a47a12beSStefan Roese 	u8	res74[1024];
727a47a12beSStefan Roese } ccsr_tsec_t;
728a47a12beSStefan Roese 
729a47a12beSStefan Roese /* PIC Registers */
730a47a12beSStefan Roese typedef struct ccsr_pic {
731a47a12beSStefan Roese 	u8	res1[64];
732a47a12beSStefan Roese 	u32	ipidr0;		/* Interprocessor IRQ Dispatch 0 */
733a47a12beSStefan Roese 	u8	res2[12];
734a47a12beSStefan Roese 	u32	ipidr1;		/* Interprocessor IRQ Dispatch 1 */
735a47a12beSStefan Roese 	u8	res3[12];
736a47a12beSStefan Roese 	u32	ipidr2;		/* Interprocessor IRQ Dispatch 2 */
737a47a12beSStefan Roese 	u8	res4[12];
738a47a12beSStefan Roese 	u32	ipidr3;		/* Interprocessor IRQ Dispatch 3 */
739a47a12beSStefan Roese 	u8	res5[12];
740a47a12beSStefan Roese 	u32	ctpr;		/* Current Task Priority */
741a47a12beSStefan Roese 	u8	res6[12];
742a47a12beSStefan Roese 	u32	whoami;		/* Who Am I */
743a47a12beSStefan Roese 	u8	res7[12];
744a47a12beSStefan Roese 	u32	iack;		/* IRQ Acknowledge */
745a47a12beSStefan Roese 	u8	res8[12];
746a47a12beSStefan Roese 	u32	eoi;		/* End Of IRQ */
747a47a12beSStefan Roese 	u8	res9[3916];
748a47a12beSStefan Roese 	u32	frr;		/* Feature Reporting */
749a47a12beSStefan Roese 	u8	res10[28];
750a47a12beSStefan Roese 	u32	gcr;		/* Global Configuration */
751a47a12beSStefan Roese #define MPC85xx_PICGCR_RST	0x80000000
752a47a12beSStefan Roese #define MPC85xx_PICGCR_M	0x20000000
753a47a12beSStefan Roese 	u8	res11[92];
754a47a12beSStefan Roese 	u32	vir;		/* Vendor Identification */
755a47a12beSStefan Roese 	u8	res12[12];
756a47a12beSStefan Roese 	u32	pir;		/* Processor Initialization */
757a47a12beSStefan Roese 	u8	res13[12];
758a47a12beSStefan Roese 	u32	ipivpr0;	/* IPI Vector/Priority 0 */
759a47a12beSStefan Roese 	u8	res14[12];
760a47a12beSStefan Roese 	u32	ipivpr1;	/* IPI Vector/Priority 1 */
761a47a12beSStefan Roese 	u8	res15[12];
762a47a12beSStefan Roese 	u32	ipivpr2;	/* IPI Vector/Priority 2 */
763a47a12beSStefan Roese 	u8	res16[12];
764a47a12beSStefan Roese 	u32	ipivpr3;	/* IPI Vector/Priority 3 */
765a47a12beSStefan Roese 	u8	res17[12];
766a47a12beSStefan Roese 	u32	svr;		/* Spurious Vector */
767a47a12beSStefan Roese 	u8	res18[12];
768a47a12beSStefan Roese 	u32	tfrr;		/* Timer Frequency Reporting */
769a47a12beSStefan Roese 	u8	res19[12];
770a47a12beSStefan Roese 	u32	gtccr0;		/* Global Timer Current Count 0 */
771a47a12beSStefan Roese 	u8	res20[12];
772a47a12beSStefan Roese 	u32	gtbcr0;		/* Global Timer Base Count 0 */
773a47a12beSStefan Roese 	u8	res21[12];
774a47a12beSStefan Roese 	u32	gtvpr0;		/* Global Timer Vector/Priority 0 */
775a47a12beSStefan Roese 	u8	res22[12];
776a47a12beSStefan Roese 	u32	gtdr0;		/* Global Timer Destination 0 */
777a47a12beSStefan Roese 	u8	res23[12];
778a47a12beSStefan Roese 	u32	gtccr1;		/* Global Timer Current Count 1 */
779a47a12beSStefan Roese 	u8	res24[12];
780a47a12beSStefan Roese 	u32	gtbcr1;		/* Global Timer Base Count 1 */
781a47a12beSStefan Roese 	u8	res25[12];
782a47a12beSStefan Roese 	u32	gtvpr1;		/* Global Timer Vector/Priority 1 */
783a47a12beSStefan Roese 	u8	res26[12];
784a47a12beSStefan Roese 	u32	gtdr1;		/* Global Timer Destination 1 */
785a47a12beSStefan Roese 	u8	res27[12];
786a47a12beSStefan Roese 	u32	gtccr2;		/* Global Timer Current Count 2 */
787a47a12beSStefan Roese 	u8	res28[12];
788a47a12beSStefan Roese 	u32	gtbcr2;		/* Global Timer Base Count 2 */
789a47a12beSStefan Roese 	u8	res29[12];
790a47a12beSStefan Roese 	u32	gtvpr2;		/* Global Timer Vector/Priority 2 */
791a47a12beSStefan Roese 	u8	res30[12];
792a47a12beSStefan Roese 	u32	gtdr2;		/* Global Timer Destination 2 */
793a47a12beSStefan Roese 	u8	res31[12];
794a47a12beSStefan Roese 	u32	gtccr3;		/* Global Timer Current Count 3 */
795a47a12beSStefan Roese 	u8	res32[12];
796a47a12beSStefan Roese 	u32	gtbcr3;		/* Global Timer Base Count 3 */
797a47a12beSStefan Roese 	u8	res33[12];
798a47a12beSStefan Roese 	u32	gtvpr3;		/* Global Timer Vector/Priority 3 */
799a47a12beSStefan Roese 	u8	res34[12];
800a47a12beSStefan Roese 	u32	gtdr3;		/* Global Timer Destination 3 */
801a47a12beSStefan Roese 	u8	res35[268];
802a47a12beSStefan Roese 	u32	tcr;		/* Timer Control */
803a47a12beSStefan Roese 	u8	res36[12];
804a47a12beSStefan Roese 	u32	irqsr0;		/* IRQ_OUT Summary 0 */
805a47a12beSStefan Roese 	u8	res37[12];
806a47a12beSStefan Roese 	u32	irqsr1;		/* IRQ_OUT Summary 1 */
807a47a12beSStefan Roese 	u8	res38[12];
808a47a12beSStefan Roese 	u32	cisr0;		/* Critical IRQ Summary 0 */
809a47a12beSStefan Roese 	u8	res39[12];
810a47a12beSStefan Roese 	u32	cisr1;		/* Critical IRQ Summary 1 */
811a47a12beSStefan Roese 	u8	res40[188];
812a47a12beSStefan Roese 	u32	msgr0;		/* Message 0 */
813a47a12beSStefan Roese 	u8	res41[12];
814a47a12beSStefan Roese 	u32	msgr1;		/* Message 1 */
815a47a12beSStefan Roese 	u8	res42[12];
816a47a12beSStefan Roese 	u32	msgr2;		/* Message 2 */
817a47a12beSStefan Roese 	u8	res43[12];
818a47a12beSStefan Roese 	u32	msgr3;		/* Message 3 */
819a47a12beSStefan Roese 	u8	res44[204];
820a47a12beSStefan Roese 	u32	mer;		/* Message Enable */
821a47a12beSStefan Roese 	u8	res45[12];
822a47a12beSStefan Roese 	u32	msr;		/* Message Status */
823a47a12beSStefan Roese 	u8	res46[60140];
824a47a12beSStefan Roese 	u32	eivpr0;		/* External IRQ Vector/Priority 0 */
825a47a12beSStefan Roese 	u8	res47[12];
826a47a12beSStefan Roese 	u32	eidr0;		/* External IRQ Destination 0 */
827a47a12beSStefan Roese 	u8	res48[12];
828a47a12beSStefan Roese 	u32	eivpr1;		/* External IRQ Vector/Priority 1 */
829a47a12beSStefan Roese 	u8	res49[12];
830a47a12beSStefan Roese 	u32	eidr1;		/* External IRQ Destination 1 */
831a47a12beSStefan Roese 	u8	res50[12];
832a47a12beSStefan Roese 	u32	eivpr2;		/* External IRQ Vector/Priority 2 */
833a47a12beSStefan Roese 	u8	res51[12];
834a47a12beSStefan Roese 	u32	eidr2;		/* External IRQ Destination 2 */
835a47a12beSStefan Roese 	u8	res52[12];
836a47a12beSStefan Roese 	u32	eivpr3;		/* External IRQ Vector/Priority 3 */
837a47a12beSStefan Roese 	u8	res53[12];
838a47a12beSStefan Roese 	u32	eidr3;		/* External IRQ Destination 3 */
839a47a12beSStefan Roese 	u8	res54[12];
840a47a12beSStefan Roese 	u32	eivpr4;		/* External IRQ Vector/Priority 4 */
841a47a12beSStefan Roese 	u8	res55[12];
842a47a12beSStefan Roese 	u32	eidr4;		/* External IRQ Destination 4 */
843a47a12beSStefan Roese 	u8	res56[12];
844a47a12beSStefan Roese 	u32	eivpr5;		/* External IRQ Vector/Priority 5 */
845a47a12beSStefan Roese 	u8	res57[12];
846a47a12beSStefan Roese 	u32	eidr5;		/* External IRQ Destination 5 */
847a47a12beSStefan Roese 	u8	res58[12];
848a47a12beSStefan Roese 	u32	eivpr6;		/* External IRQ Vector/Priority 6 */
849a47a12beSStefan Roese 	u8	res59[12];
850a47a12beSStefan Roese 	u32	eidr6;		/* External IRQ Destination 6 */
851a47a12beSStefan Roese 	u8	res60[12];
852a47a12beSStefan Roese 	u32	eivpr7;		/* External IRQ Vector/Priority 7 */
853a47a12beSStefan Roese 	u8	res61[12];
854a47a12beSStefan Roese 	u32	eidr7;		/* External IRQ Destination 7 */
855a47a12beSStefan Roese 	u8	res62[12];
856a47a12beSStefan Roese 	u32	eivpr8;		/* External IRQ Vector/Priority 8 */
857a47a12beSStefan Roese 	u8	res63[12];
858a47a12beSStefan Roese 	u32	eidr8;		/* External IRQ Destination 8 */
859a47a12beSStefan Roese 	u8	res64[12];
860a47a12beSStefan Roese 	u32	eivpr9;		/* External IRQ Vector/Priority 9 */
861a47a12beSStefan Roese 	u8	res65[12];
862a47a12beSStefan Roese 	u32	eidr9;		/* External IRQ Destination 9 */
863a47a12beSStefan Roese 	u8	res66[12];
864a47a12beSStefan Roese 	u32	eivpr10;	/* External IRQ Vector/Priority 10 */
865a47a12beSStefan Roese 	u8	res67[12];
866a47a12beSStefan Roese 	u32	eidr10;		/* External IRQ Destination 10 */
867a47a12beSStefan Roese 	u8	res68[12];
868a47a12beSStefan Roese 	u32	eivpr11;	/* External IRQ Vector/Priority 11 */
869a47a12beSStefan Roese 	u8	res69[12];
870a47a12beSStefan Roese 	u32	eidr11;		/* External IRQ Destination 11 */
871a47a12beSStefan Roese 	u8	res70[140];
872a47a12beSStefan Roese 	u32	iivpr0;		/* Internal IRQ Vector/Priority 0 */
873a47a12beSStefan Roese 	u8	res71[12];
874a47a12beSStefan Roese 	u32	iidr0;		/* Internal IRQ Destination 0 */
875a47a12beSStefan Roese 	u8	res72[12];
876a47a12beSStefan Roese 	u32	iivpr1;		/* Internal IRQ Vector/Priority 1 */
877a47a12beSStefan Roese 	u8	res73[12];
878a47a12beSStefan Roese 	u32	iidr1;		/* Internal IRQ Destination 1 */
879a47a12beSStefan Roese 	u8	res74[12];
880a47a12beSStefan Roese 	u32	iivpr2;		/* Internal IRQ Vector/Priority 2 */
881a47a12beSStefan Roese 	u8	res75[12];
882a47a12beSStefan Roese 	u32	iidr2;		/* Internal IRQ Destination 2 */
883a47a12beSStefan Roese 	u8	res76[12];
884a47a12beSStefan Roese 	u32	iivpr3;		/* Internal IRQ Vector/Priority 3 */
885a47a12beSStefan Roese 	u8	res77[12];
886a47a12beSStefan Roese 	u32	iidr3;		/* Internal IRQ Destination 3 */
887a47a12beSStefan Roese 	u8	res78[12];
888a47a12beSStefan Roese 	u32	iivpr4;		/* Internal IRQ Vector/Priority 4 */
889a47a12beSStefan Roese 	u8	res79[12];
890a47a12beSStefan Roese 	u32	iidr4;		/* Internal IRQ Destination 4 */
891a47a12beSStefan Roese 	u8	res80[12];
892a47a12beSStefan Roese 	u32	iivpr5;		/* Internal IRQ Vector/Priority 5 */
893a47a12beSStefan Roese 	u8	res81[12];
894a47a12beSStefan Roese 	u32	iidr5;		/* Internal IRQ Destination 5 */
895a47a12beSStefan Roese 	u8	res82[12];
896a47a12beSStefan Roese 	u32	iivpr6;		/* Internal IRQ Vector/Priority 6 */
897a47a12beSStefan Roese 	u8	res83[12];
898a47a12beSStefan Roese 	u32	iidr6;		/* Internal IRQ Destination 6 */
899a47a12beSStefan Roese 	u8	res84[12];
900a47a12beSStefan Roese 	u32	iivpr7;		/* Internal IRQ Vector/Priority 7 */
901a47a12beSStefan Roese 	u8	res85[12];
902a47a12beSStefan Roese 	u32	iidr7;		/* Internal IRQ Destination 7 */
903a47a12beSStefan Roese 	u8	res86[12];
904a47a12beSStefan Roese 	u32	iivpr8;		/* Internal IRQ Vector/Priority 8 */
905a47a12beSStefan Roese 	u8	res87[12];
906a47a12beSStefan Roese 	u32	iidr8;		/* Internal IRQ Destination 8 */
907a47a12beSStefan Roese 	u8	res88[12];
908a47a12beSStefan Roese 	u32	iivpr9;		/* Internal IRQ Vector/Priority 9 */
909a47a12beSStefan Roese 	u8	res89[12];
910a47a12beSStefan Roese 	u32	iidr9;		/* Internal IRQ Destination 9 */
911a47a12beSStefan Roese 	u8	res90[12];
912a47a12beSStefan Roese 	u32	iivpr10;	/* Internal IRQ Vector/Priority 10 */
913a47a12beSStefan Roese 	u8	res91[12];
914a47a12beSStefan Roese 	u32	iidr10;		/* Internal IRQ Destination 10 */
915a47a12beSStefan Roese 	u8	res92[12];
916a47a12beSStefan Roese 	u32	iivpr11;	/* Internal IRQ Vector/Priority 11 */
917a47a12beSStefan Roese 	u8	res93[12];
918a47a12beSStefan Roese 	u32	iidr11;		/* Internal IRQ Destination 11 */
919a47a12beSStefan Roese 	u8	res94[12];
920a47a12beSStefan Roese 	u32	iivpr12;	/* Internal IRQ Vector/Priority 12 */
921a47a12beSStefan Roese 	u8	res95[12];
922a47a12beSStefan Roese 	u32	iidr12;		/* Internal IRQ Destination 12 */
923a47a12beSStefan Roese 	u8	res96[12];
924a47a12beSStefan Roese 	u32	iivpr13;	/* Internal IRQ Vector/Priority 13 */
925a47a12beSStefan Roese 	u8	res97[12];
926a47a12beSStefan Roese 	u32	iidr13;		/* Internal IRQ Destination 13 */
927a47a12beSStefan Roese 	u8	res98[12];
928a47a12beSStefan Roese 	u32	iivpr14;	/* Internal IRQ Vector/Priority 14 */
929a47a12beSStefan Roese 	u8	res99[12];
930a47a12beSStefan Roese 	u32	iidr14;		/* Internal IRQ Destination 14 */
931a47a12beSStefan Roese 	u8	res100[12];
932a47a12beSStefan Roese 	u32	iivpr15;	/* Internal IRQ Vector/Priority 15 */
933a47a12beSStefan Roese 	u8	res101[12];
934a47a12beSStefan Roese 	u32	iidr15;		/* Internal IRQ Destination 15 */
935a47a12beSStefan Roese 	u8	res102[12];
936a47a12beSStefan Roese 	u32	iivpr16;	/* Internal IRQ Vector/Priority 16 */
937a47a12beSStefan Roese 	u8	res103[12];
938a47a12beSStefan Roese 	u32	iidr16;		/* Internal IRQ Destination 16 */
939a47a12beSStefan Roese 	u8	res104[12];
940a47a12beSStefan Roese 	u32	iivpr17;	/* Internal IRQ Vector/Priority 17 */
941a47a12beSStefan Roese 	u8	res105[12];
942a47a12beSStefan Roese 	u32	iidr17;		/* Internal IRQ Destination 17 */
943a47a12beSStefan Roese 	u8	res106[12];
944a47a12beSStefan Roese 	u32	iivpr18;	/* Internal IRQ Vector/Priority 18 */
945a47a12beSStefan Roese 	u8	res107[12];
946a47a12beSStefan Roese 	u32	iidr18;		/* Internal IRQ Destination 18 */
947a47a12beSStefan Roese 	u8	res108[12];
948a47a12beSStefan Roese 	u32	iivpr19;	/* Internal IRQ Vector/Priority 19 */
949a47a12beSStefan Roese 	u8	res109[12];
950a47a12beSStefan Roese 	u32	iidr19;		/* Internal IRQ Destination 19 */
951a47a12beSStefan Roese 	u8	res110[12];
952a47a12beSStefan Roese 	u32	iivpr20;	/* Internal IRQ Vector/Priority 20 */
953a47a12beSStefan Roese 	u8	res111[12];
954a47a12beSStefan Roese 	u32	iidr20;		/* Internal IRQ Destination 20 */
955a47a12beSStefan Roese 	u8	res112[12];
956a47a12beSStefan Roese 	u32	iivpr21;	/* Internal IRQ Vector/Priority 21 */
957a47a12beSStefan Roese 	u8	res113[12];
958a47a12beSStefan Roese 	u32	iidr21;		/* Internal IRQ Destination 21 */
959a47a12beSStefan Roese 	u8	res114[12];
960a47a12beSStefan Roese 	u32	iivpr22;	/* Internal IRQ Vector/Priority 22 */
961a47a12beSStefan Roese 	u8	res115[12];
962a47a12beSStefan Roese 	u32	iidr22;		/* Internal IRQ Destination 22 */
963a47a12beSStefan Roese 	u8	res116[12];
964a47a12beSStefan Roese 	u32	iivpr23;	/* Internal IRQ Vector/Priority 23 */
965a47a12beSStefan Roese 	u8	res117[12];
966a47a12beSStefan Roese 	u32	iidr23;		/* Internal IRQ Destination 23 */
967a47a12beSStefan Roese 	u8	res118[12];
968a47a12beSStefan Roese 	u32	iivpr24;	/* Internal IRQ Vector/Priority 24 */
969a47a12beSStefan Roese 	u8	res119[12];
970a47a12beSStefan Roese 	u32	iidr24;		/* Internal IRQ Destination 24 */
971a47a12beSStefan Roese 	u8	res120[12];
972a47a12beSStefan Roese 	u32	iivpr25;	/* Internal IRQ Vector/Priority 25 */
973a47a12beSStefan Roese 	u8	res121[12];
974a47a12beSStefan Roese 	u32	iidr25;		/* Internal IRQ Destination 25 */
975a47a12beSStefan Roese 	u8	res122[12];
976a47a12beSStefan Roese 	u32	iivpr26;	/* Internal IRQ Vector/Priority 26 */
977a47a12beSStefan Roese 	u8	res123[12];
978a47a12beSStefan Roese 	u32	iidr26;		/* Internal IRQ Destination 26 */
979a47a12beSStefan Roese 	u8	res124[12];
980a47a12beSStefan Roese 	u32	iivpr27;	/* Internal IRQ Vector/Priority 27 */
981a47a12beSStefan Roese 	u8	res125[12];
982a47a12beSStefan Roese 	u32	iidr27;		/* Internal IRQ Destination 27 */
983a47a12beSStefan Roese 	u8	res126[12];
984a47a12beSStefan Roese 	u32	iivpr28;	/* Internal IRQ Vector/Priority 28 */
985a47a12beSStefan Roese 	u8	res127[12];
986a47a12beSStefan Roese 	u32	iidr28;		/* Internal IRQ Destination 28 */
987a47a12beSStefan Roese 	u8	res128[12];
988a47a12beSStefan Roese 	u32	iivpr29;	/* Internal IRQ Vector/Priority 29 */
989a47a12beSStefan Roese 	u8	res129[12];
990a47a12beSStefan Roese 	u32	iidr29;		/* Internal IRQ Destination 29 */
991a47a12beSStefan Roese 	u8	res130[12];
992a47a12beSStefan Roese 	u32	iivpr30;	/* Internal IRQ Vector/Priority 30 */
993a47a12beSStefan Roese 	u8	res131[12];
994a47a12beSStefan Roese 	u32	iidr30;		/* Internal IRQ Destination 30 */
995a47a12beSStefan Roese 	u8	res132[12];
996a47a12beSStefan Roese 	u32	iivpr31;	/* Internal IRQ Vector/Priority 31 */
997a47a12beSStefan Roese 	u8	res133[12];
998a47a12beSStefan Roese 	u32	iidr31;		/* Internal IRQ Destination 31 */
999a47a12beSStefan Roese 	u8	res134[4108];
1000a47a12beSStefan Roese 	u32	mivpr0;		/* Messaging IRQ Vector/Priority 0 */
1001a47a12beSStefan Roese 	u8	res135[12];
1002a47a12beSStefan Roese 	u32	midr0;		/* Messaging IRQ Destination 0 */
1003a47a12beSStefan Roese 	u8	res136[12];
1004a47a12beSStefan Roese 	u32	mivpr1;		/* Messaging IRQ Vector/Priority 1 */
1005a47a12beSStefan Roese 	u8	res137[12];
1006a47a12beSStefan Roese 	u32	midr1;		/* Messaging IRQ Destination 1 */
1007a47a12beSStefan Roese 	u8	res138[12];
1008a47a12beSStefan Roese 	u32	mivpr2;		/* Messaging IRQ Vector/Priority 2 */
1009a47a12beSStefan Roese 	u8	res139[12];
1010a47a12beSStefan Roese 	u32	midr2;		/* Messaging IRQ Destination 2 */
1011a47a12beSStefan Roese 	u8	res140[12];
1012a47a12beSStefan Roese 	u32	mivpr3;		/* Messaging IRQ Vector/Priority 3 */
1013a47a12beSStefan Roese 	u8	res141[12];
1014a47a12beSStefan Roese 	u32	midr3;		/* Messaging IRQ Destination 3 */
1015a47a12beSStefan Roese 	u8	res142[59852];
1016a47a12beSStefan Roese 	u32	ipi0dr0;	/* Processor 0 Interprocessor IRQ Dispatch 0 */
1017a47a12beSStefan Roese 	u8	res143[12];
1018a47a12beSStefan Roese 	u32	ipi0dr1;	/* Processor 0 Interprocessor IRQ Dispatch 1 */
1019a47a12beSStefan Roese 	u8	res144[12];
1020a47a12beSStefan Roese 	u32	ipi0dr2;	/* Processor 0 Interprocessor IRQ Dispatch 2 */
1021a47a12beSStefan Roese 	u8	res145[12];
1022a47a12beSStefan Roese 	u32	ipi0dr3;	/* Processor 0 Interprocessor IRQ Dispatch 3 */
1023a47a12beSStefan Roese 	u8	res146[12];
1024a47a12beSStefan Roese 	u32	ctpr0;		/* Current Task Priority for Processor 0 */
1025a47a12beSStefan Roese 	u8	res147[12];
1026a47a12beSStefan Roese 	u32	whoami0;	/* Who Am I for Processor 0 */
1027a47a12beSStefan Roese 	u8	res148[12];
1028a47a12beSStefan Roese 	u32	iack0;		/* IRQ Acknowledge for Processor 0 */
1029a47a12beSStefan Roese 	u8	res149[12];
1030a47a12beSStefan Roese 	u32	eoi0;		/* End Of IRQ for Processor 0 */
1031a47a12beSStefan Roese 	u8	res150[130892];
1032a47a12beSStefan Roese } ccsr_pic_t;
1033a47a12beSStefan Roese 
1034a47a12beSStefan Roese /* CPM Block */
1035a47a12beSStefan Roese #ifndef CONFIG_CPM2
1036a47a12beSStefan Roese typedef struct ccsr_cpm {
1037a47a12beSStefan Roese 	u8 res[262144];
1038a47a12beSStefan Roese } ccsr_cpm_t;
1039a47a12beSStefan Roese #else
1040a47a12beSStefan Roese /*
1041a47a12beSStefan Roese  * DPARM
1042a47a12beSStefan Roese  * General SIU
1043a47a12beSStefan Roese  */
1044a47a12beSStefan Roese typedef struct ccsr_cpm_siu {
1045a47a12beSStefan Roese 	u8	res1[80];
1046a47a12beSStefan Roese 	u32	smaer;
1047a47a12beSStefan Roese 	u32	smser;
1048a47a12beSStefan Roese 	u32	smevr;
1049a47a12beSStefan Roese 	u8	res2[4];
1050a47a12beSStefan Roese 	u32	lmaer;
1051a47a12beSStefan Roese 	u32	lmser;
1052a47a12beSStefan Roese 	u32	lmevr;
1053a47a12beSStefan Roese 	u8	res3[2964];
1054a47a12beSStefan Roese } ccsr_cpm_siu_t;
1055a47a12beSStefan Roese 
1056a47a12beSStefan Roese /* IRQ Controller */
1057a47a12beSStefan Roese typedef struct ccsr_cpm_intctl {
1058a47a12beSStefan Roese 	u16	sicr;
1059a47a12beSStefan Roese 	u8	res1[2];
1060a47a12beSStefan Roese 	u32	sivec;
1061a47a12beSStefan Roese 	u32	sipnrh;
1062a47a12beSStefan Roese 	u32	sipnrl;
1063a47a12beSStefan Roese 	u32	siprr;
1064a47a12beSStefan Roese 	u32	scprrh;
1065a47a12beSStefan Roese 	u32	scprrl;
1066a47a12beSStefan Roese 	u32	simrh;
1067a47a12beSStefan Roese 	u32	simrl;
1068a47a12beSStefan Roese 	u32	siexr;
1069a47a12beSStefan Roese 	u8	res2[88];
1070a47a12beSStefan Roese 	u32	sccr;
1071a47a12beSStefan Roese 	u8	res3[124];
1072a47a12beSStefan Roese } ccsr_cpm_intctl_t;
1073a47a12beSStefan Roese 
1074a47a12beSStefan Roese /* input/output port */
1075a47a12beSStefan Roese typedef struct ccsr_cpm_iop {
1076a47a12beSStefan Roese 	u32	pdira;
1077a47a12beSStefan Roese 	u32	ppara;
1078a47a12beSStefan Roese 	u32	psora;
1079a47a12beSStefan Roese 	u32	podra;
1080a47a12beSStefan Roese 	u32	pdata;
1081a47a12beSStefan Roese 	u8	res1[12];
1082a47a12beSStefan Roese 	u32	pdirb;
1083a47a12beSStefan Roese 	u32	pparb;
1084a47a12beSStefan Roese 	u32	psorb;
1085a47a12beSStefan Roese 	u32	podrb;
1086a47a12beSStefan Roese 	u32	pdatb;
1087a47a12beSStefan Roese 	u8	res2[12];
1088a47a12beSStefan Roese 	u32	pdirc;
1089a47a12beSStefan Roese 	u32	pparc;
1090a47a12beSStefan Roese 	u32	psorc;
1091a47a12beSStefan Roese 	u32	podrc;
1092a47a12beSStefan Roese 	u32	pdatc;
1093a47a12beSStefan Roese 	u8	res3[12];
1094a47a12beSStefan Roese 	u32	pdird;
1095a47a12beSStefan Roese 	u32	ppard;
1096a47a12beSStefan Roese 	u32	psord;
1097a47a12beSStefan Roese 	u32	podrd;
1098a47a12beSStefan Roese 	u32	pdatd;
1099a47a12beSStefan Roese 	u8	res4[12];
1100a47a12beSStefan Roese } ccsr_cpm_iop_t;
1101a47a12beSStefan Roese 
1102a47a12beSStefan Roese /* CPM timers */
1103a47a12beSStefan Roese typedef struct ccsr_cpm_timer {
1104a47a12beSStefan Roese 	u8	tgcr1;
1105a47a12beSStefan Roese 	u8	res1[3];
1106a47a12beSStefan Roese 	u8	tgcr2;
1107a47a12beSStefan Roese 	u8	res2[11];
1108a47a12beSStefan Roese 	u16	tmr1;
1109a47a12beSStefan Roese 	u16	tmr2;
1110a47a12beSStefan Roese 	u16	trr1;
1111a47a12beSStefan Roese 	u16	trr2;
1112a47a12beSStefan Roese 	u16	tcr1;
1113a47a12beSStefan Roese 	u16	tcr2;
1114a47a12beSStefan Roese 	u16	tcn1;
1115a47a12beSStefan Roese 	u16	tcn2;
1116a47a12beSStefan Roese 	u16	tmr3;
1117a47a12beSStefan Roese 	u16	tmr4;
1118a47a12beSStefan Roese 	u16	trr3;
1119a47a12beSStefan Roese 	u16	trr4;
1120a47a12beSStefan Roese 	u16	tcr3;
1121a47a12beSStefan Roese 	u16	tcr4;
1122a47a12beSStefan Roese 	u16	tcn3;
1123a47a12beSStefan Roese 	u16	tcn4;
1124a47a12beSStefan Roese 	u16	ter1;
1125a47a12beSStefan Roese 	u16	ter2;
1126a47a12beSStefan Roese 	u16	ter3;
1127a47a12beSStefan Roese 	u16	ter4;
1128a47a12beSStefan Roese 	u8	res3[608];
1129a47a12beSStefan Roese } ccsr_cpm_timer_t;
1130a47a12beSStefan Roese 
1131a47a12beSStefan Roese /* SDMA */
1132a47a12beSStefan Roese typedef struct ccsr_cpm_sdma {
1133a47a12beSStefan Roese 	u8	sdsr;
1134a47a12beSStefan Roese 	u8	res1[3];
1135a47a12beSStefan Roese 	u8	sdmr;
1136a47a12beSStefan Roese 	u8	res2[739];
1137a47a12beSStefan Roese } ccsr_cpm_sdma_t;
1138a47a12beSStefan Roese 
1139a47a12beSStefan Roese /* FCC1 */
1140a47a12beSStefan Roese typedef struct ccsr_cpm_fcc1 {
1141a47a12beSStefan Roese 	u32	gfmr;
1142a47a12beSStefan Roese 	u32	fpsmr;
1143a47a12beSStefan Roese 	u16	ftodr;
1144a47a12beSStefan Roese 	u8	res1[2];
1145a47a12beSStefan Roese 	u16	fdsr;
1146a47a12beSStefan Roese 	u8	res2[2];
1147a47a12beSStefan Roese 	u16	fcce;
1148a47a12beSStefan Roese 	u8	res3[2];
1149a47a12beSStefan Roese 	u16	fccm;
1150a47a12beSStefan Roese 	u8	res4[2];
1151a47a12beSStefan Roese 	u8	fccs;
1152a47a12beSStefan Roese 	u8	res5[3];
1153a47a12beSStefan Roese 	u8	ftirr_phy[4];
1154a47a12beSStefan Roese } ccsr_cpm_fcc1_t;
1155a47a12beSStefan Roese 
1156a47a12beSStefan Roese /* FCC2 */
1157a47a12beSStefan Roese typedef struct ccsr_cpm_fcc2 {
1158a47a12beSStefan Roese 	u32	gfmr;
1159a47a12beSStefan Roese 	u32	fpsmr;
1160a47a12beSStefan Roese 	u16	ftodr;
1161a47a12beSStefan Roese 	u8	res1[2];
1162a47a12beSStefan Roese 	u16	fdsr;
1163a47a12beSStefan Roese 	u8	res2[2];
1164a47a12beSStefan Roese 	u16	fcce;
1165a47a12beSStefan Roese 	u8	res3[2];
1166a47a12beSStefan Roese 	u16	fccm;
1167a47a12beSStefan Roese 	u8	res4[2];
1168a47a12beSStefan Roese 	u8	fccs;
1169a47a12beSStefan Roese 	u8	res5[3];
1170a47a12beSStefan Roese 	u8	ftirr_phy[4];
1171a47a12beSStefan Roese } ccsr_cpm_fcc2_t;
1172a47a12beSStefan Roese 
1173a47a12beSStefan Roese /* FCC3 */
1174a47a12beSStefan Roese typedef struct ccsr_cpm_fcc3 {
1175a47a12beSStefan Roese 	u32	gfmr;
1176a47a12beSStefan Roese 	u32	fpsmr;
1177a47a12beSStefan Roese 	u16	ftodr;
1178a47a12beSStefan Roese 	u8	res1[2];
1179a47a12beSStefan Roese 	u16	fdsr;
1180a47a12beSStefan Roese 	u8	res2[2];
1181a47a12beSStefan Roese 	u16	fcce;
1182a47a12beSStefan Roese 	u8	res3[2];
1183a47a12beSStefan Roese 	u16	fccm;
1184a47a12beSStefan Roese 	u8	res4[2];
1185a47a12beSStefan Roese 	u8	fccs;
1186a47a12beSStefan Roese 	u8	res5[3];
1187a47a12beSStefan Roese 	u8	res[36];
1188a47a12beSStefan Roese } ccsr_cpm_fcc3_t;
1189a47a12beSStefan Roese 
1190a47a12beSStefan Roese /* FCC1 extended */
1191a47a12beSStefan Roese typedef struct ccsr_cpm_fcc1_ext {
1192a47a12beSStefan Roese 	u32	firper;
1193a47a12beSStefan Roese 	u32	firer;
1194a47a12beSStefan Roese 	u32	firsr_h;
1195a47a12beSStefan Roese 	u32	firsr_l;
1196a47a12beSStefan Roese 	u8	gfemr;
1197a47a12beSStefan Roese 	u8	res[15];
1198a47a12beSStefan Roese 
1199a47a12beSStefan Roese } ccsr_cpm_fcc1_ext_t;
1200a47a12beSStefan Roese 
1201a47a12beSStefan Roese /* FCC2 extended */
1202a47a12beSStefan Roese typedef struct ccsr_cpm_fcc2_ext {
1203a47a12beSStefan Roese 	u32	firper;
1204a47a12beSStefan Roese 	u32	firer;
1205a47a12beSStefan Roese 	u32	firsr_h;
1206a47a12beSStefan Roese 	u32	firsr_l;
1207a47a12beSStefan Roese 	u8	gfemr;
1208a47a12beSStefan Roese 	u8	res[31];
1209a47a12beSStefan Roese } ccsr_cpm_fcc2_ext_t;
1210a47a12beSStefan Roese 
1211a47a12beSStefan Roese /* FCC3 extended */
1212a47a12beSStefan Roese typedef struct ccsr_cpm_fcc3_ext {
1213a47a12beSStefan Roese 	u8	gfemr;
1214a47a12beSStefan Roese 	u8	res[47];
1215a47a12beSStefan Roese } ccsr_cpm_fcc3_ext_t;
1216a47a12beSStefan Roese 
1217a47a12beSStefan Roese /* TC layers */
1218a47a12beSStefan Roese typedef struct ccsr_cpm_tmp1 {
1219a47a12beSStefan Roese 	u8	res[496];
1220a47a12beSStefan Roese } ccsr_cpm_tmp1_t;
1221a47a12beSStefan Roese 
1222a47a12beSStefan Roese /* BRGs:5,6,7,8 */
1223a47a12beSStefan Roese typedef struct ccsr_cpm_brg2 {
1224a47a12beSStefan Roese 	u32	brgc5;
1225a47a12beSStefan Roese 	u32	brgc6;
1226a47a12beSStefan Roese 	u32	brgc7;
1227a47a12beSStefan Roese 	u32	brgc8;
1228a47a12beSStefan Roese 	u8	res[608];
1229a47a12beSStefan Roese } ccsr_cpm_brg2_t;
1230a47a12beSStefan Roese 
1231a47a12beSStefan Roese /* I2C */
1232a47a12beSStefan Roese typedef struct ccsr_cpm_i2c {
1233a47a12beSStefan Roese 	u8	i2mod;
1234a47a12beSStefan Roese 	u8	res1[3];
1235a47a12beSStefan Roese 	u8	i2add;
1236a47a12beSStefan Roese 	u8	res2[3];
1237a47a12beSStefan Roese 	u8	i2brg;
1238a47a12beSStefan Roese 	u8	res3[3];
1239a47a12beSStefan Roese 	u8	i2com;
1240a47a12beSStefan Roese 	u8	res4[3];
1241a47a12beSStefan Roese 	u8	i2cer;
1242a47a12beSStefan Roese 	u8	res5[3];
1243a47a12beSStefan Roese 	u8	i2cmr;
1244a47a12beSStefan Roese 	u8	res6[331];
1245a47a12beSStefan Roese } ccsr_cpm_i2c_t;
1246a47a12beSStefan Roese 
1247a47a12beSStefan Roese /* CPM core */
1248a47a12beSStefan Roese typedef struct ccsr_cpm_cp {
1249a47a12beSStefan Roese 	u32	cpcr;
1250a47a12beSStefan Roese 	u32	rccr;
1251a47a12beSStefan Roese 	u8	res1[14];
1252a47a12beSStefan Roese 	u16	rter;
1253a47a12beSStefan Roese 	u8	res2[2];
1254a47a12beSStefan Roese 	u16	rtmr;
1255a47a12beSStefan Roese 	u16	rtscr;
1256a47a12beSStefan Roese 	u8	res3[2];
1257a47a12beSStefan Roese 	u32	rtsr;
1258a47a12beSStefan Roese 	u8	res4[12];
1259a47a12beSStefan Roese } ccsr_cpm_cp_t;
1260a47a12beSStefan Roese 
1261a47a12beSStefan Roese /* BRGs:1,2,3,4 */
1262a47a12beSStefan Roese typedef struct ccsr_cpm_brg1 {
1263a47a12beSStefan Roese 	u32	brgc1;
1264a47a12beSStefan Roese 	u32	brgc2;
1265a47a12beSStefan Roese 	u32	brgc3;
1266a47a12beSStefan Roese 	u32	brgc4;
1267a47a12beSStefan Roese } ccsr_cpm_brg1_t;
1268a47a12beSStefan Roese 
1269a47a12beSStefan Roese /* SCC1-SCC4 */
1270a47a12beSStefan Roese typedef struct ccsr_cpm_scc {
1271a47a12beSStefan Roese 	u32	gsmrl;
1272a47a12beSStefan Roese 	u32	gsmrh;
1273a47a12beSStefan Roese 	u16	psmr;
1274a47a12beSStefan Roese 	u8	res1[2];
1275a47a12beSStefan Roese 	u16	todr;
1276a47a12beSStefan Roese 	u16	dsr;
1277a47a12beSStefan Roese 	u16	scce;
1278a47a12beSStefan Roese 	u8	res2[2];
1279a47a12beSStefan Roese 	u16	sccm;
1280a47a12beSStefan Roese 	u8	res3;
1281a47a12beSStefan Roese 	u8	sccs;
1282a47a12beSStefan Roese 	u8	res4[8];
1283a47a12beSStefan Roese } ccsr_cpm_scc_t;
1284a47a12beSStefan Roese 
1285a47a12beSStefan Roese typedef struct ccsr_cpm_tmp2 {
1286a47a12beSStefan Roese 	u8	res[32];
1287a47a12beSStefan Roese } ccsr_cpm_tmp2_t;
1288a47a12beSStefan Roese 
1289a47a12beSStefan Roese /* SPI */
1290a47a12beSStefan Roese typedef struct ccsr_cpm_spi {
1291a47a12beSStefan Roese 	u16	spmode;
1292a47a12beSStefan Roese 	u8	res1[4];
1293a47a12beSStefan Roese 	u8	spie;
1294a47a12beSStefan Roese 	u8	res2[3];
1295a47a12beSStefan Roese 	u8	spim;
1296a47a12beSStefan Roese 	u8	res3[2];
1297a47a12beSStefan Roese 	u8	spcom;
1298a47a12beSStefan Roese 	u8	res4[82];
1299a47a12beSStefan Roese } ccsr_cpm_spi_t;
1300a47a12beSStefan Roese 
1301a47a12beSStefan Roese /* CPM MUX */
1302a47a12beSStefan Roese typedef struct ccsr_cpm_mux {
1303a47a12beSStefan Roese 	u8	cmxsi1cr;
1304a47a12beSStefan Roese 	u8	res1;
1305a47a12beSStefan Roese 	u8	cmxsi2cr;
1306a47a12beSStefan Roese 	u8	res2;
1307a47a12beSStefan Roese 	u32	cmxfcr;
1308a47a12beSStefan Roese 	u32	cmxscr;
1309a47a12beSStefan Roese 	u8	res3[2];
1310a47a12beSStefan Roese 	u16	cmxuar;
1311a47a12beSStefan Roese 	u8	res4[16];
1312a47a12beSStefan Roese } ccsr_cpm_mux_t;
1313a47a12beSStefan Roese 
1314a47a12beSStefan Roese /* SI,MCC,etc */
1315a47a12beSStefan Roese typedef struct ccsr_cpm_tmp3 {
1316a47a12beSStefan Roese 	u8 res[58592];
1317a47a12beSStefan Roese } ccsr_cpm_tmp3_t;
1318a47a12beSStefan Roese 
1319a47a12beSStefan Roese typedef struct ccsr_cpm_iram {
1320a47a12beSStefan Roese 	u32	iram[8192];
1321a47a12beSStefan Roese 	u8	res[98304];
1322a47a12beSStefan Roese } ccsr_cpm_iram_t;
1323a47a12beSStefan Roese 
1324a47a12beSStefan Roese typedef struct ccsr_cpm {
1325a47a12beSStefan Roese 	/* Some references are into the unique & known dpram spaces,
1326a47a12beSStefan Roese 	 * others are from the generic base.
1327a47a12beSStefan Roese 	 */
1328a47a12beSStefan Roese #define im_dprambase		im_dpram1
1329a47a12beSStefan Roese 	u8			im_dpram1[16*1024];
1330a47a12beSStefan Roese 	u8			res1[16*1024];
1331a47a12beSStefan Roese 	u8			im_dpram2[16*1024];
1332a47a12beSStefan Roese 	u8			res2[16*1024];
1333a47a12beSStefan Roese 	ccsr_cpm_siu_t		im_cpm_siu; /* SIU Configuration */
1334a47a12beSStefan Roese 	ccsr_cpm_intctl_t	im_cpm_intctl; /* IRQ Controller */
1335a47a12beSStefan Roese 	ccsr_cpm_iop_t		im_cpm_iop; /* IO Port control/status */
1336a47a12beSStefan Roese 	ccsr_cpm_timer_t	im_cpm_timer; /* CPM timers */
1337a47a12beSStefan Roese 	ccsr_cpm_sdma_t		im_cpm_sdma; /* SDMA control/status */
1338a47a12beSStefan Roese 	ccsr_cpm_fcc1_t		im_cpm_fcc1;
1339a47a12beSStefan Roese 	ccsr_cpm_fcc2_t		im_cpm_fcc2;
1340a47a12beSStefan Roese 	ccsr_cpm_fcc3_t		im_cpm_fcc3;
1341a47a12beSStefan Roese 	ccsr_cpm_fcc1_ext_t	im_cpm_fcc1_ext;
1342a47a12beSStefan Roese 	ccsr_cpm_fcc2_ext_t	im_cpm_fcc2_ext;
1343a47a12beSStefan Roese 	ccsr_cpm_fcc3_ext_t	im_cpm_fcc3_ext;
1344a47a12beSStefan Roese 	ccsr_cpm_tmp1_t		im_cpm_tmp1;
1345a47a12beSStefan Roese 	ccsr_cpm_brg2_t		im_cpm_brg2;
1346a47a12beSStefan Roese 	ccsr_cpm_i2c_t		im_cpm_i2c;
1347a47a12beSStefan Roese 	ccsr_cpm_cp_t		im_cpm_cp;
1348a47a12beSStefan Roese 	ccsr_cpm_brg1_t		im_cpm_brg1;
1349a47a12beSStefan Roese 	ccsr_cpm_scc_t		im_cpm_scc[4];
1350a47a12beSStefan Roese 	ccsr_cpm_tmp2_t		im_cpm_tmp2;
1351a47a12beSStefan Roese 	ccsr_cpm_spi_t		im_cpm_spi;
1352a47a12beSStefan Roese 	ccsr_cpm_mux_t		im_cpm_mux;
1353a47a12beSStefan Roese 	ccsr_cpm_tmp3_t		im_cpm_tmp3;
1354a47a12beSStefan Roese 	ccsr_cpm_iram_t		im_cpm_iram;
1355a47a12beSStefan Roese } ccsr_cpm_t;
1356a47a12beSStefan Roese #endif
1357a47a12beSStefan Roese 
13587d67ed58SLiu Gang #ifdef CONFIG_SYS_SRIO
13597d67ed58SLiu Gang /* Architectural regsiters */
13607d67ed58SLiu Gang struct rio_arch {
13617d67ed58SLiu Gang 	u32	didcar;	/* Device Identity CAR */
13627d67ed58SLiu Gang 	u32	dicar;	/* Device Information CAR */
13637d67ed58SLiu Gang 	u32	aidcar;	/* Assembly Identity CAR */
13647d67ed58SLiu Gang 	u32	aicar;	/* Assembly Information CAR */
13657d67ed58SLiu Gang 	u32	pefcar;	/* Processing Element Features CAR */
13667d67ed58SLiu Gang 	u8	res0[4];
13677d67ed58SLiu Gang 	u32	socar;	/* Source Operations CAR */
13687d67ed58SLiu Gang 	u32	docar;	/* Destination Operations CAR */
1369a47a12beSStefan Roese 	u8	res1[32];
13707d67ed58SLiu Gang 	u32	mcsr;	/* Mailbox CSR */
13717d67ed58SLiu Gang 	u32	pwdcsr;	/* Port-Write and Doorbell CSR */
1372a47a12beSStefan Roese 	u8	res2[4];
1373a47a12beSStefan Roese 	u32	pellccsr;	/* Processing Element Logic Layer CCSR */
1374a47a12beSStefan Roese 	u8	res3[12];
13757d67ed58SLiu Gang 	u32	lcsbacsr;	/* Local Configuration Space BACSR */
13767d67ed58SLiu Gang 	u32	bdidcsr;	/* Base Device ID CSR */
1377a47a12beSStefan Roese 	u8	res4[4];
13787d67ed58SLiu Gang 	u32	hbdidlcsr;	/* Host Base Device ID Lock CSR */
13797d67ed58SLiu Gang 	u32	ctcsr;	/* Component Tag CSR */
13807d67ed58SLiu Gang };
13817d67ed58SLiu Gang 
13827d67ed58SLiu Gang /* Extended Features Space: 1x/4x LP-Serial Port registers */
13837d67ed58SLiu Gang struct rio_lp_serial_port {
13847d67ed58SLiu Gang 	u32	plmreqcsr;	/* Port Link Maintenance Request CSR */
13857d67ed58SLiu Gang 	u32	plmrespcsr;	/* Port Link Maintenance Response CS */
13867d67ed58SLiu Gang 	u32	plascsr;	/* Port Local Ackid Status CSR */
13877d67ed58SLiu Gang 	u8	res0[12];
13887d67ed58SLiu Gang 	u32	pescsr;	/* Port Error and Status CSR */
13897d67ed58SLiu Gang 	u32	pccsr;	/* Port Control CSR */
13907d67ed58SLiu Gang };
13917d67ed58SLiu Gang 
13927d67ed58SLiu Gang /* Extended Features Space: 1x/4x LP-Serial registers */
13937d67ed58SLiu Gang struct rio_lp_serial {
13947d67ed58SLiu Gang 	u32	pmbh0csr;	/* Port Maintenance Block Header 0 CSR */
13957d67ed58SLiu Gang 	u8	res0[28];
13967d67ed58SLiu Gang 	u32	pltoccsr;	/* Port Link Time-out CCSR */
13977d67ed58SLiu Gang 	u32	prtoccsr;	/* Port Response Time-out CCSR */
13987d67ed58SLiu Gang 	u8	res1[20];
13997d67ed58SLiu Gang 	u32	pgccsr;	/* Port General CSR */
14007d67ed58SLiu Gang 	struct rio_lp_serial_port	port[CONFIG_SYS_FSL_SRIO_MAX_PORTS];
14017d67ed58SLiu Gang };
14027d67ed58SLiu Gang 
14037d67ed58SLiu Gang /* Logical error reporting registers */
14047d67ed58SLiu Gang struct rio_logical_err {
14057d67ed58SLiu Gang 	u32	erbh;	/* Error Reporting Block Header Register */
14067d67ed58SLiu Gang 	u8	res0[4];
14077d67ed58SLiu Gang 	u32	ltledcsr;	/* Logical/Transport layer error DCSR */
14087d67ed58SLiu Gang 	u32	ltleecsr;	/* Logical/Transport layer error ECSR */
14097d67ed58SLiu Gang 	u8	res1[4];
14107d67ed58SLiu Gang 	u32	ltlaccsr;	/* Logical/Transport layer ACCSR */
14117d67ed58SLiu Gang 	u32	ltldidccsr;	/* Logical/Transport layer DID CCSR */
14127d67ed58SLiu Gang 	u32	ltlcccsr;	/* Logical/Transport layer control CCSR */
14137d67ed58SLiu Gang };
14147d67ed58SLiu Gang 
14157d67ed58SLiu Gang /* Physical error reporting port registers */
14167d67ed58SLiu Gang struct rio_phys_err_port {
14177d67ed58SLiu Gang 	u32	edcsr;	/* Port error detect CSR */
14187d67ed58SLiu Gang 	u32	erecsr;	/* Port error rate enable CSR */
14197d67ed58SLiu Gang 	u32	ecacsr;	/* Port error capture attributes CSR */
14207d67ed58SLiu Gang 	u32	pcseccsr0;	/* Port packet/control symbol ECCSR 0 */
14217d67ed58SLiu Gang 	u32	peccsr[3];	/* Port error capture CSR */
14227d67ed58SLiu Gang 	u8	res0[12];
14237d67ed58SLiu Gang 	u32	ercsr;	/* Port error rate CSR */
14247d67ed58SLiu Gang 	u32	ertcsr;	/* Port error rate threshold CSR */
14257d67ed58SLiu Gang 	u8	res1[16];
14267d67ed58SLiu Gang };
14277d67ed58SLiu Gang 
14287d67ed58SLiu Gang /* Physical error reporting registers */
14297d67ed58SLiu Gang struct rio_phys_err {
14307d67ed58SLiu Gang 	struct rio_phys_err_port	port[CONFIG_SYS_FSL_SRIO_MAX_PORTS];
14317d67ed58SLiu Gang };
14327d67ed58SLiu Gang 
14337d67ed58SLiu Gang /* Implementation Space: General Port-Common */
14347d67ed58SLiu Gang struct rio_impl_common {
14357d67ed58SLiu Gang 	u8	res0[4];
14367d67ed58SLiu Gang 	u32	llcr;	/* Logical Layer Configuration Register */
14377d67ed58SLiu Gang 	u8	res1[8];
14387d67ed58SLiu Gang 	u32	epwisr;	/* Error / Port-Write Interrupt SR */
14397d67ed58SLiu Gang 	u8	res2[12];
14407d67ed58SLiu Gang 	u32	lretcr;	/* Logical Retry Error Threshold CR */
14417d67ed58SLiu Gang 	u8	res3[92];
14427d67ed58SLiu Gang 	u32	pretcr;	/* Physical Retry Erorr Threshold CR */
14437d67ed58SLiu Gang 	u8	res4[124];
14447d67ed58SLiu Gang };
14457d67ed58SLiu Gang 
14467d67ed58SLiu Gang /* Implementation Space: Port Specific */
14477d67ed58SLiu Gang struct rio_impl_port_spec {
14487d67ed58SLiu Gang 	u32	adidcsr;	/* Port Alt. Device ID CSR */
14497d67ed58SLiu Gang 	u8	res0[28];
14507d67ed58SLiu Gang 	u32	ptaacr;	/* Port Pass-Through/Accept-All CR */
14517d67ed58SLiu Gang 	u32	lopttlcr;
14527d67ed58SLiu Gang 	u8	res1[8];
14537d67ed58SLiu Gang 	u32	iecsr;	/* Port Implementation Error CSR */
14547d67ed58SLiu Gang 	u8	res2[12];
14557d67ed58SLiu Gang 	u32	pcr;		/* Port Phsyical Configuration Register */
14567d67ed58SLiu Gang 	u8	res3[20];
14577d67ed58SLiu Gang 	u32	slcsr;	/* Port Serial Link CSR */
14587d67ed58SLiu Gang 	u8	res4[4];
14597d67ed58SLiu Gang 	u32	sleicr;	/* Port Serial Link Error Injection */
14607d67ed58SLiu Gang 	u32	a0txcr;	/* Port Arbitration 0 Tx CR */
14617d67ed58SLiu Gang 	u32	a1txcr;	/* Port Arbitration 1 Tx CR */
14627d67ed58SLiu Gang 	u32	a2txcr;	/* Port Arbitration 2 Tx CR */
14637d67ed58SLiu Gang 	u32	mreqtxbacr[3];	/* Port Request Tx Buffer ACR */
14647d67ed58SLiu Gang 	u32	mrspfctxbacr;	/* Port Response/Flow Control Tx Buffer ACR */
14657d67ed58SLiu Gang };
14667d67ed58SLiu Gang 
14677d67ed58SLiu Gang /* Implementation Space: register */
14687d67ed58SLiu Gang struct rio_implement {
14697d67ed58SLiu Gang 	struct rio_impl_common	com;
14707d67ed58SLiu Gang 	struct rio_impl_port_spec	port[CONFIG_SYS_FSL_SRIO_MAX_PORTS];
14717d67ed58SLiu Gang };
14727d67ed58SLiu Gang 
14737d67ed58SLiu Gang /* Revision Control Register */
14747d67ed58SLiu Gang struct rio_rev_ctrl {
14757d67ed58SLiu Gang 	u32	ipbrr[2];	/* IP Block Revision Register */
14767d67ed58SLiu Gang };
14777d67ed58SLiu Gang 
14787d67ed58SLiu Gang struct rio_atmu_row {
14797d67ed58SLiu Gang 	u32	rowtar; /* RapidIO Outbound Window TAR */
14807d67ed58SLiu Gang 	u32	rowtear; /* RapidIO Outbound Window TEAR */
14817d67ed58SLiu Gang 	u32	rowbar;
14827d67ed58SLiu Gang 	u8	res0[4];
14837d67ed58SLiu Gang 	u32	rowar; /* RapidIO Outbound Attributes Register */
14847d67ed58SLiu Gang 	u32	rowsr[3]; /* Port RapidIO outbound window segment register */
14857d67ed58SLiu Gang };
14867d67ed58SLiu Gang 
14877d67ed58SLiu Gang struct rio_atmu_riw {
14887d67ed58SLiu Gang 	u32	riwtar; /* RapidIO Inbound Window Translation AR */
14897d67ed58SLiu Gang 	u8	res0[4];
14907d67ed58SLiu Gang 	u32	riwbar; /* RapidIO Inbound Window Base AR */
14917d67ed58SLiu Gang 	u8	res1[4];
14927d67ed58SLiu Gang 	u32	riwar; /* RapidIO Inbound Attributes Register */
14937d67ed58SLiu Gang 	u8	res2[12];
14947d67ed58SLiu Gang };
14957d67ed58SLiu Gang 
14967d67ed58SLiu Gang /* ATMU window registers */
14977d67ed58SLiu Gang struct rio_atmu_win {
14987d67ed58SLiu Gang 	struct rio_atmu_row	outbw[CONFIG_SYS_FSL_SRIO_OB_WIN_NUM];
14997d67ed58SLiu Gang 	u8	res0[64];
15007d67ed58SLiu Gang 	struct rio_atmu_riw	inbw[CONFIG_SYS_FSL_SRIO_IB_WIN_NUM];
15017d67ed58SLiu Gang };
15027d67ed58SLiu Gang 
15037d67ed58SLiu Gang struct rio_atmu {
15047d67ed58SLiu Gang 	struct rio_atmu_win	port[CONFIG_SYS_FSL_SRIO_MAX_PORTS];
15057d67ed58SLiu Gang };
15067d67ed58SLiu Gang 
15077d67ed58SLiu Gang #ifdef CONFIG_SYS_FSL_RMU
15087d67ed58SLiu Gang struct rio_msg {
15097d67ed58SLiu Gang 	u32	omr; /* Outbound Mode Register */
15107d67ed58SLiu Gang 	u32	osr; /* Outbound Status Register */
15117d67ed58SLiu Gang 	u32	eodqdpar; /* Extended Outbound DQ DPAR */
15127d67ed58SLiu Gang 	u32	odqdpar; /* Outbound Descriptor Queue DPAR */
15137d67ed58SLiu Gang 	u32	eosar; /* Extended Outbound Unit Source AR */
15147d67ed58SLiu Gang 	u32	osar; /* Outbound Unit Source AR */
15157d67ed58SLiu Gang 	u32	odpr; /* Outbound Destination Port Register */
15167d67ed58SLiu Gang 	u32	odatr; /* Outbound Destination Attributes Register */
15177d67ed58SLiu Gang 	u32	odcr; /* Outbound Doubleword Count Register */
15187d67ed58SLiu Gang 	u32	eodqepar; /* Extended Outbound DQ EPAR */
15197d67ed58SLiu Gang 	u32	odqepar; /* Outbound Descriptor Queue EPAR */
15207d67ed58SLiu Gang 	u32	oretr; /* Outbound Retry Error Threshold Register */
15217d67ed58SLiu Gang 	u32	omgr; /* Outbound Multicast Group Register */
15227d67ed58SLiu Gang 	u32	omlr; /* Outbound Multicast List Register */
15237d67ed58SLiu Gang 	u8	res0[40];
15247d67ed58SLiu Gang 	u32	imr;	 /* Outbound Mode Register */
15257d67ed58SLiu Gang 	u32	isr; /* Inbound Status Register */
15267d67ed58SLiu Gang 	u32	eidqdpar; /* Extended Inbound Descriptor Queue DPAR */
15277d67ed58SLiu Gang 	u32	idqdpar; /* Inbound Descriptor Queue DPAR */
15287d67ed58SLiu Gang 	u32	eifqepar; /* Extended Inbound Frame Queue EPAR */
15297d67ed58SLiu Gang 	u32	ifqepar; /* Inbound Frame Queue EPAR */
15307d67ed58SLiu Gang 	u32	imirir; /* Inbound Maximum Interrutp RIR */
15317d67ed58SLiu Gang 	u8	res1[4];
15327d67ed58SLiu Gang 	u32 eihqepar; /* Extended inbound message header queue EPAR */
15337d67ed58SLiu Gang 	u32 ihqepar; /* Inbound message header queue EPAR */
15347d67ed58SLiu Gang 	u8	res2[120];
15357d67ed58SLiu Gang };
15367d67ed58SLiu Gang 
15377d67ed58SLiu Gang struct rio_dbell {
15387d67ed58SLiu Gang 	u32	odmr; /* Outbound Doorbell Mode Register */
15397d67ed58SLiu Gang 	u32	odsr; /* Outbound Doorbell Status Register */
15407d67ed58SLiu Gang 	u8	res0[16];
15417d67ed58SLiu Gang 	u32	oddpr; /* Outbound Doorbell Destination Port */
15427d67ed58SLiu Gang 	u32	oddatr; /* Outbound Doorbell Destination AR */
15437d67ed58SLiu Gang 	u8	res1[12];
15447d67ed58SLiu Gang 	u32	oddretr; /* Outbound Doorbell Retry Threshold CR */
15457d67ed58SLiu Gang 	u8	res2[48];
15467d67ed58SLiu Gang 	u32	idmr; /* Inbound Doorbell Mode Register */
15477d67ed58SLiu Gang 	u32	idsr;	 /* Inbound Doorbell Status Register */
15487d67ed58SLiu Gang 	u32	iedqdpar; /* Extended Inbound Doorbell Queue DPAR */
15497d67ed58SLiu Gang 	u32	iqdpar; /* Inbound Doorbell Queue DPAR */
15507d67ed58SLiu Gang 	u32	iedqepar; /* Extended Inbound Doorbell Queue EPAR */
15517d67ed58SLiu Gang 	u32	idqepar; /* Inbound Doorbell Queue EPAR */
15527d67ed58SLiu Gang 	u32	idmirir; /* Inbound Doorbell Max Interrupt RIR */
15537d67ed58SLiu Gang };
15547d67ed58SLiu Gang 
15557d67ed58SLiu Gang struct rio_pw {
15567d67ed58SLiu Gang 	u32	pwmr; /* Port-Write Mode Register */
15577d67ed58SLiu Gang 	u32	pwsr; /* Port-Write Status Register */
15587d67ed58SLiu Gang 	u32	epwqbar; /* Extended Port-Write Queue BAR */
15597d67ed58SLiu Gang 	u32	pwqbar; /* Port-Write Queue Base Address Register */
15607d67ed58SLiu Gang };
15617d67ed58SLiu Gang #endif
15627d67ed58SLiu Gang 
15637d67ed58SLiu Gang /* RapidIO Registers */
15647d67ed58SLiu Gang struct ccsr_rio {
15657d67ed58SLiu Gang 	struct rio_arch	arch;
15667d67ed58SLiu Gang 	u8	res0[144];
15677d67ed58SLiu Gang 	struct rio_lp_serial	lp_serial;
15687d67ed58SLiu Gang 	u8	res1[1152];
15697d67ed58SLiu Gang 	struct rio_logical_err	logical_err;
15707d67ed58SLiu Gang 	u8	res2[32];
15717d67ed58SLiu Gang 	struct rio_phys_err	phys_err;
15727d67ed58SLiu Gang 	u8	res3[63808];
15737d67ed58SLiu Gang 	struct rio_implement	impl;
15747d67ed58SLiu Gang 	u8	res4[2552];
15757d67ed58SLiu Gang 	struct rio_rev_ctrl	rev;
15767d67ed58SLiu Gang 	struct rio_atmu	atmu;
15777d67ed58SLiu Gang #ifdef CONFIG_SYS_FSL_RMU
15787d67ed58SLiu Gang 	u8	res5[8192];
15797d67ed58SLiu Gang 	struct rio_msg	msg[CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM];
15807d67ed58SLiu Gang 	u8	res6[512];
15817d67ed58SLiu Gang 	struct rio_dbell	dbell;
15827d67ed58SLiu Gang 	u8	res7[100];
15837d67ed58SLiu Gang 	struct rio_pw	pw;
15847d67ed58SLiu Gang #endif
15857d67ed58SLiu Gang };
15867d67ed58SLiu Gang #endif
1587a47a12beSStefan Roese 
1588a47a12beSStefan Roese /* Quick Engine Block Pin Muxing Registers */
1589a47a12beSStefan Roese typedef struct par_io {
1590a47a12beSStefan Roese 	u32	cpodr;
1591a47a12beSStefan Roese 	u32	cpdat;
1592a47a12beSStefan Roese 	u32	cpdir1;
1593a47a12beSStefan Roese 	u32	cpdir2;
1594a47a12beSStefan Roese 	u32	cppar1;
1595a47a12beSStefan Roese 	u32	cppar2;
1596a47a12beSStefan Roese 	u8	res[8];
1597a47a12beSStefan Roese } par_io_t;
1598a47a12beSStefan Roese 
1599a47a12beSStefan Roese #ifdef CONFIG_SYS_FSL_CPC
1600a47a12beSStefan Roese /*
1601a47a12beSStefan Roese  * Define a single offset that is the start of all the CPC register
1602a47a12beSStefan Roese  * blocks - if there is more than one CPC, we expect these to be
1603a47a12beSStefan Roese  * contiguous 4k regions
1604a47a12beSStefan Roese  */
1605a47a12beSStefan Roese 
1606a47a12beSStefan Roese typedef struct cpc_corenet {
1607a47a12beSStefan Roese 	u32 	cpccsr0;	/* Config/status reg */
1608a47a12beSStefan Roese 	u32	res1;
1609a47a12beSStefan Roese 	u32	cpccfg0;	/* Configuration register */
1610a47a12beSStefan Roese 	u32	res2;
1611a47a12beSStefan Roese 	u32	cpcewcr0;	/* External Write reg 0 */
1612a47a12beSStefan Roese 	u32	cpcewabr0;	/* External write base reg 0 */
1613a47a12beSStefan Roese 	u32	res3[2];
1614a47a12beSStefan Roese 	u32	cpcewcr1;	/* External Write reg 1 */
1615a47a12beSStefan Roese 	u32	cpcewabr1;	/* External write base reg 1 */
1616a47a12beSStefan Roese 	u32	res4[54];
1617a47a12beSStefan Roese 	u32	cpcsrcr1;	/* SRAM control reg 1 */
1618a47a12beSStefan Roese 	u32	cpcsrcr0;	/* SRAM control reg 0 */
1619a47a12beSStefan Roese 	u32	res5[62];
1620a47a12beSStefan Roese 	struct {
1621a47a12beSStefan Roese 		u32	id;	/* partition ID */
1622a47a12beSStefan Roese 		u32	res;
1623a47a12beSStefan Roese 		u32	alloc;	/* partition allocation */
1624a47a12beSStefan Roese 		u32	way;	/* partition way */
1625a47a12beSStefan Roese 	} partition_regs[16];
1626a47a12beSStefan Roese 	u32	res6[704];
1627a47a12beSStefan Roese 	u32	cpcerrinjhi;	/* Error injection high */
1628a47a12beSStefan Roese 	u32	cpcerrinjlo;	/* Error injection lo */
1629a47a12beSStefan Roese 	u32	cpcerrinjctl;	/* Error injection control */
1630a47a12beSStefan Roese 	u32	res7[5];
1631a47a12beSStefan Roese 	u32	cpccaptdatahi;	/* capture data high */
1632a47a12beSStefan Roese 	u32	cpccaptdatalo;	/* capture data low */
1633a47a12beSStefan Roese 	u32	cpcaptecc;	/* capture ECC */
1634a47a12beSStefan Roese 	u32	res8[5];
1635a47a12beSStefan Roese 	u32	cpcerrdet;	/* error detect */
1636a47a12beSStefan Roese 	u32	cpcerrdis;	/* error disable */
1637a47a12beSStefan Roese 	u32	cpcerrinten;	/* errir interrupt enable */
1638a47a12beSStefan Roese 	u32	cpcerrattr;	/* error attribute */
1639a47a12beSStefan Roese 	u32	cpcerreaddr;	/* error extended address */
1640a47a12beSStefan Roese 	u32	cpcerraddr;	/* error address */
1641a47a12beSStefan Roese 	u32	cpcerrctl;	/* error control */
16423c6a22b9SKumar Gala 	u32	res9[41];	/* pad out to 4k */
16433c6a22b9SKumar Gala 	u32	cpchdbcr0;	/* hardware debug control register 0 */
16443c6a22b9SKumar Gala 	u32	res10[63];	/* pad out to 4k */
1645a47a12beSStefan Roese } cpc_corenet_t;
1646a47a12beSStefan Roese 
1647a47a12beSStefan Roese #define CPC_CSR0_CE	0x80000000	/* Cache Enable */
1648a47a12beSStefan Roese #define CPC_CSR0_PE	0x40000000	/* Enable ECC */
1649a47a12beSStefan Roese #define CPC_CSR0_FI	0x00200000	/* Cache Flash Invalidate */
1650a47a12beSStefan Roese #define CPC_CSR0_WT	0x00080000	/* Write-through mode */
1651a47a12beSStefan Roese #define CPC_CSR0_FL	0x00000800	/* Hardware cache flush */
1652a47a12beSStefan Roese #define CPC_CSR0_LFC	0x00000400	/* Cache Lock Flash Clear */
1653a47a12beSStefan Roese #define CPC_CFG0_SZ_MASK	0x00003fff
1654a47a12beSStefan Roese #define CPC_CFG0_SZ_K(x)	((x & CPC_CFG0_SZ_MASK) << 6)
1655a47a12beSStefan Roese #define CPC_CFG0_NUM_WAYS(x)	(((x >> 14) & 0x1f) + 1)
1656a47a12beSStefan Roese #define CPC_CFG0_LINE_SZ(x)	((((x >> 23) & 0x3) + 1) * 32)
1657a47a12beSStefan Roese #define CPC_SRCR1_SRBARU_MASK	0x0000ffff
1658a47a12beSStefan Roese #define CPC_SRCR1_SRBARU(x)	(((unsigned long long)x >> 32) \
1659a47a12beSStefan Roese 				 & CPC_SRCR1_SRBARU_MASK)
1660a47a12beSStefan Roese #define	CPC_SRCR0_SRBARL_MASK	0xffff8000
1661a47a12beSStefan Roese #define CPC_SRCR0_SRBARL(x)	(x & CPC_SRCR0_SRBARL_MASK)
1662a47a12beSStefan Roese #define CPC_SRCR0_INTLVEN	0x00000100
1663a47a12beSStefan Roese #define CPC_SRCR0_SRAMSZ_1_WAY	0x00000000
1664a47a12beSStefan Roese #define CPC_SRCR0_SRAMSZ_2_WAY	0x00000002
1665a47a12beSStefan Roese #define CPC_SRCR0_SRAMSZ_4_WAY	0x00000004
1666a47a12beSStefan Roese #define CPC_SRCR0_SRAMSZ_8_WAY	0x00000006
1667a47a12beSStefan Roese #define CPC_SRCR0_SRAMSZ_16_WAY	0x00000008
1668a47a12beSStefan Roese #define CPC_SRCR0_SRAMSZ_32_WAY	0x0000000a
1669a47a12beSStefan Roese #define CPC_SRCR0_SRAMEN	0x00000001
1670a47a12beSStefan Roese #define	CPC_ERRDIS_TMHITDIS  	0x00000080	/* multi-way hit disable */
16713c6a22b9SKumar Gala #define CPC_HDBCR0_CDQ_SPEC_DIS	0x08000000
16721d2c2a62SKumar Gala #define CPC_HDBCR0_TAG_ECC_SCRUB_DIS	0x01000000
1673868da593SKumar Gala #define CPC_HDBCR0_DATA_ECC_SCRUB_DIS	0x00400000
1674a47a12beSStefan Roese #endif /* CONFIG_SYS_FSL_CPC */
1675a47a12beSStefan Roese 
1676a47a12beSStefan Roese /* Global Utilities Block */
1677a47a12beSStefan Roese #ifdef CONFIG_FSL_CORENET
1678a47a12beSStefan Roese typedef struct ccsr_gur {
167945c18853SYork Sun 	u32	porsr1;		/* POR status 1 */
168045c18853SYork Sun 	u32	porsr2;		/* POR status 2 */
168145c18853SYork Sun 	u8	res_008[0x20-0x8];
1682a47a12beSStefan Roese 	u32	gpporcr1;	/* General-purpose POR configuration */
168345c18853SYork Sun 	u32	gpporcr2;	/* General-purpose POR configuration 2 */
168445c18853SYork Sun 	u32	dcfg_fusesr;	/* Fuse status register */
168545c18853SYork Sun #define FSL_CORENET_DCFG_FUSESR_VID_SHIFT	25
168645c18853SYork Sun #define FSL_CORENET_DCFG_FUSESR_VID_MASK	0x1F
168745c18853SYork Sun #define FSL_CORENET_DCFG_FUSESR_ALTVID_SHIFT	20
168845c18853SYork Sun #define FSL_CORENET_DCFG_FUSESR_ALTVID_MASK	0x1F
168945c18853SYork Sun 	u8	res_02c[0x70-0x2c];
1690a47a12beSStefan Roese 	u32	devdisr;	/* Device disable control */
16919e758758SYork Sun 	u32	devdisr2;	/* Device disable control 2 */
16929e758758SYork Sun 	u32	devdisr3;	/* Device disable control 3 */
16939e758758SYork Sun 	u32	devdisr4;	/* Device disable control 4 */
16949e758758SYork Sun #ifdef CONFIG_SYS_FSL_QORIQ_CHASSIS2
16959e758758SYork Sun 	u32	devdisr5;	/* Device disable control 5 */
16969e758758SYork Sun #define FSL_CORENET_DEVDISR_PBL	0x80000000
16979e758758SYork Sun #define FSL_CORENET_DEVDISR_PMAN	0x40000000
16989e758758SYork Sun #define FSL_CORENET_DEVDISR_ESDHC	0x20000000
16999e758758SYork Sun #define FSL_CORENET_DEVDISR_DMA1	0x00800000
17009e758758SYork Sun #define FSL_CORENET_DEVDISR_DMA2	0x00400000
17019e758758SYork Sun #define FSL_CORENET_DEVDISR_USB1	0x00080000
17029e758758SYork Sun #define FSL_CORENET_DEVDISR_USB2	0x00040000
17039e758758SYork Sun #define FSL_CORENET_DEVDISR_SATA1	0x00008000
17049e758758SYork Sun #define FSL_CORENET_DEVDISR_SATA2	0x00004000
17059e758758SYork Sun #define FSL_CORENET_DEVDISR_PME	0x00000800
17069e758758SYork Sun #define FSL_CORENET_DEVDISR_SEC	0x00000200
17079e758758SYork Sun #define FSL_CORENET_DEVDISR_RMU	0x00000080
17089e758758SYork Sun #define FSL_CORENET_DEVDISR_DCE	0x00000040
17099e758758SYork Sun #define FSL_CORENET_DEVDISR2_DTSEC1_1	0x80000000
17109e758758SYork Sun #define FSL_CORENET_DEVDISR2_DTSEC1_2	0x40000000
17119e758758SYork Sun #define FSL_CORENET_DEVDISR2_DTSEC1_3	0x20000000
17129e758758SYork Sun #define FSL_CORENET_DEVDISR2_DTSEC1_4	0x10000000
17139e758758SYork Sun #define FSL_CORENET_DEVDISR2_DTSEC1_5	0x08000000
17149e758758SYork Sun #define FSL_CORENET_DEVDISR2_DTSEC1_6	0x04000000
17159e758758SYork Sun #define FSL_CORENET_DEVDISR2_DTSEC1_9	0x00800000
17169e758758SYork Sun #define FSL_CORENET_DEVDISR2_DTSEC1_10	0x00400000
17179e758758SYork Sun #define FSL_CORENET_DEVDISR2_10GEC1_1	0x00800000
17189e758758SYork Sun #define FSL_CORENET_DEVDISR2_10GEC1_2	0x00400000
17199e758758SYork Sun #define FSL_CORENET_DEVDISR2_DTSEC2_1	0x00080000
17209e758758SYork Sun #define FSL_CORENET_DEVDISR2_DTSEC2_2	0x00040000
17219e758758SYork Sun #define FSL_CORENET_DEVDISR2_DTSEC2_3	0x00020000
17229e758758SYork Sun #define FSL_CORENET_DEVDISR2_DTSEC2_4	0x00010000
17239e758758SYork Sun #define FSL_CORENET_DEVDISR2_DTSEC2_5	0x00008000
17249e758758SYork Sun #define FSL_CORENET_DEVDISR2_DTSEC2_6	0x00004000
17259e758758SYork Sun #define FSL_CORENET_DEVDISR2_DTSEC2_9	0x00000800
17269e758758SYork Sun #define FSL_CORENET_DEVDISR2_DTSEC2_10	0x00000400
17279e758758SYork Sun #define FSL_CORENET_DEVDISR2_10GEC2_1	0x00000800
17289e758758SYork Sun #define FSL_CORENET_DEVDISR2_10GEC2_2	0x00000400
17299e758758SYork Sun #define FSL_CORENET_DEVDISR2_FM1	0x00000080
17309e758758SYork Sun #define FSL_CORENET_DEVDISR2_FM2	0x00000040
1731d2404141SYork Sun #define FSL_CORENET_DEVDISR2_CPRI	0x00000008
17329e758758SYork Sun #define FSL_CORENET_DEVDISR3_PCIE1	0x80000000
17339e758758SYork Sun #define FSL_CORENET_DEVDISR3_PCIE2	0x40000000
17349e758758SYork Sun #define FSL_CORENET_DEVDISR3_PCIE3	0x20000000
17359e758758SYork Sun #define FSL_CORENET_DEVDISR3_PCIE4	0x10000000
17369e758758SYork Sun #define FSL_CORENET_DEVDISR3_SRIO1	0x08000000
17379e758758SYork Sun #define FSL_CORENET_DEVDISR3_SRIO2	0x04000000
17389e758758SYork Sun #define FSL_CORENET_DEVDISR3_QMAN	0x00080000
17399e758758SYork Sun #define FSL_CORENET_DEVDISR3_BMAN	0x00040000
17409e758758SYork Sun #define FSL_CORENET_DEVDISR3_LA1	0x00008000
1741d2404141SYork Sun #define FSL_CORENET_DEVDISR3_MAPLE1	0x00000800
1742d2404141SYork Sun #define FSL_CORENET_DEVDISR3_MAPLE2	0x00000400
1743d2404141SYork Sun #define FSL_CORENET_DEVDISR3_MAPLE3	0x00000200
17449e758758SYork Sun #define FSL_CORENET_DEVDISR4_I2C1	0x80000000
17459e758758SYork Sun #define FSL_CORENET_DEVDISR4_I2C2	0x40000000
17469e758758SYork Sun #define FSL_CORENET_DEVDISR4_DUART1	0x20000000
17479e758758SYork Sun #define FSL_CORENET_DEVDISR4_DUART2	0x10000000
17489e758758SYork Sun #define FSL_CORENET_DEVDISR4_ESPI	0x08000000
17499e758758SYork Sun #define FSL_CORENET_DEVDISR5_DDR1	0x80000000
17509e758758SYork Sun #define FSL_CORENET_DEVDISR5_DDR2	0x40000000
17519e758758SYork Sun #define FSL_CORENET_DEVDISR5_DDR3	0x20000000
17529e758758SYork Sun #define FSL_CORENET_DEVDISR5_CPC1	0x08000000
17539e758758SYork Sun #define FSL_CORENET_DEVDISR5_CPC2	0x04000000
17549e758758SYork Sun #define FSL_CORENET_DEVDISR5_CPC3	0x02000000
17559e758758SYork Sun #define FSL_CORENET_DEVDISR5_IFC	0x00800000
17569e758758SYork Sun #define FSL_CORENET_DEVDISR5_GPIO	0x00400000
17579e758758SYork Sun #define FSL_CORENET_DEVDISR5_DBG	0x00200000
17589e758758SYork Sun #define FSL_CORENET_DEVDISR5_NAL	0x00100000
1759d2404141SYork Sun #define FSL_CORENET_DEVDISR5_TIMERS	0x00020000
17609e758758SYork Sun #define FSL_CORENET_NUM_DEVDISR		5
17619e758758SYork Sun #else
1762a47a12beSStefan Roese #define FSL_CORENET_DEVDISR_PCIE1	0x80000000
1763a47a12beSStefan Roese #define FSL_CORENET_DEVDISR_PCIE2	0x40000000
1764a47a12beSStefan Roese #define FSL_CORENET_DEVDISR_PCIE3	0x20000000
17659ab87d04SKumar Gala #define FSL_CORENET_DEVDISR_PCIE4	0x10000000
1766a47a12beSStefan Roese #define FSL_CORENET_DEVDISR_RMU		0x08000000
1767a47a12beSStefan Roese #define FSL_CORENET_DEVDISR_SRIO1	0x04000000
1768a47a12beSStefan Roese #define FSL_CORENET_DEVDISR_SRIO2	0x02000000
1769a47a12beSStefan Roese #define FSL_CORENET_DEVDISR_DMA1	0x00400000
1770a47a12beSStefan Roese #define FSL_CORENET_DEVDISR_DMA2	0x00200000
1771a47a12beSStefan Roese #define FSL_CORENET_DEVDISR_DDR1	0x00100000
1772a47a12beSStefan Roese #define FSL_CORENET_DEVDISR_DDR2	0x00080000
1773a47a12beSStefan Roese #define FSL_CORENET_DEVDISR_DBG		0x00010000
1774a47a12beSStefan Roese #define FSL_CORENET_DEVDISR_NAL		0x00008000
17759ab87d04SKumar Gala #define FSL_CORENET_DEVDISR_SATA1	0x00004000
17769ab87d04SKumar Gala #define FSL_CORENET_DEVDISR_SATA2	0x00002000
1777a47a12beSStefan Roese #define FSL_CORENET_DEVDISR_ELBC	0x00001000
1778a47a12beSStefan Roese #define FSL_CORENET_DEVDISR_USB1	0x00000800
1779a47a12beSStefan Roese #define FSL_CORENET_DEVDISR_USB2	0x00000400
1780a47a12beSStefan Roese #define FSL_CORENET_DEVDISR_ESDHC	0x00000100
1781a47a12beSStefan Roese #define FSL_CORENET_DEVDISR_GPIO	0x00000080
1782a47a12beSStefan Roese #define FSL_CORENET_DEVDISR_ESPI	0x00000040
1783a47a12beSStefan Roese #define FSL_CORENET_DEVDISR_I2C1	0x00000020
1784a47a12beSStefan Roese #define FSL_CORENET_DEVDISR_I2C2	0x00000010
1785a47a12beSStefan Roese #define FSL_CORENET_DEVDISR_DUART1	0x00000002
1786a47a12beSStefan Roese #define FSL_CORENET_DEVDISR_DUART2	0x00000001
17871231c498SKumar Gala #define FSL_CORENET_DEVDISR2_PME	0x80000000
17881231c498SKumar Gala #define FSL_CORENET_DEVDISR2_SEC	0x40000000
17891231c498SKumar Gala #define FSL_CORENET_DEVDISR2_QMBM	0x08000000
17901231c498SKumar Gala #define FSL_CORENET_DEVDISR2_FM1	0x02000000
17911231c498SKumar Gala #define FSL_CORENET_DEVDISR2_10GEC1	0x01000000
17921231c498SKumar Gala #define FSL_CORENET_DEVDISR2_DTSEC1_1	0x00800000
17931231c498SKumar Gala #define FSL_CORENET_DEVDISR2_DTSEC1_2	0x00400000
17941231c498SKumar Gala #define FSL_CORENET_DEVDISR2_DTSEC1_3	0x00200000
17951231c498SKumar Gala #define FSL_CORENET_DEVDISR2_DTSEC1_4	0x00100000
17969ab87d04SKumar Gala #define FSL_CORENET_DEVDISR2_DTSEC1_5	0x00080000
17971231c498SKumar Gala #define FSL_CORENET_DEVDISR2_FM2	0x00020000
17981231c498SKumar Gala #define FSL_CORENET_DEVDISR2_10GEC2	0x00010000
17991231c498SKumar Gala #define FSL_CORENET_DEVDISR2_DTSEC2_1	0x00008000
18001231c498SKumar Gala #define FSL_CORENET_DEVDISR2_DTSEC2_2	0x00004000
18011231c498SKumar Gala #define FSL_CORENET_DEVDISR2_DTSEC2_3	0x00002000
18021231c498SKumar Gala #define FSL_CORENET_DEVDISR2_DTSEC2_4	0x00001000
180399abf7deSTimur Tabi #define FSL_CORENET_DEVDISR2_DTSEC2_5	0x00000800
18049ab87d04SKumar Gala #define FSL_CORENET_NUM_DEVDISR		2
1805a47a12beSStefan Roese 	u32	powmgtcsr;	/* Power management status & control */
18069e758758SYork Sun #endif
1807a47a12beSStefan Roese 	u8	res8[12];
1808a47a12beSStefan Roese 	u32	coredisru;	/* uppper portion for support of 64 cores */
1809a47a12beSStefan Roese 	u32	coredisrl;	/* lower portion for support of 64 cores */
1810a47a12beSStefan Roese 	u8	res9[8];
1811a47a12beSStefan Roese 	u32	pvr;		/* Processor version */
1812a47a12beSStefan Roese 	u32	svr;		/* System version */
1813a47a12beSStefan Roese 	u8	res10[8];
1814a47a12beSStefan Roese 	u32	rstcr;		/* Reset control */
1815a47a12beSStefan Roese 	u32	rstrqpblsr;	/* Reset request preboot loader status */
1816a47a12beSStefan Roese 	u8	res11[8];
1817a47a12beSStefan Roese 	u32	rstrqmr1;	/* Reset request mask */
1818a47a12beSStefan Roese 	u8	res12[4];
1819a47a12beSStefan Roese 	u32	rstrqsr1;	/* Reset request status */
1820a47a12beSStefan Roese 	u8	res13[4];
1821a47a12beSStefan Roese 	u8	res14[4];
1822a47a12beSStefan Roese 	u32	rstrqwdtmrl;	/* Reset request WDT mask */
1823a47a12beSStefan Roese 	u8	res15[4];
1824a47a12beSStefan Roese 	u32	rstrqwdtsrl;	/* Reset request WDT status */
1825a47a12beSStefan Roese 	u8	res16[4];
1826a47a12beSStefan Roese 	u32	brrl;		/* Boot release */
1827a47a12beSStefan Roese 	u8	res17[24];
1828a47a12beSStefan Roese 	u32	rcwsr[16];	/* Reset control word status */
1829fd3cebd0SYork Sun 
1830fd3cebd0SYork Sun #ifdef CONFIG_SYS_FSL_QORIQ_CHASSIS2
1831f77329cfSYork Sun #define FSL_CORENET_RCWSR0_MEM_PLL_RAT_SHIFT	16
1832f77329cfSYork Sun #define FSL_CORENET_RCWSR0_MEM_PLL_RAT_MASK	0x3f
1833*b6240846SYork Sun #if defined(CONFIG_PPC_T4240) || defined(CONFIG_PPC_T4160)
1834fd3cebd0SYork Sun #define FSL_CORENET2_RCWSR4_SRDS1_PRTCL		0xfc000000
1835fd3cebd0SYork Sun #define FSL_CORENET2_RCWSR4_SRDS1_PRTCL_SHIFT	26
1836fd3cebd0SYork Sun #define FSL_CORENET2_RCWSR4_SRDS2_PRTCL		0x00fe0000
1837fd3cebd0SYork Sun #define FSL_CORENET2_RCWSR4_SRDS2_PRTCL_SHIFT	17
1838fd3cebd0SYork Sun #define FSL_CORENET2_RCWSR4_SRDS3_PRTCL		0x0000f800
1839fd3cebd0SYork Sun #define FSL_CORENET2_RCWSR4_SRDS3_PRTCL_SHIFT	11
1840fd3cebd0SYork Sun #define FSL_CORENET2_RCWSR4_SRDS4_PRTCL		0x000000f8
1841fd3cebd0SYork Sun #define FSL_CORENET2_RCWSR4_SRDS4_PRTCL_SHIFT	3
1842e1dbdd81SPoonam Aggrwal #elif defined(CONFIG_PPC_B4860) || defined(CONFIG_PPC_B4420)
1843d2404141SYork Sun #define FSL_CORENET2_RCWSR4_SRDS1_PRTCL	0xfe000000
1844d2404141SYork Sun #define FSL_CORENET2_RCWSR4_SRDS1_PRTCL_SHIFT	25
1845d2404141SYork Sun #define FSL_CORENET2_RCWSR4_SRDS2_PRTCL	0x00ff0000
1846d2404141SYork Sun #define FSL_CORENET2_RCWSR4_SRDS2_PRTCL_SHIFT	16
18479e758758SYork Sun #endif
1848fd3cebd0SYork Sun #define FSL_CORENET2_RCWSR5_SRDS_PLL_PD_S1_PLL1	0x00800000
1849fd3cebd0SYork Sun #define FSL_CORENET2_RCWSR5_SRDS_PLL_PD_S1_PLL2	0x00400000
1850fd3cebd0SYork Sun #define FSL_CORENET2_RCWSR5_SRDS_PLL_PD_S2_PLL1	0x00200000
1851fd3cebd0SYork Sun #define FSL_CORENET2_RCWSR5_SRDS_PLL_PD_S2_PLL2	0x00100000
1852fd3cebd0SYork Sun #define FSL_CORENET2_RCWSR5_SRDS_PLL_PD_S3_PLL1	0x00080000
1853fd3cebd0SYork Sun #define FSL_CORENET2_RCWSR5_SRDS_PLL_PD_S3_PLL2	0x00040000
1854fd3cebd0SYork Sun #define FSL_CORENET2_RCWSR5_SRDS_PLL_PD_S4_PLL1	0x00020000
1855fd3cebd0SYork Sun #define FSL_CORENET2_RCWSR5_SRDS_PLL_PD_S4_PLL2	0x00010000
1856fd3cebd0SYork Sun 
1857fd3cebd0SYork Sun #else /* CONFIG_SYS_FSL_QORIQ_CHASSIS2 */
1858fd3cebd0SYork Sun #define FSL_CORENET_RCWSR0_MEM_PLL_RAT_SHIFT	17
1859fd3cebd0SYork Sun #define FSL_CORENET_RCWSR0_MEM_PLL_RAT_MASK	0x1f
1860a47a12beSStefan Roese #define FSL_CORENET_RCWSR4_SRDS_PRTCL		0xfc000000
1861ab48ca1aSSrikanth Srinivasan #define FSL_CORENET_RCWSR5_DDR_SYNC		0x00000080
1862ab48ca1aSSrikanth Srinivasan #define FSL_CORENET_RCWSR5_DDR_SYNC_SHIFT		 7
18631231c498SKumar Gala #define FSL_CORENET_RCWSR5_SRDS_EN		0x00002000
18644905443fSTimur Tabi #define FSL_CORENET_RCWSR5_SRDS2_EN		0x00001000
186581fa73baSLiu Gang #define FSL_CORENET_RCWSR6_BOOT_LOC	0x0f800000
18669ab87d04SKumar Gala #define FSL_CORENET_RCWSRn_SRDS_LPD_B2		0x3c000000 /* bits 162..165 */
18679ab87d04SKumar Gala #define FSL_CORENET_RCWSRn_SRDS_LPD_B3		0x003c0000 /* bits 170..173 */
1868fd3cebd0SYork Sun #endif /* CONFIG_SYS_FSL_QORIQ_CHASSIS2 */
1869fd3cebd0SYork Sun 
1870a47a12beSStefan Roese #define FSL_CORENET_RCWSR7_MCK_TO_PLAT_RAT	0x00400000
1871a47a12beSStefan Roese #define FSL_CORENET_RCWSR8_HOST_AGT_B1		0x00e00000
1872a47a12beSStefan Roese #define FSL_CORENET_RCWSR8_HOST_AGT_B2		0x00100000
18739ab87d04SKumar Gala #define FSL_CORENET_RCWSR11_EC1			0x00c00000 /* bits 360..361 */
1874055ce080STimur Tabi #ifdef CONFIG_PPC_P4080
18759ab87d04SKumar Gala #define FSL_CORENET_RCWSR11_EC1_FM1_DTSEC1		0x00000000
18769ab87d04SKumar Gala #define FSL_CORENET_RCWSR11_EC1_FM1_USB1		0x00800000
18779ab87d04SKumar Gala #define FSL_CORENET_RCWSR11_EC2			0x001c0000 /* bits 363..365 */
18789ab87d04SKumar Gala #define FSL_CORENET_RCWSR11_EC2_FM2_DTSEC1		0x00000000
18799ab87d04SKumar Gala #define FSL_CORENET_RCWSR11_EC2_FM1_DTSEC2		0x00080000
18809ab87d04SKumar Gala #define FSL_CORENET_RCWSR11_EC2_USB2			0x00100000
1881c916d7c9SKumar Gala #endif
18823e978f5dSScott Wood #if defined(CONFIG_PPC_P2041) \
1883c916d7c9SKumar Gala 	|| defined(CONFIG_PPC_P3041) || defined(CONFIG_PPC_P5020)
1884c916d7c9SKumar Gala #define FSL_CORENET_RCWSR11_EC1_FM1_DTSEC4_RGMII	0x00000000
1885c916d7c9SKumar Gala #define FSL_CORENET_RCWSR11_EC1_FM1_DTSEC4_MII		0x00800000
1886c916d7c9SKumar Gala #define FSL_CORENET_RCWSR11_EC1_FM1_DTSEC4_NONE		0x00c00000
1887c916d7c9SKumar Gala #define FSL_CORENET_RCWSR11_EC2			0x00180000 /* bits 363..364 */
1888c916d7c9SKumar Gala #define FSL_CORENET_RCWSR11_EC2_FM1_DTSEC5_RGMII	0x00000000
1889c916d7c9SKumar Gala #define FSL_CORENET_RCWSR11_EC2_FM1_DTSEC5_MII		0x00100000
1890c916d7c9SKumar Gala #define FSL_CORENET_RCWSR11_EC2_FM1_DTSEC5_NONE		0x00180000
1891c916d7c9SKumar Gala #endif
18924905443fSTimur Tabi #if defined(CONFIG_PPC_P5040)
18934905443fSTimur Tabi #define FSL_CORENET_RCWSR11_EC1_FM1_DTSEC5_RGMII        0x00000000
18944905443fSTimur Tabi #define FSL_CORENET_RCWSR11_EC1_FM1_DTSEC5_MII          0x00800000
18954905443fSTimur Tabi #define FSL_CORENET_RCWSR11_EC1_FM1_DTSEC5_NONE         0x00c00000
18964905443fSTimur Tabi #define FSL_CORENET_RCWSR11_EC2                 0x00180000 /* bits 363..364 */
18974905443fSTimur Tabi #define FSL_CORENET_RCWSR11_EC2_FM2_DTSEC5_RGMII        0x00000000
18984905443fSTimur Tabi #define FSL_CORENET_RCWSR11_EC2_FM2_DTSEC5_MII          0x00100000
18994905443fSTimur Tabi #define FSL_CORENET_RCWSR11_EC2_FM2_DTSEC5_NONE         0x00180000
19004905443fSTimur Tabi #endif
1901*b6240846SYork Sun #if defined(CONFIG_PPC_T4240) || defined(CONFIG_PPC_T4160)
19029e758758SYork Sun #define FSL_CORENET_RCWSR13_EC1			0x60000000 /* bits 417..418 */
19039e758758SYork Sun #define FSL_CORENET_RCWSR13_EC1_FM2_DTSEC5_RGMII	0x00000000
19049e758758SYork Sun #define FSL_CORENET_RCWSR13_EC1_FM2_GPIO		0x40000000
19059e758758SYork Sun #define FSL_CORENET_RCWSR13_EC2			0x18000000 /* bits 419..420 */
19069e758758SYork Sun #define FSL_CORENET_RCWSR13_EC2_FM1_DTSEC5_RGMII	0x00000000
19079e758758SYork Sun #define FSL_CORENET_RCWSR13_EC2_FM1_DTSEC6_RGMII	0x08000000
19089e758758SYork Sun #define FSL_CORENET_RCWSR13_EC2_FM1_GPIO		0x10000000
19099e758758SYork Sun #endif
1910a47a12beSStefan Roese 	u8	res18[192];
1911a47a12beSStefan Roese 	u32	scratchrw[4];	/* Scratch Read/Write */
1912a47a12beSStefan Roese 	u8	res19[240];
1913a47a12beSStefan Roese 	u32	scratchw1r[4];	/* Scratch Read (Write once) */
1914a47a12beSStefan Roese 	u8	res20[240];
1915a47a12beSStefan Roese 	u32	scrtsr[8];	/* Core reset status */
1916a47a12beSStefan Roese 	u8	res21[224];
1917a47a12beSStefan Roese 	u32	pex1liodnr;	/* PCI Express 1 LIODN */
1918a47a12beSStefan Roese 	u32	pex2liodnr;	/* PCI Express 2 LIODN */
1919a47a12beSStefan Roese 	u32	pex3liodnr;	/* PCI Express 3 LIODN */
1920a47a12beSStefan Roese 	u32	pex4liodnr;	/* PCI Express 4 LIODN */
1921a47a12beSStefan Roese 	u32	rio1liodnr;	/* RIO 1 LIODN */
1922a47a12beSStefan Roese 	u32	rio2liodnr;	/* RIO 2 LIODN */
1923a47a12beSStefan Roese 	u32	rio3liodnr;	/* RIO 3 LIODN */
1924a47a12beSStefan Roese 	u32	rio4liodnr;	/* RIO 4 LIODN */
1925a47a12beSStefan Roese 	u32	usb1liodnr;	/* USB 1 LIODN */
1926a47a12beSStefan Roese 	u32	usb2liodnr;	/* USB 2 LIODN */
1927a47a12beSStefan Roese 	u32	usb3liodnr;	/* USB 3 LIODN */
1928a47a12beSStefan Roese 	u32	usb4liodnr;	/* USB 4 LIODN */
1929a47a12beSStefan Roese 	u32	sdmmc1liodnr;	/* SD/MMC 1 LIODN */
1930a47a12beSStefan Roese 	u32	sdmmc2liodnr;	/* SD/MMC 2 LIODN */
1931a47a12beSStefan Roese 	u32	sdmmc3liodnr;	/* SD/MMC 3 LIODN */
1932a47a12beSStefan Roese 	u32	sdmmc4liodnr;	/* SD/MMC 4 LIODN */
19339ab87d04SKumar Gala 	u32	rio1maintliodnr;/* RIO 1 Maintenance LIODN */
19349ab87d04SKumar Gala 	u32	rio2maintliodnr;/* RIO 2 Maintenance LIODN */
19359ab87d04SKumar Gala 	u32	rio3maintliodnr;/* RIO 3 Maintenance LIODN */
19369ab87d04SKumar Gala 	u32	rio4maintliodnr;/* RIO 4 Maintenance LIODN */
19379ab87d04SKumar Gala 	u32	sata1liodnr;	/* SATA 1 LIODN */
19389ab87d04SKumar Gala 	u32	sata2liodnr;	/* SATA 2 LIODN */
19399ab87d04SKumar Gala 	u32	sata3liodnr;	/* SATA 3 LIODN */
19409ab87d04SKumar Gala 	u32	sata4liodnr;	/* SATA 4 LIODN */
19419ab87d04SKumar Gala 	u8	res22[32];
1942a47a12beSStefan Roese 	u32	dma1liodnr;	/* DMA 1 LIODN */
1943a47a12beSStefan Roese 	u32	dma2liodnr;	/* DMA 2 LIODN */
1944a47a12beSStefan Roese 	u32	dma3liodnr;	/* DMA 3 LIODN */
1945a47a12beSStefan Roese 	u32	dma4liodnr;	/* DMA 4 LIODN */
1946a47a12beSStefan Roese 	u8	res23[48];
1947a47a12beSStefan Roese 	u8	res24[64];
1948a47a12beSStefan Roese 	u32	pblsr;		/* Preboot loader status */
1949a47a12beSStefan Roese 	u32	pamubypenr;	/* PAMU bypass enable */
1950a47a12beSStefan Roese 	u32	dmacr1;		/* DMA control */
1951a47a12beSStefan Roese 	u8	res25[4];
1952a47a12beSStefan Roese 	u32	gensr1;		/* General status */
1953a47a12beSStefan Roese 	u8	res26[12];
1954a47a12beSStefan Roese 	u32	gencr1;		/* General control */
1955a47a12beSStefan Roese 	u8	res27[12];
1956a47a12beSStefan Roese 	u8	res28[4];
1957a47a12beSStefan Roese 	u32	cgensrl;	/* Core general status */
1958a47a12beSStefan Roese 	u8	res29[8];
1959a47a12beSStefan Roese 	u8	res30[4];
1960a47a12beSStefan Roese 	u32	cgencrl;	/* Core general control */
1961a47a12beSStefan Roese 	u8	res31[184];
1962a47a12beSStefan Roese 	u32	sriopstecr;	/* SRIO prescaler timer enable control */
1963f110fe94SStephen George 	u32	dcsrcr;		/* DCSR Control register */
19641ca8690dSYork Sun 	u8	res31a[56];
19651ca8690dSYork Sun 	u32	tp_ityp[64];	/* Topology Initiator Type Register */
19661ca8690dSYork Sun 	struct {
19671ca8690dSYork Sun 		u32	upper;
19681ca8690dSYork Sun 		u32	lower;
19691ca8690dSYork Sun 	} tp_cluster[16];	/* Core Cluster n Topology Register */
19701ca8690dSYork Sun 	u8	res32[1344];
197117d90f31SDave Liu 	u32	pmuxcr;		/* Pin multiplexing control */
197217d90f31SDave Liu 	u8	res33[60];
197317d90f31SDave Liu 	u32	iovselsr;	/* I/O voltage selection status */
197417d90f31SDave Liu 	u8	res34[28];
197517d90f31SDave Liu 	u32	ddrclkdr;	/* DDR clock disable */
197617d90f31SDave Liu 	u8	res35;
197717d90f31SDave Liu 	u32	elbcclkdr;	/* eLBC clock disable */
197817d90f31SDave Liu 	u8	res36[20];
197917d90f31SDave Liu 	u32	sdhcpcr;	/* eSDHC polarity configuration */
198017d90f31SDave Liu 	u8	res37[380];
1981a47a12beSStefan Roese } ccsr_gur_t;
1982a47a12beSStefan Roese 
19831ca8690dSYork Sun #define TP_ITYP_AV	0x00000001		/* Initiator available */
19841ca8690dSYork Sun #define TP_ITYP_TYPE(x)	(((x) & 0x6) >> 1)	/* Initiator Type */
19851ca8690dSYork Sun #define TP_ITYP_TYPE_OTHER	0x0
19861ca8690dSYork Sun #define TP_ITYP_TYPE_PPC	0x1	/* PowerPC */
19871ca8690dSYork Sun #define TP_ITYP_TYPE_SC		0x2	/* StarCore DSP */
19881ca8690dSYork Sun #define TP_ITYP_TYPE_HA		0x3	/* HW Accelerator */
19891ca8690dSYork Sun #define TP_ITYP_THDS(x)	(((x) & 0x18) >> 3)	/* # threads */
19901ca8690dSYork Sun #define TP_ITYP_VER(x)	(((x) & 0xe0) >> 5)	/* Initiator Version */
19911ca8690dSYork Sun 
19921ca8690dSYork Sun #define TP_CLUSTER_EOC		0x80000000	/* end of clusters */
19931ca8690dSYork Sun #define TP_CLUSTER_INIT_MASK	0x0000003f	/* initiator mask */
19941ca8690dSYork Sun 
1995f110fe94SStephen George #define FSL_CORENET_DCSR_SZ_MASK	0x00000003
1996f110fe94SStephen George #define FSL_CORENET_DCSR_SZ_4M		0x0
1997f110fe94SStephen George #define FSL_CORENET_DCSR_SZ_1G		0x3
1998f110fe94SStephen George 
19999ab87d04SKumar Gala /*
20009ab87d04SKumar Gala  * On p4080 we have an LIODN for msg unit (rmu) but not maintenance
20019ab87d04SKumar Gala  * everything after has RMan thus msg unit LIODN is used for maintenance
20029ab87d04SKumar Gala  */
20039ab87d04SKumar Gala #define rmuliodnr rio1maintliodnr
20049ab87d04SKumar Gala 
2005a47a12beSStefan Roese typedef struct ccsr_clk {
20069a653a98SYork Sun 	u32	clkc0csr;	/* 0x000 Core 0 Clock control/status */
2007a47a12beSStefan Roese 	u8	res1[0x1c];
20089a653a98SYork Sun 	u32	clkc1csr;	/* 0x020 Core 1 Clock control/status */
2009a47a12beSStefan Roese 	u8	res2[0x1c];
20109a653a98SYork Sun 	u32	clkc2csr;	/* 0x040 Core 2 Clock control/status */
2011a47a12beSStefan Roese 	u8	res3[0x1c];
20129a653a98SYork Sun 	u32	clkc3csr;	/* 0x060 Core 3 Clock control/status */
2013a47a12beSStefan Roese 	u8	res4[0x1c];
20149a653a98SYork Sun 	u32	clkc4csr;	/* 0x080 Core 4 Clock control/status */
2015a47a12beSStefan Roese 	u8	res5[0x1c];
20169a653a98SYork Sun 	u32	clkc5csr;	/* 0x0a0 Core 5 Clock control/status */
2017a47a12beSStefan Roese 	u8	res6[0x1c];
20189a653a98SYork Sun 	u32	clkc6csr;	/* 0x0c0 Core 6 Clock control/status */
2019a47a12beSStefan Roese 	u8	res7[0x1c];
20209a653a98SYork Sun 	u32	clkc7csr;	/* 0x0e0 Core 7 Clock control/status */
2021a47a12beSStefan Roese 	u8	res8[0x71c];
20229a653a98SYork Sun 	u32	pllc1gsr;	/* 0x800 Cluster PLL 1 General Status */
2023a47a12beSStefan Roese 	u8	res10[0x1c];
20249a653a98SYork Sun 	u32	pllc2gsr;	/* 0x820 Cluster PLL 2 General Status */
2025a47a12beSStefan Roese 	u8	res11[0x1c];
20269a653a98SYork Sun 	u32	pllc3gsr;	/* 0x840 Cluster PLL 3 General Status */
2027a47a12beSStefan Roese 	u8	res12[0x1c];
20289a653a98SYork Sun 	u32	pllc4gsr;	/* 0x860 Cluster PLL 4 General Status */
20299a653a98SYork Sun 	u8	res13[0x1c];
20309a653a98SYork Sun 	u32	pllc5gsr;	/* 0x880 Cluster PLL 5 General Status */
2031a47a12beSStefan Roese 	u8	res14[0x1c];
20329a653a98SYork Sun 	u32	pllc6gsr;	/* 0x8a0 Cluster PLL 6 General Status */
20339a653a98SYork Sun 	u8	res15[0x35c];
20349a653a98SYork Sun 	u32	pllpgsr;	/* 0xc00 Platform PLL General Status */
20359a653a98SYork Sun 	u8	res16[0x1c];
20369a653a98SYork Sun 	u32	plldgsr;	/* 0xc20 DDR PLL General Status */
20379a653a98SYork Sun 	u8	res17[0x3dc];
2038a47a12beSStefan Roese } ccsr_clk_t;
2039a47a12beSStefan Roese 
20401ca8690dSYork Sun #ifdef CONFIG_SYS_FSL_QORIQ_CHASSIS2
20411ca8690dSYork Sun typedef struct ccsr_rcpm {
20421ca8690dSYork Sun 	u8	res_00[12];
20431ca8690dSYork Sun 	u32	tph10sr0;	/* Thread PH10 Status Register */
20441ca8690dSYork Sun 	u8	res_10[12];
20451ca8690dSYork Sun 	u32	tph10setr0;	/* Thread PH10 Set Control Register */
20461ca8690dSYork Sun 	u8	res_20[12];
20471ca8690dSYork Sun 	u32	tph10clrr0;	/* Thread PH10 Clear Control Register */
20481ca8690dSYork Sun 	u8	res_30[12];
20491ca8690dSYork Sun 	u32	tph10psr0;	/* Thread PH10 Previous Status Register */
20501ca8690dSYork Sun 	u8	res_40[12];
20511ca8690dSYork Sun 	u32	twaitsr0;	/* Thread Wait Status Register */
20521ca8690dSYork Sun 	u8	res_50[96];
20531ca8690dSYork Sun 	u32	pcph15sr;	/* Physical Core PH15 Status Register */
20541ca8690dSYork Sun 	u32	pcph15setr;	/* Physical Core PH15 Set Control Register */
20551ca8690dSYork Sun 	u32	pcph15clrr;	/* Physical Core PH15 Clear Control Register */
20561ca8690dSYork Sun 	u32	pcph15psr;	/* Physical Core PH15 Prev Status Register */
20571ca8690dSYork Sun 	u8	res_c0[16];
20581ca8690dSYork Sun 	u32	pcph20sr;	/* Physical Core PH20 Status Register */
20591ca8690dSYork Sun 	u32	pcph20setr;	/* Physical Core PH20 Set Control Register */
20601ca8690dSYork Sun 	u32	pcph20clrr;	/* Physical Core PH20 Clear Control Register */
20611ca8690dSYork Sun 	u32	pcph20psr;	/* Physical Core PH20 Prev Status Register */
20621ca8690dSYork Sun 	u32	pcpw20sr;	/* Physical Core PW20 Status Register */
20631ca8690dSYork Sun 	u8	res_e0[12];
20641ca8690dSYork Sun 	u32	pcph30sr;	/* Physical Core PH30 Status Register */
20651ca8690dSYork Sun 	u32	pcph30setr;	/* Physical Core PH30 Set Control Register */
20661ca8690dSYork Sun 	u32	pcph30clrr;	/* Physical Core PH30 Clear Control Register */
20671ca8690dSYork Sun 	u32	pcph30psr;	/* Physical Core PH30 Prev Status Register */
20681ca8690dSYork Sun 	u8	res_100[32];
20691ca8690dSYork Sun 	u32	ippwrgatecr;	/* IP Power Gating Control Register */
20701ca8690dSYork Sun 	u8	res_124[12];
20711ca8690dSYork Sun 	u32	powmgtcsr;	/* Power Management Control & Status Reg */
20721ca8690dSYork Sun 	u8	res_134[12];
20731ca8690dSYork Sun 	u32	ippdexpcr[4];	/* IP Powerdown Exception Control Reg */
20741ca8690dSYork Sun 	u8	res_150[12];
20751ca8690dSYork Sun 	u32	tpmimr0;	/* Thread PM Interrupt Mask Reg */
20761ca8690dSYork Sun 	u8	res_160[12];
20771ca8690dSYork Sun 	u32	tpmcimr0;	/* Thread PM Crit Interrupt Mask Reg */
20781ca8690dSYork Sun 	u8	res_170[12];
20791ca8690dSYork Sun 	u32	tpmmcmr0;	/* Thread PM Machine Check Interrupt Mask Reg */
20801ca8690dSYork Sun 	u8	res_180[12];
20811ca8690dSYork Sun 	u32	tpmnmimr0;	/* Thread PM NMI Mask Reg */
20821ca8690dSYork Sun 	u8	res_190[12];
20831ca8690dSYork Sun 	u32	tmcpmaskcr0;	/* Thread Machine Check Mask Control Reg */
20841ca8690dSYork Sun 	u32	pctbenr;	/* Physical Core Time Base Enable Reg */
20851ca8690dSYork Sun 	u32	pctbclkselr;	/* Physical Core Time Base Clock Select */
20861ca8690dSYork Sun 	u32	tbclkdivr;	/* Time Base Clock Divider Register */
20871ca8690dSYork Sun 	u8	res_1ac[4];
20881ca8690dSYork Sun 	u32	ttbhltcr[4];	/* Thread Time Base Halt Control Register */
20891ca8690dSYork Sun 	u32	clpcl10sr;	/* Cluster PCL10 Status Register */
20901ca8690dSYork Sun 	u32	clpcl10setr;	/* Cluster PCL30 Set Control Register */
20911ca8690dSYork Sun 	u32	clpcl10clrr;	/* Cluster PCL30 Clear Control Register */
20921ca8690dSYork Sun 	u32	clpcl10psr;	/* Cluster PCL30 Prev Status Register */
20931ca8690dSYork Sun 	u32	cddslpsetr;	/* Core Domain Deep Sleep Set Register */
20941ca8690dSYork Sun 	u32	cddslpclrr;	/* Core Domain Deep Sleep Clear Register */
20951ca8690dSYork Sun 	u32	cdpwroksetr;	/* Core Domain Power OK Set Register */
20961ca8690dSYork Sun 	u32	cdpwrokclrr;	/* Core Domain Power OK Clear Register */
20971ca8690dSYork Sun 	u32	cdpwrensr;	/* Core Domain Power Enable Status Register */
20981ca8690dSYork Sun 	u32	cddslsr;	/* Core Domain Deep Sleep Status Register */
20991ca8690dSYork Sun 	u8	res_1e8[8];
21001ca8690dSYork Sun 	u32	dslpcntcr[8];	/* Deep Sleep Counter Cfg Register */
21011ca8690dSYork Sun 	u8	res_300[3568];
21021ca8690dSYork Sun } ccsr_rcpm_t;
21031ca8690dSYork Sun 
21041ca8690dSYork Sun #define ctbenrl pctbenr
21051ca8690dSYork Sun 
21061ca8690dSYork Sun #else
2107a47a12beSStefan Roese typedef struct ccsr_rcpm {
2108a47a12beSStefan Roese 	u8	res1[4];
2109a47a12beSStefan Roese 	u32	cdozsrl;	/* Core Doze Status */
2110a47a12beSStefan Roese 	u8	res2[4];
2111a47a12beSStefan Roese 	u32	cdozcrl;	/* Core Doze Control */
2112a47a12beSStefan Roese 	u8	res3[4];
2113a47a12beSStefan Roese 	u32	cnapsrl;	/* Core Nap Status */
2114a47a12beSStefan Roese 	u8	res4[4];
2115a47a12beSStefan Roese 	u32	cnapcrl;	/* Core Nap Control */
2116a47a12beSStefan Roese 	u8	res5[4];
2117a47a12beSStefan Roese 	u32	cdozpsrl;	/* Core Doze Previous Status */
2118a47a12beSStefan Roese 	u8	res6[4];
2119a47a12beSStefan Roese 	u32	cdozpcrl;	/* Core Doze Previous Control */
2120a47a12beSStefan Roese 	u8	res7[4];
2121a47a12beSStefan Roese 	u32	cwaitsrl;	/* Core Wait Status */
2122a47a12beSStefan Roese 	u8	res8[8];
2123a47a12beSStefan Roese 	u32	powmgtcsr;	/* Power Mangement Control & Status */
2124a47a12beSStefan Roese 	u8	res9[12];
2125a47a12beSStefan Roese 	u32	ippdexpcr0;	/* IP Powerdown Exception Control 0 */
2126a47a12beSStefan Roese 	u8	res10[12];
2127a47a12beSStefan Roese 	u8	res11[4];
2128a47a12beSStefan Roese 	u32	cpmimrl;	/* Core PM IRQ Masking */
2129a47a12beSStefan Roese 	u8	res12[4];
2130a47a12beSStefan Roese 	u32	cpmcimrl;	/* Core PM Critical IRQ Masking */
2131a47a12beSStefan Roese 	u8	res13[4];
2132a47a12beSStefan Roese 	u32	cpmmcimrl;	/* Core PM Machine Check IRQ Masking */
2133a47a12beSStefan Roese 	u8	res14[4];
2134a47a12beSStefan Roese 	u32	cpmnmimrl;	/* Core PM NMI Masking */
2135a47a12beSStefan Roese 	u8	res15[4];
2136a47a12beSStefan Roese 	u32	ctbenrl;	/* Core Time Base Enable */
2137a47a12beSStefan Roese 	u8	res16[4];
2138a47a12beSStefan Roese 	u32	ctbclkselrl;	/* Core Time Base Clock Select */
2139a47a12beSStefan Roese 	u8	res17[4];
2140a47a12beSStefan Roese 	u32	ctbhltcrl;	/* Core Time Base Halt Control */
2141a47a12beSStefan Roese 	u8	res18[0xf68];
2142a47a12beSStefan Roese } ccsr_rcpm_t;
21431ca8690dSYork Sun #endif /* CONFIG_SYS_FSL_QORIQ_CHASSIS2 */
2144a47a12beSStefan Roese 
2145a47a12beSStefan Roese #else
2146a47a12beSStefan Roese typedef struct ccsr_gur {
2147a47a12beSStefan Roese 	u32	porpllsr;	/* POR PLL ratio status */
2148a47a12beSStefan Roese #ifdef CONFIG_MPC8536
2149a47a12beSStefan Roese #define MPC85xx_PORPLLSR_DDR_RATIO	0x3e000000
2150a47a12beSStefan Roese #define MPC85xx_PORPLLSR_DDR_RATIO_SHIFT	25
2151a47a12beSStefan Roese #else
215235fe948eSPrabhakar Kushwaha #if defined(CONFIG_BSC9131) || defined(CONFIG_BSC9132)
215319a8dbdcSPrabhakar Kushwaha #define MPC85xx_PORPLLSR_DDR_RATIO	0x00003f00
215419a8dbdcSPrabhakar Kushwaha #else
2155a47a12beSStefan Roese #define MPC85xx_PORPLLSR_DDR_RATIO	0x00003e00
215619a8dbdcSPrabhakar Kushwaha #endif
2157a47a12beSStefan Roese #define MPC85xx_PORPLLSR_DDR_RATIO_SHIFT	9
2158a47a12beSStefan Roese #endif
2159a47a12beSStefan Roese #define MPC85xx_PORPLLSR_QE_RATIO	0x3e000000
2160a47a12beSStefan Roese #define MPC85xx_PORPLLSR_QE_RATIO_SHIFT		25
2161a47a12beSStefan Roese #define MPC85xx_PORPLLSR_PLAT_RATIO	0x0000003e
2162a47a12beSStefan Roese #define MPC85xx_PORPLLSR_PLAT_RATIO_SHIFT	1
2163a47a12beSStefan Roese 	u32	porbmsr;	/* POR boot mode status */
2164a47a12beSStefan Roese #define MPC85xx_PORBMSR_HA		0x00070000
2165a47a12beSStefan Roese #define MPC85xx_PORBMSR_HA_SHIFT	16
216635fe948eSPrabhakar Kushwaha #define MPC85XX_PORBMSR_ROMLOC_SHIFT	24
216735fe948eSPrabhakar Kushwaha #define PORBMSR_ROMLOC_SPI	0x6
216835fe948eSPrabhakar Kushwaha #define PORBMSR_ROMLOC_SDHC	0x7
216935fe948eSPrabhakar Kushwaha #define PORBMSR_ROMLOC_NAND_2K	0x9
217035fe948eSPrabhakar Kushwaha #define PORBMSR_ROMLOC_NOR	0xf
2171a47a12beSStefan Roese 	u32	porimpscr;	/* POR I/O impedance status & control */
2172a47a12beSStefan Roese 	u32	pordevsr;	/* POR I/O device status regsiter */
217367a719daSRoy Zang #if defined(CONFIG_P1017) || defined(CONFIG_P1023)
217467a719daSRoy Zang #define MPC85xx_PORDEVSR_SGMII1_DIS	0x10000000
217567a719daSRoy Zang #define MPC85xx_PORDEVSR_SGMII2_DIS	0x08000000
2176c916d7c9SKumar Gala #define MPC85xx_PORDEVSR_TSEC1_PRTC	0x02000000
217767a719daSRoy Zang #else
2178a47a12beSStefan Roese #define MPC85xx_PORDEVSR_SGMII1_DIS	0x20000000
2179a47a12beSStefan Roese #define MPC85xx_PORDEVSR_SGMII2_DIS	0x10000000
218067a719daSRoy Zang #endif
2181a47a12beSStefan Roese #define MPC85xx_PORDEVSR_SGMII3_DIS	0x08000000
2182a47a12beSStefan Roese #define MPC85xx_PORDEVSR_SGMII4_DIS	0x04000000
2183a47a12beSStefan Roese #define MPC85xx_PORDEVSR_SRDS2_IO_SEL	0x38000000
2184a47a12beSStefan Roese #define MPC85xx_PORDEVSR_PCI1		0x00800000
21850c955dafSDave Liu #if defined(CONFIG_P1013) || defined(CONFIG_P1022)
21860c955dafSDave Liu #define MPC85xx_PORDEVSR_IO_SEL		0x007c0000
21870c955dafSDave Liu #define MPC85xx_PORDEVSR_IO_SEL_SHIFT	18
218867a719daSRoy Zang #elif defined(CONFIG_P1017) || defined(CONFIG_P1023)
218967a719daSRoy Zang #define MPC85xx_PORDEVSR_IO_SEL		0x00600000
219067a719daSRoy Zang #define MPC85xx_PORDEVSR_IO_SEL_SHIFT	21
21910c955dafSDave Liu #else
219228747f9bSPrabhakar Kushwaha #if defined(CONFIG_P1010)
219328747f9bSPrabhakar Kushwaha #define MPC85xx_PORDEVSR_IO_SEL		0x00600000
219428747f9bSPrabhakar Kushwaha #define MPC85xx_PORDEVSR_IO_SEL_SHIFT	21
219535fe948eSPrabhakar Kushwaha #elif defined(CONFIG_BSC9132)
219635fe948eSPrabhakar Kushwaha #define MPC85xx_PORDEVSR_IO_SEL		0x00FE0000
219735fe948eSPrabhakar Kushwaha #define MPC85xx_PORDEVSR_IO_SEL_SHIFT	17
219828747f9bSPrabhakar Kushwaha #else
2199a47a12beSStefan Roese #define MPC85xx_PORDEVSR_IO_SEL		0x00780000
2200a47a12beSStefan Roese #define MPC85xx_PORDEVSR_IO_SEL_SHIFT	19
220128747f9bSPrabhakar Kushwaha #endif /* if defined(CONFIG_P1010) */
22020c955dafSDave Liu #endif
2203a47a12beSStefan Roese #define MPC85xx_PORDEVSR_PCI2_ARB	0x00040000
2204a47a12beSStefan Roese #define MPC85xx_PORDEVSR_PCI1_ARB	0x00020000
2205a47a12beSStefan Roese #define MPC85xx_PORDEVSR_PCI1_PCI32	0x00010000
2206a47a12beSStefan Roese #define MPC85xx_PORDEVSR_PCI1_SPD	0x00008000
2207a47a12beSStefan Roese #define MPC85xx_PORDEVSR_PCI2_SPD	0x00004000
2208a47a12beSStefan Roese #define MPC85xx_PORDEVSR_DRAM_RTYPE	0x00000060
2209a47a12beSStefan Roese #define MPC85xx_PORDEVSR_RIO_CTLS	0x00000008
2210a47a12beSStefan Roese #define MPC85xx_PORDEVSR_RIO_DEV_ID	0x00000007
2211a47a12beSStefan Roese 	u32	pordbgmsr;	/* POR debug mode status */
2212a47a12beSStefan Roese 	u32	pordevsr2;	/* POR I/O device status 2 */
2213a47a12beSStefan Roese /* The 8544 RM says this is bit 26, but it's really bit 24 */
2214a47a12beSStefan Roese #define MPC85xx_PORDEVSR2_SEC_CFG	0x00000080
2215a47a12beSStefan Roese 	u8	res1[8];
2216a47a12beSStefan Roese 	u32	gpporcr;	/* General-purpose POR configuration */
2217a47a12beSStefan Roese 	u8	res2[12];
2218ae2044d8SXie Xiaobo #if defined(CONFIG_MPC8536)
2219ae2044d8SXie Xiaobo 	u32	gencfgr;	/* General Configuration Register */
2220ae2044d8SXie Xiaobo #define MPC85xx_GENCFGR_SDHC_WP_INV	0x20000000
2221ae2044d8SXie Xiaobo #else
2222a47a12beSStefan Roese 	u32	gpiocr;		/* GPIO control */
2223ae2044d8SXie Xiaobo #endif
2224a47a12beSStefan Roese 	u8	res3[12];
2225a47a12beSStefan Roese #if defined(CONFIG_MPC8569)
2226a47a12beSStefan Roese 	u32	plppar1;	/* Platform port pin assignment 1 */
2227a47a12beSStefan Roese 	u32	plppar2;	/* Platform port pin assignment 2 */
2228a47a12beSStefan Roese 	u32	plpdir1;	/* Platform port pin direction 1 */
2229a47a12beSStefan Roese 	u32	plpdir2;	/* Platform port pin direction 2 */
2230a47a12beSStefan Roese #else
2231a47a12beSStefan Roese 	u32	gpoutdr;	/* General-purpose output data */
2232a47a12beSStefan Roese 	u8	res4[12];
2233a47a12beSStefan Roese #endif
2234a47a12beSStefan Roese 	u32	gpindr;		/* General-purpose input data */
2235a47a12beSStefan Roese 	u8	res5[12];
2236a47a12beSStefan Roese 	u32	pmuxcr;		/* Alt. function signal multiplex control */
22374b77047cSDipen Dudhat #if defined(CONFIG_P1010) || defined(CONFIG_P1014)
22384b77047cSDipen Dudhat #define MPC85xx_PMUXCR_TSEC1_0_1588		0x40000000
22394b77047cSDipen Dudhat #define MPC85xx_PMUXCR_TSEC1_0_RES		0xC0000000
22404b77047cSDipen Dudhat #define MPC85xx_PMUXCR_TSEC1_1_1588_TRIG	0x10000000
22414b77047cSDipen Dudhat #define MPC85xx_PMUXCR_TSEC1_1_GPIO_12		0x20000000
22424b77047cSDipen Dudhat #define MPC85xx_PMUXCR_TSEC1_1_RES		0x30000000
22434b77047cSDipen Dudhat #define MPC85xx_PMUXCR_TSEC1_2_DMA		0x04000000
22444b77047cSDipen Dudhat #define MPC85xx_PMUXCR_TSEC1_2_GPIO		0x08000000
22454b77047cSDipen Dudhat #define MPC85xx_PMUXCR_TSEC1_2_RES		0x0C000000
22464b77047cSDipen Dudhat #define MPC85xx_PMUXCR_TSEC1_3_RES		0x01000000
22474b77047cSDipen Dudhat #define MPC85xx_PMUXCR_TSEC1_3_GPIO_15		0x02000000
22484b77047cSDipen Dudhat #define MPC85xx_PMUXCR_IFC_ADDR16_SDHC		0x00400000
22494b77047cSDipen Dudhat #define MPC85xx_PMUXCR_IFC_ADDR16_USB		0x00800000
22504b77047cSDipen Dudhat #define MPC85xx_PMUXCR_IFC_ADDR16_IFC_CS2	0x00C00000
22514b77047cSDipen Dudhat #define MPC85xx_PMUXCR_IFC_ADDR17_18_SDHC	0x00100000
22524b77047cSDipen Dudhat #define MPC85xx_PMUXCR_IFC_ADDR17_18_USB	0x00200000
22534b77047cSDipen Dudhat #define MPC85xx_PMUXCR_IFC_ADDR17_18_DMA	0x00300000
22544b77047cSDipen Dudhat #define MPC85xx_PMUXCR_IFC_ADDR19_SDHC_DATA	0x00040000
22554b77047cSDipen Dudhat #define MPC85xx_PMUXCR_IFC_ADDR19_USB		0x00080000
22564b77047cSDipen Dudhat #define MPC85xx_PMUXCR_IFC_ADDR19_DMA		0x000C0000
22574b77047cSDipen Dudhat #define MPC85xx_PMUXCR_IFC_ADDR20_21_SDHC_DATA	0x00010000
22584b77047cSDipen Dudhat #define MPC85xx_PMUXCR_IFC_ADDR20_21_USB	0x00020000
22594b77047cSDipen Dudhat #define MPC85xx_PMUXCR_IFC_ADDR20_21_RES	0x00030000
22604b77047cSDipen Dudhat #define MPC85xx_PMUXCR_IFC_ADDR22_SDHC		0x00004000
22614b77047cSDipen Dudhat #define MPC85xx_PMUXCR_IFC_ADDR22_USB		0x00008000
22624b77047cSDipen Dudhat #define MPC85xx_PMUXCR_IFC_ADDR22_RES		0x0000C000
22634b77047cSDipen Dudhat #define MPC85xx_PMUXCR_IFC_ADDR23_SDHC		0x00001000
22644b77047cSDipen Dudhat #define MPC85xx_PMUXCR_IFC_ADDR23_USB		0x00002000
22654b77047cSDipen Dudhat #define MPC85xx_PMUXCR_IFC_ADDR23_RES		0x00003000
22664b77047cSDipen Dudhat #define MPC85xx_PMUXCR_IFC_ADDR24_SDHC		0x00000400
22674b77047cSDipen Dudhat #define MPC85xx_PMUXCR_IFC_ADDR24_USB		0x00000800
22684b77047cSDipen Dudhat #define MPC85xx_PMUXCR_IFC_ADDR24_RES		0x00000C00
22694b77047cSDipen Dudhat #define MPC85xx_PMUXCR_IFC_PAR_PERR_RES		0x00000300
22704b77047cSDipen Dudhat #define MPC85xx_PMUXCR_IFC_PAR_PERR_USB		0x00000200
22714b77047cSDipen Dudhat #define MPC85xx_PMUXCR_LCLK_RES			0x00000040
22724b77047cSDipen Dudhat #define MPC85xx_PMUXCR_LCLK_USB			0x00000080
22734b77047cSDipen Dudhat #define MPC85xx_PMUXCR_LCLK_IFC_CS3		0x000000C0
22744b77047cSDipen Dudhat #define MPC85xx_PMUXCR_SPI_RES			0x00000030
22754b77047cSDipen Dudhat #define MPC85xx_PMUXCR_SPI_GPIO			0x00000020
22764b77047cSDipen Dudhat #define MPC85xx_PMUXCR_CAN1_UART		0x00000004
22774b77047cSDipen Dudhat #define MPC85xx_PMUXCR_CAN1_TDM			0x00000008
22784b77047cSDipen Dudhat #define MPC85xx_PMUXCR_CAN1_RES			0x0000000C
22794b77047cSDipen Dudhat #define MPC85xx_PMUXCR_CAN2_UART		0x00000001
22804b77047cSDipen Dudhat #define MPC85xx_PMUXCR_CAN2_TDM			0x00000002
22814b77047cSDipen Dudhat #define MPC85xx_PMUXCR_CAN2_RES			0x00000003
22824b77047cSDipen Dudhat #endif
2283fe1a1da0SRoy Zang #if defined(CONFIG_P1017) || defined(CONFIG_P1023)
2284fe1a1da0SRoy Zang #define MPC85xx_PMUXCR_TSEC1_1		0x10000000
2285fe1a1da0SRoy Zang #else
2286a47a12beSStefan Roese #define MPC85xx_PMUXCR_SD_DATA		0x80000000
2287a47a12beSStefan Roese #define MPC85xx_PMUXCR_SDHC_CD		0x40000000
2288a47a12beSStefan Roese #define MPC85xx_PMUXCR_SDHC_WP		0x20000000
22892bad42a0SRamneek Mehresh #define MPC85xx_PMUXCR_ELBC_OFF_USB2_ON	0x01000000
22904aa8405cSZhao Chenhui #define MPC85xx_PMUXCR_TDM_ENA		0x00800000
2291a52d2f81SHaiying Wang #define MPC85xx_PMUXCR_QE0		0x00008000
2292a52d2f81SHaiying Wang #define MPC85xx_PMUXCR_QE1		0x00004000
2293a52d2f81SHaiying Wang #define MPC85xx_PMUXCR_QE2		0x00002000
2294a52d2f81SHaiying Wang #define MPC85xx_PMUXCR_QE3		0x00001000
2295a52d2f81SHaiying Wang #define MPC85xx_PMUXCR_QE4		0x00000800
2296a52d2f81SHaiying Wang #define MPC85xx_PMUXCR_QE5		0x00000400
2297a52d2f81SHaiying Wang #define MPC85xx_PMUXCR_QE6		0x00000200
2298a52d2f81SHaiying Wang #define MPC85xx_PMUXCR_QE7		0x00000100
2299a52d2f81SHaiying Wang #define MPC85xx_PMUXCR_QE8		0x00000080
2300a52d2f81SHaiying Wang #define MPC85xx_PMUXCR_QE9		0x00000040
2301a52d2f81SHaiying Wang #define MPC85xx_PMUXCR_QE10		0x00000020
2302a52d2f81SHaiying Wang #define MPC85xx_PMUXCR_QE11		0x00000010
2303a52d2f81SHaiying Wang #define MPC85xx_PMUXCR_QE12		0x00000008
2304fe1a1da0SRoy Zang #endif
2305b93f81a4SJiang Yutang #if defined(CONFIG_P1013) || defined(CONFIG_P1022)
2306b93f81a4SJiang Yutang #define MPC85xx_PMUXCR_TDM_MASK		0x0001cc00
2307b93f81a4SJiang Yutang #define MPC85xx_PMUXCR_TDM		0x00014800
2308b93f81a4SJiang Yutang #define MPC85xx_PMUXCR_SPI_MASK		0x00600000
2309b93f81a4SJiang Yutang #define MPC85xx_PMUXCR_SPI		0x00000000
2310b93f81a4SJiang Yutang #endif
231119a8dbdcSPrabhakar Kushwaha #if defined(CONFIG_BSC9131)
231219a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_TSEC2_DMA_GPIO_IRQ	0x40000000
231319a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_TSEC2_USB		0xC0000000
231419a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_TSEC2_1588_PPS		0x10000000
231519a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_TSEC2_1588_RSVD		0x30000000
231619a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_IFC_AD_GPIO		0x04000000
231719a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_IFC_AD_GPIO_MASK		0x0C000000
231819a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_IFC_AD15_GPIO		0x01000000
231919a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_IFC_AD15_TIMER2		0x02000000
232019a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_IFC_AD16_GPO8		0x00400000
232119a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_IFC_AD16_MSRCID0		0x00800000
232219a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_IFC_AD17_GPO		0x00100000
232319a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_IFC_AD17_GPO_MASK	0x00300000
232419a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_IFC_AD17_MSRCID_DSP	0x00200000
232519a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_IFC_CS2_GPO65		0x00040000
232619a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_IFC_CS2_DSP_TDI		0x00080000
232719a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_SDHC_USIM		0x00010000
232819a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_SDHC_TDM_RFS_RCK		0x00020000
232919a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_SDHC_GPIO77		0x00030000
233019a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_SDHC_RESV		0x00004000
233119a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_SDHC_TDM_TXD_RXD		0x00008000
233219a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_SDHC_GPIO_TIMER4		0x0000C000
233319a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_USB_CLK_UART_SIN		0x00001000
233419a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_USB_CLK_GPIO69		0x00002000
233519a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_USB_CLK_TIMER3		0x00003000
233619a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_USB_UART_GPIO0		0x00000400
233719a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_USB_RSVD			0x00000C00
233819a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_USB_GPIO62_TRIG_IN	0x00000800
233919a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_USB_D1_2_IIC2_SDA_SCL	0x00000100
234019a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_USB_D1_2_GPIO71_72	0x00000200
234119a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_USB_D1_2_RSVD		0x00000300
234219a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_USB_DIR_GPIO2		0x00000040
234319a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_USB_DIR_TIMER1		0x00000080
234419a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_USB_DIR_MCP_B		0x000000C0
234519a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_SPI1_UART3		0x00000010
234619a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_SPI1_SIM			0x00000020
234719a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_SPI1_CKSTP_IN_GPO74	0x00000030
234819a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_SPI1_CS2_CKSTP_OUT_B	0x00000004
234919a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_SPI1_CS2_dbg_adi1_rxen	0x00000008
235019a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_SPI1_CS2_GPO75		0x0000000C
235119a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_SPI1_CS3_ANT_TCXO_PWM	0x00000001
235219a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_SPI1_CS3_dbg_adi2_rxen	0x00000002
235319a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR_SPI1_CS3_GPO76		0x00000003
235419a8dbdcSPrabhakar Kushwaha #endif
235535fe948eSPrabhakar Kushwaha #ifdef CONFIG_BSC9132
235635fe948eSPrabhakar Kushwaha #define MPC85xx_PMUXCR0_SIM_SEL_MASK	0x0003b000
235735fe948eSPrabhakar Kushwaha #define MPC85xx_PMUXCR0_SIM_SEL		0x00014000
235835fe948eSPrabhakar Kushwaha #endif
23596e37a044STimur Tabi 	u32	pmuxcr2;	/* Alt. function signal multiplex control 2 */
23604b77047cSDipen Dudhat #if defined(CONFIG_P1010) || defined(CONFIG_P1014)
23614b77047cSDipen Dudhat #define MPC85xx_PMUXCR2_UART_GPIO		0x40000000
23624b77047cSDipen Dudhat #define MPC85xx_PMUXCR2_UART_TDM		0x80000000
23634b77047cSDipen Dudhat #define MPC85xx_PMUXCR2_UART_RES		0xC0000000
23644b77047cSDipen Dudhat #define MPC85xx_PMUXCR2_IRQ2_TRIG_IN		0x10000000
23654b77047cSDipen Dudhat #define MPC85xx_PMUXCR2_IRQ2_RES		0x30000000
23664b77047cSDipen Dudhat #define MPC85xx_PMUXCR2_IRQ3_SRESET		0x04000000
23674b77047cSDipen Dudhat #define MPC85xx_PMUXCR2_IRQ3_RES		0x0C000000
23684b77047cSDipen Dudhat #define MPC85xx_PMUXCR2_GPIO01_DRVVBUS		0x01000000
23694b77047cSDipen Dudhat #define MPC85xx_PMUXCR2_GPIO01_RES		0x03000000
23704b77047cSDipen Dudhat #define MPC85xx_PMUXCR2_GPIO23_CKSTP		0x00400000
23714b77047cSDipen Dudhat #define MPC85xx_PMUXCR2_GPIO23_RES		0x00800000
23724b77047cSDipen Dudhat #define MPC85xx_PMUXCR2_GPIO23_USB		0x00C00000
23734b77047cSDipen Dudhat #define MPC85xx_PMUXCR2_GPIO4_MCP		0x00100000
23744b77047cSDipen Dudhat #define MPC85xx_PMUXCR2_GPIO4_RES		0x00200000
23754b77047cSDipen Dudhat #define MPC85xx_PMUXCR2_GPIO4_CLK_OUT		0x00300000
23764b77047cSDipen Dudhat #define MPC85xx_PMUXCR2_GPIO5_UDE		0x00040000
23774b77047cSDipen Dudhat #define MPC85xx_PMUXCR2_GPIO5_RES		0x00080000
23784b77047cSDipen Dudhat #define MPC85xx_PMUXCR2_READY_ASLEEP		0x00020000
23794b77047cSDipen Dudhat #define MPC85xx_PMUXCR2_DDR_ECC_MUX		0x00010000
23804b77047cSDipen Dudhat #define MPC85xx_PMUXCR2_DEBUG_PORT_EXPOSE	0x00008000
23814b77047cSDipen Dudhat #define MPC85xx_PMUXCR2_POST_EXPOSE		0x00004000
23824b77047cSDipen Dudhat #define MPC85xx_PMUXCR2_DEBUG_MUX_SEL_USBPHY	0x00002000
23834b77047cSDipen Dudhat #define MPC85xx_PMUXCR2_PLL_LKDT_EXPOSE		0x00001000
23844b77047cSDipen Dudhat #endif
2385b93f81a4SJiang Yutang #if defined(CONFIG_P1013) || defined(CONFIG_P1022)
2386aeb6716aSFelix Radensky #define MPC85xx_PMUXCR2_ETSECUSB_MASK	0x001f8000
2387b93f81a4SJiang Yutang #define MPC85xx_PMUXCR2_USB		0x00150000
2388b93f81a4SJiang Yutang #endif
238935fe948eSPrabhakar Kushwaha #if defined(CONFIG_BSC9131) || defined(CONFIG_BSC9132)
239019a8dbdcSPrabhakar Kushwaha #if defined(CONFIG_BSC9131)
239119a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_UART_CTS_B0_SIM_PD		0X40000000
239219a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_UART_CTS_B0_DSP_TMS		0X80000000
239319a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_UART_CTS_B0_GPIO42		0xC0000000
239419a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_UART_RTS_B0_PWM2		0x10000000
239519a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_UART_RTS_B0_DSP_TCK		0x20000000
239619a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_UART_RTS_B0_GPIO43		0x30000000
239719a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_UART_CTS_B1_SIM_PD		0x04000000
239819a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_UART_CTS_B1_SRESET_B		0x08000000
239919a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_UART_CTS_B1_GPIO44		0x0C000000
240019a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_UART_RTS_B1_PPS_LED		0x01000000
240119a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_UART_RTS_B1_RSVD		0x02000000
240219a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_UART_RTS_B1_GPIO45		0x03000000
240319a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_TRIG_OUT_ASLEEP			0x00400000
240419a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_TRIG_OUT_DSP_TRST_B		0x00800000
240519a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_ANT1_TIMER5			0x00100000
240619a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_ANT1_TSEC_1588			0x00200000
240719a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_ANT1_GPIO95_19			0x00300000
240819a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_ANT1_TX_RX_FRAME_MAX3_LOCK	0x00040000
240919a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_ANT1_TX_RX_FRAME_RSVD		0x00080000
241019a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_ANT1_TX_RX_FRAME_GPIO80_20	0x000C0000
241119a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_ANT1_DIO0_3_SPI3_CS0		0x00010000
241219a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_ANT1_DIO0_3_ANT2_DO_3		0x00020000
241319a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_ANT1_DIO0_3_GPIO81_84		0x00030000
241419a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_ANT1_DIO4_7_SPI4		0x00004000
241519a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_ANT1_DIO4_7_ANT2_DO4_7		0x00008000
241619a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_ANT1_DIO4_7_GPIO85_88		0x0000C000
241719a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_ANT1_DIO8_9_MAX2_1_LOCK		0x00001000
241819a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_ANT1_DIO8_9_ANT2_DO8_9		0x00002000
241919a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_ANT1_DIO8_9_GPIO21_22		0x00003000
242019a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_ANT1_DIO10_11_TIMER6_7		0x00000400
242119a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_ANT1_DIO10_11_ANT2_DO10_11	0x00000800
242219a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_ANT1_DIO10_11_GPIO23_24		0x00000C00
242319a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_ANT2_RSVD			0x00000100
242419a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_ANT2_GPO90_91_DMA		0x00000300
242519a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_ANT2_ENABLE_DIO0_10_USB		0x00000040
242619a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_ANT2_ENABLE_DIO0_10_GPIO	0x000000C0
242719a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_ANT2_DIO11_RSVD			0x00000010
242819a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_ANT2_DIO11_TIMER8		0x00000020
242919a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_ANT2_DIO11_GPIO61		0x00000030
243019a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_ANT3_AGC_GPO53			0x00000004
243119a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_ANT3_DO_TDM			0x00000001
243219a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR2_ANT3_DO_GPIO46_49		0x00000002
243335fe948eSPrabhakar Kushwaha #endif
243419a8dbdcSPrabhakar Kushwaha 	u32	pmuxcr3;
243535fe948eSPrabhakar Kushwaha #if defined(CONFIG_BSC9131)
243619a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR3_ANT3_DO4_5_TDM			0x40000000
243719a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR3_ANT3_DO4_5_GPIO_50_51		0x80000000
243819a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR3_ANT3_DO6_7_TRIG_IN_SRESET_B	0x10000000
243919a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR3_ANT3_DO6_7_GPIO_52_53		0x20000000
244019a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR3_ANT3_DO8_MCP_B			0x04000000
244119a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR3_ANT3_DO8_GPIO54			0x08000000
244219a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR3_ANT3_DO9_10_CKSTP_IN_OUT	0x01000000
244319a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR3_ANT3_DO9_10_GPIO55_56		0x02000000
244419a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR3_ANT3_DO11_IRQ_OUT		0x00400000
244519a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR3_ANT3_DO11_GPIO57		0x00800000
244619a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR3_SPI2_CS2_GPO93			0x00100000
244719a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR3_SPI2_CS3_GPO94			0x00040000
244819a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR3_ANT2_AGC_RSVD			0x00010000
244919a8dbdcSPrabhakar Kushwaha #define MPC85xx_PMUXCR3_ANT2_GPO89			0x00030000
245035fe948eSPrabhakar Kushwaha #endif
245135fe948eSPrabhakar Kushwaha #ifdef CONFIG_BSC9132
245235fe948eSPrabhakar Kushwaha #define MPC85xx_PMUXCR3_USB_SEL_MASK	0x0000ff00
245335fe948eSPrabhakar Kushwaha #define MPC85xx_PMUXCR3_UART2_SEL	0x00005000
245435fe948eSPrabhakar Kushwaha #define MPC85xx_PMUXCR3_UART3_SEL_MASK	0xc0000000
245535fe948eSPrabhakar Kushwaha #define MPC85xx_PMUXCR3_UART3_SEL	0x40000000
245635fe948eSPrabhakar Kushwaha #endif
245719a8dbdcSPrabhakar Kushwaha 	u32 pmuxcr4;
245819a8dbdcSPrabhakar Kushwaha #else
24596e37a044STimur Tabi 	u8	res6[8];
246019a8dbdcSPrabhakar Kushwaha #endif
2461a47a12beSStefan Roese 	u32	devdisr;	/* Device disable control */
2462a47a12beSStefan Roese #define MPC85xx_DEVDISR_PCI1		0x80000000
2463a47a12beSStefan Roese #define MPC85xx_DEVDISR_PCI2		0x40000000
2464a47a12beSStefan Roese #define MPC85xx_DEVDISR_PCIE		0x20000000
2465a47a12beSStefan Roese #define MPC85xx_DEVDISR_LBC		0x08000000
2466a47a12beSStefan Roese #define MPC85xx_DEVDISR_PCIE2		0x04000000
2467a47a12beSStefan Roese #define MPC85xx_DEVDISR_PCIE3		0x02000000
2468a47a12beSStefan Roese #define MPC85xx_DEVDISR_SEC		0x01000000
2469a47a12beSStefan Roese #define MPC85xx_DEVDISR_SRIO		0x00080000
2470a47a12beSStefan Roese #define MPC85xx_DEVDISR_RMSG		0x00040000
2471a47a12beSStefan Roese #define MPC85xx_DEVDISR_DDR		0x00010000
2472a47a12beSStefan Roese #define MPC85xx_DEVDISR_CPU		0x00008000
2473a47a12beSStefan Roese #define MPC85xx_DEVDISR_CPU0		MPC85xx_DEVDISR_CPU
2474a47a12beSStefan Roese #define MPC85xx_DEVDISR_TB		0x00004000
2475a47a12beSStefan Roese #define MPC85xx_DEVDISR_TB0		MPC85xx_DEVDISR_TB
2476a47a12beSStefan Roese #define MPC85xx_DEVDISR_CPU1		0x00002000
2477a47a12beSStefan Roese #define MPC85xx_DEVDISR_TB1		0x00001000
2478a47a12beSStefan Roese #define MPC85xx_DEVDISR_DMA		0x00000400
2479a47a12beSStefan Roese #define MPC85xx_DEVDISR_TSEC1		0x00000080
2480a47a12beSStefan Roese #define MPC85xx_DEVDISR_TSEC2		0x00000040
2481a47a12beSStefan Roese #define MPC85xx_DEVDISR_TSEC3		0x00000020
2482a47a12beSStefan Roese #define MPC85xx_DEVDISR_TSEC4		0x00000010
2483a47a12beSStefan Roese #define MPC85xx_DEVDISR_I2C		0x00000004
2484a47a12beSStefan Roese #define MPC85xx_DEVDISR_DUART		0x00000002
2485a47a12beSStefan Roese 	u8	res7[12];
2486a47a12beSStefan Roese 	u32	powmgtcsr;	/* Power management status & control */
2487a47a12beSStefan Roese 	u8	res8[12];
2488a47a12beSStefan Roese 	u32	mcpsumr;	/* Machine check summary */
2489a47a12beSStefan Roese 	u8	res9[12];
2490a47a12beSStefan Roese 	u32	pvr;		/* Processor version */
2491a47a12beSStefan Roese 	u32	svr;		/* System version */
2492a52d2f81SHaiying Wang 	u8	res10[8];
2493a47a12beSStefan Roese 	u32	rstcr;		/* Reset control */
2494a47a12beSStefan Roese #if defined(CONFIG_MPC8568)||defined(CONFIG_MPC8569)
2495a52d2f81SHaiying Wang 	u8	res11a[76];
2496a47a12beSStefan Roese 	par_io_t qe_par_io[7];
2497a52d2f81SHaiying Wang 	u8	res11b[1600];
2498be7bebeaSYork Sun #elif defined(CONFIG_P1012) || defined(CONFIG_P1021) || defined(CONFIG_P1025)
2499a52d2f81SHaiying Wang 	u8      res11a[12];
2500a52d2f81SHaiying Wang 	u32     iovselsr;
2501a52d2f81SHaiying Wang 	u8      res11b[60];
2502a52d2f81SHaiying Wang 	par_io_t qe_par_io[3];
2503a52d2f81SHaiying Wang 	u8      res11c[1496];
2504a47a12beSStefan Roese #else
2505a52d2f81SHaiying Wang 	u8	res11a[1868];
2506a47a12beSStefan Roese #endif
25076e37a044STimur Tabi 	u32	clkdvdr;	/* Clock Divide register */
2508a52d2f81SHaiying Wang 	u8	res12[1532];
2509a47a12beSStefan Roese 	u32	clkocr;		/* Clock out select */
2510a52d2f81SHaiying Wang 	u8	res13[12];
2511a47a12beSStefan Roese 	u32	ddrdllcr;	/* DDR DLL control */
2512a52d2f81SHaiying Wang 	u8	res14[12];
2513a47a12beSStefan Roese 	u32	lbcdllcr;	/* LBC DLL control */
251419a8dbdcSPrabhakar Kushwaha #if defined(CONFIG_BSC9131)
251519a8dbdcSPrabhakar Kushwaha 	u8	res15[12];
251619a8dbdcSPrabhakar Kushwaha 	u32	halt_req_mask;
251719a8dbdcSPrabhakar Kushwaha #define HALTED_TO_HALT_REQ_MASK_0	0x80000000
251819a8dbdcSPrabhakar Kushwaha 	u8	res18[232];
251919a8dbdcSPrabhakar Kushwaha #else
2520a52d2f81SHaiying Wang 	u8	res15[248];
252119a8dbdcSPrabhakar Kushwaha #endif
2522a47a12beSStefan Roese 	u32	lbiuiplldcr0;	/* LBIU PLL Debug Reg 0 */
2523a47a12beSStefan Roese 	u32	lbiuiplldcr1;	/* LBIU PLL Debug Reg 1 */
2524a47a12beSStefan Roese 	u32	ddrioovcr;	/* DDR IO Override Control */
2525a47a12beSStefan Roese 	u32	tsec12ioovcr;	/* eTSEC 1/2 IO override control */
2526a47a12beSStefan Roese 	u32	tsec34ioovcr;	/* eTSEC 3/4 IO override control */
25274aa8405cSZhao Chenhui 	u8      res16[52];
25284aa8405cSZhao Chenhui 	u32	sdhcdcr;	/* SDHC debug control register */
25294aa8405cSZhao Chenhui 	u8      res17[61592];
2530a47a12beSStefan Roese } ccsr_gur_t;
2531a47a12beSStefan Roese #endif
2532a47a12beSStefan Roese 
25334aa8405cSZhao Chenhui #define SDHCDCR_CD_INV		0x80000000 /* invert SDHC card detect */
25344aa8405cSZhao Chenhui 
2535fd3cebd0SYork Sun #ifdef CONFIG_SYS_FSL_QORIQ_CHASSIS2
2536fd3cebd0SYork Sun #define MAX_SERDES 4
2537d1001e3fSYork Sun #define SRDS_MAX_LANES 8
2538d1001e3fSYork Sun #define SRDS_MAX_BANK 2
2539fd3cebd0SYork Sun typedef struct serdes_corenet {
2540fd3cebd0SYork Sun 	struct {
2541fd3cebd0SYork Sun 		u32	rstctl;	/* Reset Control Register */
2542fd3cebd0SYork Sun #define SRDS_RSTCTL_RST		0x80000000
2543fd3cebd0SYork Sun #define SRDS_RSTCTL_RSTDONE	0x40000000
2544fd3cebd0SYork Sun #define SRDS_RSTCTL_RSTERR	0x20000000
2545fd3cebd0SYork Sun #define SRDS_RSTCTL_SWRST	0x10000000
2546fd3cebd0SYork Sun #define SRDS_RSTCTL_SDPD	0x00000020
2547fd3cebd0SYork Sun 		u32	pllcr0; /* PLL Control Register 0 */
2548fd3cebd0SYork Sun #define SRDS_PLLCR0_POFF		0x80000000
2549fd3cebd0SYork Sun #define SRDS_PLLCR0_RFCK_SEL_MASK	0x70000000
2550fd3cebd0SYork Sun #define SRDS_PLLCR0_RFCK_SEL_100	0x00000000
2551fd3cebd0SYork Sun #define SRDS_PLLCR0_RFCK_SEL_125	0x10000000
2552fd3cebd0SYork Sun #define SRDS_PLLCR0_RFCK_SEL_156_25	0x20000000
2553fd3cebd0SYork Sun #define SRDS_PLLCR0_RFCK_SEL_150	0x30000000
2554fd3cebd0SYork Sun #define SRDS_PLLCR0_RFCK_SEL_161_13	0x40000000
2555fd3cebd0SYork Sun #define SRDS_PLLCR0_RFCK_SEL_122_88	0x50000000
2556fd3cebd0SYork Sun #define SRDS_PLLCR0_FRATE_SEL_MASK	0x000f0000
2557fd3cebd0SYork Sun #define SRDS_PLLCR0_FRATE_SEL_5		0x00000000
2558fd3cebd0SYork Sun #define SRDS_PLLCR0_FRATE_SEL_3_75	0x00050000
2559fd3cebd0SYork Sun #define SRDS_PLLCR0_FRATE_SEL_5_15	0x00060000
2560fd3cebd0SYork Sun #define SRDS_PLLCR0_FRATE_SEL_4		0x00070000
2561fd3cebd0SYork Sun #define SRDS_PLLCR0_FRATE_SEL_3_12	0x00090000
2562fd3cebd0SYork Sun #define SRDS_PLLCR0_FRATE_SEL_3		0x000a0000
2563fd3cebd0SYork Sun 		u32	pllcr1; /* PLL Control Register 1 */
2564fd3cebd0SYork Sun #define SRDS_PLLCR1_PLL_BWSEL	0x08000000
2565fd3cebd0SYork Sun 		u32	res_0c;	/* 0x00c */
2566fd3cebd0SYork Sun 		u32	pllcr3;
2567fd3cebd0SYork Sun 		u32	pllcr4;
2568fd3cebd0SYork Sun 		u8	res_18[0x20-0x18];
2569fd3cebd0SYork Sun 	} bank[2];
2570fd3cebd0SYork Sun 	u8	res_40[0x90-0x40];
2571fd3cebd0SYork Sun 	u32	srdstcalcr;	/* 0x90 TX Calibration Control */
2572fd3cebd0SYork Sun 	u8	res_94[0xa0-0x94];
2573fd3cebd0SYork Sun 	u32	srdsrcalcr;	/* 0xa0 RX Calibration Control */
2574fd3cebd0SYork Sun 	u8	res_a4[0xb0-0xa4];
2575fd3cebd0SYork Sun 	u32	srdsgr0;	/* 0xb0 General Register 0 */
2576fd3cebd0SYork Sun 	u8	res_b4[0xe0-0xb4];
2577fd3cebd0SYork Sun 	u32	srdspccr0;	/* 0xe0 Protocol Converter Config 0 */
2578fd3cebd0SYork Sun 	u32	srdspccr1;	/* 0xe4 Protocol Converter Config 1 */
2579fd3cebd0SYork Sun 	u32	srdspccr2;	/* 0xe8 Protocol Converter Config 2 */
2580fd3cebd0SYork Sun 	u32	srdspccr3;	/* 0xec Protocol Converter Config 3 */
2581fd3cebd0SYork Sun 	u32	srdspccr4;	/* 0xf0 Protocol Converter Config 4 */
2582fd3cebd0SYork Sun 	u8	res_f4[0x100-0xf4];
2583fd3cebd0SYork Sun 	struct {
2584fd3cebd0SYork Sun 		u32	lnpssr;	/* 0x100, 0x120, ..., 0x1e0 */
2585fd3cebd0SYork Sun 		u8	res_104[0x120-0x104];
2586fd3cebd0SYork Sun 	} srdslnpssr[8];
2587fd3cebd0SYork Sun 	u8	res_200[0x800-0x200];
2588fd3cebd0SYork Sun 	struct {
2589fd3cebd0SYork Sun 		u32	gcr0;	/* 0x800 General Control Register 0 */
2590fd3cebd0SYork Sun 		u32	gcr1;	/* 0x804 General Control Register 1 */
2591fd3cebd0SYork Sun 		u32	gcr2;	/* 0x808 General Control Register 2 */
2592fd3cebd0SYork Sun 		u32	res_80c;
2593fd3cebd0SYork Sun 		u32	recr0;	/* 0x810 Receive Equalization Control */
2594fd3cebd0SYork Sun 		u32	res_814;
2595fd3cebd0SYork Sun 		u32	tecr0;	/* 0x818 Transmit Equalization Control */
2596fd3cebd0SYork Sun 		u32	res_81c;
2597fd3cebd0SYork Sun 		u32	ttlcr0;	/* 0x820 Transition Tracking Loop Ctrl 0 */
2598fd3cebd0SYork Sun 		u8	res_824[0x840-0x824];
2599fd3cebd0SYork Sun 	} lane[8];	/* Lane A, B, C, D, E, F, G, H */
2600fd3cebd0SYork Sun 	u8	res_a00[0x1000-0xa00];	/* from 0xa00 to 0xfff */
2601fd3cebd0SYork Sun } serdes_corenet_t;
2602fd3cebd0SYork Sun 
2603fd3cebd0SYork Sun #else /* CONFIG_SYS_FSL_QORIQ_CHASSIS2 */
2604fd3cebd0SYork Sun 
2605d1001e3fSYork Sun #define SRDS_MAX_LANES		18
2606d1001e3fSYork Sun #define SRDS_MAX_BANK		3
2607a47a12beSStefan Roese typedef struct serdes_corenet {
2608a47a12beSStefan Roese 	struct {
2609a47a12beSStefan Roese 		u32	rstctl;	/* Reset Control Register */
2610a47a12beSStefan Roese #define SRDS_RSTCTL_RST		0x80000000
2611a47a12beSStefan Roese #define SRDS_RSTCTL_RSTDONE	0x40000000
2612a47a12beSStefan Roese #define SRDS_RSTCTL_RSTERR	0x20000000
26131231c498SKumar Gala #define SRDS_RSTCTL_SDPD	0x00000020
2614a47a12beSStefan Roese 		u32	pllcr0; /* PLL Control Register 0 */
2615f8f85b04SYork Sun #define SRDS_PLLCR0_RFCK_SEL_MASK	0x70000000
26164905443fSTimur Tabi #define SRDS_PLLCR0_PVCOCNT_EN		0x02000000
26171231c498SKumar Gala #define SRDS_PLLCR0_RFCK_SEL_100	0x00000000
26181231c498SKumar Gala #define SRDS_PLLCR0_RFCK_SEL_125	0x10000000
26191231c498SKumar Gala #define SRDS_PLLCR0_RFCK_SEL_156_25	0x20000000
2620e02aea61SKumar Gala #define SRDS_PLLCR0_RFCK_SEL_150	0x30000000
2621f8f85b04SYork Sun #define SRDS_PLLCR0_RFCK_SEL_161_13	0x40000000
26221231c498SKumar Gala #define SRDS_PLLCR0_FRATE_SEL_MASK	0x00030000
26231231c498SKumar Gala #define SRDS_PLLCR0_FRATE_SEL_5		0x00000000
26241231c498SKumar Gala #define SRDS_PLLCR0_FRATE_SEL_6_25	0x00010000
2625a47a12beSStefan Roese 		u32	pllcr1; /* PLL Control Register 1 */
2626a47a12beSStefan Roese #define SRDS_PLLCR1_PLL_BWSEL	0x08000000
2627a47a12beSStefan Roese 		u32	res[5];
2628a47a12beSStefan Roese 	} bank[3];
2629a47a12beSStefan Roese 	u32	res1[12];
2630a47a12beSStefan Roese 	u32	srdstcalcr;	/* TX Calibration Control */
2631a47a12beSStefan Roese 	u32	res2[3];
2632a47a12beSStefan Roese 	u32	srdsrcalcr;	/* RX Calibration Control */
2633a47a12beSStefan Roese 	u32	res3[3];
2634a47a12beSStefan Roese 	u32	srdsgr0;	/* General Register 0 */
2635a47a12beSStefan Roese 	u32	res4[11];
2636a47a12beSStefan Roese 	u32	srdspccr0;	/* Protocol Converter Config 0 */
2637a47a12beSStefan Roese 	u32	srdspccr1;	/* Protocol Converter Config 1 */
2638a47a12beSStefan Roese 	u32	srdspccr2;	/* Protocol Converter Config 2 */
2639a47a12beSStefan Roese #define SRDS_PCCR2_RST_XGMII1		0x00800000
2640a47a12beSStefan Roese #define SRDS_PCCR2_RST_XGMII2		0x00400000
2641a47a12beSStefan Roese 	u32	res5[197];
2642d607b968STimur Tabi 	struct serdes_lane {
2643a47a12beSStefan Roese 		u32	gcr0;	/* General Control Register 0 */
2644a47a12beSStefan Roese #define SRDS_GCR0_RRST			0x00400000
2645a47a12beSStefan Roese #define SRDS_GCR0_1STLANE		0x00010000
26464905443fSTimur Tabi #define SRDS_GCR0_UOTHL			0x00100000
2647a47a12beSStefan Roese 		u32	gcr1;	/* General Control Register 1 */
2648a47a12beSStefan Roese #define SRDS_GCR1_REIDL_CTL_MASK	0x001f0000
2649a47a12beSStefan Roese #define SRDS_GCR1_REIDL_CTL_PCIE	0x00100000
2650a47a12beSStefan Roese #define SRDS_GCR1_REIDL_CTL_SRIO	0x00000000
2651a47a12beSStefan Roese #define SRDS_GCR1_REIDL_CTL_SGMII	0x00040000
2652a47a12beSStefan Roese #define SRDS_GCR1_OPAD_CTL		0x04000000
2653a47a12beSStefan Roese 		u32	res1[4];
2654a47a12beSStefan Roese 		u32	tecr0;	/* TX Equalization Control Reg 0 */
2655a47a12beSStefan Roese #define SRDS_TECR0_TEQ_TYPE_MASK	0x30000000
2656a47a12beSStefan Roese #define SRDS_TECR0_TEQ_TYPE_2LVL	0x10000000
2657a47a12beSStefan Roese 		u32	res3;
2658a47a12beSStefan Roese 		u32	ttlcr0;	/* Transition Tracking Loop Ctrl 0 */
2659df8af0b4SEmil Medve #define SRDS_TTLCR0_FLT_SEL_MASK	0x3f000000
2660b25f6de7STimur Tabi #define SRDS_TTLCR0_FLT_SEL_KFR_26	0x10000000
2661b25f6de7STimur Tabi #define SRDS_TTLCR0_FLT_SEL_KPH_28	0x08000000
2662f68d3063STimur Tabi #define SRDS_TTLCR0_FLT_SEL_750PPM	0x03000000
2663df8af0b4SEmil Medve #define SRDS_TTLCR0_PM_DIS		0x00004000
2664b25f6de7STimur Tabi #define SRDS_TTLCR0_FREQOVD_EN		0x00000001
2665a47a12beSStefan Roese 		u32	res4[7];
2666a47a12beSStefan Roese 	} lane[24];
2667a47a12beSStefan Roese 	u32 res6[384];
2668a47a12beSStefan Roese } serdes_corenet_t;
2669fd3cebd0SYork Sun #endif /* CONFIG_SYS_FSL_QORIQ_CHASSIS2 */
2670a47a12beSStefan Roese 
2671a47a12beSStefan Roese enum {
2672a47a12beSStefan Roese 	FSL_SRDS_B1_LANE_A = 0,
2673a47a12beSStefan Roese 	FSL_SRDS_B1_LANE_B = 1,
2674a47a12beSStefan Roese 	FSL_SRDS_B1_LANE_C = 2,
2675a47a12beSStefan Roese 	FSL_SRDS_B1_LANE_D = 3,
2676a47a12beSStefan Roese 	FSL_SRDS_B1_LANE_E = 4,
2677a47a12beSStefan Roese 	FSL_SRDS_B1_LANE_F = 5,
2678a47a12beSStefan Roese 	FSL_SRDS_B1_LANE_G = 6,
2679a47a12beSStefan Roese 	FSL_SRDS_B1_LANE_H = 7,
2680a47a12beSStefan Roese 	FSL_SRDS_B1_LANE_I = 8,
2681a47a12beSStefan Roese 	FSL_SRDS_B1_LANE_J = 9,
2682a47a12beSStefan Roese 	FSL_SRDS_B2_LANE_A = 16,
2683a47a12beSStefan Roese 	FSL_SRDS_B2_LANE_B = 17,
2684a47a12beSStefan Roese 	FSL_SRDS_B2_LANE_C = 18,
2685a47a12beSStefan Roese 	FSL_SRDS_B2_LANE_D = 19,
2686a47a12beSStefan Roese 	FSL_SRDS_B3_LANE_A = 20,
2687a47a12beSStefan Roese 	FSL_SRDS_B3_LANE_B = 21,
2688a47a12beSStefan Roese 	FSL_SRDS_B3_LANE_C = 22,
2689a47a12beSStefan Roese 	FSL_SRDS_B3_LANE_D = 23,
2690a47a12beSStefan Roese };
2691a47a12beSStefan Roese 
269222f292c7SKim Phillips /* Security Engine Block (MS = Most Sig., LS = Least Sig.) */
269322f292c7SKim Phillips #if CONFIG_SYS_FSL_SEC_COMPAT >= 4
269422f292c7SKim Phillips typedef struct ccsr_sec {
26959ab87d04SKumar Gala 	u32	res0;
26969ab87d04SKumar Gala 	u32	mcfgr;		/* Master CFG Register */
26979ab87d04SKumar Gala 	u8	res1[0x8];
26989ab87d04SKumar Gala 	struct {
26999ab87d04SKumar Gala 		u32	ms;	/* Job Ring LIODN Register, MS */
27009ab87d04SKumar Gala 		u32	ls;	/* Job Ring LIODN Register, LS */
2701ed062e0fSKumar Gala 	} jrliodnr[4];
27029ab87d04SKumar Gala 	u8	res2[0x30];
27039ab87d04SKumar Gala 	struct {
27049ab87d04SKumar Gala 		u32	ms;	/* RTIC LIODN Register, MS */
27059ab87d04SKumar Gala 		u32	ls;	/* RTIC LIODN Register, LS */
27069ab87d04SKumar Gala 	} rticliodnr[4];
27079ab87d04SKumar Gala 	u8	res3[0x1c];
27089ab87d04SKumar Gala 	u32	decorr;		/* DECO Request Register */
27099ab87d04SKumar Gala 	struct {
27109ab87d04SKumar Gala 		u32	ms;	/* DECO LIODN Register, MS */
27119ab87d04SKumar Gala 		u32	ls;	/* DECO LIODN Register, LS */
2712f311838dSAndy Fleming 	} decoliodnr[8];
2713f311838dSAndy Fleming 	u8	res4[0x40];
27149ab87d04SKumar Gala 	u32	dar;		/* DECO Avail Register */
27159ab87d04SKumar Gala 	u32	drr;		/* DECO Reset Register */
27169ab87d04SKumar Gala 	u8	res5[0xe78];
271722f292c7SKim Phillips 	u32	crnr_ms;	/* CHA Revision Number Register, MS */
271822f292c7SKim Phillips 	u32	crnr_ls;	/* CHA Revision Number Register, LS */
271922f292c7SKim Phillips 	u32	ctpr_ms;	/* Compile Time Parameters Register, MS */
272022f292c7SKim Phillips 	u32	ctpr_ls;	/* Compile Time Parameters Register, LS */
27219ab87d04SKumar Gala 	u8	res6[0x10];
272222f292c7SKim Phillips 	u32	far_ms;		/* Fault Address Register, MS */
272322f292c7SKim Phillips 	u32	far_ls;		/* Fault Address Register, LS */
272422f292c7SKim Phillips 	u32	falr;		/* Fault Address LIODN Register */
272522f292c7SKim Phillips 	u32	fadr;		/* Fault Address Detail Register */
27269ab87d04SKumar Gala 	u8	res7[0x4];
272722f292c7SKim Phillips 	u32	csta;		/* CAAM Status Register */
27289ab87d04SKumar Gala 	u8	res8[0x8];
272922f292c7SKim Phillips 	u32	rvid;		/* Run Time Integrity Checking Version ID Reg.*/
273022f292c7SKim Phillips 	u32	ccbvid;		/* CHA Cluster Block Version ID Register */
273122f292c7SKim Phillips 	u32	chavid_ms;	/* CHA Version ID Register, MS */
273222f292c7SKim Phillips 	u32	chavid_ls;	/* CHA Version ID Register, LS */
273322f292c7SKim Phillips 	u32	chanum_ms;	/* CHA Number Register, MS */
27349ab87d04SKumar Gala 	u32	chanum_ls;	/* CHA Number Register, LS */
27359ab87d04SKumar Gala 	u32	secvid_ms;	/* SEC Version ID Register, MS */
27369ab87d04SKumar Gala 	u32	secvid_ls;	/* SEC Version ID Register, LS */
27379ab87d04SKumar Gala 	u8	res9[0x6020];
27389ab87d04SKumar Gala 	u32	qilcr_ms;	/* Queue Interface LIODN CFG Register, MS */
27399ab87d04SKumar Gala 	u32	qilcr_ls;	/* Queue Interface LIODN CFG Register, LS */
27409ab87d04SKumar Gala 	u8	res10[0x8fd8];
27419ab87d04SKumar Gala } ccsr_sec_t;
27429ab87d04SKumar Gala 
27439ab87d04SKumar Gala #define SEC_CTPR_MS_AXI_LIODN		0x08000000
27449ab87d04SKumar Gala #define SEC_CTPR_MS_QI			0x02000000
27459ab87d04SKumar Gala #define SEC_RVID_MA			0x0f000000
2746ed062e0fSKumar Gala #define SEC_CHANUM_MS_JRNUM_MASK	0xf0000000
2747ed062e0fSKumar Gala #define SEC_CHANUM_MS_JRNUM_SHIFT	28
274822f292c7SKim Phillips #define SEC_CHANUM_MS_DECONUM_MASK	0x0f000000
274922f292c7SKim Phillips #define SEC_CHANUM_MS_DECONUM_SHIFT	24
27505e95e2d8SVakul Garg #define SEC_SECVID_MS_IPID_MASK	0xffff0000
27515e95e2d8SVakul Garg #define SEC_SECVID_MS_IPID_SHIFT	16
27525e95e2d8SVakul Garg #define SEC_SECVID_MS_MAJ_REV_MASK	0x0000ff00
27535e95e2d8SVakul Garg #define SEC_SECVID_MS_MAJ_REV_SHIFT	8
27545e95e2d8SVakul Garg #define SEC_CCBVID_ERA_MASK		0xff000000
27555e95e2d8SVakul Garg #define SEC_CCBVID_ERA_SHIFT		24
275622f292c7SKim Phillips #endif
275722f292c7SKim Phillips 
27589ab87d04SKumar Gala typedef struct ccsr_qman {
275992230d49SYork Sun #ifdef CONFIG_SYS_FSL_QMAN_V3
276092230d49SYork Sun 	u8	res0[0x200];
276192230d49SYork Sun #else
27629ab87d04SKumar Gala 	struct {
27639ab87d04SKumar Gala 		u32	qcsp_lio_cfg;	/* 0x0 - SW Portal n LIO cfg */
27649ab87d04SKumar Gala 		u32	qcsp_io_cfg;	/* 0x4 - SW Portal n IO cfg */
27659ab87d04SKumar Gala 		u32	res;
27669ab87d04SKumar Gala 		u32	qcsp_dd_cfg;	/* 0xc - SW Portal n Dynamic Debug cfg */
27679ab87d04SKumar Gala 	} qcsp[32];
276892230d49SYork Sun #endif
27699ab87d04SKumar Gala 	/* Not actually reserved, but irrelevant to u-boot */
27709ab87d04SKumar Gala 	u8	res[0xbf8 - 0x200];
27719ab87d04SKumar Gala 	u32	ip_rev_1;
27729ab87d04SKumar Gala 	u32	ip_rev_2;
27739ab87d04SKumar Gala 	u32	fqd_bare;	/* FQD Extended Base Addr Register */
27749ab87d04SKumar Gala 	u32	fqd_bar;	/* FQD Base Addr Register */
27759ab87d04SKumar Gala 	u8	res1[0x8];
27769ab87d04SKumar Gala 	u32	fqd_ar;		/* FQD Attributes Register */
27779ab87d04SKumar Gala 	u8	res2[0xc];
27789ab87d04SKumar Gala 	u32	pfdr_bare;	/* PFDR Extended Base Addr Register */
27799ab87d04SKumar Gala 	u32	pfdr_bar;	/* PFDR Base Addr Register */
27809ab87d04SKumar Gala 	u8	res3[0x8];
27819ab87d04SKumar Gala 	u32	pfdr_ar;	/* PFDR Attributes Register */
27829ab87d04SKumar Gala 	u8	res4[0x4c];
27839ab87d04SKumar Gala 	u32	qcsp_bare;	/* QCSP Extended Base Addr Register */
27849ab87d04SKumar Gala 	u32	qcsp_bar;	/* QCSP Base Addr Register */
27859ab87d04SKumar Gala 	u8	res5[0x78];
27869ab87d04SKumar Gala 	u32	ci_sched_cfg;	/* Initiator Scheduling Configuration */
27879ab87d04SKumar Gala 	u32	srcidr;		/* Source ID Register */
27889ab87d04SKumar Gala 	u32	liodnr;		/* LIODN Register */
27899ab87d04SKumar Gala 	u8	res6[4];
27909ab87d04SKumar Gala 	u32	ci_rlm_cfg;	/* Initiator Read Latency Monitor Cfg */
27919ab87d04SKumar Gala 	u32	ci_rlm_avg;	/* Initiator Read Latency Monitor Avg */
27929ab87d04SKumar Gala 	u8	res7[0x2e8];
279392230d49SYork Sun #ifdef CONFIG_SYS_FSL_QMAN_V3
279492230d49SYork Sun 	struct {
279592230d49SYork Sun 		u32	qcsp_lio_cfg;	/* 0x0 - SW Portal n LIO cfg */
279692230d49SYork Sun 		u32	qcsp_io_cfg;	/* 0x4 - SW Portal n IO cfg */
279792230d49SYork Sun 		u32	res;
279892230d49SYork Sun 		u32	qcsp_dd_cfg;	/* 0xc - SW Portal n Dynamic Debug cfg*/
279992230d49SYork Sun 	} qcsp[50];
280092230d49SYork Sun #endif
28019ab87d04SKumar Gala } ccsr_qman_t;
28029ab87d04SKumar Gala 
28039ab87d04SKumar Gala typedef struct ccsr_bman {
28049ab87d04SKumar Gala 	/* Not actually reserved, but irrelevant to u-boot */
28059ab87d04SKumar Gala 	u8	res[0xbf8];
28069ab87d04SKumar Gala 	u32	ip_rev_1;
28079ab87d04SKumar Gala 	u32	ip_rev_2;
28089ab87d04SKumar Gala 	u32	fbpr_bare;	/* FBPR Extended Base Addr Register */
28099ab87d04SKumar Gala 	u32	fbpr_bar;	/* FBPR Base Addr Register */
28109ab87d04SKumar Gala 	u8	res1[0x8];
28119ab87d04SKumar Gala 	u32	fbpr_ar;	/* FBPR Attributes Register */
28129ab87d04SKumar Gala 	u8	res2[0xf0];
28139ab87d04SKumar Gala 	u32	srcidr;		/* Source ID Register */
28149ab87d04SKumar Gala 	u32	liodnr;		/* LIODN Register */
28159ab87d04SKumar Gala 	u8	res7[0x2f4];
28169ab87d04SKumar Gala } ccsr_bman_t;
28179ab87d04SKumar Gala 
28189ab87d04SKumar Gala typedef struct ccsr_pme {
28199ab87d04SKumar Gala 	u8	res0[0x804];
28209ab87d04SKumar Gala 	u32	liodnbr;	/* LIODN Base Register */
28219ab87d04SKumar Gala 	u8	res1[0x1f8];
28229ab87d04SKumar Gala 	u32	srcidr;		/* Source ID Register */
28239ab87d04SKumar Gala 	u8	res2[8];
28249ab87d04SKumar Gala 	u32	liodnr;		/* LIODN Register */
28259ab87d04SKumar Gala 	u8	res3[0x1e8];
28269ab87d04SKumar Gala 	u32	pm_ip_rev_1;	/* PME IP Block Revision Reg 1*/
28279ab87d04SKumar Gala 	u32	pm_ip_rev_2;	/* PME IP Block Revision Reg 1*/
28289ab87d04SKumar Gala 	u8	res4[0x400];
28299ab87d04SKumar Gala } ccsr_pme_t;
28309ab87d04SKumar Gala 
28311e501f91SRoy Zang #ifdef CONFIG_SYS_FSL_USB_DUAL_PHY_ENABLE
28321e501f91SRoy Zang struct ccsr_usb_port_ctrl {
28331e501f91SRoy Zang 	u32	ctrl;
28341e501f91SRoy Zang 	u32	drvvbuscfg;
28351e501f91SRoy Zang 	u32	pwrfltcfg;
28361e501f91SRoy Zang 	u32	sts;
28371e501f91SRoy Zang 	u8	res_14[0xc];
28381e501f91SRoy Zang 	u32	bistcfg;
28391e501f91SRoy Zang 	u32	biststs;
28401e501f91SRoy Zang 	u32	abistcfg;
28411e501f91SRoy Zang 	u32	abiststs;
28421e501f91SRoy Zang 	u8	res_30[0x10];
28431e501f91SRoy Zang 	u32	xcvrprg;
28441e501f91SRoy Zang 	u32	anaprg;
28451e501f91SRoy Zang 	u32	anadrv;
28461e501f91SRoy Zang 	u32	anasts;
28471e501f91SRoy Zang };
28481e501f91SRoy Zang 
28491e501f91SRoy Zang typedef struct ccsr_usb_phy {
28501e501f91SRoy Zang 	u32	id;
28511e501f91SRoy Zang 	struct  ccsr_usb_port_ctrl port1;
28521e501f91SRoy Zang 	u8	res_50[0xc];
28531e501f91SRoy Zang 	u32	tvr;
28541e501f91SRoy Zang 	u32	pllprg[4];
28551e501f91SRoy Zang 	u8	res_70[0x4];
28561e501f91SRoy Zang 	u32	anaccfg;
28571e501f91SRoy Zang 	u32	dbg;
28581e501f91SRoy Zang 	u8	res_7c[0x4];
28591e501f91SRoy Zang 	struct  ccsr_usb_port_ctrl port2;
28601e501f91SRoy Zang 	u8	res_dc[0x334];
28611e501f91SRoy Zang } ccsr_usb_phy_t;
28621e501f91SRoy Zang 
28631e501f91SRoy Zang #define CONFIG_SYS_FSL_USB_CTRL_PHY_EN (1 << 0)
28641e501f91SRoy Zang #define CONFIG_SYS_FSL_USB_DRVVBUS_CR_EN (1 << 1)
28651e501f91SRoy Zang #define CONFIG_SYS_FSL_USB_PWRFLT_CR_EN (1 << 1)
28661e501f91SRoy Zang #define CONFIG_SYS_FSL_USB_PLLPRG2_PHY2_CLK_EN (1 << 0)
28671e501f91SRoy Zang #define CONFIG_SYS_FSL_USB_PLLPRG2_PHY1_CLK_EN (1 << 1)
28681e501f91SRoy Zang #define CONFIG_SYS_FSL_USB_PLLPRG2_MFI (5 << 16)
28691e501f91SRoy Zang #define CONFIG_SYS_FSL_USB_PLLPRG2_PLL_EN (1 << 21)
28701e501f91SRoy Zang #else
287186221f09SRoy Zang typedef struct ccsr_usb_phy {
287286221f09SRoy Zang 	u8	res0[0x18];
287386221f09SRoy Zang 	u32	usb_enable_override;
287486221f09SRoy Zang 	u8	res[0xe4];
287586221f09SRoy Zang } ccsr_usb_phy_t;
287686221f09SRoy Zang #define CONFIG_SYS_FSL_USB_ENABLE_OVERRIDE 1
28771e501f91SRoy Zang #endif
287886221f09SRoy Zang 
28796b3a8d00SKumar Gala #ifdef CONFIG_SYS_FSL_RAID_ENGINE
28806b3a8d00SKumar Gala struct ccsr_raide {
28816b3a8d00SKumar Gala 	u8	res0[0x543];
28826b3a8d00SKumar Gala 	u32	liodnbr;			/* LIODN Base Register */
28836b3a8d00SKumar Gala 	u8	res1[0xab8];
28846b3a8d00SKumar Gala 	struct {
28856b3a8d00SKumar Gala 		struct {
28866b3a8d00SKumar Gala 			u32	cfg0;		/* cfg register 0 */
28876b3a8d00SKumar Gala 			u32	cfg1;		/* cfg register 1 */
28886b3a8d00SKumar Gala 			u8	res1[0x3f8];
28896b3a8d00SKumar Gala 		} ring[2];
28906b3a8d00SKumar Gala 		u8	res[0x800];
28916b3a8d00SKumar Gala 	} jq[2];
28926b3a8d00SKumar Gala };
28936b3a8d00SKumar Gala #endif
28946b3a8d00SKumar Gala 
28954d28db8aSKumar Gala #ifdef CONFIG_SYS_DPAA_RMAN
28964d28db8aSKumar Gala struct ccsr_rman {
28974d28db8aSKumar Gala 	u8	res0[0xf64];
28984d28db8aSKumar Gala 	u32	mmliodnbr;	/* Message Manager LIODN Base Register */
28994d28db8aSKumar Gala 	u32	mmitar;		/* RMAN Inbound Translation Address Register */
29004d28db8aSKumar Gala 	u32	mmitdr;		/* RMAN Inbound Translation Data Register */
29014d28db8aSKumar Gala 	u8	res4[0x1f090];
29024d28db8aSKumar Gala };
29034d28db8aSKumar Gala #endif
29044d28db8aSKumar Gala 
2905f311838dSAndy Fleming #ifdef CONFIG_SYS_PMAN
2906f311838dSAndy Fleming struct ccsr_pman {
2907f311838dSAndy Fleming 	u8	res_00[0x40];
2908f311838dSAndy Fleming 	u32	poes1;		/* PMAN Operation Error Status Register 1 */
2909f311838dSAndy Fleming 	u32	poes2;		/* PMAN Operation Error Status Register 2 */
2910f311838dSAndy Fleming 	u32	poeah;		/* PMAN Operation Error Address High */
2911f311838dSAndy Fleming 	u32	poeal;		/* PMAN Operation Error Address Low */
2912f311838dSAndy Fleming 	u8	res_50[0x50];
2913f311838dSAndy Fleming 	u32	pr1;		/* PMAN Revision Register 1 */
2914f311838dSAndy Fleming 	u32	pr2;		/* PMAN Revision Register 2 */
2915f311838dSAndy Fleming 	u8	res_a8[0x8];
2916f311838dSAndy Fleming 	u32	pcap;		/* PMAN Capabilities Register */
2917f311838dSAndy Fleming 	u8	res_b4[0xc];
2918f311838dSAndy Fleming 	u32	pc1;		/* PMAN Control Register 1 */
2919f311838dSAndy Fleming 	u32	pc2;		/* PMAN Control Register 2 */
2920f311838dSAndy Fleming 	u32	pc3;		/* PMAN Control Register 3 */
2921f311838dSAndy Fleming 	u32	pc4;		/* PMAN Control Register 4 */
2922f311838dSAndy Fleming 	u32	pc5;		/* PMAN Control Register 5 */
2923f311838dSAndy Fleming 	u32	pc6;		/* PMAN Control Register 6 */
2924f311838dSAndy Fleming 	u8	res_d8[0x8];
2925f311838dSAndy Fleming 	u32	ppa1;		/* PMAN Prefetch Attributes Register 1 */
2926f311838dSAndy Fleming 	u32	ppa2;		/* PMAN Prefetch Attributes Register 2 */
2927f311838dSAndy Fleming 	u8	res_e8[0x8];
2928f311838dSAndy Fleming 	u32	pics;		/* PMAN Interrupt Control and Status */
2929f311838dSAndy Fleming 	u8	res_f4[0xf0c];
2930f311838dSAndy Fleming };
2931f311838dSAndy Fleming #endif
2932f311838dSAndy Fleming 
2933a47a12beSStefan Roese #ifdef CONFIG_FSL_CORENET
2934a47a12beSStefan Roese #define CONFIG_SYS_FSL_CORENET_CCM_OFFSET	0x0000
2935f311838dSAndy Fleming #ifdef CONFIG_SYS_PMAN
2936f311838dSAndy Fleming #define CONFIG_SYS_FSL_CORENET_PMAN1_OFFSET	0x4000
2937f311838dSAndy Fleming #define CONFIG_SYS_FSL_CORENET_PMAN2_OFFSET	0x5000
2938f311838dSAndy Fleming #define CONFIG_SYS_FSL_CORENET_PMAN3_OFFSET	0x6000
2939f311838dSAndy Fleming #endif
2940e76cd5d4SAndy Fleming #define CONFIG_SYS_MPC8xxx_DDR_OFFSET		0x8000
2941e76cd5d4SAndy Fleming #define CONFIG_SYS_MPC8xxx_DDR2_OFFSET		0x9000
2942e76cd5d4SAndy Fleming #define CONFIG_SYS_MPC8xxx_DDR3_OFFSET		0xA000
2943a47a12beSStefan Roese #define CONFIG_SYS_FSL_CORENET_CLK_OFFSET	0xE1000
2944a47a12beSStefan Roese #define CONFIG_SYS_FSL_CORENET_RCPM_OFFSET	0xE2000
2945a47a12beSStefan Roese #define CONFIG_SYS_FSL_CORENET_SERDES_OFFSET	0xEA000
29464905443fSTimur Tabi #define CONFIG_SYS_FSL_CORENET_SERDES2_OFFSET	0xEB000
2947a47a12beSStefan Roese #define CONFIG_SYS_FSL_CPC_OFFSET		0x10000
29489ab87d04SKumar Gala #define CONFIG_SYS_MPC85xx_DMA1_OFFSET		0x100000
29499ab87d04SKumar Gala #define CONFIG_SYS_MPC85xx_DMA2_OFFSET		0x101000
29509ab87d04SKumar Gala #define CONFIG_SYS_MPC85xx_DMA_OFFSET		CONFIG_SYS_MPC85xx_DMA1_OFFSET
2951a47a12beSStefan Roese #define CONFIG_SYS_MPC85xx_ESPI_OFFSET		0x110000
2952a47a12beSStefan Roese #define CONFIG_SYS_MPC85xx_ESDHC_OFFSET		0x114000
2953a47a12beSStefan Roese #define CONFIG_SYS_MPC85xx_LBC_OFFSET		0x124000
295450d96e95SKumar Gala #define CONFIG_SYS_MPC85xx_IFC_OFFSET		0x124000
2955a47a12beSStefan Roese #define CONFIG_SYS_MPC85xx_GPIO_OFFSET		0x130000
29564d28db8aSKumar Gala #define CONFIG_SYS_FSL_CORENET_RMAN_OFFSET	0x1e0000
2957ada961e2SLiu Gang #if defined(CONFIG_SYS_FSL_QORIQ_CHASSIS2) && !defined(CONFIG_PPC_B4860)\
2958ada961e2SLiu Gang 	&& !defined(CONFIG_PPC_B4420)
29599e758758SYork Sun #define CONFIG_SYS_MPC85xx_PCIE1_OFFSET		0x240000
29609e758758SYork Sun #define CONFIG_SYS_MPC85xx_PCIE2_OFFSET		0x250000
29619e758758SYork Sun #define CONFIG_SYS_MPC85xx_PCIE3_OFFSET		0x260000
29629e758758SYork Sun #define CONFIG_SYS_MPC85xx_PCIE4_OFFSET		0x270000
29639e758758SYork Sun #else
29649ab87d04SKumar Gala #define CONFIG_SYS_MPC85xx_PCIE1_OFFSET		0x200000
29659ab87d04SKumar Gala #define CONFIG_SYS_MPC85xx_PCIE2_OFFSET		0x201000
29669ab87d04SKumar Gala #define CONFIG_SYS_MPC85xx_PCIE3_OFFSET		0x202000
29679ab87d04SKumar Gala #define CONFIG_SYS_MPC85xx_PCIE4_OFFSET		0x203000
29689e758758SYork Sun #endif
29699ab87d04SKumar Gala #define CONFIG_SYS_MPC85xx_USB1_OFFSET		0x210000
29709ab87d04SKumar Gala #define CONFIG_SYS_MPC85xx_USB2_OFFSET		0x211000
29719ab87d04SKumar Gala #define CONFIG_SYS_MPC85xx_USB_OFFSET		CONFIG_SYS_MPC85xx_USB1_OFFSET
297286221f09SRoy Zang #define CONFIG_SYS_MPC85xx_USB1_PHY_OFFSET 0x214000
297386221f09SRoy Zang #define CONFIG_SYS_MPC85xx_USB2_PHY_OFFSET 0x214100
29749ab87d04SKumar Gala #define CONFIG_SYS_MPC85xx_SATA1_OFFSET		0x220000
29759ab87d04SKumar Gala #define CONFIG_SYS_MPC85xx_SATA2_OFFSET		0x221000
297622f292c7SKim Phillips #define CONFIG_SYS_FSL_SEC_OFFSET		0x300000
29779ab87d04SKumar Gala #define CONFIG_SYS_FSL_CORENET_PME_OFFSET	0x316000
297824995d82SHaiying Wang #define CONFIG_SYS_FSL_QMAN_OFFSET		0x318000
297924995d82SHaiying Wang #define CONFIG_SYS_FSL_BMAN_OFFSET		0x31a000
29806b3a8d00SKumar Gala #define CONFIG_SYS_FSL_RAID_ENGINE_OFFSET	0x320000
29819ab87d04SKumar Gala #define CONFIG_SYS_FSL_FM1_OFFSET		0x400000
29829ab87d04SKumar Gala #define CONFIG_SYS_FSL_FM1_RX0_1G_OFFSET	0x488000
29839ab87d04SKumar Gala #define CONFIG_SYS_FSL_FM1_RX1_1G_OFFSET	0x489000
29849ab87d04SKumar Gala #define CONFIG_SYS_FSL_FM1_RX2_1G_OFFSET	0x48a000
29859ab87d04SKumar Gala #define CONFIG_SYS_FSL_FM1_RX3_1G_OFFSET	0x48b000
29869ab87d04SKumar Gala #define CONFIG_SYS_FSL_FM1_RX4_1G_OFFSET	0x48c000
2987f311838dSAndy Fleming #define CONFIG_SYS_FSL_FM1_RX5_1G_OFFSET	0x48d000
29889ab87d04SKumar Gala #define CONFIG_SYS_FSL_FM1_RX0_10G_OFFSET	0x490000
2989f311838dSAndy Fleming #define CONFIG_SYS_FSL_FM1_RX1_10G_OFFSET	0x491000
29909ab87d04SKumar Gala #define CONFIG_SYS_FSL_FM1_DTSEC1_OFFSET	0x4e0000
29919ab87d04SKumar Gala #define CONFIG_SYS_FSL_FM2_OFFSET		0x500000
29929ab87d04SKumar Gala #define CONFIG_SYS_FSL_FM2_RX0_1G_OFFSET	0x588000
29939ab87d04SKumar Gala #define CONFIG_SYS_FSL_FM2_RX1_1G_OFFSET	0x589000
29949ab87d04SKumar Gala #define CONFIG_SYS_FSL_FM2_RX2_1G_OFFSET	0x58a000
29959ab87d04SKumar Gala #define CONFIG_SYS_FSL_FM2_RX3_1G_OFFSET	0x58b000
29969ab87d04SKumar Gala #define CONFIG_SYS_FSL_FM2_RX4_1G_OFFSET	0x58c000
2997f311838dSAndy Fleming #define CONFIG_SYS_FSL_FM2_RX5_1G_OFFSET	0x58d000
29989ab87d04SKumar Gala #define CONFIG_SYS_FSL_FM2_RX0_10G_OFFSET	0x590000
2999f311838dSAndy Fleming #define CONFIG_SYS_FSL_FM2_RX1_10G_OFFSET	0x591000
30006d2b9da1SYork Sun #define CONFIG_SYS_FSL_CLUSTER_1_L2_OFFSET	0xC20000
3001a47a12beSStefan Roese #else
3002a47a12beSStefan Roese #define CONFIG_SYS_MPC85xx_ECM_OFFSET		0x0000
3003e76cd5d4SAndy Fleming #define CONFIG_SYS_MPC8xxx_DDR_OFFSET		0x2000
3004a47a12beSStefan Roese #define CONFIG_SYS_MPC85xx_LBC_OFFSET		0x5000
3005e76cd5d4SAndy Fleming #define CONFIG_SYS_MPC8xxx_DDR2_OFFSET		0x6000
3006a47a12beSStefan Roese #define CONFIG_SYS_MPC85xx_ESPI_OFFSET		0x7000
300799d9c07eSKumar Gala #define CONFIG_SYS_MPC85xx_PCI1_OFFSET		0x8000
3008a47a12beSStefan Roese #define CONFIG_SYS_MPC85xx_PCIX_OFFSET		0x8000
300999d9c07eSKumar Gala #define CONFIG_SYS_MPC85xx_PCI2_OFFSET		0x9000
3010a47a12beSStefan Roese #define CONFIG_SYS_MPC85xx_PCIX2_OFFSET		0x9000
301199d9c07eSKumar Gala #define CONFIG_SYS_MPC85xx_PCIE1_OFFSET         0xa000
301299d9c07eSKumar Gala #define CONFIG_SYS_MPC85xx_PCIE2_OFFSET         0x9000
301399d9c07eSKumar Gala #if defined(CONFIG_MPC8572) || defined(CONFIG_P2020)
301499d9c07eSKumar Gala #define CONFIG_SYS_MPC85xx_PCIE3_OFFSET         0x8000
301599d9c07eSKumar Gala #else
301699d9c07eSKumar Gala #define CONFIG_SYS_MPC85xx_PCIE3_OFFSET         0xb000
301799d9c07eSKumar Gala #endif
3018a47a12beSStefan Roese #define CONFIG_SYS_MPC85xx_GPIO_OFFSET		0xF000
3019a47a12beSStefan Roese #define CONFIG_SYS_MPC85xx_SATA1_OFFSET		0x18000
3020a47a12beSStefan Roese #define CONFIG_SYS_MPC85xx_SATA2_OFFSET		0x19000
3021d789b5f5SDipen Dudhat #define CONFIG_SYS_MPC85xx_IFC_OFFSET		0x1e000
3022a47a12beSStefan Roese #define CONFIG_SYS_MPC85xx_L2_OFFSET		0x20000
3023a47a12beSStefan Roese #define CONFIG_SYS_MPC85xx_DMA_OFFSET		0x21000
3024a47a12beSStefan Roese #define CONFIG_SYS_MPC85xx_USB_OFFSET		0x22000
30259839709eSIra W. Snyder #define CONFIG_SYS_MPC85xx_USB2_OFFSET		0x23000
3026a47a12beSStefan Roese #ifdef CONFIG_TSECV2
3027a47a12beSStefan Roese #define CONFIG_SYS_TSEC1_OFFSET			0xB0000
3028a47a12beSStefan Roese #else
3029a47a12beSStefan Roese #define CONFIG_SYS_TSEC1_OFFSET			0x24000
3030a47a12beSStefan Roese #endif
3031a47a12beSStefan Roese #define CONFIG_SYS_MDIO1_OFFSET			0x24000
3032a47a12beSStefan Roese #define CONFIG_SYS_MPC85xx_ESDHC_OFFSET		0x2e000
30335e95e2d8SVakul Garg #define CONFIG_SYS_FSL_SEC_OFFSET		0x30000
3034a47a12beSStefan Roese #define CONFIG_SYS_MPC85xx_SERDES2_OFFSET	0xE3100
3035a47a12beSStefan Roese #define CONFIG_SYS_MPC85xx_SERDES1_OFFSET	0xE3000
30367065b7d4SRuchika Gupta #define CONFIG_SYS_SNVS_OFFSET			0xE6000
30377065b7d4SRuchika Gupta #define CONFIG_SYS_SFP_OFFSET			0xE7000
3038a47a12beSStefan Roese #define CONFIG_SYS_MPC85xx_CPM_OFFSET		0x80000
303967a719daSRoy Zang #define CONFIG_SYS_FSL_QMAN_OFFSET		0x88000
304067a719daSRoy Zang #define CONFIG_SYS_FSL_BMAN_OFFSET		0x8a000
304167a719daSRoy Zang #define CONFIG_SYS_FSL_FM1_OFFSET		0x100000
304267a719daSRoy Zang #define CONFIG_SYS_FSL_FM1_RX0_1G_OFFSET	0x188000
304367a719daSRoy Zang #define CONFIG_SYS_FSL_FM1_RX1_1G_OFFSET	0x189000
304467a719daSRoy Zang #define CONFIG_SYS_FSL_FM1_DTSEC1_OFFSET	0x1e0000
3045a47a12beSStefan Roese #endif
3046a47a12beSStefan Roese 
3047a47a12beSStefan Roese #define CONFIG_SYS_MPC85xx_PIC_OFFSET		0x40000
3048a47a12beSStefan Roese #define CONFIG_SYS_MPC85xx_GUTS_OFFSET		0xE0000
30495ffa88ecSLiu Gang #define CONFIG_SYS_FSL_SRIO_OFFSET		0xC0000
3050a47a12beSStefan Roese 
3051a47a12beSStefan Roese #define CONFIG_SYS_FSL_CPC_ADDR	\
3052a47a12beSStefan Roese 	(CONFIG_SYS_CCSRBAR + CONFIG_SYS_FSL_CPC_OFFSET)
305324995d82SHaiying Wang #define CONFIG_SYS_FSL_QMAN_ADDR \
305424995d82SHaiying Wang 	(CONFIG_SYS_IMMR + CONFIG_SYS_FSL_QMAN_OFFSET)
305524995d82SHaiying Wang #define CONFIG_SYS_FSL_BMAN_ADDR \
305624995d82SHaiying Wang 	(CONFIG_SYS_IMMR + CONFIG_SYS_FSL_BMAN_OFFSET)
30579ab87d04SKumar Gala #define CONFIG_SYS_FSL_CORENET_PME_ADDR \
30589ab87d04SKumar Gala 	(CONFIG_SYS_IMMR + CONFIG_SYS_FSL_CORENET_PME_OFFSET)
30596b3a8d00SKumar Gala #define CONFIG_SYS_FSL_RAID_ENGINE_ADDR \
30606b3a8d00SKumar Gala 	(CONFIG_SYS_IMMR + CONFIG_SYS_FSL_RAID_ENGINE_OFFSET)
30614d28db8aSKumar Gala #define CONFIG_SYS_FSL_CORENET_RMAN_ADDR \
30624d28db8aSKumar Gala 	(CONFIG_SYS_IMMR + CONFIG_SYS_FSL_CORENET_RMAN_OFFSET)
3063a47a12beSStefan Roese #define CONFIG_SYS_MPC85xx_GUTS_ADDR \
3064a47a12beSStefan Roese 	(CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_GUTS_OFFSET)
3065a47a12beSStefan Roese #define CONFIG_SYS_FSL_CORENET_CCM_ADDR \
3066a47a12beSStefan Roese 	(CONFIG_SYS_IMMR + CONFIG_SYS_FSL_CORENET_CCM_OFFSET)
3067a47a12beSStefan Roese #define CONFIG_SYS_FSL_CORENET_CLK_ADDR \
3068a47a12beSStefan Roese 	(CONFIG_SYS_IMMR + CONFIG_SYS_FSL_CORENET_CLK_OFFSET)
3069a47a12beSStefan Roese #define CONFIG_SYS_FSL_CORENET_RCPM_ADDR \
3070a47a12beSStefan Roese 	(CONFIG_SYS_IMMR + CONFIG_SYS_FSL_CORENET_RCPM_OFFSET)
3071a47a12beSStefan Roese #define CONFIG_SYS_MPC85xx_ECM_ADDR \
3072a47a12beSStefan Roese 	(CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_ECM_OFFSET)
3073e76cd5d4SAndy Fleming #define CONFIG_SYS_MPC8xxx_DDR_ADDR \
3074e76cd5d4SAndy Fleming 	(CONFIG_SYS_IMMR + CONFIG_SYS_MPC8xxx_DDR_OFFSET)
3075e76cd5d4SAndy Fleming #define CONFIG_SYS_MPC8xxx_DDR2_ADDR \
3076e76cd5d4SAndy Fleming 	(CONFIG_SYS_IMMR + CONFIG_SYS_MPC8xxx_DDR2_OFFSET)
3077e76cd5d4SAndy Fleming #define CONFIG_SYS_MPC8xxx_DDR3_ADDR \
3078e76cd5d4SAndy Fleming 	(CONFIG_SYS_IMMR + CONFIG_SYS_MPC8xxx_DDR3_OFFSET)
3079f51cdaf1SBecky Bruce #define CONFIG_SYS_LBC_ADDR \
3080a47a12beSStefan Roese 	(CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_LBC_OFFSET)
3081d789b5f5SDipen Dudhat #define CONFIG_SYS_IFC_ADDR \
3082d789b5f5SDipen Dudhat 	(CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_IFC_OFFSET)
3083a47a12beSStefan Roese #define CONFIG_SYS_MPC85xx_ESPI_ADDR \
3084a47a12beSStefan Roese 	(CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_ESPI_OFFSET)
3085a47a12beSStefan Roese #define CONFIG_SYS_MPC85xx_PCIX_ADDR \
3086a47a12beSStefan Roese 	(CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_PCIX_OFFSET)
3087a47a12beSStefan Roese #define CONFIG_SYS_MPC85xx_PCIX2_ADDR \
3088a47a12beSStefan Roese 	(CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_PCIX2_OFFSET)
3089a47a12beSStefan Roese #define CONFIG_SYS_MPC85xx_GPIO_ADDR \
3090a47a12beSStefan Roese 	(CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_GPIO_OFFSET)
3091a47a12beSStefan Roese #define CONFIG_SYS_MPC85xx_SATA1_ADDR \
3092a47a12beSStefan Roese 	(CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_SATA1_OFFSET)
3093a47a12beSStefan Roese #define CONFIG_SYS_MPC85xx_SATA2_ADDR \
3094a47a12beSStefan Roese 	(CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_SATA2_OFFSET)
3095a47a12beSStefan Roese #define CONFIG_SYS_MPC85xx_L2_ADDR \
3096a47a12beSStefan Roese 	(CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_L2_OFFSET)
3097a47a12beSStefan Roese #define CONFIG_SYS_MPC85xx_DMA_ADDR \
3098a47a12beSStefan Roese 	(CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_DMA_OFFSET)
3099a47a12beSStefan Roese #define CONFIG_SYS_MPC85xx_ESDHC_ADDR \
3100a47a12beSStefan Roese 	(CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_ESDHC_OFFSET)
3101680c613aSKim Phillips #define CONFIG_SYS_MPC8xxx_PIC_ADDR \
3102a47a12beSStefan Roese 	(CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_PIC_OFFSET)
3103a47a12beSStefan Roese #define CONFIG_SYS_MPC85xx_CPM_ADDR \
3104a47a12beSStefan Roese 	(CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_CPM_OFFSET)
3105a47a12beSStefan Roese #define CONFIG_SYS_MPC85xx_SERDES1_ADDR \
310617028be2SPrabhakar 	(CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_SERDES1_OFFSET)
3107a47a12beSStefan Roese #define CONFIG_SYS_MPC85xx_SERDES2_ADDR \
3108a47a12beSStefan Roese 	(CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_SERDES2_OFFSET)
3109a47a12beSStefan Roese #define CONFIG_SYS_FSL_CORENET_SERDES_ADDR \
3110a47a12beSStefan Roese 	(CONFIG_SYS_IMMR + CONFIG_SYS_FSL_CORENET_SERDES_OFFSET)
31114905443fSTimur Tabi #define CONFIG_SYS_FSL_CORENET_SERDES2_ADDR \
31124905443fSTimur Tabi 	(CONFIG_SYS_IMMR + CONFIG_SYS_FSL_CORENET_SERDES2_OFFSET)
3113a47a12beSStefan Roese #define CONFIG_SYS_MPC85xx_USB_ADDR \
3114a47a12beSStefan Roese 	(CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_USB_OFFSET)
311586221f09SRoy Zang #define CONFIG_SYS_MPC85xx_USB1_PHY_ADDR \
311686221f09SRoy Zang 	(CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_USB1_PHY_OFFSET)
311786221f09SRoy Zang #define CONFIG_SYS_MPC85xx_USB2_PHY_ADDR \
311886221f09SRoy Zang 	(CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_USB2_PHY_OFFSET)
311922f292c7SKim Phillips #define CONFIG_SYS_FSL_SEC_ADDR \
312022f292c7SKim Phillips 	(CONFIG_SYS_IMMR + CONFIG_SYS_FSL_SEC_OFFSET)
31219ab87d04SKumar Gala #define CONFIG_SYS_FSL_FM1_ADDR \
31229ab87d04SKumar Gala 	(CONFIG_SYS_IMMR + CONFIG_SYS_FSL_FM1_OFFSET)
31239ab87d04SKumar Gala #define CONFIG_SYS_FSL_FM1_DTSEC1_ADDR \
31249ab87d04SKumar Gala 	(CONFIG_SYS_IMMR + CONFIG_SYS_FSL_FM1_DTSEC1_OFFSET)
31259ab87d04SKumar Gala #define CONFIG_SYS_FSL_FM2_ADDR \
31269ab87d04SKumar Gala 	(CONFIG_SYS_IMMR + CONFIG_SYS_FSL_FM2_OFFSET)
31275ffa88ecSLiu Gang #define CONFIG_SYS_FSL_SRIO_ADDR \
31285ffa88ecSLiu Gang 	(CONFIG_SYS_IMMR + CONFIG_SYS_FSL_SRIO_OFFSET)
3129a47a12beSStefan Roese 
313099d9c07eSKumar Gala #define CONFIG_SYS_PCI1_ADDR \
313199d9c07eSKumar Gala 	(CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_PCI1_OFFSET)
313299d9c07eSKumar Gala #define CONFIG_SYS_PCI2_ADDR \
313399d9c07eSKumar Gala 	(CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_PCI2_OFFSET)
313499d9c07eSKumar Gala #define CONFIG_SYS_PCIE1_ADDR \
313599d9c07eSKumar Gala 	(CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_PCIE1_OFFSET)
313699d9c07eSKumar Gala #define CONFIG_SYS_PCIE2_ADDR \
313799d9c07eSKumar Gala 	(CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_PCIE2_OFFSET)
313899d9c07eSKumar Gala #define CONFIG_SYS_PCIE3_ADDR \
313999d9c07eSKumar Gala 	(CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_PCIE3_OFFSET)
31409ab87d04SKumar Gala #define CONFIG_SYS_PCIE4_ADDR \
31419ab87d04SKumar Gala 	(CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_PCIE4_OFFSET)
314299d9c07eSKumar Gala 
3143a47a12beSStefan Roese #define TSEC_BASE_ADDR		(CONFIG_SYS_IMMR + CONFIG_SYS_TSEC1_OFFSET)
3144a47a12beSStefan Roese #define MDIO_BASE_ADDR		(CONFIG_SYS_IMMR + CONFIG_SYS_MDIO1_OFFSET)
3145a47a12beSStefan Roese 
31466d2b9da1SYork Sun #ifdef CONFIG_SYS_FSL_QORIQ_CHASSIS2
31476d2b9da1SYork Sun struct ccsr_cluster_l2 {
31486d2b9da1SYork Sun 	u32 l2csr0;	/* 0x000 L2 cache control and status register 0 */
31496d2b9da1SYork Sun 	u32 l2csr1;	/* 0x004 L2 cache control and status register 1 */
31506d2b9da1SYork Sun 	u32 l2cfg0;	/* 0x008 L2 cache configuration register 0 */
31516d2b9da1SYork Sun 	u8  res_0c[500];/* 0x00c - 0x1ff */
31526d2b9da1SYork Sun 	u32 l2pir0;	/* 0x200 L2 cache partitioning ID register 0 */
31536d2b9da1SYork Sun 	u8  res_204[4];
31546d2b9da1SYork Sun 	u32 l2par0;	/* 0x208 L2 cache partitioning allocation register 0 */
31556d2b9da1SYork Sun 	u32 l2pwr0;	/* 0x20c L2 cache partitioning way register 0 */
31566d2b9da1SYork Sun 	u32 l2pir1;	/* 0x210 L2 cache partitioning ID register 1 */
31576d2b9da1SYork Sun 	u8  res_214[4];
31586d2b9da1SYork Sun 	u32 l2par1;	/* 0x218 L2 cache partitioning allocation register 1 */
31596d2b9da1SYork Sun 	u32 l2pwr1;	/* 0x21c L2 cache partitioning way register 1 */
31606d2b9da1SYork Sun 	u32 u2pir2;	/* 0x220 L2 cache partitioning ID register 2 */
31616d2b9da1SYork Sun 	u8  res_224[4];
31626d2b9da1SYork Sun 	u32 l2par2;	/* 0x228 L2 cache partitioning allocation register 2 */
31636d2b9da1SYork Sun 	u32 l2pwr2;	/* 0x22c L2 cache partitioning way register 2 */
31646d2b9da1SYork Sun 	u32 l2pir3;	/* 0x230 L2 cache partitioning ID register 3 */
31656d2b9da1SYork Sun 	u8  res_234[4];
31666d2b9da1SYork Sun 	u32 l2par3;	/* 0x238 L2 cache partitining allocation register 3 */
31676d2b9da1SYork Sun 	u32 l2pwr3;	/* 0x23c L2 cache partitining way register 3 */
31686d2b9da1SYork Sun 	u32 l2pir4;	/* 0x240 L2 cache partitioning ID register 3 */
31696d2b9da1SYork Sun 	u8  res244[4];
31706d2b9da1SYork Sun 	u32 l2par4;	/* 0x248 L2 cache partitioning allocation register 3 */
31716d2b9da1SYork Sun 	u32 l2pwr4;	/* 0x24c L2 cache partitioning way register 3 */
31726d2b9da1SYork Sun 	u32 l2pir5;	/* 0x250 L2 cache partitioning ID register 3 */
31736d2b9da1SYork Sun 	u8  res_254[4];
31746d2b9da1SYork Sun 	u32 l2par5;	/* 0x258 L2 cache partitioning allocation register 3 */
31756d2b9da1SYork Sun 	u32 l2pwr5;	/* 0x25c L2 cache partitioning way register 3 */
31766d2b9da1SYork Sun 	u32 l2pir6;	/* 0x260 L2 cache partitioning ID register 3 */
31776d2b9da1SYork Sun 	u8  res_264[4];
31786d2b9da1SYork Sun 	u32 l2par6;	/* 0x268 L2 cache partitioning allocation register 3 */
31796d2b9da1SYork Sun 	u32 l2pwr6;	/* 0x26c L2 cache partitioning way register 3 */
31806d2b9da1SYork Sun 	u32 l2pir7;	/* 0x270 L2 cache partitioning ID register 3 */
31816d2b9da1SYork Sun 	u8  res274[4];
31826d2b9da1SYork Sun 	u32 l2par7;	/* 0x278 L2 cache partitioning allocation register 3 */
31836d2b9da1SYork Sun 	u32 l2pwr7;	/* 0x27c L2 cache partitioning way register 3 */
31846d2b9da1SYork Sun 	u8  res_280[0xb80]; /* 0x280 - 0xdff */
31856d2b9da1SYork Sun 	u32 l2errinjhi;	/* 0xe00 L2 cache error injection mask high */
31866d2b9da1SYork Sun 	u32 l2errinjlo;	/* 0xe04 L2 cache error injection mask low */
31876d2b9da1SYork Sun 	u32 l2errinjctl;/* 0xe08 L2 cache error injection control */
31886d2b9da1SYork Sun 	u8  res_e0c[20];	/* 0xe0c - 0x01f */
31896d2b9da1SYork Sun 	u32 l2captdatahi; /* 0xe20 L2 cache error capture data high */
31906d2b9da1SYork Sun 	u32 l2captdatalo; /* 0xe24 L2 cache error capture data low */
31916d2b9da1SYork Sun 	u32 l2captecc;	/* 0xe28 L2 cache error capture ECC syndrome */
31926d2b9da1SYork Sun 	u8  res_e2c[20];	/* 0xe2c - 0xe3f */
31936d2b9da1SYork Sun 	u32 l2errdet;	/* 0xe40 L2 cache error detect */
31946d2b9da1SYork Sun 	u32 l2errdis;	/* 0xe44 L2 cache error disable */
31956d2b9da1SYork Sun 	u32 l2errinten;	/* 0xe48 L2 cache error interrupt enable */
31966d2b9da1SYork Sun 	u32 l2errattr;	/* 0xe4c L2 cache error attribute */
31976d2b9da1SYork Sun 	u32 l2erreaddr;	/* 0xe50 L2 cache error extended address */
31986d2b9da1SYork Sun 	u32 l2erraddr;	/* 0xe54 L2 cache error address */
31996d2b9da1SYork Sun 	u32 l2errctl;	/* 0xe58 L2 cache error control */
32006d2b9da1SYork Sun };
32016d2b9da1SYork Sun #define CONFIG_SYS_FSL_CLUSTER_1_L2 \
32026d2b9da1SYork Sun 	(CONFIG_SYS_IMMR + CONFIG_SYS_FSL_CLUSTER_1_L2_OFFSET)
32036d2b9da1SYork Sun #endif /* CONFIG_SYS_FSL_QORIQ_CHASSIS2 */
320499d7b0a4SXulei 
320599d7b0a4SXulei #define	CONFIG_SYS_DCSR_DCFG_OFFSET	0X20000
320699d7b0a4SXulei struct dcsr_dcfg_regs {
320799d7b0a4SXulei 	u8  res_0[0x520];
320899d7b0a4SXulei 	u32 ecccr1;
320999d7b0a4SXulei #define	DCSR_DCFG_ECC_DISABLE_USB1	0x00008000
321099d7b0a4SXulei #define	DCSR_DCFG_ECC_DISABLE_USB2	0x00004000
321199d7b0a4SXulei 	u8  res_524[0x1000 - 0x524]; /* 0x524 - 0x1000 */
321299d7b0a4SXulei };
3213a47a12beSStefan Roese #endif /*__IMMAP_85xx__*/
3214