xref: /rk3399_rockchip-uboot/include/linux/immap_qe.h (revision 38d67a4e552ac991f21c2d3e442a38fb0098fda6)
1*38d67a4eSZhao Qiang /*
2*38d67a4eSZhao Qiang  * QUICC Engine (QE) Internal Memory Map.
3*38d67a4eSZhao Qiang  * The Internal Memory Map for devices with QE on them. This
4*38d67a4eSZhao Qiang  * is the superset of all QE devices (8360, etc.).
5*38d67a4eSZhao Qiang  *
6*38d67a4eSZhao Qiang  * Copyright (c) 2006-2009, 2011 Freescale Semiconductor, Inc.
7*38d67a4eSZhao Qiang  * Author: Shlomi Gridih <gridish@freescale.com>
8*38d67a4eSZhao Qiang  *
9*38d67a4eSZhao Qiang  * SPDX-License-Identifier:	GPL-2.0+
10*38d67a4eSZhao Qiang  */
11*38d67a4eSZhao Qiang 
12*38d67a4eSZhao Qiang #ifndef __IMMAP_QE_H__
13*38d67a4eSZhao Qiang #define __IMMAP_QE_H__
14*38d67a4eSZhao Qiang 
15*38d67a4eSZhao Qiang #ifdef CONFIG_MPC83xx
16*38d67a4eSZhao Qiang #if defined(CONFIG_MPC8360)
17*38d67a4eSZhao Qiang #define QE_MURAM_SIZE		0xc000UL
18*38d67a4eSZhao Qiang #define MAX_QE_RISC		2
19*38d67a4eSZhao Qiang #define QE_NUM_OF_SNUM		28
20*38d67a4eSZhao Qiang #elif defined(CONFIG_MPC832x) || defined(CONFIG_MPC8309)
21*38d67a4eSZhao Qiang #define QE_MURAM_SIZE		0x4000UL
22*38d67a4eSZhao Qiang #define MAX_QE_RISC		1
23*38d67a4eSZhao Qiang #define QE_NUM_OF_SNUM		28
24*38d67a4eSZhao Qiang #endif
25*38d67a4eSZhao Qiang #endif
26*38d67a4eSZhao Qiang 
27*38d67a4eSZhao Qiang /* QE I-RAM */
28*38d67a4eSZhao Qiang typedef struct qe_iram {
29*38d67a4eSZhao Qiang 	u32 iadd;		/* I-RAM Address Register */
30*38d67a4eSZhao Qiang 	u32 idata;		/* I-RAM Data Register    */
31*38d67a4eSZhao Qiang 	u8 res0[0x4];
32*38d67a4eSZhao Qiang 	u32 iready;
33*38d67a4eSZhao Qiang 	u8 res1[0x70];
34*38d67a4eSZhao Qiang } __attribute__ ((packed)) qe_iram_t;
35*38d67a4eSZhao Qiang 
36*38d67a4eSZhao Qiang /* QE Interrupt Controller */
37*38d67a4eSZhao Qiang typedef struct qe_ic {
38*38d67a4eSZhao Qiang 	u32 qicr;
39*38d67a4eSZhao Qiang 	u32 qivec;
40*38d67a4eSZhao Qiang 	u32 qripnr;
41*38d67a4eSZhao Qiang 	u32 qipnr;
42*38d67a4eSZhao Qiang 	u32 qipxcc;
43*38d67a4eSZhao Qiang 	u32 qipycc;
44*38d67a4eSZhao Qiang 	u32 qipwcc;
45*38d67a4eSZhao Qiang 	u32 qipzcc;
46*38d67a4eSZhao Qiang 	u32 qimr;
47*38d67a4eSZhao Qiang 	u32 qrimr;
48*38d67a4eSZhao Qiang 	u32 qicnr;
49*38d67a4eSZhao Qiang 	u8 res0[0x4];
50*38d67a4eSZhao Qiang 	u32 qiprta;
51*38d67a4eSZhao Qiang 	u32 qiprtb;
52*38d67a4eSZhao Qiang 	u8 res1[0x4];
53*38d67a4eSZhao Qiang 	u32 qricr;
54*38d67a4eSZhao Qiang 	u8 res2[0x20];
55*38d67a4eSZhao Qiang 	u32 qhivec;
56*38d67a4eSZhao Qiang 	u8 res3[0x1C];
57*38d67a4eSZhao Qiang } __attribute__ ((packed)) qe_ic_t;
58*38d67a4eSZhao Qiang 
59*38d67a4eSZhao Qiang /* Communications Processor */
60*38d67a4eSZhao Qiang typedef struct cp_qe {
61*38d67a4eSZhao Qiang 	u32 cecr;		/* QE command register */
62*38d67a4eSZhao Qiang 	u32 ceccr;		/* QE controller configuration register */
63*38d67a4eSZhao Qiang 	u32 cecdr;		/* QE command data register */
64*38d67a4eSZhao Qiang 	u8 res0[0xA];
65*38d67a4eSZhao Qiang 	u16 ceter;		/* QE timer event register */
66*38d67a4eSZhao Qiang 	u8 res1[0x2];
67*38d67a4eSZhao Qiang 	u16 cetmr;		/* QE timers mask register */
68*38d67a4eSZhao Qiang 	u32 cetscr;		/* QE time-stamp timer control register */
69*38d67a4eSZhao Qiang 	u32 cetsr1;		/* QE time-stamp register 1 */
70*38d67a4eSZhao Qiang 	u32 cetsr2;		/* QE time-stamp register 2 */
71*38d67a4eSZhao Qiang 	u8 res2[0x8];
72*38d67a4eSZhao Qiang 	u32 cevter;		/* QE virtual tasks event register */
73*38d67a4eSZhao Qiang 	u32 cevtmr;		/* QE virtual tasks mask register */
74*38d67a4eSZhao Qiang 	u16 cercr;		/* QE RAM control register */
75*38d67a4eSZhao Qiang 	u8 res3[0x2];
76*38d67a4eSZhao Qiang 	u8 res4[0x24];
77*38d67a4eSZhao Qiang 	u16 ceexe1;		/* QE external request 1 event register */
78*38d67a4eSZhao Qiang 	u8 res5[0x2];
79*38d67a4eSZhao Qiang 	u16 ceexm1;		/* QE external request 1 mask register */
80*38d67a4eSZhao Qiang 	u8 res6[0x2];
81*38d67a4eSZhao Qiang 	u16 ceexe2;		/* QE external request 2 event register */
82*38d67a4eSZhao Qiang 	u8 res7[0x2];
83*38d67a4eSZhao Qiang 	u16 ceexm2;		/* QE external request 2 mask register */
84*38d67a4eSZhao Qiang 	u8 res8[0x2];
85*38d67a4eSZhao Qiang 	u16 ceexe3;		/* QE external request 3 event register */
86*38d67a4eSZhao Qiang 	u8 res9[0x2];
87*38d67a4eSZhao Qiang 	u16 ceexm3;		/* QE external request 3 mask register */
88*38d67a4eSZhao Qiang 	u8 res10[0x2];
89*38d67a4eSZhao Qiang 	u16 ceexe4;		/* QE external request 4 event register */
90*38d67a4eSZhao Qiang 	u8 res11[0x2];
91*38d67a4eSZhao Qiang 	u16 ceexm4;		/* QE external request 4 mask register */
92*38d67a4eSZhao Qiang 	u8 res12[0x2];
93*38d67a4eSZhao Qiang 	u8 res13[0x280];
94*38d67a4eSZhao Qiang } __attribute__ ((packed)) cp_qe_t;
95*38d67a4eSZhao Qiang 
96*38d67a4eSZhao Qiang /* QE Multiplexer */
97*38d67a4eSZhao Qiang typedef struct qe_mux {
98*38d67a4eSZhao Qiang 	u32 cmxgcr;		/* CMX general clock route register    */
99*38d67a4eSZhao Qiang 	u32 cmxsi1cr_l;		/* CMX SI1 clock route low register    */
100*38d67a4eSZhao Qiang 	u32 cmxsi1cr_h;		/* CMX SI1 clock route high register   */
101*38d67a4eSZhao Qiang 	u32 cmxsi1syr;		/* CMX SI1 SYNC route register         */
102*38d67a4eSZhao Qiang 	u32 cmxucr1;		/* CMX UCC1, UCC3 clock route register */
103*38d67a4eSZhao Qiang 	u32 cmxucr2;		/* CMX UCC5, UCC7 clock route register */
104*38d67a4eSZhao Qiang 	u32 cmxucr3;		/* CMX UCC2, UCC4 clock route register */
105*38d67a4eSZhao Qiang 	u32 cmxucr4;		/* CMX UCC6, UCC8 clock route register */
106*38d67a4eSZhao Qiang 	u32 cmxupcr;		/* CMX UPC clock route register        */
107*38d67a4eSZhao Qiang 	u8 res0[0x1C];
108*38d67a4eSZhao Qiang } __attribute__ ((packed)) qe_mux_t;
109*38d67a4eSZhao Qiang 
110*38d67a4eSZhao Qiang /* QE Timers */
111*38d67a4eSZhao Qiang typedef struct qe_timers {
112*38d67a4eSZhao Qiang 	u8 gtcfr1;		/* Timer 1 2 global configuration register */
113*38d67a4eSZhao Qiang 	u8 res0[0x3];
114*38d67a4eSZhao Qiang 	u8 gtcfr2;		/* Timer 3 4 global configuration register */
115*38d67a4eSZhao Qiang 	u8 res1[0xB];
116*38d67a4eSZhao Qiang 	u16 gtmdr1;		/* Timer 1 mode register */
117*38d67a4eSZhao Qiang 	u16 gtmdr2;		/* Timer 2 mode register */
118*38d67a4eSZhao Qiang 	u16 gtrfr1;		/* Timer 1 reference register */
119*38d67a4eSZhao Qiang 	u16 gtrfr2;		/* Timer 2 reference register */
120*38d67a4eSZhao Qiang 	u16 gtcpr1;		/* Timer 1 capture register */
121*38d67a4eSZhao Qiang 	u16 gtcpr2;		/* Timer 2 capture register */
122*38d67a4eSZhao Qiang 	u16 gtcnr1;		/* Timer 1 counter */
123*38d67a4eSZhao Qiang 	u16 gtcnr2;		/* Timer 2 counter */
124*38d67a4eSZhao Qiang 	u16 gtmdr3;		/* Timer 3 mode register */
125*38d67a4eSZhao Qiang 	u16 gtmdr4;		/* Timer 4 mode register */
126*38d67a4eSZhao Qiang 	u16 gtrfr3;		/* Timer 3 reference register */
127*38d67a4eSZhao Qiang 	u16 gtrfr4;		/* Timer 4 reference register */
128*38d67a4eSZhao Qiang 	u16 gtcpr3;		/* Timer 3 capture register */
129*38d67a4eSZhao Qiang 	u16 gtcpr4;		/* Timer 4 capture register */
130*38d67a4eSZhao Qiang 	u16 gtcnr3;		/* Timer 3 counter */
131*38d67a4eSZhao Qiang 	u16 gtcnr4;		/* Timer 4 counter */
132*38d67a4eSZhao Qiang 	u16 gtevr1;		/* Timer 1 event register */
133*38d67a4eSZhao Qiang 	u16 gtevr2;		/* Timer 2 event register */
134*38d67a4eSZhao Qiang 	u16 gtevr3;		/* Timer 3 event register */
135*38d67a4eSZhao Qiang 	u16 gtevr4;		/* Timer 4 event register */
136*38d67a4eSZhao Qiang 	u16 gtps;		/* Timer 1 prescale register */
137*38d67a4eSZhao Qiang 	u8 res2[0x46];
138*38d67a4eSZhao Qiang } __attribute__ ((packed)) qe_timers_t;
139*38d67a4eSZhao Qiang 
140*38d67a4eSZhao Qiang /* BRG */
141*38d67a4eSZhao Qiang typedef struct qe_brg {
142*38d67a4eSZhao Qiang 	u32 brgc1;		/* BRG1 configuration register  */
143*38d67a4eSZhao Qiang 	u32 brgc2;		/* BRG2 configuration register  */
144*38d67a4eSZhao Qiang 	u32 brgc3;		/* BRG3 configuration register  */
145*38d67a4eSZhao Qiang 	u32 brgc4;		/* BRG4 configuration register  */
146*38d67a4eSZhao Qiang 	u32 brgc5;		/* BRG5 configuration register  */
147*38d67a4eSZhao Qiang 	u32 brgc6;		/* BRG6 configuration register  */
148*38d67a4eSZhao Qiang 	u32 brgc7;		/* BRG7 configuration register  */
149*38d67a4eSZhao Qiang 	u32 brgc8;		/* BRG8 configuration register  */
150*38d67a4eSZhao Qiang 	u32 brgc9;		/* BRG9 configuration register  */
151*38d67a4eSZhao Qiang 	u32 brgc10;		/* BRG10 configuration register */
152*38d67a4eSZhao Qiang 	u32 brgc11;		/* BRG11 configuration register */
153*38d67a4eSZhao Qiang 	u32 brgc12;		/* BRG12 configuration register */
154*38d67a4eSZhao Qiang 	u32 brgc13;		/* BRG13 configuration register */
155*38d67a4eSZhao Qiang 	u32 brgc14;		/* BRG14 configuration register */
156*38d67a4eSZhao Qiang 	u32 brgc15;		/* BRG15 configuration register */
157*38d67a4eSZhao Qiang 	u32 brgc16;		/* BRG16 configuration register */
158*38d67a4eSZhao Qiang 	u8 res0[0x40];
159*38d67a4eSZhao Qiang } __attribute__ ((packed)) qe_brg_t;
160*38d67a4eSZhao Qiang 
161*38d67a4eSZhao Qiang /* SPI */
162*38d67a4eSZhao Qiang typedef struct spi {
163*38d67a4eSZhao Qiang 	u8 res0[0x20];
164*38d67a4eSZhao Qiang 	u32 spmode;		/* SPI mode register */
165*38d67a4eSZhao Qiang 	u8 res1[0x2];
166*38d67a4eSZhao Qiang 	u8 spie;		/* SPI event register */
167*38d67a4eSZhao Qiang 	u8 res2[0x1];
168*38d67a4eSZhao Qiang 	u8 res3[0x2];
169*38d67a4eSZhao Qiang 	u8 spim;		/* SPI mask register */
170*38d67a4eSZhao Qiang 	u8 res4[0x1];
171*38d67a4eSZhao Qiang 	u8 res5[0x1];
172*38d67a4eSZhao Qiang 	u8 spcom;		/* SPI command register  */
173*38d67a4eSZhao Qiang 	u8 res6[0x2];
174*38d67a4eSZhao Qiang 	u32 spitd;		/* SPI transmit data register (cpu mode) */
175*38d67a4eSZhao Qiang 	u32 spird;		/* SPI receive data register (cpu mode) */
176*38d67a4eSZhao Qiang 	u8 res7[0x8];
177*38d67a4eSZhao Qiang } __attribute__ ((packed)) spi_t;
178*38d67a4eSZhao Qiang 
179*38d67a4eSZhao Qiang /* SI */
180*38d67a4eSZhao Qiang typedef struct si1 {
181*38d67a4eSZhao Qiang 	u16 siamr1;		/* SI1 TDMA mode register */
182*38d67a4eSZhao Qiang 	u16 sibmr1;		/* SI1 TDMB mode register */
183*38d67a4eSZhao Qiang 	u16 sicmr1;		/* SI1 TDMC mode register */
184*38d67a4eSZhao Qiang 	u16 sidmr1;		/* SI1 TDMD mode register */
185*38d67a4eSZhao Qiang 	u8 siglmr1_h;		/* SI1 global mode register high */
186*38d67a4eSZhao Qiang 	u8 res0[0x1];
187*38d67a4eSZhao Qiang 	u8 sicmdr1_h;		/* SI1 command register high */
188*38d67a4eSZhao Qiang 	u8 res2[0x1];
189*38d67a4eSZhao Qiang 	u8 sistr1_h;		/* SI1 status register high */
190*38d67a4eSZhao Qiang 	u8 res3[0x1];
191*38d67a4eSZhao Qiang 	u16 sirsr1_h;		/* SI1 RAM shadow address register high */
192*38d67a4eSZhao Qiang 	u8 sitarc1;		/* SI1 RAM counter Tx TDMA */
193*38d67a4eSZhao Qiang 	u8 sitbrc1;		/* SI1 RAM counter Tx TDMB */
194*38d67a4eSZhao Qiang 	u8 sitcrc1;		/* SI1 RAM counter Tx TDMC */
195*38d67a4eSZhao Qiang 	u8 sitdrc1;		/* SI1 RAM counter Tx TDMD */
196*38d67a4eSZhao Qiang 	u8 sirarc1;		/* SI1 RAM counter Rx TDMA */
197*38d67a4eSZhao Qiang 	u8 sirbrc1;		/* SI1 RAM counter Rx TDMB */
198*38d67a4eSZhao Qiang 	u8 sircrc1;		/* SI1 RAM counter Rx TDMC */
199*38d67a4eSZhao Qiang 	u8 sirdrc1;		/* SI1 RAM counter Rx TDMD */
200*38d67a4eSZhao Qiang 	u8 res4[0x8];
201*38d67a4eSZhao Qiang 	u16 siemr1;		/* SI1 TDME mode register 16 bits */
202*38d67a4eSZhao Qiang 	u16 sifmr1;		/* SI1 TDMF mode register 16 bits */
203*38d67a4eSZhao Qiang 	u16 sigmr1;		/* SI1 TDMG mode register 16 bits */
204*38d67a4eSZhao Qiang 	u16 sihmr1;		/* SI1 TDMH mode register 16 bits */
205*38d67a4eSZhao Qiang 	u8 siglmg1_l;		/* SI1 global mode register low 8 bits */
206*38d67a4eSZhao Qiang 	u8 res5[0x1];
207*38d67a4eSZhao Qiang 	u8 sicmdr1_l;		/* SI1 command register low 8 bits */
208*38d67a4eSZhao Qiang 	u8 res6[0x1];
209*38d67a4eSZhao Qiang 	u8 sistr1_l;		/* SI1 status register low 8 bits */
210*38d67a4eSZhao Qiang 	u8 res7[0x1];
211*38d67a4eSZhao Qiang 	u16 sirsr1_l;		/* SI1 RAM shadow address register low 16 bits */
212*38d67a4eSZhao Qiang 	u8 siterc1;		/* SI1 RAM counter Tx TDME 8 bits */
213*38d67a4eSZhao Qiang 	u8 sitfrc1;		/* SI1 RAM counter Tx TDMF 8 bits */
214*38d67a4eSZhao Qiang 	u8 sitgrc1;		/* SI1 RAM counter Tx TDMG 8 bits */
215*38d67a4eSZhao Qiang 	u8 sithrc1;		/* SI1 RAM counter Tx TDMH 8 bits */
216*38d67a4eSZhao Qiang 	u8 sirerc1;		/* SI1 RAM counter Rx TDME 8 bits */
217*38d67a4eSZhao Qiang 	u8 sirfrc1;		/* SI1 RAM counter Rx TDMF 8 bits */
218*38d67a4eSZhao Qiang 	u8 sirgrc1;		/* SI1 RAM counter Rx TDMG 8 bits */
219*38d67a4eSZhao Qiang 	u8 sirhrc1;		/* SI1 RAM counter Rx TDMH 8 bits */
220*38d67a4eSZhao Qiang 	u8 res8[0x8];
221*38d67a4eSZhao Qiang 	u32 siml1;		/* SI1 multiframe limit register */
222*38d67a4eSZhao Qiang 	u8 siedm1;		/* SI1 extended diagnostic mode register */
223*38d67a4eSZhao Qiang 	u8 res9[0xBB];
224*38d67a4eSZhao Qiang } __attribute__ ((packed)) si1_t;
225*38d67a4eSZhao Qiang 
226*38d67a4eSZhao Qiang /* SI Routing Tables */
227*38d67a4eSZhao Qiang typedef struct sir {
228*38d67a4eSZhao Qiang 	u8 tx[0x400];
229*38d67a4eSZhao Qiang 	u8 rx[0x400];
230*38d67a4eSZhao Qiang 	u8 res0[0x800];
231*38d67a4eSZhao Qiang } __attribute__ ((packed)) sir_t;
232*38d67a4eSZhao Qiang 
233*38d67a4eSZhao Qiang /* USB Controller.  */
234*38d67a4eSZhao Qiang typedef struct usb_ctlr {
235*38d67a4eSZhao Qiang 	u8 usb_usmod;
236*38d67a4eSZhao Qiang 	u8 usb_usadr;
237*38d67a4eSZhao Qiang 	u8 usb_uscom;
238*38d67a4eSZhao Qiang 	u8 res1[1];
239*38d67a4eSZhao Qiang 	u16 usb_usep1;
240*38d67a4eSZhao Qiang 	u16 usb_usep2;
241*38d67a4eSZhao Qiang 	u16 usb_usep3;
242*38d67a4eSZhao Qiang 	u16 usb_usep4;
243*38d67a4eSZhao Qiang 	u8 res2[4];
244*38d67a4eSZhao Qiang 	u16 usb_usber;
245*38d67a4eSZhao Qiang 	u8 res3[2];
246*38d67a4eSZhao Qiang 	u16 usb_usbmr;
247*38d67a4eSZhao Qiang 	u8 res4[1];
248*38d67a4eSZhao Qiang 	u8 usb_usbs;
249*38d67a4eSZhao Qiang 	u16 usb_ussft;
250*38d67a4eSZhao Qiang 	u8 res5[2];
251*38d67a4eSZhao Qiang 	u16 usb_usfrn;
252*38d67a4eSZhao Qiang 	u8 res6[0x22];
253*38d67a4eSZhao Qiang } __attribute__ ((packed)) usb_t;
254*38d67a4eSZhao Qiang 
255*38d67a4eSZhao Qiang /* MCC */
256*38d67a4eSZhao Qiang typedef struct mcc {
257*38d67a4eSZhao Qiang 	u32 mcce;		/* MCC event register */
258*38d67a4eSZhao Qiang 	u32 mccm;		/* MCC mask register */
259*38d67a4eSZhao Qiang 	u32 mccf;		/* MCC configuration register */
260*38d67a4eSZhao Qiang 	u32 merl;		/* MCC emergency request level register */
261*38d67a4eSZhao Qiang 	u8 res0[0xF0];
262*38d67a4eSZhao Qiang } __attribute__ ((packed)) mcc_t;
263*38d67a4eSZhao Qiang 
264*38d67a4eSZhao Qiang /* QE UCC Slow */
265*38d67a4eSZhao Qiang typedef struct ucc_slow {
266*38d67a4eSZhao Qiang 	u32 gumr_l;		/* UCCx general mode register (low) */
267*38d67a4eSZhao Qiang 	u32 gumr_h;		/* UCCx general mode register (high) */
268*38d67a4eSZhao Qiang 	u16 upsmr;		/* UCCx protocol-specific mode register */
269*38d67a4eSZhao Qiang 	u8 res0[0x2];
270*38d67a4eSZhao Qiang 	u16 utodr;		/* UCCx transmit on demand register */
271*38d67a4eSZhao Qiang 	u16 udsr;		/* UCCx data synchronization register */
272*38d67a4eSZhao Qiang 	u16 ucce;		/* UCCx event register */
273*38d67a4eSZhao Qiang 	u8 res1[0x2];
274*38d67a4eSZhao Qiang 	u16 uccm;		/* UCCx mask register */
275*38d67a4eSZhao Qiang 	u8 res2[0x1];
276*38d67a4eSZhao Qiang 	u8 uccs;		/* UCCx status register */
277*38d67a4eSZhao Qiang 	u8 res3[0x24];
278*38d67a4eSZhao Qiang 	u16 utpt;
279*38d67a4eSZhao Qiang 	u8 guemr;		/* UCC general extended mode register */
280*38d67a4eSZhao Qiang 	u8 res4[0x200 - 0x091];
281*38d67a4eSZhao Qiang } __attribute__ ((packed)) ucc_slow_t;
282*38d67a4eSZhao Qiang 
283*38d67a4eSZhao Qiang typedef struct ucc_mii_mng {
284*38d67a4eSZhao Qiang 	u32 miimcfg;		/* MII management configuration reg    */
285*38d67a4eSZhao Qiang 	u32 miimcom;		/* MII management command reg          */
286*38d67a4eSZhao Qiang 	u32 miimadd;		/* MII management address reg          */
287*38d67a4eSZhao Qiang 	u32 miimcon;		/* MII management control reg          */
288*38d67a4eSZhao Qiang 	u32 miimstat;		/* MII management status reg           */
289*38d67a4eSZhao Qiang 	u32 miimind;		/* MII management indication reg       */
290*38d67a4eSZhao Qiang 	u32 ifctl;		/* interface control reg               */
291*38d67a4eSZhao Qiang 	u32 ifstat;		/* interface statux reg                */
292*38d67a4eSZhao Qiang } __attribute__ ((packed))uec_mii_t;
293*38d67a4eSZhao Qiang 
294*38d67a4eSZhao Qiang typedef struct ucc_ethernet {
295*38d67a4eSZhao Qiang 	u32 maccfg1;		/* mac configuration reg. 1            */
296*38d67a4eSZhao Qiang 	u32 maccfg2;		/* mac configuration reg. 2            */
297*38d67a4eSZhao Qiang 	u32 ipgifg;		/* interframe gap reg.                 */
298*38d67a4eSZhao Qiang 	u32 hafdup;		/* half-duplex reg.                    */
299*38d67a4eSZhao Qiang 	u8 res1[0x10];
300*38d67a4eSZhao Qiang 	u32 miimcfg;		/* MII management configuration reg    */
301*38d67a4eSZhao Qiang 	u32 miimcom;		/* MII management command reg          */
302*38d67a4eSZhao Qiang 	u32 miimadd;		/* MII management address reg          */
303*38d67a4eSZhao Qiang 	u32 miimcon;		/* MII management control reg          */
304*38d67a4eSZhao Qiang 	u32 miimstat;		/* MII management status reg           */
305*38d67a4eSZhao Qiang 	u32 miimind;		/* MII management indication reg       */
306*38d67a4eSZhao Qiang 	u32 ifctl;		/* interface control reg               */
307*38d67a4eSZhao Qiang 	u32 ifstat;		/* interface statux reg                */
308*38d67a4eSZhao Qiang 	u32 macstnaddr1;	/* mac station address part 1 reg      */
309*38d67a4eSZhao Qiang 	u32 macstnaddr2;	/* mac station address part 2 reg      */
310*38d67a4eSZhao Qiang 	u8 res2[0x8];
311*38d67a4eSZhao Qiang 	u32 uempr;		/* UCC Ethernet Mac parameter reg      */
312*38d67a4eSZhao Qiang 	u32 utbipar;		/* UCC tbi address reg                 */
313*38d67a4eSZhao Qiang 	u16 uescr;		/* UCC Ethernet statistics control reg */
314*38d67a4eSZhao Qiang 	u8 res3[0x180 - 0x15A];
315*38d67a4eSZhao Qiang 	u32 tx64;		/* Total number of frames (including bad
316*38d67a4eSZhao Qiang 				 * frames) transmitted that were exactly
317*38d67a4eSZhao Qiang 				 * of the minimal length (64 for un tagged,
318*38d67a4eSZhao Qiang 				 * 68 for tagged, or with length exactly
319*38d67a4eSZhao Qiang 				 * equal to the parameter MINLength */
320*38d67a4eSZhao Qiang 	u32 tx127;		/* Total number of frames (including bad
321*38d67a4eSZhao Qiang 				 * frames) transmitted that were between
322*38d67a4eSZhao Qiang 				 * MINLength (Including FCS length==4)
323*38d67a4eSZhao Qiang 				 * and 127 octets */
324*38d67a4eSZhao Qiang 	u32 tx255;		/* Total number of frames (including bad
325*38d67a4eSZhao Qiang 				 * frames) transmitted that were between
326*38d67a4eSZhao Qiang 				 * 128 (Including FCS length==4) and 255
327*38d67a4eSZhao Qiang 				 * octets */
328*38d67a4eSZhao Qiang 	u32 rx64;		/* Total number of frames received including
329*38d67a4eSZhao Qiang 				 * bad frames that were exactly of the
330*38d67a4eSZhao Qiang 				 * mninimal length (64 bytes) */
331*38d67a4eSZhao Qiang 	u32 rx127;		/* Total number of frames (including bad
332*38d67a4eSZhao Qiang 				 * frames) received that were between
333*38d67a4eSZhao Qiang 				 * MINLength (Including FCS length==4)
334*38d67a4eSZhao Qiang 				 * and 127 octets */
335*38d67a4eSZhao Qiang 	u32 rx255;		/* Total number of frames (including
336*38d67a4eSZhao Qiang 				 * bad frames) received that were between
337*38d67a4eSZhao Qiang 				 * 128 (Including FCS length==4) and 255
338*38d67a4eSZhao Qiang 				 * octets */
339*38d67a4eSZhao Qiang 	u32 txok;		/* Total number of octets residing in frames
340*38d67a4eSZhao Qiang 				 * that where involved in succesfull
341*38d67a4eSZhao Qiang 				 * transmission */
342*38d67a4eSZhao Qiang 	u16 txcf;		/* Total number of PAUSE control frames
343*38d67a4eSZhao Qiang 				 *  transmitted by this MAC */
344*38d67a4eSZhao Qiang 	u8 res4[0x2];
345*38d67a4eSZhao Qiang 	u32 tmca;		/* Total number of frames that were transmitted
346*38d67a4eSZhao Qiang 				 * succesfully with the group address bit set
347*38d67a4eSZhao Qiang 				 * that are not broadcast frames */
348*38d67a4eSZhao Qiang 	u32 tbca;		/* Total number of frames transmitted
349*38d67a4eSZhao Qiang 				 * succesfully that had destination address
350*38d67a4eSZhao Qiang 				 * field equal to the broadcast address */
351*38d67a4eSZhao Qiang 	u32 rxfok;		/* Total number of frames received OK */
352*38d67a4eSZhao Qiang 	u32 rxbok;		/* Total number of octets received OK */
353*38d67a4eSZhao Qiang 	u32 rbyt;		/* Total number of octets received including
354*38d67a4eSZhao Qiang 				 * octets in bad frames. Must be implemented
355*38d67a4eSZhao Qiang 				 * in HW because it includes octets in frames
356*38d67a4eSZhao Qiang 				 * that never even reach the UCC */
357*38d67a4eSZhao Qiang 	u32 rmca;		/* Total number of frames that were received
358*38d67a4eSZhao Qiang 				 * succesfully with the group address bit set
359*38d67a4eSZhao Qiang 				 * that are not broadcast frames */
360*38d67a4eSZhao Qiang 	u32 rbca;		/* Total number of frames received succesfully
361*38d67a4eSZhao Qiang 				 * that had destination address equal to the
362*38d67a4eSZhao Qiang 				 * broadcast address */
363*38d67a4eSZhao Qiang 	u32 scar;		/* Statistics carry register */
364*38d67a4eSZhao Qiang 	u32 scam;		/* Statistics caryy mask register */
365*38d67a4eSZhao Qiang 	u8 res5[0x200 - 0x1c4];
366*38d67a4eSZhao Qiang } __attribute__ ((packed)) uec_t;
367*38d67a4eSZhao Qiang 
368*38d67a4eSZhao Qiang /* QE UCC Fast */
369*38d67a4eSZhao Qiang typedef struct ucc_fast {
370*38d67a4eSZhao Qiang 	u32 gumr;		/* UCCx general mode register */
371*38d67a4eSZhao Qiang 	u32 upsmr;		/* UCCx protocol-specific mode register  */
372*38d67a4eSZhao Qiang 	u16 utodr;		/* UCCx transmit on demand register  */
373*38d67a4eSZhao Qiang 	u8 res0[0x2];
374*38d67a4eSZhao Qiang 	u16 udsr;		/* UCCx data synchronization register  */
375*38d67a4eSZhao Qiang 	u8 res1[0x2];
376*38d67a4eSZhao Qiang 	u32 ucce;		/* UCCx event register */
377*38d67a4eSZhao Qiang 	u32 uccm;		/* UCCx mask register.  */
378*38d67a4eSZhao Qiang 	u8 uccs;		/* UCCx status register */
379*38d67a4eSZhao Qiang 	u8 res2[0x7];
380*38d67a4eSZhao Qiang 	u32 urfb;		/* UCC receive FIFO base */
381*38d67a4eSZhao Qiang 	u16 urfs;		/* UCC receive FIFO size */
382*38d67a4eSZhao Qiang 	u8 res3[0x2];
383*38d67a4eSZhao Qiang 	u16 urfet;		/* UCC receive FIFO emergency threshold */
384*38d67a4eSZhao Qiang 	u16 urfset;		/* UCC receive FIFO special emergency
385*38d67a4eSZhao Qiang 				 * threshold */
386*38d67a4eSZhao Qiang 	u32 utfb;		/* UCC transmit FIFO base */
387*38d67a4eSZhao Qiang 	u16 utfs;		/* UCC transmit FIFO size */
388*38d67a4eSZhao Qiang 	u8 res4[0x2];
389*38d67a4eSZhao Qiang 	u16 utfet;		/* UCC transmit FIFO emergency threshold */
390*38d67a4eSZhao Qiang 	u8 res5[0x2];
391*38d67a4eSZhao Qiang 	u16 utftt;		/* UCC transmit FIFO transmit threshold */
392*38d67a4eSZhao Qiang 	u8 res6[0x2];
393*38d67a4eSZhao Qiang 	u16 utpt;		/* UCC transmit polling timer */
394*38d67a4eSZhao Qiang 	u8 res7[0x2];
395*38d67a4eSZhao Qiang 	u32 urtry;		/* UCC retry counter register */
396*38d67a4eSZhao Qiang 	u8 res8[0x4C];
397*38d67a4eSZhao Qiang 	u8 guemr;		/* UCC general extended mode register */
398*38d67a4eSZhao Qiang 	u8 res9[0x100 - 0x091];
399*38d67a4eSZhao Qiang 	uec_t ucc_eth;
400*38d67a4eSZhao Qiang } __attribute__ ((packed)) ucc_fast_t;
401*38d67a4eSZhao Qiang 
402*38d67a4eSZhao Qiang /* QE UCC */
403*38d67a4eSZhao Qiang typedef struct ucc_common {
404*38d67a4eSZhao Qiang 	u8 res1[0x90];
405*38d67a4eSZhao Qiang 	u8 guemr;
406*38d67a4eSZhao Qiang 	u8 res2[0x200 - 0x091];
407*38d67a4eSZhao Qiang } __attribute__ ((packed)) ucc_common_t;
408*38d67a4eSZhao Qiang 
409*38d67a4eSZhao Qiang typedef struct ucc {
410*38d67a4eSZhao Qiang 	union {
411*38d67a4eSZhao Qiang 		ucc_slow_t slow;
412*38d67a4eSZhao Qiang 		ucc_fast_t fast;
413*38d67a4eSZhao Qiang 		ucc_common_t common;
414*38d67a4eSZhao Qiang 	};
415*38d67a4eSZhao Qiang } __attribute__ ((packed)) ucc_t;
416*38d67a4eSZhao Qiang 
417*38d67a4eSZhao Qiang /* MultiPHY UTOPIA POS Controllers (UPC) */
418*38d67a4eSZhao Qiang typedef struct upc {
419*38d67a4eSZhao Qiang 	u32 upgcr;		/* UTOPIA/POS general configuration register */
420*38d67a4eSZhao Qiang 	u32 uplpa;		/* UTOPIA/POS last PHY address */
421*38d67a4eSZhao Qiang 	u32 uphec;		/* ATM HEC register */
422*38d67a4eSZhao Qiang 	u32 upuc;		/* UTOPIA/POS UCC configuration */
423*38d67a4eSZhao Qiang 	u32 updc1;		/* UTOPIA/POS device 1 configuration */
424*38d67a4eSZhao Qiang 	u32 updc2;		/* UTOPIA/POS device 2 configuration  */
425*38d67a4eSZhao Qiang 	u32 updc3;		/* UTOPIA/POS device 3 configuration */
426*38d67a4eSZhao Qiang 	u32 updc4;		/* UTOPIA/POS device 4 configuration  */
427*38d67a4eSZhao Qiang 	u32 upstpa;		/* UTOPIA/POS STPA threshold  */
428*38d67a4eSZhao Qiang 	u8 res0[0xC];
429*38d67a4eSZhao Qiang 	u32 updrs1_h;		/* UTOPIA/POS device 1 rate select  */
430*38d67a4eSZhao Qiang 	u32 updrs1_l;		/* UTOPIA/POS device 1 rate select  */
431*38d67a4eSZhao Qiang 	u32 updrs2_h;		/* UTOPIA/POS device 2 rate select  */
432*38d67a4eSZhao Qiang 	u32 updrs2_l;		/* UTOPIA/POS device 2 rate select */
433*38d67a4eSZhao Qiang 	u32 updrs3_h;		/* UTOPIA/POS device 3 rate select */
434*38d67a4eSZhao Qiang 	u32 updrs3_l;		/* UTOPIA/POS device 3 rate select */
435*38d67a4eSZhao Qiang 	u32 updrs4_h;		/* UTOPIA/POS device 4 rate select */
436*38d67a4eSZhao Qiang 	u32 updrs4_l;		/* UTOPIA/POS device 4 rate select */
437*38d67a4eSZhao Qiang 	u32 updrp1;		/* UTOPIA/POS device 1 receive priority low  */
438*38d67a4eSZhao Qiang 	u32 updrp2;		/* UTOPIA/POS device 2 receive priority low  */
439*38d67a4eSZhao Qiang 	u32 updrp3;		/* UTOPIA/POS device 3 receive priority low  */
440*38d67a4eSZhao Qiang 	u32 updrp4;		/* UTOPIA/POS device 4 receive priority low  */
441*38d67a4eSZhao Qiang 	u32 upde1;		/* UTOPIA/POS device 1 event */
442*38d67a4eSZhao Qiang 	u32 upde2;		/* UTOPIA/POS device 2 event */
443*38d67a4eSZhao Qiang 	u32 upde3;		/* UTOPIA/POS device 3 event */
444*38d67a4eSZhao Qiang 	u32 upde4;		/* UTOPIA/POS device 4 event */
445*38d67a4eSZhao Qiang 	u16 uprp1;
446*38d67a4eSZhao Qiang 	u16 uprp2;
447*38d67a4eSZhao Qiang 	u16 uprp3;
448*38d67a4eSZhao Qiang 	u16 uprp4;
449*38d67a4eSZhao Qiang 	u8 res1[0x8];
450*38d67a4eSZhao Qiang 	u16 uptirr1_0;		/* Device 1 transmit internal rate 0 */
451*38d67a4eSZhao Qiang 	u16 uptirr1_1;		/* Device 1 transmit internal rate 1 */
452*38d67a4eSZhao Qiang 	u16 uptirr1_2;		/* Device 1 transmit internal rate 2 */
453*38d67a4eSZhao Qiang 	u16 uptirr1_3;		/* Device 1 transmit internal rate 3 */
454*38d67a4eSZhao Qiang 	u16 uptirr2_0;		/* Device 2 transmit internal rate 0 */
455*38d67a4eSZhao Qiang 	u16 uptirr2_1;		/* Device 2 transmit internal rate 1 */
456*38d67a4eSZhao Qiang 	u16 uptirr2_2;		/* Device 2 transmit internal rate 2 */
457*38d67a4eSZhao Qiang 	u16 uptirr2_3;		/* Device 2 transmit internal rate 3 */
458*38d67a4eSZhao Qiang 	u16 uptirr3_0;		/* Device 3 transmit internal rate 0 */
459*38d67a4eSZhao Qiang 	u16 uptirr3_1;		/* Device 3 transmit internal rate 1 */
460*38d67a4eSZhao Qiang 	u16 uptirr3_2;		/* Device 3 transmit internal rate 2 */
461*38d67a4eSZhao Qiang 	u16 uptirr3_3;		/* Device 3 transmit internal rate 3 */
462*38d67a4eSZhao Qiang 	u16 uptirr4_0;		/* Device 4 transmit internal rate 0 */
463*38d67a4eSZhao Qiang 	u16 uptirr4_1;		/* Device 4 transmit internal rate 1 */
464*38d67a4eSZhao Qiang 	u16 uptirr4_2;		/* Device 4 transmit internal rate 2 */
465*38d67a4eSZhao Qiang 	u16 uptirr4_3;		/* Device 4 transmit internal rate 3 */
466*38d67a4eSZhao Qiang 	u32 uper1;		/* Device 1 port enable register */
467*38d67a4eSZhao Qiang 	u32 uper2;		/* Device 2 port enable register */
468*38d67a4eSZhao Qiang 	u32 uper3;		/* Device 3 port enable register */
469*38d67a4eSZhao Qiang 	u32 uper4;		/* Device 4 port enable register */
470*38d67a4eSZhao Qiang 	u8 res2[0x150];
471*38d67a4eSZhao Qiang } __attribute__ ((packed)) upc_t;
472*38d67a4eSZhao Qiang 
473*38d67a4eSZhao Qiang /* SDMA */
474*38d67a4eSZhao Qiang typedef struct sdma {
475*38d67a4eSZhao Qiang 	u32 sdsr;		/* Serial DMA status register */
476*38d67a4eSZhao Qiang 	u32 sdmr;		/* Serial DMA mode register */
477*38d67a4eSZhao Qiang 	u32 sdtr1;		/* SDMA system bus threshold register */
478*38d67a4eSZhao Qiang 	u32 sdtr2;		/* SDMA secondary bus threshold register */
479*38d67a4eSZhao Qiang 	u32 sdhy1;		/* SDMA system bus hysteresis register */
480*38d67a4eSZhao Qiang 	u32 sdhy2;		/* SDMA secondary bus hysteresis register */
481*38d67a4eSZhao Qiang 	u32 sdta1;		/* SDMA system bus address register */
482*38d67a4eSZhao Qiang 	u32 sdta2;		/* SDMA secondary bus address register */
483*38d67a4eSZhao Qiang 	u32 sdtm1;		/* SDMA system bus MSNUM register */
484*38d67a4eSZhao Qiang 	u32 sdtm2;		/* SDMA secondary bus MSNUM register */
485*38d67a4eSZhao Qiang 	u8 res0[0x10];
486*38d67a4eSZhao Qiang 	u32 sdaqr;		/* SDMA address bus qualify register */
487*38d67a4eSZhao Qiang 	u32 sdaqmr;		/* SDMA address bus qualify mask register */
488*38d67a4eSZhao Qiang 	u8 res1[0x4];
489*38d67a4eSZhao Qiang 	u32 sdwbcr;		/* SDMA CAM entries base register */
490*38d67a4eSZhao Qiang 	u8 res2[0x38];
491*38d67a4eSZhao Qiang } __attribute__ ((packed)) sdma_t;
492*38d67a4eSZhao Qiang 
493*38d67a4eSZhao Qiang /* Debug Space */
494*38d67a4eSZhao Qiang typedef struct dbg {
495*38d67a4eSZhao Qiang 	u32 bpdcr;		/* Breakpoint debug command register */
496*38d67a4eSZhao Qiang 	u32 bpdsr;		/* Breakpoint debug status register */
497*38d67a4eSZhao Qiang 	u32 bpdmr;		/* Breakpoint debug mask register */
498*38d67a4eSZhao Qiang 	u32 bprmrr0;		/* Breakpoint request mode risc register 0 */
499*38d67a4eSZhao Qiang 	u32 bprmrr1;		/* Breakpoint request mode risc register 1 */
500*38d67a4eSZhao Qiang 	u8 res0[0x8];
501*38d67a4eSZhao Qiang 	u32 bprmtr0;		/* Breakpoint request mode trb register 0 */
502*38d67a4eSZhao Qiang 	u32 bprmtr1;		/* Breakpoint request mode trb register 1 */
503*38d67a4eSZhao Qiang 	u8 res1[0x8];
504*38d67a4eSZhao Qiang 	u32 bprmir;		/* Breakpoint request mode immediate register */
505*38d67a4eSZhao Qiang 	u32 bprmsr;		/* Breakpoint request mode serial register */
506*38d67a4eSZhao Qiang 	u32 bpemr;		/* Breakpoint exit mode register */
507*38d67a4eSZhao Qiang 	u8 res2[0x48];
508*38d67a4eSZhao Qiang } __attribute__ ((packed)) dbg_t;
509*38d67a4eSZhao Qiang 
510*38d67a4eSZhao Qiang /*
511*38d67a4eSZhao Qiang  * RISC Special Registers (Trap and Breakpoint).  These are described in
512*38d67a4eSZhao Qiang  * the QE Developer's Handbook.
513*38d67a4eSZhao Qiang */
514*38d67a4eSZhao Qiang typedef struct rsp {
515*38d67a4eSZhao Qiang 	u32 tibcr[16];	/* Trap/instruction breakpoint control regs */
516*38d67a4eSZhao Qiang 	u8 res0[64];
517*38d67a4eSZhao Qiang 	u32 ibcr0;
518*38d67a4eSZhao Qiang 	u32 ibs0;
519*38d67a4eSZhao Qiang 	u32 ibcnr0;
520*38d67a4eSZhao Qiang 	u8 res1[4];
521*38d67a4eSZhao Qiang 	u32 ibcr1;
522*38d67a4eSZhao Qiang 	u32 ibs1;
523*38d67a4eSZhao Qiang 	u32 ibcnr1;
524*38d67a4eSZhao Qiang 	u32 npcr;
525*38d67a4eSZhao Qiang 	u32 dbcr;
526*38d67a4eSZhao Qiang 	u32 dbar;
527*38d67a4eSZhao Qiang 	u32 dbamr;
528*38d67a4eSZhao Qiang 	u32 dbsr;
529*38d67a4eSZhao Qiang 	u32 dbcnr;
530*38d67a4eSZhao Qiang 	u8 res2[12];
531*38d67a4eSZhao Qiang 	u32 dbdr_h;
532*38d67a4eSZhao Qiang 	u32 dbdr_l;
533*38d67a4eSZhao Qiang 	u32 dbdmr_h;
534*38d67a4eSZhao Qiang 	u32 dbdmr_l;
535*38d67a4eSZhao Qiang 	u32 bsr;
536*38d67a4eSZhao Qiang 	u32 bor;
537*38d67a4eSZhao Qiang 	u32 bior;
538*38d67a4eSZhao Qiang 	u8 res3[4];
539*38d67a4eSZhao Qiang 	u32 iatr[4];
540*38d67a4eSZhao Qiang 	u32 eccr;		/* Exception control configuration register */
541*38d67a4eSZhao Qiang 	u32 eicr;
542*38d67a4eSZhao Qiang 	u8 res4[0x100-0xf8];
543*38d67a4eSZhao Qiang } __attribute__ ((packed)) rsp_t;
544*38d67a4eSZhao Qiang 
545*38d67a4eSZhao Qiang typedef struct qe_immap {
546*38d67a4eSZhao Qiang 	qe_iram_t iram;		/* I-RAM */
547*38d67a4eSZhao Qiang 	qe_ic_t ic;		/* Interrupt Controller */
548*38d67a4eSZhao Qiang 	cp_qe_t cp;		/* Communications Processor */
549*38d67a4eSZhao Qiang 	qe_mux_t qmx;		/* QE Multiplexer */
550*38d67a4eSZhao Qiang 	qe_timers_t qet;	/* QE Timers */
551*38d67a4eSZhao Qiang 	spi_t spi[0x2];		/* spi  */
552*38d67a4eSZhao Qiang 	mcc_t mcc;		/* mcc */
553*38d67a4eSZhao Qiang 	qe_brg_t brg;		/* brg */
554*38d67a4eSZhao Qiang 	usb_t usb;		/* USB */
555*38d67a4eSZhao Qiang 	si1_t si1;		/* SI */
556*38d67a4eSZhao Qiang 	u8 res11[0x800];
557*38d67a4eSZhao Qiang 	sir_t sir;		/* SI Routing Tables  */
558*38d67a4eSZhao Qiang 	ucc_t ucc1;		/* ucc1 */
559*38d67a4eSZhao Qiang 	ucc_t ucc3;		/* ucc3 */
560*38d67a4eSZhao Qiang 	ucc_t ucc5;		/* ucc5 */
561*38d67a4eSZhao Qiang 	ucc_t ucc7;		/* ucc7 */
562*38d67a4eSZhao Qiang 	u8 res12[0x600];
563*38d67a4eSZhao Qiang 	upc_t upc1;		/* MultiPHY UTOPIA POS Controller 1 */
564*38d67a4eSZhao Qiang 	ucc_t ucc2;		/* ucc2 */
565*38d67a4eSZhao Qiang 	ucc_t ucc4;		/* ucc4 */
566*38d67a4eSZhao Qiang 	ucc_t ucc6;		/* ucc6 */
567*38d67a4eSZhao Qiang 	ucc_t ucc8;		/* ucc8 */
568*38d67a4eSZhao Qiang 	u8 res13[0x600];
569*38d67a4eSZhao Qiang 	upc_t upc2;		/* MultiPHY UTOPIA POS Controller 2 */
570*38d67a4eSZhao Qiang 	sdma_t sdma;		/* SDMA */
571*38d67a4eSZhao Qiang 	dbg_t dbg;		/* Debug Space */
572*38d67a4eSZhao Qiang 	rsp_t rsp[0x2];		/* RISC Special Registers
573*38d67a4eSZhao Qiang 				 * (Trap and Breakpoint) */
574*38d67a4eSZhao Qiang 	u8 res14[0x300];
575*38d67a4eSZhao Qiang 	u8 res15[0x3A00];
576*38d67a4eSZhao Qiang 	u8 res16[0x8000];	/* 0x108000 -  0x110000 */
577*38d67a4eSZhao Qiang 	u8 muram[QE_MURAM_SIZE];
578*38d67a4eSZhao Qiang } __attribute__ ((packed)) qe_map_t;
579*38d67a4eSZhao Qiang 
580*38d67a4eSZhao Qiang extern qe_map_t *qe_immr;
581*38d67a4eSZhao Qiang 
582*38d67a4eSZhao Qiang #endif				/* __IMMAP_QE_H__ */
583