xref: /openbmc/u-boot/board/renesas/stout/qos.c (revision d9b23e26)
1 /*
2  * board/renesas/stout/qos.c
3  *
4  * Copyright (C) 2015 Renesas Electronics Europe GmbH
5  * Copyright (C) 2015 Renesas Electronics Corporation
6  * Copyright (C) 2015 Cogent Embedded, Inc.
7  *
8  * SPDX-License-Identifier: GPL-2.0
9  */
10 
11 #include <common.h>
12 #include <asm/processor.h>
13 #include <asm/mach-types.h>
14 #include <asm/io.h>
15 #include <asm/arch/rmobile.h>
16 
17 /* QoS version 0.955 for ES1 and version 0.973 for ES2 */
18 #if defined(CONFIG_ARCH_RMOBILE_EXTRAM_BOOT)
19 enum {
20 	DBSC3_00, DBSC3_01, DBSC3_02, DBSC3_03, DBSC3_04,
21 	DBSC3_05, DBSC3_06, DBSC3_07, DBSC3_08, DBSC3_09,
22 	DBSC3_10, DBSC3_11, DBSC3_12, DBSC3_13, DBSC3_14,
23 	DBSC3_15,
24 	DBSC3_NR,
25 };
26 
27 static u32 dbsc3_0_r_qos_addr[DBSC3_NR] = {
28 	[DBSC3_00] = DBSC3_0_QOS_R0_BASE,
29 	[DBSC3_01] = DBSC3_0_QOS_R1_BASE,
30 	[DBSC3_02] = DBSC3_0_QOS_R2_BASE,
31 	[DBSC3_03] = DBSC3_0_QOS_R3_BASE,
32 	[DBSC3_04] = DBSC3_0_QOS_R4_BASE,
33 	[DBSC3_05] = DBSC3_0_QOS_R5_BASE,
34 	[DBSC3_06] = DBSC3_0_QOS_R6_BASE,
35 	[DBSC3_07] = DBSC3_0_QOS_R7_BASE,
36 	[DBSC3_08] = DBSC3_0_QOS_R8_BASE,
37 	[DBSC3_09] = DBSC3_0_QOS_R9_BASE,
38 	[DBSC3_10] = DBSC3_0_QOS_R10_BASE,
39 	[DBSC3_11] = DBSC3_0_QOS_R11_BASE,
40 	[DBSC3_12] = DBSC3_0_QOS_R12_BASE,
41 	[DBSC3_13] = DBSC3_0_QOS_R13_BASE,
42 	[DBSC3_14] = DBSC3_0_QOS_R14_BASE,
43 	[DBSC3_15] = DBSC3_0_QOS_R15_BASE,
44 };
45 
46 static u32 dbsc3_0_w_qos_addr[DBSC3_NR] = {
47 	[DBSC3_00] = DBSC3_0_QOS_W0_BASE,
48 	[DBSC3_01] = DBSC3_0_QOS_W1_BASE,
49 	[DBSC3_02] = DBSC3_0_QOS_W2_BASE,
50 	[DBSC3_03] = DBSC3_0_QOS_W3_BASE,
51 	[DBSC3_04] = DBSC3_0_QOS_W4_BASE,
52 	[DBSC3_05] = DBSC3_0_QOS_W5_BASE,
53 	[DBSC3_06] = DBSC3_0_QOS_W6_BASE,
54 	[DBSC3_07] = DBSC3_0_QOS_W7_BASE,
55 	[DBSC3_08] = DBSC3_0_QOS_W8_BASE,
56 	[DBSC3_09] = DBSC3_0_QOS_W9_BASE,
57 	[DBSC3_10] = DBSC3_0_QOS_W10_BASE,
58 	[DBSC3_11] = DBSC3_0_QOS_W11_BASE,
59 	[DBSC3_12] = DBSC3_0_QOS_W12_BASE,
60 	[DBSC3_13] = DBSC3_0_QOS_W13_BASE,
61 	[DBSC3_14] = DBSC3_0_QOS_W14_BASE,
62 	[DBSC3_15] = DBSC3_0_QOS_W15_BASE,
63 };
64 
65 /* QoS version 0.955 for ES1 */
66 static void qos_init_es1(void)
67 {
68 	int i;
69 	struct rcar_s3c *s3c;
70 	struct rcar_s3c_qos *s3c_qos;
71 	struct rcar_dbsc3_qos *qos_addr;
72 	struct rcar_mxi *mxi;
73 	struct rcar_mxi_qos *mxi_qos;
74 	struct rcar_axi_qos *axi_qos;
75 
76 	/* DBSC DBADJ2 */
77 	writel(0x20042004, DBSC3_0_DBADJ2);
78 
79 	/* S3C -QoS */
80 	s3c = (struct rcar_s3c *)S3C_BASE;
81 	writel(0x80FF1C1E, &s3c->s3cadsplcr);
82 	writel(0x1F060505, &s3c->s3crorr);
83 	writel(0x1F020100, &s3c->s3cworr);
84 
85 	/* QoS Control Registers */
86 	s3c_qos = (struct rcar_s3c_qos *)S3C_QOS_CCI0_BASE;
87 	writel(0x00800080, &s3c_qos->s3cqos0);
88 	writel(0x22000010, &s3c_qos->s3cqos1);
89 	writel(0x22002200, &s3c_qos->s3cqos2);
90 	writel(0x2F002200, &s3c_qos->s3cqos3);
91 	writel(0x2F002F00, &s3c_qos->s3cqos4);
92 	writel(0x22000010, &s3c_qos->s3cqos5);
93 	writel(0x22002200, &s3c_qos->s3cqos6);
94 	writel(0x2F002200, &s3c_qos->s3cqos7);
95 	writel(0x2F002F00, &s3c_qos->s3cqos8);
96 
97 	s3c_qos = (struct rcar_s3c_qos *)S3C_QOS_CCI1_BASE;
98 	writel(0x00800080, &s3c_qos->s3cqos0);
99 	writel(0x22000010, &s3c_qos->s3cqos1);
100 	writel(0x22002200, &s3c_qos->s3cqos2);
101 	writel(0x2F002200, &s3c_qos->s3cqos3);
102 	writel(0x2F002F00, &s3c_qos->s3cqos4);
103 	writel(0x22000010, &s3c_qos->s3cqos5);
104 	writel(0x22002200, &s3c_qos->s3cqos6);
105 	writel(0x2F002200, &s3c_qos->s3cqos7);
106 	writel(0x2F002F00, &s3c_qos->s3cqos8);
107 
108 	s3c_qos = (struct rcar_s3c_qos *)S3C_QOS_MXI_BASE;
109 	writel(0x80918099, &s3c_qos->s3cqos0);
110 	writel(0x20410010, &s3c_qos->s3cqos1);
111 	writel(0x200A2023, &s3c_qos->s3cqos2);
112 	writel(0x20502001, &s3c_qos->s3cqos3);
113 	writel(0x00002032, &s3c_qos->s3cqos4);
114 	writel(0x20410FFF, &s3c_qos->s3cqos5);
115 	writel(0x200A2023, &s3c_qos->s3cqos6);
116 	writel(0x20502001, &s3c_qos->s3cqos7);
117 	writel(0x20142032, &s3c_qos->s3cqos8);
118 
119 	s3c_qos = (struct rcar_s3c_qos *)S3C_QOS_AXI_BASE;
120 	writel(0x00810089, &s3c_qos->s3cqos0);
121 	writel(0x20410001, &s3c_qos->s3cqos1);
122 	writel(0x200A2023, &s3c_qos->s3cqos2);
123 	writel(0x20502001, &s3c_qos->s3cqos3);
124 	writel(0x00002032, &s3c_qos->s3cqos4);
125 	writel(0x20410FFF, &s3c_qos->s3cqos5);
126 	writel(0x200A2023, &s3c_qos->s3cqos6);
127 	writel(0x20502001, &s3c_qos->s3cqos7);
128 	writel(0x20142032, &s3c_qos->s3cqos8);
129 
130 	writel(0x00200808, &s3c->s3carcr11);
131 
132 	/* DBSC -QoS */
133 	/* DBSC0 - Read */
134 	for (i = DBSC3_00; i < DBSC3_NR; i++) {
135 		qos_addr = (struct rcar_dbsc3_qos *)dbsc3_0_r_qos_addr[i];
136 		writel(0x00000203, &qos_addr->dblgcnt);
137 		writel(0x00002064, &qos_addr->dbtmval0);
138 		writel(0x00002048, &qos_addr->dbtmval1);
139 		writel(0x00002032, &qos_addr->dbtmval2);
140 		writel(0x00002019, &qos_addr->dbtmval3);
141 		writel(0x00000001, &qos_addr->dbrqctr);
142 		writel(0x00002019, &qos_addr->dbthres0);
143 		writel(0x00002019, &qos_addr->dbthres1);
144 		writel(0x00002019, &qos_addr->dbthres2);
145 		writel(0x00000000, &qos_addr->dblgqon);
146 	}
147 
148 	/* DBSC0 - Write */
149 	for (i = DBSC3_00; i < DBSC3_NR; i++) {
150 		qos_addr = (struct rcar_dbsc3_qos *)dbsc3_0_w_qos_addr[i];
151 		writel(0x00000203, &qos_addr->dblgcnt);
152 		writel(0x00002064, &qos_addr->dbtmval0);
153 		writel(0x00002048, &qos_addr->dbtmval1);
154 		writel(0x00002032, &qos_addr->dbtmval2);
155 		writel(0x00002019, &qos_addr->dbtmval3);
156 		writel(0x00000001, &qos_addr->dbrqctr);
157 		writel(0x00002019, &qos_addr->dbthres0);
158 		writel(0x00002019, &qos_addr->dbthres1);
159 		writel(0x00002019, &qos_addr->dbthres2);
160 		writel(0x00000000, &qos_addr->dblgqon);
161 	}
162 
163 	/* CCI-400 -QoS */
164 	writel(0x20001000, CCI_400_MAXOT_1);
165 	writel(0x20001000, CCI_400_MAXOT_2);
166 	writel(0x0000000C, CCI_400_QOSCNTL_1);
167 	writel(0x0000000C, CCI_400_QOSCNTL_2);
168 
169 	/* MXI -QoS */
170 	/* Transaction Control (MXI) */
171 	mxi = (struct rcar_mxi *)MXI_BASE;
172 	writel(0x00000013, &mxi->mxrtcr);
173 	writel(0x00000013, &mxi->mxwtcr);
174 	writel(0x00B800C0, &mxi->mxsaar0);
175 	writel(0x02000800, &mxi->mxsaar1);
176 	writel(0x00200000, &mxi->mxs3cracr);
177 	writel(0x00200000, &mxi->mxs3cwacr);
178 	writel(0x00200000, &mxi->mxaxiracr);
179 	writel(0x00200000, &mxi->mxaxiwacr);
180 
181 	/* QoS Control (MXI) */
182 	mxi_qos = (struct rcar_mxi_qos *)MXI_QOS_BASE;
183 	writel(0x0000000C, &mxi_qos->vspdu0);
184 	writel(0x0000000C, &mxi_qos->vspdu1);
185 	writel(0x0000000D, &mxi_qos->du0);
186 	writel(0x0000000D, &mxi_qos->du1);
187 
188 	/* AXI -QoS */
189 	/* Transaction Control (MXI) */
190 	axi_qos = (struct rcar_axi_qos *)SYS_AXI_SYX64TO128_BASE;
191 	writel(0x00000002, &axi_qos->qosconf);
192 	writel(0x0000200F, &axi_qos->qosctset0);
193 	writel(0x00002009, &axi_qos->qosctset1);
194 	writel(0x00002003, &axi_qos->qosctset2);
195 	writel(0x00002003, &axi_qos->qosctset3);
196 	writel(0x00000001, &axi_qos->qosreqctr);
197 	writel(0x00002006, &axi_qos->qosthres0);
198 	writel(0x00002001, &axi_qos->qosthres1);
199 	writel(0x00000000, &axi_qos->qosthres2);
200 	writel(0x00000001, &axi_qos->qosqon);
201 
202 	axi_qos = (struct rcar_axi_qos *)SYS_AXI_AVB_BASE;
203 	writel(0x00000000, &axi_qos->qosconf);
204 	writel(0x0000200A, &axi_qos->qosctset0);
205 	writel(0x00000001, &axi_qos->qosreqctr);
206 	writel(0x00002006, &axi_qos->qosthres0);
207 	writel(0x00002001, &axi_qos->qosthres1);
208 	writel(0x00000000, &axi_qos->qosthres2);
209 	writel(0x00000001, &axi_qos->qosqon);
210 
211 	axi_qos = (struct rcar_axi_qos *)SYS_AXI_G2D_BASE;
212 	writel(0x00000000, &axi_qos->qosconf);
213 	writel(0x0000200A, &axi_qos->qosctset0);
214 	writel(0x00000001, &axi_qos->qosreqctr);
215 	writel(0x00002006, &axi_qos->qosthres0);
216 	writel(0x00002001, &axi_qos->qosthres1);
217 	writel(0x00000000, &axi_qos->qosthres2);
218 	writel(0x00000001, &axi_qos->qosqon);
219 
220 	axi_qos = (struct rcar_axi_qos *)SYS_AXI_IMP0_BASE;
221 	writel(0x00000000, &axi_qos->qosconf);
222 	writel(0x00002002, &axi_qos->qosctset0);
223 	writel(0x00000001, &axi_qos->qosreqctr);
224 	writel(0x00002006, &axi_qos->qosthres0);
225 	writel(0x00002001, &axi_qos->qosthres1);
226 	writel(0x00000000, &axi_qos->qosthres2);
227 	writel(0x00000001, &axi_qos->qosqon);
228 
229 	axi_qos = (struct rcar_axi_qos *)SYS_AXI_IMP1_BASE;
230 	writel(0x00000000, &axi_qos->qosconf);
231 	writel(0x00002004, &axi_qos->qosctset0);
232 	writel(0x00000001, &axi_qos->qosreqctr);
233 	writel(0x00002006, &axi_qos->qosthres0);
234 	writel(0x00002001, &axi_qos->qosthres1);
235 	writel(0x00000000, &axi_qos->qosthres2);
236 	writel(0x00000001, &axi_qos->qosqon);
237 
238 	axi_qos = (struct rcar_axi_qos *)SYS_AXI_IMUX0_BASE;
239 	writel(0x00000002, &axi_qos->qosconf);
240 	writel(0x0000200F, &axi_qos->qosctset0);
241 	writel(0x00002009, &axi_qos->qosctset1);
242 	writel(0x00002003, &axi_qos->qosctset2);
243 	writel(0x00002003, &axi_qos->qosctset3);
244 	writel(0x00000001, &axi_qos->qosreqctr);
245 	writel(0x00002006, &axi_qos->qosthres0);
246 	writel(0x00002001, &axi_qos->qosthres1);
247 	writel(0x00000000, &axi_qos->qosthres2);
248 	writel(0x00000001, &axi_qos->qosqon);
249 
250 	axi_qos = (struct rcar_axi_qos *)SYS_AXI_IMUX1_BASE;
251 	writel(0x00000002, &axi_qos->qosconf);
252 	writel(0x0000200F, &axi_qos->qosctset0);
253 	writel(0x00002009, &axi_qos->qosctset1);
254 	writel(0x00002003, &axi_qos->qosctset2);
255 	writel(0x00002003, &axi_qos->qosctset3);
256 	writel(0x00000001, &axi_qos->qosreqctr);
257 	writel(0x00002006, &axi_qos->qosthres0);
258 	writel(0x00002001, &axi_qos->qosthres1);
259 	writel(0x00000000, &axi_qos->qosthres2);
260 	writel(0x00000001, &axi_qos->qosqon);
261 
262 	axi_qos = (struct rcar_axi_qos *)SYS_AXI_IMUX2_BASE;
263 	writel(0x00000002, &axi_qos->qosconf);
264 	writel(0x0000200F, &axi_qos->qosctset0);
265 	writel(0x00002009, &axi_qos->qosctset1);
266 	writel(0x00002003, &axi_qos->qosctset2);
267 	writel(0x00002003, &axi_qos->qosctset3);
268 	writel(0x00000001, &axi_qos->qosreqctr);
269 	writel(0x00002006, &axi_qos->qosthres0);
270 	writel(0x00002001, &axi_qos->qosthres1);
271 	writel(0x00000000, &axi_qos->qosthres2);
272 	writel(0x00000001, &axi_qos->qosqon);
273 
274 	axi_qos = (struct rcar_axi_qos *)SYS_AXI_LBS_BASE;
275 	writel(0x00000000, &axi_qos->qosconf);
276 	writel(0x00002014, &axi_qos->qosctset0);
277 	writel(0x00000001, &axi_qos->qosreqctr);
278 	writel(0x00002006, &axi_qos->qosthres0);
279 	writel(0x00002001, &axi_qos->qosthres1);
280 	writel(0x00000000, &axi_qos->qosthres2);
281 	writel(0x00000001, &axi_qos->qosqon);
282 
283 	axi_qos = (struct rcar_axi_qos *)SYS_AXI_MMUDS_BASE;
284 	writel(0x00000001, &axi_qos->qosconf);
285 	writel(0x00002001, &axi_qos->qosctset0);
286 	writel(0x00002009, &axi_qos->qosctset1);
287 	writel(0x00002003, &axi_qos->qosctset2);
288 	writel(0x00002003, &axi_qos->qosctset3);
289 	writel(0x00000001, &axi_qos->qosreqctr);
290 	writel(0x00002006, &axi_qos->qosthres0);
291 	writel(0x00002001, &axi_qos->qosthres1);
292 	writel(0x00000000, &axi_qos->qosthres2);
293 	writel(0x00000001, &axi_qos->qosqon);
294 
295 	axi_qos = (struct rcar_axi_qos *)SYS_AXI_MMUM_BASE;
296 	writel(0x00000001, &axi_qos->qosconf);
297 	writel(0x00002001, &axi_qos->qosctset0);
298 	writel(0x00002009, &axi_qos->qosctset1);
299 	writel(0x00002003, &axi_qos->qosctset2);
300 	writel(0x00002003, &axi_qos->qosctset3);
301 	writel(0x00000001, &axi_qos->qosreqctr);
302 	writel(0x00002006, &axi_qos->qosthres0);
303 	writel(0x00002001, &axi_qos->qosthres1);
304 	writel(0x00000000, &axi_qos->qosthres2);
305 	writel(0x00000001, &axi_qos->qosqon);
306 
307 	axi_qos = (struct rcar_axi_qos *)SYS_AXI_MMUR_BASE;
308 	writel(0x00000001, &axi_qos->qosconf);
309 	writel(0x00002001, &axi_qos->qosctset0);
310 	writel(0x00002009, &axi_qos->qosctset1);
311 	writel(0x00002003, &axi_qos->qosctset2);
312 	writel(0x00002003, &axi_qos->qosctset3);
313 	writel(0x00000001, &axi_qos->qosreqctr);
314 	writel(0x00002006, &axi_qos->qosthres0);
315 	writel(0x00002001, &axi_qos->qosthres1);
316 	writel(0x00000000, &axi_qos->qosthres2);
317 	writel(0x00000001, &axi_qos->qosqon);
318 
319 	axi_qos = (struct rcar_axi_qos *)SYS_AXI_MMUS0_BASE;
320 	writel(0x00000001, &axi_qos->qosconf);
321 	writel(0x00002001, &axi_qos->qosctset0);
322 	writel(0x00002009, &axi_qos->qosctset1);
323 	writel(0x00002003, &axi_qos->qosctset2);
324 	writel(0x00002003, &axi_qos->qosctset3);
325 	writel(0x00000001, &axi_qos->qosreqctr);
326 	writel(0x00002006, &axi_qos->qosthres0);
327 	writel(0x00002001, &axi_qos->qosthres1);
328 	writel(0x00000000, &axi_qos->qosthres2);
329 	writel(0x00000001, &axi_qos->qosqon);
330 
331 	axi_qos = (struct rcar_axi_qos *)SYS_AXI_MMUS1_BASE;
332 	writel(0x00000001, &axi_qos->qosconf);
333 	writel(0x00002001, &axi_qos->qosctset0);
334 	writel(0x00002009, &axi_qos->qosctset1);
335 	writel(0x00002003, &axi_qos->qosctset2);
336 	writel(0x00002003, &axi_qos->qosctset3);
337 	writel(0x00000001, &axi_qos->qosreqctr);
338 	writel(0x00002006, &axi_qos->qosthres0);
339 	writel(0x00002001, &axi_qos->qosthres1);
340 	writel(0x00000000, &axi_qos->qosthres2);
341 	writel(0x00000001, &axi_qos->qosqon);
342 
343 	axi_qos = (struct rcar_axi_qos *)SYS_AXI_MTSB0_BASE;
344 	writel(0x00000000, &axi_qos->qosconf);
345 	writel(0x00002002, &axi_qos->qosctset0);
346 	writel(0x00000001, &axi_qos->qosreqctr);
347 	writel(0x00002006, &axi_qos->qosthres0);
348 	writel(0x00002001, &axi_qos->qosthres1);
349 	writel(0x00000000, &axi_qos->qosthres2);
350 	writel(0x00000001, &axi_qos->qosqon);
351 
352 	axi_qos = (struct rcar_axi_qos *)SYS_AXI_MTSB1_BASE;
353 	writel(0x00000000, &axi_qos->qosconf);
354 	writel(0x00002002, &axi_qos->qosctset0);
355 	writel(0x00000001, &axi_qos->qosreqctr);
356 	writel(0x00002006, &axi_qos->qosthres0);
357 	writel(0x00002001, &axi_qos->qosthres1);
358 	writel(0x00000000, &axi_qos->qosthres2);
359 	writel(0x00000001, &axi_qos->qosqon);
360 
361 	axi_qos = (struct rcar_axi_qos *)SYS_AXI_PCI_BASE;
362 	writel(0x00000000, &axi_qos->qosconf);
363 	writel(0x00002014, &axi_qos->qosctset0);
364 	writel(0x00000001, &axi_qos->qosreqctr);
365 	writel(0x00002006, &axi_qos->qosthres0);
366 	writel(0x00002001, &axi_qos->qosthres1);
367 	writel(0x00000000, &axi_qos->qosthres2);
368 	writel(0x00000001, &axi_qos->qosqon);
369 
370 	axi_qos = (struct rcar_axi_qos *)SYS_AXI_RTX_BASE;
371 	writel(0x00000002, &axi_qos->qosconf);
372 	writel(0x0000200F, &axi_qos->qosctset0);
373 	writel(0x00002009, &axi_qos->qosctset1);
374 	writel(0x00002003, &axi_qos->qosctset2);
375 	writel(0x00002003, &axi_qos->qosctset3);
376 	writel(0x00000001, &axi_qos->qosreqctr);
377 	writel(0x00002006, &axi_qos->qosthres0);
378 	writel(0x00002001, &axi_qos->qosthres1);
379 	writel(0x00000000, &axi_qos->qosthres2);
380 	writel(0x00000001, &axi_qos->qosqon);
381 
382 	axi_qos = (struct rcar_axi_qos *)SYS_AXI_SDS0_BASE;
383 	writel(0x00000000, &axi_qos->qosconf);
384 	writel(0x0000200A, &axi_qos->qosctset0);
385 	writel(0x00000001, &axi_qos->qosreqctr);
386 	writel(0x00002006, &axi_qos->qosthres0);
387 	writel(0x00002001, &axi_qos->qosthres1);
388 	writel(0x00000000, &axi_qos->qosthres2);
389 	writel(0x00000001, &axi_qos->qosqon);
390 
391 	axi_qos = (struct rcar_axi_qos *)SYS_AXI_SDS1_BASE;
392 	writel(0x00000000, &axi_qos->qosconf);
393 	writel(0x0000200A, &axi_qos->qosctset0);
394 	writel(0x00000001, &axi_qos->qosreqctr);
395 	writel(0x00002006, &axi_qos->qosthres0);
396 	writel(0x00002001, &axi_qos->qosthres1);
397 	writel(0x00000000, &axi_qos->qosthres2);
398 	writel(0x00000001, &axi_qos->qosqon);
399 
400 	axi_qos = (struct rcar_axi_qos *)SYS_AXI_USB20_BASE;
401 	writel(0x00000000, &axi_qos->qosconf);
402 	writel(0x00002005, &axi_qos->qosctset0);
403 	writel(0x00000001, &axi_qos->qosreqctr);
404 	writel(0x00002006, &axi_qos->qosthres0);
405 	writel(0x00002001, &axi_qos->qosthres1);
406 	writel(0x00000000, &axi_qos->qosthres2);
407 	writel(0x00000001, &axi_qos->qosqon);
408 
409 	axi_qos = (struct rcar_axi_qos *)SYS_AXI_USB21_BASE;
410 	writel(0x00000000, &axi_qos->qosconf);
411 	writel(0x00002005, &axi_qos->qosctset0);
412 	writel(0x00000001, &axi_qos->qosreqctr);
413 	writel(0x00002006, &axi_qos->qosthres0);
414 	writel(0x00002001, &axi_qos->qosthres1);
415 	writel(0x00000000, &axi_qos->qosthres2);
416 	writel(0x00000001, &axi_qos->qosqon);
417 
418 	axi_qos = (struct rcar_axi_qos *)SYS_AXI_USB22_BASE;
419 	writel(0x00000000, &axi_qos->qosconf);
420 	writel(0x00002005, &axi_qos->qosctset0);
421 	writel(0x00000001, &axi_qos->qosreqctr);
422 	writel(0x00002006, &axi_qos->qosthres0);
423 	writel(0x00002001, &axi_qos->qosthres1);
424 	writel(0x00000000, &axi_qos->qosthres2);
425 	writel(0x00000001, &axi_qos->qosqon);
426 
427 	axi_qos = (struct rcar_axi_qos *)SYS_AXI_USB30_BASE;
428 	writel(0x00000000, &axi_qos->qosconf);
429 	writel(0x00002014, &axi_qos->qosctset0);
430 	writel(0x00000001, &axi_qos->qosreqctr);
431 	writel(0x00002006, &axi_qos->qosthres0);
432 	writel(0x00002001, &axi_qos->qosthres1);
433 	writel(0x00000000, &axi_qos->qosthres2);
434 	writel(0x00000001, &axi_qos->qosqon);
435 
436 	/* QoS Register (RT-AXI) */
437 	axi_qos = (struct rcar_axi_qos *)RT_AXI_SHX_BASE;
438 	writel(0x00000000, &axi_qos->qosconf);
439 	writel(0x00002005, &axi_qos->qosctset0);
440 	writel(0x00002009, &axi_qos->qosctset1);
441 	writel(0x00002003, &axi_qos->qosctset2);
442 	writel(0x00002003, &axi_qos->qosctset3);
443 	writel(0x00000001, &axi_qos->qosreqctr);
444 	writel(0x00002006, &axi_qos->qosthres0);
445 	writel(0x00002001, &axi_qos->qosthres1);
446 	writel(0x00000000, &axi_qos->qosthres2);
447 	writel(0x00000001, &axi_qos->qosqon);
448 
449 	axi_qos = (struct rcar_axi_qos *)RT_AXI_RDS_BASE;
450 	writel(0x00000000, &axi_qos->qosconf);
451 	writel(0x00002007, &axi_qos->qosctset0);
452 	writel(0x00000001, &axi_qos->qosreqctr);
453 	writel(0x00002006, &axi_qos->qosthres0);
454 	writel(0x00002001, &axi_qos->qosthres1);
455 	writel(0x00000000, &axi_qos->qosthres2);
456 	writel(0x00000001, &axi_qos->qosqon);
457 
458 	axi_qos = (struct rcar_axi_qos *)RT_AXI_RTX64TO128_BASE;
459 	writel(0x00000002, &axi_qos->qosconf);
460 	writel(0x0000200F, &axi_qos->qosctset0);
461 	writel(0x00002009, &axi_qos->qosctset1);
462 	writel(0x00002003, &axi_qos->qosctset2);
463 	writel(0x00002003, &axi_qos->qosctset3);
464 	writel(0x00000001, &axi_qos->qosreqctr);
465 	writel(0x00002006, &axi_qos->qosthres0);
466 	writel(0x00002001, &axi_qos->qosthres1);
467 	writel(0x00000000, &axi_qos->qosthres2);
468 	writel(0x00000001, &axi_qos->qosqon);
469 
470 	axi_qos = (struct rcar_axi_qos *)RT_AXI_STPRO_BASE;
471 	writel(0x00000000, &axi_qos->qosconf);
472 	writel(0x00002003, &axi_qos->qosctset0);
473 	writel(0x00002009, &axi_qos->qosctset1);
474 	writel(0x00002003, &axi_qos->qosctset2);
475 	writel(0x00002003, &axi_qos->qosctset3);
476 	writel(0x00000001, &axi_qos->qosreqctr);
477 	writel(0x00002006, &axi_qos->qosthres0);
478 	writel(0x00002001, &axi_qos->qosthres1);
479 	writel(0x00000000, &axi_qos->qosthres2);
480 	writel(0x00000001, &axi_qos->qosqon);
481 
482 	/* QoS Register (MP-AXI) */
483 	axi_qos = (struct rcar_axi_qos *)MP_AXI_ADSP_BASE;
484 	writel(0x00000000, &axi_qos->qosconf);
485 	writel(0x00002007, &axi_qos->qosctset0);
486 	writel(0x00000001, &axi_qos->qosreqctr);
487 	writel(0x00002006, &axi_qos->qosthres0);
488 	writel(0x00002001, &axi_qos->qosthres1);
489 	writel(0x00000000, &axi_qos->qosthres2);
490 	writel(0x00000001, &axi_qos->qosqon);
491 
492 	axi_qos = (struct rcar_axi_qos *)MP_AXI_ASDS0_BASE;
493 	writel(0x00000001, &axi_qos->qosconf);
494 	writel(0x00002014, &axi_qos->qosctset0);
495 	writel(0x00000040, &axi_qos->qosreqctr);
496 	writel(0x00002006, &axi_qos->qosthres0);
497 	writel(0x00002001, &axi_qos->qosthres1);
498 	writel(0x00000000, &axi_qos->qosthres2);
499 	writel(0x00000001, &axi_qos->qosqon);
500 
501 	axi_qos = (struct rcar_axi_qos *)MP_AXI_ASDS1_BASE;
502 	writel(0x00000001, &axi_qos->qosconf);
503 	writel(0x00002014, &axi_qos->qosctset0);
504 	writel(0x00000040, &axi_qos->qosreqctr);
505 	writel(0x00002006, &axi_qos->qosthres0);
506 	writel(0x00002001, &axi_qos->qosthres1);
507 	writel(0x00000000, &axi_qos->qosthres2);
508 	writel(0x00000001, &axi_qos->qosqon);
509 
510 	axi_qos = (struct rcar_axi_qos *)MP_AXI_MLP_BASE;
511 	writel(0x00000001, &axi_qos->qosconf);
512 	writel(0x00001FF0, &axi_qos->qosctset0);
513 	writel(0x00000020, &axi_qos->qosreqctr);
514 	writel(0x00002006, &axi_qos->qosthres0);
515 	writel(0x00002001, &axi_qos->qosthres1);
516 	writel(0x00002001, &axi_qos->qosthres2);
517 	writel(0x00000001, &axi_qos->qosqon);
518 
519 	axi_qos = (struct rcar_axi_qos *)MP_AXI_MMUMP_BASE;
520 	writel(0x00000001, &axi_qos->qosconf);
521 	writel(0x00002001, &axi_qos->qosctset0);
522 	writel(0x00002009, &axi_qos->qosctset1);
523 	writel(0x00002003, &axi_qos->qosctset2);
524 	writel(0x00002003, &axi_qos->qosctset3);
525 	writel(0x00000001, &axi_qos->qosreqctr);
526 	writel(0x00002006, &axi_qos->qosthres0);
527 	writel(0x00002001, &axi_qos->qosthres1);
528 	writel(0x00000000, &axi_qos->qosthres2);
529 	writel(0x00000001, &axi_qos->qosqon);
530 
531 	axi_qos = (struct rcar_axi_qos *)MP_AXI_SPU_BASE;
532 	writel(0x00000000, &axi_qos->qosconf);
533 	writel(0x00002018, &axi_qos->qosctset0);
534 	writel(0x00000001, &axi_qos->qosreqctr);
535 	writel(0x00002006, &axi_qos->qosthres0);
536 	writel(0x00002001, &axi_qos->qosthres1);
537 	writel(0x00000000, &axi_qos->qosthres2);
538 	writel(0x00000001, &axi_qos->qosqon);
539 
540 	axi_qos = (struct rcar_axi_qos *)MP_AXI_SPUC_BASE;
541 	writel(0x00000000, &axi_qos->qosconf);
542 	writel(0x0000200D, &axi_qos->qosctset0);
543 	writel(0x00000001, &axi_qos->qosreqctr);
544 	writel(0x00002006, &axi_qos->qosthres0);
545 	writel(0x00002001, &axi_qos->qosthres1);
546 	writel(0x00000000, &axi_qos->qosthres2);
547 	writel(0x00000001, &axi_qos->qosqon);
548 
549 	/* QoS Register (SYS-AXI256) */
550 	axi_qos = (struct rcar_axi_qos *)SYS_AXI256_AXI128TO256_BASE;
551 	writel(0x00000002, &axi_qos->qosconf);
552 	writel(0x0000200F, &axi_qos->qosctset0);
553 	writel(0x00002009, &axi_qos->qosctset1);
554 	writel(0x00002003, &axi_qos->qosctset2);
555 	writel(0x00002003, &axi_qos->qosctset3);
556 	writel(0x00000001, &axi_qos->qosreqctr);
557 	writel(0x00002006, &axi_qos->qosthres0);
558 	writel(0x00002001, &axi_qos->qosthres1);
559 	writel(0x00000000, &axi_qos->qosthres2);
560 	writel(0x00000001, &axi_qos->qosqon);
561 
562 	axi_qos = (struct rcar_axi_qos *)SYS_AXI256_SYX_BASE;
563 	writel(0x00000002, &axi_qos->qosconf);
564 	writel(0x0000200F, &axi_qos->qosctset0);
565 	writel(0x00002009, &axi_qos->qosctset1);
566 	writel(0x00002003, &axi_qos->qosctset2);
567 	writel(0x00002003, &axi_qos->qosctset3);
568 	writel(0x00000001, &axi_qos->qosreqctr);
569 	writel(0x00002006, &axi_qos->qosthres0);
570 	writel(0x00002001, &axi_qos->qosthres1);
571 	writel(0x00000000, &axi_qos->qosthres2);
572 	writel(0x00000001, &axi_qos->qosqon);
573 
574 	axi_qos = (struct rcar_axi_qos *)SYS_AXI256_MPX_BASE;
575 	writel(0x00000002, &axi_qos->qosconf);
576 	writel(0x0000200F, &axi_qos->qosctset0);
577 	writel(0x00002009, &axi_qos->qosctset1);
578 	writel(0x00002003, &axi_qos->qosctset2);
579 	writel(0x00002003, &axi_qos->qosctset3);
580 	writel(0x00000001, &axi_qos->qosreqctr);
581 	writel(0x00002006, &axi_qos->qosthres0);
582 	writel(0x00002001, &axi_qos->qosthres1);
583 	writel(0x00000000, &axi_qos->qosthres2);
584 	writel(0x00000001, &axi_qos->qosqon);
585 
586 	axi_qos = (struct rcar_axi_qos *)SYS_AXI256_MXI_BASE;
587 	writel(0x00000002, &axi_qos->qosconf);
588 	writel(0x0000200F, &axi_qos->qosctset0);
589 	writel(0x00002009, &axi_qos->qosctset1);
590 	writel(0x00002003, &axi_qos->qosctset2);
591 	writel(0x00002003, &axi_qos->qosctset3);
592 	writel(0x00000001, &axi_qos->qosreqctr);
593 	writel(0x00002006, &axi_qos->qosthres0);
594 	writel(0x00002001, &axi_qos->qosthres1);
595 	writel(0x00000000, &axi_qos->qosthres2);
596 	writel(0x00000001, &axi_qos->qosqon);
597 
598 	/* QoS Register (CCI-AXI) */
599 	axi_qos = (struct rcar_axi_qos *)CCI_AXI_MMUS0_BASE;
600 	writel(0x00000001, &axi_qos->qosconf);
601 	writel(0x00002001, &axi_qos->qosctset0);
602 	writel(0x00002009, &axi_qos->qosctset1);
603 	writel(0x00002003, &axi_qos->qosctset2);
604 	writel(0x00002003, &axi_qos->qosctset3);
605 	writel(0x00000001, &axi_qos->qosreqctr);
606 	writel(0x00002006, &axi_qos->qosthres0);
607 	writel(0x00002001, &axi_qos->qosthres1);
608 	writel(0x00000000, &axi_qos->qosthres2);
609 	writel(0x00000001, &axi_qos->qosqon);
610 
611 	axi_qos = (struct rcar_axi_qos *)CCI_AXI_SYX2_BASE;
612 	writel(0x00000002, &axi_qos->qosconf);
613 	writel(0x0000200F, &axi_qos->qosctset0);
614 	writel(0x00002009, &axi_qos->qosctset1);
615 	writel(0x00002003, &axi_qos->qosctset2);
616 	writel(0x00002003, &axi_qos->qosctset3);
617 	writel(0x00000001, &axi_qos->qosreqctr);
618 	writel(0x00002006, &axi_qos->qosthres0);
619 	writel(0x00002001, &axi_qos->qosthres1);
620 	writel(0x00000000, &axi_qos->qosthres2);
621 	writel(0x00000001, &axi_qos->qosqon);
622 
623 	axi_qos = (struct rcar_axi_qos *)CCI_AXI_MMUR_BASE;
624 	writel(0x00000001, &axi_qos->qosconf);
625 	writel(0x00002001, &axi_qos->qosctset0);
626 	writel(0x00002009, &axi_qos->qosctset1);
627 	writel(0x00002003, &axi_qos->qosctset2);
628 	writel(0x00002003, &axi_qos->qosctset3);
629 	writel(0x00000001, &axi_qos->qosreqctr);
630 	writel(0x00002006, &axi_qos->qosthres0);
631 	writel(0x00002001, &axi_qos->qosthres1);
632 	writel(0x00000000, &axi_qos->qosthres2);
633 	writel(0x00000001, &axi_qos->qosqon);
634 
635 	axi_qos = (struct rcar_axi_qos *)CCI_AXI_MMUDS_BASE;
636 	writel(0x00000001, &axi_qos->qosconf);
637 	writel(0x00002001, &axi_qos->qosctset0);
638 	writel(0x00002009, &axi_qos->qosctset1);
639 	writel(0x00002003, &axi_qos->qosctset2);
640 	writel(0x00002003, &axi_qos->qosctset3);
641 	writel(0x00000001, &axi_qos->qosreqctr);
642 	writel(0x00002006, &axi_qos->qosthres0);
643 	writel(0x00002001, &axi_qos->qosthres1);
644 	writel(0x00000000, &axi_qos->qosthres2);
645 	writel(0x00000001, &axi_qos->qosqon);
646 
647 	axi_qos = (struct rcar_axi_qos *)CCI_AXI_MMUM_BASE;
648 	writel(0x00000001, &axi_qos->qosconf);
649 	writel(0x00002001, &axi_qos->qosctset0);
650 	writel(0x00002009, &axi_qos->qosctset1);
651 	writel(0x00002003, &axi_qos->qosctset2);
652 	writel(0x00002003, &axi_qos->qosctset3);
653 	writel(0x00000001, &axi_qos->qosreqctr);
654 	writel(0x00002006, &axi_qos->qosthres0);
655 	writel(0x00002001, &axi_qos->qosthres1);
656 	writel(0x00000000, &axi_qos->qosthres2);
657 	writel(0x00000001, &axi_qos->qosqon);
658 
659 	axi_qos = (struct rcar_axi_qos *)CCI_AXI_MXI_BASE;
660 	writel(0x00000002, &axi_qos->qosconf);
661 	writel(0x0000200F, &axi_qos->qosctset0);
662 	writel(0x00002009, &axi_qos->qosctset1);
663 	writel(0x00002003, &axi_qos->qosctset2);
664 	writel(0x00002003, &axi_qos->qosctset3);
665 	writel(0x00000001, &axi_qos->qosreqctr);
666 	writel(0x00002006, &axi_qos->qosthres0);
667 	writel(0x00002001, &axi_qos->qosthres1);
668 	writel(0x00000000, &axi_qos->qosthres2);
669 	writel(0x00000001, &axi_qos->qosqon);
670 
671 	axi_qos = (struct rcar_axi_qos *)CCI_AXI_MMUS1_BASE;
672 	writel(0x00000001, &axi_qos->qosconf);
673 	writel(0x00002001, &axi_qos->qosctset0);
674 	writel(0x00002009, &axi_qos->qosctset1);
675 	writel(0x00002003, &axi_qos->qosctset2);
676 	writel(0x00002003, &axi_qos->qosctset3);
677 	writel(0x00000001, &axi_qos->qosreqctr);
678 	writel(0x00002006, &axi_qos->qosthres0);
679 	writel(0x00002001, &axi_qos->qosthres1);
680 	writel(0x00000000, &axi_qos->qosthres2);
681 	writel(0x00000001, &axi_qos->qosqon);
682 
683 	axi_qos = (struct rcar_axi_qos *)CCI_AXI_MMUMP_BASE;
684 	writel(0x00000001, &axi_qos->qosconf);
685 	writel(0x00002001, &axi_qos->qosctset0);
686 	writel(0x00002009, &axi_qos->qosctset1);
687 	writel(0x00002003, &axi_qos->qosctset2);
688 	writel(0x00002003, &axi_qos->qosctset3);
689 	writel(0x00000001, &axi_qos->qosreqctr);
690 	writel(0x00002006, &axi_qos->qosthres0);
691 	writel(0x00002001, &axi_qos->qosthres1);
692 	writel(0x00000000, &axi_qos->qosthres2);
693 	writel(0x00000001, &axi_qos->qosqon);
694 
695 	/* QoS Register (Media-AXI) */
696 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_JPR_BASE;
697 	writel(0x00000001, &axi_qos->qosconf);
698 	writel(0x00002018, &axi_qos->qosctset0);
699 	writel(0x00000020, &axi_qos->qosreqctr);
700 	writel(0x00002006, &axi_qos->qosthres0);
701 	writel(0x00002001, &axi_qos->qosthres1);
702 	writel(0x00000001, &axi_qos->qosthres2);
703 	writel(0x00000001, &axi_qos->qosqon);
704 
705 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_JPW_BASE;
706 	writel(0x00000001, &axi_qos->qosconf);
707 	writel(0x00002018, &axi_qos->qosctset0);
708 	writel(0x00000020, &axi_qos->qosreqctr);
709 	writel(0x00002006, &axi_qos->qosthres0);
710 	writel(0x00002001, &axi_qos->qosthres1);
711 	writel(0x00000001, &axi_qos->qosthres2);
712 	writel(0x00000001, &axi_qos->qosqon);
713 
714 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_GCU0R_BASE;
715 	writel(0x00000001, &axi_qos->qosconf);
716 	writel(0x00002018, &axi_qos->qosctset0);
717 	writel(0x00000020, &axi_qos->qosreqctr);
718 	writel(0x00002006, &axi_qos->qosthres0);
719 	writel(0x00002001, &axi_qos->qosthres1);
720 	writel(0x00000001, &axi_qos->qosthres2);
721 	writel(0x00000001, &axi_qos->qosqon);
722 
723 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_GCU0W_BASE;
724 	writel(0x00000001, &axi_qos->qosconf);
725 	writel(0x00002018, &axi_qos->qosctset0);
726 	writel(0x00000020, &axi_qos->qosreqctr);
727 	writel(0x00002006, &axi_qos->qosthres0);
728 	writel(0x00002001, &axi_qos->qosthres1);
729 	writel(0x00000001, &axi_qos->qosthres2);
730 	writel(0x00000001, &axi_qos->qosqon);
731 
732 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_GCU1R_BASE;
733 	writel(0x00000001, &axi_qos->qosconf);
734 	writel(0x00002018, &axi_qos->qosctset0);
735 	writel(0x00000020, &axi_qos->qosreqctr);
736 	writel(0x00002006, &axi_qos->qosthres0);
737 	writel(0x00002001, &axi_qos->qosthres1);
738 	writel(0x00000001, &axi_qos->qosthres2);
739 	writel(0x00000001, &axi_qos->qosqon);
740 
741 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_GCU1W_BASE;
742 	writel(0x00000001, &axi_qos->qosconf);
743 	writel(0x00002018, &axi_qos->qosctset0);
744 	writel(0x00000020, &axi_qos->qosreqctr);
745 	writel(0x00002006, &axi_qos->qosthres0);
746 	writel(0x00002001, &axi_qos->qosthres1);
747 	writel(0x00000001, &axi_qos->qosthres2);
748 	writel(0x00000001, &axi_qos->qosqon);
749 
750 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_TDMR_BASE;
751 	writel(0x00000001, &axi_qos->qosconf);
752 	writel(0x00002018, &axi_qos->qosctset0);
753 	writel(0x00000020, &axi_qos->qosreqctr);
754 	writel(0x00002006, &axi_qos->qosthres0);
755 	writel(0x00002001, &axi_qos->qosthres1);
756 	writel(0x00000001, &axi_qos->qosthres2);
757 	writel(0x00000001, &axi_qos->qosqon);
758 
759 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_TDMW_BASE;
760 	writel(0x00000001, &axi_qos->qosconf);
761 	writel(0x00002018, &axi_qos->qosctset0);
762 	writel(0x00000020, &axi_qos->qosreqctr);
763 	writel(0x00002006, &axi_qos->qosthres0);
764 	writel(0x00002001, &axi_qos->qosthres1);
765 	writel(0x00000001, &axi_qos->qosthres2);
766 	writel(0x00000001, &axi_qos->qosqon);
767 
768 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSP0CR_BASE;
769 	writel(0x00000001, &axi_qos->qosconf);
770 	writel(0x00002018, &axi_qos->qosctset0);
771 	writel(0x00000020, &axi_qos->qosreqctr);
772 	writel(0x00002006, &axi_qos->qosthres0);
773 	writel(0x00002001, &axi_qos->qosthres1);
774 	writel(0x00000001, &axi_qos->qosthres2);
775 	writel(0x00000001, &axi_qos->qosqon);
776 
777 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSP0CW_BASE;
778 	writel(0x00000001, &axi_qos->qosconf);
779 	writel(0x00002018, &axi_qos->qosctset0);
780 	writel(0x00000020, &axi_qos->qosreqctr);
781 	writel(0x00002006, &axi_qos->qosthres0);
782 	writel(0x00002001, &axi_qos->qosthres1);
783 	writel(0x00000001, &axi_qos->qosthres2);
784 	writel(0x00000001, &axi_qos->qosqon);
785 
786 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSP1CR_BASE;
787 	writel(0x00000001, &axi_qos->qosconf);
788 	writel(0x00002018, &axi_qos->qosctset0);
789 	writel(0x00000020, &axi_qos->qosreqctr);
790 	writel(0x00002006, &axi_qos->qosthres0);
791 	writel(0x00002001, &axi_qos->qosthres1);
792 	writel(0x00000001, &axi_qos->qosthres2);
793 	writel(0x00000001, &axi_qos->qosqon);
794 
795 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSP1CW_BASE;
796 	writel(0x00000001, &axi_qos->qosconf);
797 	writel(0x00002018, &axi_qos->qosctset0);
798 	writel(0x00000020, &axi_qos->qosreqctr);
799 	writel(0x00002006, &axi_qos->qosthres0);
800 	writel(0x00002001, &axi_qos->qosthres1);
801 	writel(0x00000001, &axi_qos->qosthres2);
802 	writel(0x00000001, &axi_qos->qosqon);
803 
804 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSPDU0CR_BASE;
805 	writel(0x00000001, &axi_qos->qosconf);
806 	writel(0x00002018, &axi_qos->qosctset0);
807 	writel(0x00000020, &axi_qos->qosreqctr);
808 	writel(0x00002006, &axi_qos->qosthres0);
809 	writel(0x00002001, &axi_qos->qosthres1);
810 	writel(0x00000001, &axi_qos->qosthres2);
811 	writel(0x00000001, &axi_qos->qosqon);
812 
813 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSPDU0CW_BASE;
814 	writel(0x00000001, &axi_qos->qosconf);
815 	writel(0x00002018, &axi_qos->qosctset0);
816 	writel(0x00000020, &axi_qos->qosreqctr);
817 	writel(0x00002006, &axi_qos->qosthres0);
818 	writel(0x00002001, &axi_qos->qosthres1);
819 	writel(0x00000001, &axi_qos->qosthres2);
820 	writel(0x00000001, &axi_qos->qosqon);
821 
822 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSPDU1CR_BASE;
823 	writel(0x00000001, &axi_qos->qosconf);
824 	writel(0x00002018, &axi_qos->qosctset0);
825 	writel(0x00000020, &axi_qos->qosreqctr);
826 	writel(0x00002006, &axi_qos->qosthres0);
827 	writel(0x00002001, &axi_qos->qosthres1);
828 	writel(0x00000001, &axi_qos->qosthres2);
829 	writel(0x00000001, &axi_qos->qosqon);
830 
831 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSPDU1CW_BASE;
832 	writel(0x00000001, &axi_qos->qosconf);
833 	writel(0x00002018, &axi_qos->qosctset0);
834 	writel(0x00000020, &axi_qos->qosreqctr);
835 	writel(0x00002006, &axi_qos->qosthres0);
836 	writel(0x00002001, &axi_qos->qosthres1);
837 	writel(0x00000001, &axi_qos->qosthres2);
838 	writel(0x00000001, &axi_qos->qosqon);
839 
840 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VIN0W_BASE;
841 	writel(0x00000001, &axi_qos->qosconf);
842 	writel(0x0000200C, &axi_qos->qosctset0);
843 	writel(0x00000020, &axi_qos->qosreqctr);
844 	writel(0x00002006, &axi_qos->qosthres0);
845 	writel(0x00002001, &axi_qos->qosthres1);
846 	writel(0x00000001, &axi_qos->qosthres2);
847 	writel(0x00000001, &axi_qos->qosqon);
848 
849 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSP0R_BASE;
850 	writel(0x00000001, &axi_qos->qosconf);
851 	writel(0x0000200C, &axi_qos->qosctset0);
852 	writel(0x00000020, &axi_qos->qosreqctr);
853 	writel(0x00002006, &axi_qos->qosthres0);
854 	writel(0x00002001, &axi_qos->qosthres1);
855 	writel(0x00000001, &axi_qos->qosthres2);
856 	writel(0x00000001, &axi_qos->qosqon);
857 
858 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSP0W_BASE;
859 	writel(0x00000001, &axi_qos->qosconf);
860 	writel(0x0000200C, &axi_qos->qosctset0);
861 	writel(0x00000020, &axi_qos->qosreqctr);
862 	writel(0x00002006, &axi_qos->qosthres0);
863 	writel(0x00002001, &axi_qos->qosthres1);
864 	writel(0x00000001, &axi_qos->qosthres2);
865 	writel(0x00000001, &axi_qos->qosqon);
866 
867 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_FDP0R_BASE;
868 	writel(0x00000001, &axi_qos->qosconf);
869 	writel(0x0000200C, &axi_qos->qosctset0);
870 	writel(0x00000020, &axi_qos->qosreqctr);
871 	writel(0x00002006, &axi_qos->qosthres0);
872 	writel(0x00002001, &axi_qos->qosthres1);
873 	writel(0x00000001, &axi_qos->qosthres2);
874 	writel(0x00000001, &axi_qos->qosqon);
875 
876 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_FDP0W_BASE;
877 	writel(0x00000001, &axi_qos->qosconf);
878 	writel(0x0000200C, &axi_qos->qosctset0);
879 	writel(0x00000020, &axi_qos->qosreqctr);
880 	writel(0x00002006, &axi_qos->qosthres0);
881 	writel(0x00002001, &axi_qos->qosthres1);
882 	writel(0x00000001, &axi_qos->qosthres2);
883 	writel(0x00000001, &axi_qos->qosqon);
884 
885 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_IMSR_BASE;
886 	writel(0x00000001, &axi_qos->qosconf);
887 	writel(0x0000200C, &axi_qos->qosctset0);
888 	writel(0x00000020, &axi_qos->qosreqctr);
889 	writel(0x00002006, &axi_qos->qosthres0);
890 	writel(0x00002001, &axi_qos->qosthres1);
891 	writel(0x00000001, &axi_qos->qosthres2);
892 	writel(0x00000001, &axi_qos->qosqon);
893 
894 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_IMSW_BASE;
895 	writel(0x00000001, &axi_qos->qosconf);
896 	writel(0x0000200C, &axi_qos->qosctset0);
897 	writel(0x00000020, &axi_qos->qosreqctr);
898 	writel(0x00002006, &axi_qos->qosthres0);
899 	writel(0x00002001, &axi_qos->qosthres1);
900 	writel(0x00000001, &axi_qos->qosthres2);
901 	writel(0x00000001, &axi_qos->qosqon);
902 
903 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSP1R_BASE;
904 	writel(0x00000001, &axi_qos->qosconf);
905 	writel(0x0000200C, &axi_qos->qosctset0);
906 	writel(0x00000020, &axi_qos->qosreqctr);
907 	writel(0x00002006, &axi_qos->qosthres0);
908 	writel(0x00002001, &axi_qos->qosthres1);
909 	writel(0x00000001, &axi_qos->qosthres2);
910 	writel(0x00000001, &axi_qos->qosqon);
911 
912 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSP1W_BASE;
913 	writel(0x00000001, &axi_qos->qosconf);
914 	writel(0x0000200C, &axi_qos->qosctset0);
915 	writel(0x00000020, &axi_qos->qosreqctr);
916 	writel(0x00002006, &axi_qos->qosthres0);
917 	writel(0x00002001, &axi_qos->qosthres1);
918 	writel(0x00000001, &axi_qos->qosthres2);
919 	writel(0x00000001, &axi_qos->qosqon);
920 
921 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_FDP1R_BASE;
922 	writel(0x00000001, &axi_qos->qosconf);
923 	writel(0x0000200C, &axi_qos->qosctset0);
924 	writel(0x00000020, &axi_qos->qosreqctr);
925 	writel(0x00002006, &axi_qos->qosthres0);
926 	writel(0x00002001, &axi_qos->qosthres1);
927 	writel(0x00000001, &axi_qos->qosthres2);
928 	writel(0x00000001, &axi_qos->qosqon);
929 
930 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_FDP1W_BASE;
931 	writel(0x00000001, &axi_qos->qosconf);
932 	writel(0x0000200C, &axi_qos->qosctset0);
933 	writel(0x00000020, &axi_qos->qosreqctr);
934 	writel(0x00002006, &axi_qos->qosthres0);
935 	writel(0x00002001, &axi_qos->qosthres1);
936 	writel(0x00000001, &axi_qos->qosthres2);
937 	writel(0x00000001, &axi_qos->qosqon);
938 
939 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_IMRR_BASE;
940 	writel(0x00000001, &axi_qos->qosconf);
941 	writel(0x0000200C, &axi_qos->qosctset0);
942 	writel(0x00000020, &axi_qos->qosreqctr);
943 	writel(0x00002006, &axi_qos->qosthres0);
944 	writel(0x00002001, &axi_qos->qosthres1);
945 	writel(0x00000001, &axi_qos->qosthres2);
946 	writel(0x00000001, &axi_qos->qosqon);
947 
948 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_IMRW_BASE;
949 	writel(0x00000001, &axi_qos->qosconf);
950 	writel(0x0000200C, &axi_qos->qosctset0);
951 	writel(0x00000020, &axi_qos->qosreqctr);
952 	writel(0x00002006, &axi_qos->qosthres0);
953 	writel(0x00002001, &axi_qos->qosthres1);
954 	writel(0x00000001, &axi_qos->qosthres2);
955 	writel(0x00000001, &axi_qos->qosqon);
956 
957 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_FDP2R_BASE;
958 	writel(0x00000001, &axi_qos->qosconf);
959 	writel(0x0000200C, &axi_qos->qosctset0);
960 	writel(0x00000020, &axi_qos->qosreqctr);
961 	writel(0x00002006, &axi_qos->qosthres0);
962 	writel(0x00002001, &axi_qos->qosthres1);
963 	writel(0x00000001, &axi_qos->qosthres2);
964 	writel(0x00000001, &axi_qos->qosqon);
965 
966 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_FDP2W_BASE;
967 	writel(0x00000001, &axi_qos->qosconf);
968 	writel(0x0000200C, &axi_qos->qosctset0);
969 	writel(0x00000020, &axi_qos->qosreqctr);
970 	writel(0x00002006, &axi_qos->qosthres0);
971 	writel(0x00002001, &axi_qos->qosthres1);
972 	writel(0x00000001, &axi_qos->qosthres2);
973 	writel(0x00000001, &axi_qos->qosqon);
974 
975 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSPD0R_BASE;
976 	writel(0x00000000, &axi_qos->qosconf);
977 	writel(0x0000200C, &axi_qos->qosctset0);
978 	writel(0x00000001, &axi_qos->qosreqctr);
979 	writel(0x00002006, &axi_qos->qosthres0);
980 	writel(0x00002001, &axi_qos->qosthres1);
981 	writel(0x00000001, &axi_qos->qosthres2);
982 	writel(0x00000001, &axi_qos->qosqon);
983 
984 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSPD0W_BASE;
985 	writel(0x00000000, &axi_qos->qosconf);
986 	writel(0x0000200C, &axi_qos->qosctset0);
987 	writel(0x00000001, &axi_qos->qosreqctr);
988 	writel(0x00002006, &axi_qos->qosthres0);
989 	writel(0x00002001, &axi_qos->qosthres1);
990 	writel(0x00000001, &axi_qos->qosthres2);
991 	writel(0x00000001, &axi_qos->qosqon);
992 
993 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSPD1R_BASE;
994 	writel(0x00000000, &axi_qos->qosconf);
995 	writel(0x0000200C, &axi_qos->qosctset0);
996 	writel(0x00000001, &axi_qos->qosreqctr);
997 	writel(0x00002006, &axi_qos->qosthres0);
998 	writel(0x00002001, &axi_qos->qosthres1);
999 	writel(0x00000001, &axi_qos->qosthres2);
1000 	writel(0x00000001, &axi_qos->qosqon);
1001 
1002 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSPD1W_BASE;
1003 	writel(0x00000000, &axi_qos->qosconf);
1004 	writel(0x0000200C, &axi_qos->qosctset0);
1005 	writel(0x00000001, &axi_qos->qosreqctr);
1006 	writel(0x00002006, &axi_qos->qosthres0);
1007 	writel(0x00002001, &axi_qos->qosthres1);
1008 	writel(0x00000001, &axi_qos->qosthres2);
1009 	writel(0x00000001, &axi_qos->qosqon);
1010 
1011 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_DU0R_BASE;
1012 	writel(0x00000000, &axi_qos->qosconf);
1013 	writel(0x0000200C, &axi_qos->qosctset0);
1014 	writel(0x00000001, &axi_qos->qosreqctr);
1015 	writel(0x00002006, &axi_qos->qosthres0);
1016 	writel(0x00002001, &axi_qos->qosthres1);
1017 	writel(0x00000001, &axi_qos->qosthres2);
1018 	writel(0x00000001, &axi_qos->qosqon);
1019 
1020 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_DU0W_BASE;
1021 	writel(0x00000000, &axi_qos->qosconf);
1022 	writel(0x0000200C, &axi_qos->qosctset0);
1023 	writel(0x00000001, &axi_qos->qosreqctr);
1024 	writel(0x00002006, &axi_qos->qosthres0);
1025 	writel(0x00002001, &axi_qos->qosthres1);
1026 	writel(0x00000001, &axi_qos->qosthres2);
1027 	writel(0x00000001, &axi_qos->qosqon);
1028 
1029 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_DU1R_BASE;
1030 	writel(0x00000000, &axi_qos->qosconf);
1031 	writel(0x0000200C, &axi_qos->qosctset0);
1032 	writel(0x00000001, &axi_qos->qosreqctr);
1033 	writel(0x00002006, &axi_qos->qosthres0);
1034 	writel(0x00002001, &axi_qos->qosthres1);
1035 	writel(0x00000001, &axi_qos->qosthres2);
1036 	writel(0x00000001, &axi_qos->qosqon);
1037 
1038 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_DU1W_BASE;
1039 	writel(0x00000000, &axi_qos->qosconf);
1040 	writel(0x0000200C, &axi_qos->qosctset0);
1041 	writel(0x00000001, &axi_qos->qosreqctr);
1042 	writel(0x00002006, &axi_qos->qosthres0);
1043 	writel(0x00002001, &axi_qos->qosthres1);
1044 	writel(0x00000001, &axi_qos->qosthres2);
1045 	writel(0x00000001, &axi_qos->qosqon);
1046 
1047 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VCP0CR_BASE;
1048 	writel(0x00000001, &axi_qos->qosconf);
1049 	writel(0x00002007, &axi_qos->qosctset0);
1050 	writel(0x00000020, &axi_qos->qosreqctr);
1051 	writel(0x00002006, &axi_qos->qosthres0);
1052 	writel(0x00002001, &axi_qos->qosthres1);
1053 	writel(0x00000001, &axi_qos->qosthres2);
1054 	writel(0x00000001, &axi_qos->qosqon);
1055 
1056 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VCP0CW_BASE;
1057 	writel(0x00000001, &axi_qos->qosconf);
1058 	writel(0x00002007, &axi_qos->qosctset0);
1059 	writel(0x00000020, &axi_qos->qosreqctr);
1060 	writel(0x00002006, &axi_qos->qosthres0);
1061 	writel(0x00002001, &axi_qos->qosthres1);
1062 	writel(0x00000001, &axi_qos->qosthres2);
1063 	writel(0x00000001, &axi_qos->qosqon);
1064 
1065 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VCP0VR_BASE;
1066 	writel(0x00000001, &axi_qos->qosconf);
1067 	writel(0x00002007, &axi_qos->qosctset0);
1068 	writel(0x00000020, &axi_qos->qosreqctr);
1069 	writel(0x00002006, &axi_qos->qosthres0);
1070 	writel(0x00002001, &axi_qos->qosthres1);
1071 	writel(0x00000001, &axi_qos->qosthres2);
1072 	writel(0x00000001, &axi_qos->qosqon);
1073 
1074 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VCP0VW_BASE;
1075 	writel(0x00000001, &axi_qos->qosconf);
1076 	writel(0x00002007, &axi_qos->qosctset0);
1077 	writel(0x00000020, &axi_qos->qosreqctr);
1078 	writel(0x00002006, &axi_qos->qosthres0);
1079 	writel(0x00002001, &axi_qos->qosthres1);
1080 	writel(0x00000001, &axi_qos->qosthres2);
1081 	writel(0x00000001, &axi_qos->qosqon);
1082 
1083 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VPC0R_BASE;
1084 	writel(0x00000001, &axi_qos->qosconf);
1085 	writel(0x00002007, &axi_qos->qosctset0);
1086 	writel(0x00000020, &axi_qos->qosreqctr);
1087 	writel(0x00002006, &axi_qos->qosthres0);
1088 	writel(0x00002001, &axi_qos->qosthres1);
1089 	writel(0x00000001, &axi_qos->qosthres2);
1090 	writel(0x00000001, &axi_qos->qosqon);
1091 
1092 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VCP1CR_BASE;
1093 	writel(0x00000001, &axi_qos->qosconf);
1094 	writel(0x00002007, &axi_qos->qosctset0);
1095 	writel(0x00000020, &axi_qos->qosreqctr);
1096 	writel(0x00002006, &axi_qos->qosthres0);
1097 	writel(0x00002001, &axi_qos->qosthres1);
1098 	writel(0x00000001, &axi_qos->qosthres2);
1099 	writel(0x00000001, &axi_qos->qosqon);
1100 
1101 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VCP1CW_BASE;
1102 	writel(0x00000001, &axi_qos->qosconf);
1103 	writel(0x00002007, &axi_qos->qosctset0);
1104 	writel(0x00000020, &axi_qos->qosreqctr);
1105 	writel(0x00002006, &axi_qos->qosthres0);
1106 	writel(0x00002001, &axi_qos->qosthres1);
1107 	writel(0x00000001, &axi_qos->qosthres2);
1108 	writel(0x00000001, &axi_qos->qosqon);
1109 
1110 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VCP1VR_BASE;
1111 	writel(0x00000001, &axi_qos->qosconf);
1112 	writel(0x00002007, &axi_qos->qosctset0);
1113 	writel(0x00000020, &axi_qos->qosreqctr);
1114 	writel(0x00002006, &axi_qos->qosthres0);
1115 	writel(0x00002001, &axi_qos->qosthres1);
1116 	writel(0x00000001, &axi_qos->qosthres2);
1117 	writel(0x00000001, &axi_qos->qosqon);
1118 
1119 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VCP1VW_BASE;
1120 	writel(0x00000001, &axi_qos->qosconf);
1121 	writel(0x00002007, &axi_qos->qosctset0);
1122 	writel(0x00000020, &axi_qos->qosreqctr);
1123 	writel(0x00002006, &axi_qos->qosthres0);
1124 	writel(0x00002001, &axi_qos->qosthres1);
1125 	writel(0x00000001, &axi_qos->qosthres2);
1126 	writel(0x00000001, &axi_qos->qosqon);
1127 
1128 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VPC1R_BASE;
1129 	writel(0x00000001, &axi_qos->qosconf);
1130 	writel(0x00002007, &axi_qos->qosctset0);
1131 	writel(0x00000020, &axi_qos->qosreqctr);
1132 	writel(0x00002006, &axi_qos->qosthres0);
1133 	writel(0x00002001, &axi_qos->qosthres1);
1134 	writel(0x00000001, &axi_qos->qosthres2);
1135 	writel(0x00000000, &axi_qos->qosqon);
1136 }
1137 
1138 #if defined(CONFIG_QOS_PRI_MEDIA)
1139 #define is_qos_pri_media()	1
1140 #else
1141 #define is_qos_pri_media()	0
1142 #endif
1143 
1144 #if defined(CONFIG_QOS_PRI_NORMAL)
1145 #define is_qos_pri_normal()	1
1146 #else
1147 #define is_qos_pri_normal()	0
1148 #endif
1149 
1150 #if defined(CONFIG_QOS_PRI_GFX)
1151 #define is_qos_pri_gfx()	1
1152 #else
1153 #define is_qos_pri_gfx()	0
1154 #endif
1155 
1156 /* QoS version 0.963 for ES2 */
1157 static void qos_init_es2(void)
1158 {
1159 	int i;
1160 	struct rcar_s3c *s3c;
1161 	struct rcar_s3c_qos *s3c_qos;
1162 	struct rcar_dbsc3_qos *qos_addr;
1163 	struct rcar_mxi *mxi;
1164 	struct rcar_mxi_qos *mxi_qos;
1165 	struct rcar_axi_qos *axi_qos;
1166 
1167 	/* DBSC DBADJ2 */
1168 	writel(0x20042004, DBSC3_0_DBADJ2);
1169 
1170 	/* S3C -QoS */
1171 	s3c = (struct rcar_s3c *)S3C_BASE;
1172 	writel(0x80000000, &s3c->s3cadsplcr);
1173 	if (is_qos_pri_media()) {
1174 		writel(0x1F060302, &s3c->s3crorr);
1175 		writel(0x07070302, &s3c->s3cworr);
1176 	} else if (is_qos_pri_normal()) {
1177 		writel(0x1F060504, &s3c->s3crorr);
1178 		writel(0x07070503, &s3c->s3cworr);
1179 	} else if (is_qos_pri_gfx()) {
1180 		writel(0x1F060606, &s3c->s3crorr);
1181 		writel(0x07070606, &s3c->s3cworr);
1182 	}
1183 	/* QoS Control Registers */
1184 	s3c_qos = (struct rcar_s3c_qos *)S3C_QOS_CCI0_BASE;
1185 	writel(0x00890089, &s3c_qos->s3cqos0);
1186 	writel(0x20960010, &s3c_qos->s3cqos1);
1187 	writel(0x20302030, &s3c_qos->s3cqos2);
1188 	if (is_qos_pri_media())
1189 		writel(0x20AA2300, &s3c_qos->s3cqos3);
1190 	else if (is_qos_pri_normal())
1191 		writel(0x20AA2200, &s3c_qos->s3cqos3);
1192 	else if (is_qos_pri_gfx())
1193 		writel(0x20AA2100, &s3c_qos->s3cqos3);
1194 	writel(0x00002032, &s3c_qos->s3cqos4);
1195 	writel(0x20960010, &s3c_qos->s3cqos5);
1196 	writel(0x20302030, &s3c_qos->s3cqos6);
1197 	if (is_qos_pri_media())
1198 		writel(0x20AA2300, &s3c_qos->s3cqos7);
1199 	else if (is_qos_pri_normal())
1200 		writel(0x20AA2200, &s3c_qos->s3cqos7);
1201 	else if (is_qos_pri_gfx())
1202 		writel(0x20AA2100, &s3c_qos->s3cqos7);
1203 	writel(0x00002032, &s3c_qos->s3cqos8);
1204 
1205 	s3c_qos = (struct rcar_s3c_qos *)S3C_QOS_CCI1_BASE;
1206 	writel(0x00890089, &s3c_qos->s3cqos0);
1207 	writel(0x20960010, &s3c_qos->s3cqos1);
1208 	writel(0x20302030, &s3c_qos->s3cqos2);
1209 	if (is_qos_pri_media())
1210 		writel(0x20AA2300, &s3c_qos->s3cqos3);
1211 	else if (is_qos_pri_normal())
1212 		writel(0x20AA2200, &s3c_qos->s3cqos3);
1213 	else if (is_qos_pri_gfx())
1214 		writel(0x20AA2100, &s3c_qos->s3cqos3);
1215 	writel(0x00002032, &s3c_qos->s3cqos4);
1216 	writel(0x20960010, &s3c_qos->s3cqos5);
1217 	writel(0x20302030, &s3c_qos->s3cqos6);
1218 	if (is_qos_pri_media())
1219 		writel(0x20AA2300, &s3c_qos->s3cqos7);
1220 	else if (is_qos_pri_normal())
1221 		writel(0x20AA2200, &s3c_qos->s3cqos7);
1222 	else if (is_qos_pri_gfx())
1223 		writel(0x20AA2100, &s3c_qos->s3cqos7);
1224 	writel(0x00002032, &s3c_qos->s3cqos8);
1225 
1226 	s3c_qos = (struct rcar_s3c_qos *)S3C_QOS_MXI_BASE;
1227 	writel(0x80928092, &s3c_qos->s3cqos0);
1228 	writel(0x20960020, &s3c_qos->s3cqos1);
1229 	writel(0x20302030, &s3c_qos->s3cqos2);
1230 	writel(0x20AA20DC, &s3c_qos->s3cqos3);
1231 	writel(0x00002032, &s3c_qos->s3cqos4);
1232 	writel(0x20960020, &s3c_qos->s3cqos5);
1233 	writel(0x20302030, &s3c_qos->s3cqos6);
1234 	writel(0x20AA20DC, &s3c_qos->s3cqos7);
1235 	writel(0x00002032, &s3c_qos->s3cqos8);
1236 
1237 	s3c_qos = (struct rcar_s3c_qos *)S3C_QOS_AXI_BASE;
1238 	writel(0x00828092, &s3c_qos->s3cqos0);
1239 	writel(0x20960020, &s3c_qos->s3cqos1);
1240 	writel(0x20302030, &s3c_qos->s3cqos2);
1241 	writel(0x20AA20FA, &s3c_qos->s3cqos3);
1242 	writel(0x00002032, &s3c_qos->s3cqos4);
1243 	writel(0x20960020, &s3c_qos->s3cqos5);
1244 	writel(0x20302030, &s3c_qos->s3cqos6);
1245 	writel(0x20AA20FA, &s3c_qos->s3cqos7);
1246 	writel(0x00002032, &s3c_qos->s3cqos8);
1247 
1248 	writel(0x00310808, &s3c->s3carcr11);
1249 
1250 	/* DBSC -QoS */
1251 	/* DBSC0 - Read */
1252 	for (i = DBSC3_00; i < DBSC3_NR; i++) {
1253 		qos_addr = (struct rcar_dbsc3_qos *)dbsc3_0_r_qos_addr[i];
1254 		writel(0x00000002, &qos_addr->dblgcnt);
1255 		writel(0x00002096, &qos_addr->dbtmval0);
1256 		writel(0x00002064, &qos_addr->dbtmval1);
1257 		writel(0x00002032, &qos_addr->dbtmval2);
1258 		writel(0x00001FB0, &qos_addr->dbtmval3);
1259 		writel(0x00000001, &qos_addr->dbrqctr);
1260 		writel(0x00002078, &qos_addr->dbthres0);
1261 		writel(0x0000204B, &qos_addr->dbthres1);
1262 		writel(0x0000201E, &qos_addr->dbthres2);
1263 		writel(0x00000001, &qos_addr->dblgqon);
1264 	}
1265 
1266 	/* DBSC0 - Write */
1267 	for (i = DBSC3_00; i < DBSC3_NR; i++) {
1268 		qos_addr = (struct rcar_dbsc3_qos *)dbsc3_0_w_qos_addr[i];
1269 		writel(0x00000002, &qos_addr->dblgcnt);
1270 		writel(0x00002096, &qos_addr->dbtmval0);
1271 		writel(0x00002064, &qos_addr->dbtmval1);
1272 		writel(0x00002050, &qos_addr->dbtmval2);
1273 		writel(0x0000203A, &qos_addr->dbtmval3);
1274 		writel(0x00000001, &qos_addr->dbrqctr);
1275 		writel(0x00002078, &qos_addr->dbthres0);
1276 		writel(0x0000204B, &qos_addr->dbthres1);
1277 		writel(0x0000203C, &qos_addr->dbthres2);
1278 		writel(0x00000001, &qos_addr->dblgqon);
1279 	}
1280 
1281 	/* MXI -QoS */
1282 	/* Transaction Control (MXI) */
1283 	mxi = (struct rcar_mxi *)MXI_BASE;
1284 	writel(0x00000013, &mxi->mxrtcr);
1285 	writel(0x00000016, &mxi->mxwtcr);
1286 	writel(0x00B800C0, &mxi->mxsaar0);
1287 	writel(0x02000800, &mxi->mxsaar1);
1288 
1289 	/* QoS Control (MXI) */
1290 	mxi_qos = (struct rcar_mxi_qos *)MXI_QOS_BASE;
1291 	writel(0x0000000C, &mxi_qos->vspdu0);
1292 	writel(0x0000000C, &mxi_qos->vspdu1);
1293 	writel(0x0000000E, &mxi_qos->du0);
1294 	writel(0x0000000E, &mxi_qos->du1);
1295 
1296 	/* AXI -QoS */
1297 	/* Transaction Control (MXI) */
1298 	axi_qos = (struct rcar_axi_qos *)SYS_AXI_SYX64TO128_BASE;
1299 	writel(0x00000002, &axi_qos->qosconf);
1300 	writel(0x00002245, &axi_qos->qosctset0);
1301 	writel(0x00002096, &axi_qos->qosctset1);
1302 	writel(0x00002030, &axi_qos->qosctset2);
1303 	writel(0x00002030, &axi_qos->qosctset3);
1304 	writel(0x00000001, &axi_qos->qosreqctr);
1305 	writel(0x00002064, &axi_qos->qosthres0);
1306 	writel(0x00002004, &axi_qos->qosthres1);
1307 	writel(0x00000000, &axi_qos->qosthres2);
1308 	writel(0x00000001, &axi_qos->qosqon);
1309 
1310 	axi_qos = (struct rcar_axi_qos *)SYS_AXI_AVB_BASE;
1311 	writel(0x00000000, &axi_qos->qosconf);
1312 	writel(0x000020A6, &axi_qos->qosctset0);
1313 	writel(0x00000001, &axi_qos->qosreqctr);
1314 	writel(0x00002064, &axi_qos->qosthres0);
1315 	writel(0x00002004, &axi_qos->qosthres1);
1316 	writel(0x00000000, &axi_qos->qosthres2);
1317 	writel(0x00000001, &axi_qos->qosqon);
1318 
1319 	axi_qos = (struct rcar_axi_qos *)SYS_AXI_G2D_BASE;
1320 	writel(0x00000000, &axi_qos->qosconf);
1321 	writel(0x000020A6, &axi_qos->qosctset0);
1322 	writel(0x00000001, &axi_qos->qosreqctr);
1323 	writel(0x00002064, &axi_qos->qosthres0);
1324 	writel(0x00002004, &axi_qos->qosthres1);
1325 	writel(0x00000000, &axi_qos->qosthres2);
1326 	writel(0x00000001, &axi_qos->qosqon);
1327 
1328 	axi_qos = (struct rcar_axi_qos *)SYS_AXI_IMP0_BASE;
1329 	writel(0x00000000, &axi_qos->qosconf);
1330 	writel(0x00002021, &axi_qos->qosctset0);
1331 	writel(0x00000001, &axi_qos->qosreqctr);
1332 	writel(0x00002064, &axi_qos->qosthres0);
1333 	writel(0x00002004, &axi_qos->qosthres1);
1334 	writel(0x00000000, &axi_qos->qosthres2);
1335 	writel(0x00000001, &axi_qos->qosqon);
1336 
1337 	axi_qos = (struct rcar_axi_qos *)SYS_AXI_IMP1_BASE;
1338 	writel(0x00000000, &axi_qos->qosconf);
1339 	writel(0x00002037, &axi_qos->qosctset0);
1340 	writel(0x00000001, &axi_qos->qosreqctr);
1341 	writel(0x00002064, &axi_qos->qosthres0);
1342 	writel(0x00002004, &axi_qos->qosthres1);
1343 	writel(0x00000000, &axi_qos->qosthres2);
1344 	writel(0x00000001, &axi_qos->qosqon);
1345 
1346 	axi_qos = (struct rcar_axi_qos *)SYS_AXI_IMUX0_BASE;
1347 	writel(0x00000002, &axi_qos->qosconf);
1348 	writel(0x00002245, &axi_qos->qosctset0);
1349 	writel(0x00002096, &axi_qos->qosctset1);
1350 	writel(0x00002030, &axi_qos->qosctset2);
1351 	writel(0x00002030, &axi_qos->qosctset3);
1352 	writel(0x00000001, &axi_qos->qosreqctr);
1353 	writel(0x00002064, &axi_qos->qosthres0);
1354 	writel(0x00002004, &axi_qos->qosthres1);
1355 	writel(0x00000000, &axi_qos->qosthres2);
1356 	writel(0x00000001, &axi_qos->qosqon);
1357 
1358 	axi_qos = (struct rcar_axi_qos *)SYS_AXI_IMUX1_BASE;
1359 	writel(0x00000002, &axi_qos->qosconf);
1360 	writel(0x00002245, &axi_qos->qosctset0);
1361 	writel(0x00002096, &axi_qos->qosctset1);
1362 	writel(0x00002030, &axi_qos->qosctset2);
1363 	writel(0x00002030, &axi_qos->qosctset3);
1364 	writel(0x00000001, &axi_qos->qosreqctr);
1365 	writel(0x00002064, &axi_qos->qosthres0);
1366 	writel(0x00002004, &axi_qos->qosthres1);
1367 	writel(0x00000000, &axi_qos->qosthres2);
1368 	writel(0x00000001, &axi_qos->qosqon);
1369 
1370 	axi_qos = (struct rcar_axi_qos *)SYS_AXI_IMUX2_BASE;
1371 	writel(0x00000002, &axi_qos->qosconf);
1372 	writel(0x00002245, &axi_qos->qosctset0);
1373 	writel(0x00002096, &axi_qos->qosctset1);
1374 	writel(0x00002030, &axi_qos->qosctset2);
1375 	writel(0x00002030, &axi_qos->qosctset3);
1376 	writel(0x00000001, &axi_qos->qosreqctr);
1377 	writel(0x00002064, &axi_qos->qosthres0);
1378 	writel(0x00002004, &axi_qos->qosthres1);
1379 	writel(0x00000000, &axi_qos->qosthres2);
1380 	writel(0x00000001, &axi_qos->qosqon);
1381 
1382 	axi_qos = (struct rcar_axi_qos *)SYS_AXI_LBS_BASE;
1383 	writel(0x00000000, &axi_qos->qosconf);
1384 	writel(0x0000214C, &axi_qos->qosctset0);
1385 	writel(0x00000001, &axi_qos->qosreqctr);
1386 	writel(0x00002064, &axi_qos->qosthres0);
1387 	writel(0x00002004, &axi_qos->qosthres1);
1388 	writel(0x00000000, &axi_qos->qosthres2);
1389 	writel(0x00000001, &axi_qos->qosqon);
1390 
1391 	axi_qos = (struct rcar_axi_qos *)SYS_AXI_MMUDS_BASE;
1392 	writel(0x00000001, &axi_qos->qosconf);
1393 	writel(0x00002004, &axi_qos->qosctset0);
1394 	writel(0x00002096, &axi_qos->qosctset1);
1395 	writel(0x00002030, &axi_qos->qosctset2);
1396 	writel(0x00002030, &axi_qos->qosctset3);
1397 	writel(0x00000001, &axi_qos->qosreqctr);
1398 	writel(0x00002064, &axi_qos->qosthres0);
1399 	writel(0x00002004, &axi_qos->qosthres1);
1400 	writel(0x00000000, &axi_qos->qosthres2);
1401 	writel(0x00000001, &axi_qos->qosqon);
1402 
1403 	axi_qos = (struct rcar_axi_qos *)SYS_AXI_MMUM_BASE;
1404 	writel(0x00000001, &axi_qos->qosconf);
1405 	writel(0x00002004, &axi_qos->qosctset0);
1406 	writel(0x00002096, &axi_qos->qosctset1);
1407 	writel(0x00002030, &axi_qos->qosctset2);
1408 	writel(0x00002030, &axi_qos->qosctset3);
1409 	writel(0x00000001, &axi_qos->qosreqctr);
1410 	writel(0x00002064, &axi_qos->qosthres0);
1411 	writel(0x00002004, &axi_qos->qosthres1);
1412 	writel(0x00000000, &axi_qos->qosthres2);
1413 	writel(0x00000001, &axi_qos->qosqon);
1414 
1415 	axi_qos = (struct rcar_axi_qos *)SYS_AXI_MMUR_BASE;
1416 	writel(0x00000001, &axi_qos->qosconf);
1417 	writel(0x00002004, &axi_qos->qosctset0);
1418 	writel(0x00002096, &axi_qos->qosctset1);
1419 	writel(0x00002030, &axi_qos->qosctset2);
1420 	writel(0x00002030, &axi_qos->qosctset3);
1421 	writel(0x00000001, &axi_qos->qosreqctr);
1422 	writel(0x00002064, &axi_qos->qosthres0);
1423 	writel(0x00002004, &axi_qos->qosthres1);
1424 	writel(0x00000000, &axi_qos->qosthres2);
1425 	writel(0x00000001, &axi_qos->qosqon);
1426 
1427 	axi_qos = (struct rcar_axi_qos *)SYS_AXI_MMUS0_BASE;
1428 	writel(0x00000001, &axi_qos->qosconf);
1429 	writel(0x00002004, &axi_qos->qosctset0);
1430 	writel(0x00002096, &axi_qos->qosctset1);
1431 	writel(0x00002030, &axi_qos->qosctset2);
1432 	writel(0x00002030, &axi_qos->qosctset3);
1433 	writel(0x00000001, &axi_qos->qosreqctr);
1434 	writel(0x00002064, &axi_qos->qosthres0);
1435 	writel(0x00002004, &axi_qos->qosthres1);
1436 	writel(0x00000000, &axi_qos->qosthres2);
1437 	writel(0x00000001, &axi_qos->qosqon);
1438 
1439 	axi_qos = (struct rcar_axi_qos *)SYS_AXI_MMUS1_BASE;
1440 	writel(0x00000001, &axi_qos->qosconf);
1441 	writel(0x00002004, &axi_qos->qosctset0);
1442 	writel(0x00002096, &axi_qos->qosctset1);
1443 	writel(0x00002030, &axi_qos->qosctset2);
1444 	writel(0x00002030, &axi_qos->qosctset3);
1445 	writel(0x00000001, &axi_qos->qosreqctr);
1446 	writel(0x00002064, &axi_qos->qosthres0);
1447 	writel(0x00002004, &axi_qos->qosthres1);
1448 	writel(0x00000000, &axi_qos->qosthres2);
1449 	writel(0x00000001, &axi_qos->qosqon);
1450 
1451 	axi_qos = (struct rcar_axi_qos *)SYS_AXI_MTSB0_BASE;
1452 	writel(0x00000000, &axi_qos->qosconf);
1453 	writel(0x00002021, &axi_qos->qosctset0);
1454 	writel(0x00000001, &axi_qos->qosreqctr);
1455 	writel(0x00002064, &axi_qos->qosthres0);
1456 	writel(0x00002004, &axi_qos->qosthres1);
1457 	writel(0x00000000, &axi_qos->qosthres2);
1458 	writel(0x00000001, &axi_qos->qosqon);
1459 
1460 	axi_qos = (struct rcar_axi_qos *)SYS_AXI_MTSB1_BASE;
1461 	writel(0x00000000, &axi_qos->qosconf);
1462 	writel(0x00002021, &axi_qos->qosctset0);
1463 	writel(0x00000001, &axi_qos->qosreqctr);
1464 	writel(0x00002064, &axi_qos->qosthres0);
1465 	writel(0x00002004, &axi_qos->qosthres1);
1466 	writel(0x00000000, &axi_qos->qosthres2);
1467 	writel(0x00000001, &axi_qos->qosqon);
1468 
1469 	axi_qos = (struct rcar_axi_qos *)SYS_AXI_PCI_BASE;
1470 	writel(0x00000000, &axi_qos->qosconf);
1471 	writel(0x0000214C, &axi_qos->qosctset0);
1472 	writel(0x00000001, &axi_qos->qosreqctr);
1473 	writel(0x00002064, &axi_qos->qosthres0);
1474 	writel(0x00002004, &axi_qos->qosthres1);
1475 	writel(0x00000000, &axi_qos->qosthres2);
1476 	writel(0x00000001, &axi_qos->qosqon);
1477 
1478 	axi_qos = (struct rcar_axi_qos *)SYS_AXI_RTX_BASE;
1479 	writel(0x00000002, &axi_qos->qosconf);
1480 	writel(0x00002245, &axi_qos->qosctset0);
1481 	writel(0x00002096, &axi_qos->qosctset1);
1482 	writel(0x00002030, &axi_qos->qosctset2);
1483 	writel(0x00002030, &axi_qos->qosctset3);
1484 	writel(0x00000001, &axi_qos->qosreqctr);
1485 	writel(0x00002064, &axi_qos->qosthres0);
1486 	writel(0x00002004, &axi_qos->qosthres1);
1487 	writel(0x00000000, &axi_qos->qosthres2);
1488 	writel(0x00000001, &axi_qos->qosqon);
1489 
1490 	axi_qos = (struct rcar_axi_qos *)SYS_AXI_SDS0_BASE;
1491 	writel(0x00000000, &axi_qos->qosconf);
1492 	writel(0x000020A6, &axi_qos->qosctset0);
1493 	writel(0x00000001, &axi_qos->qosreqctr);
1494 	writel(0x00002064, &axi_qos->qosthres0);
1495 	writel(0x00002004, &axi_qos->qosthres1);
1496 	writel(0x00000000, &axi_qos->qosthres2);
1497 	writel(0x00000001, &axi_qos->qosqon);
1498 
1499 	axi_qos = (struct rcar_axi_qos *)SYS_AXI_SDS1_BASE;
1500 	writel(0x00000000, &axi_qos->qosconf);
1501 	writel(0x000020A6, &axi_qos->qosctset0);
1502 	writel(0x00000001, &axi_qos->qosreqctr);
1503 	writel(0x00002064, &axi_qos->qosthres0);
1504 	writel(0x00002004, &axi_qos->qosthres1);
1505 	writel(0x00000000, &axi_qos->qosthres2);
1506 	writel(0x00000001, &axi_qos->qosqon);
1507 
1508 	axi_qos = (struct rcar_axi_qos *)SYS_AXI_USB20_BASE;
1509 	writel(0x00000000, &axi_qos->qosconf);
1510 	writel(0x00002053, &axi_qos->qosctset0);
1511 	writel(0x00000001, &axi_qos->qosreqctr);
1512 	writel(0x00002064, &axi_qos->qosthres0);
1513 	writel(0x00002004, &axi_qos->qosthres1);
1514 	writel(0x00000000, &axi_qos->qosthres2);
1515 	writel(0x00000001, &axi_qos->qosqon);
1516 
1517 	axi_qos = (struct rcar_axi_qos *)SYS_AXI_USB21_BASE;
1518 	writel(0x00000000, &axi_qos->qosconf);
1519 	writel(0x00002053, &axi_qos->qosctset0);
1520 	writel(0x00000001, &axi_qos->qosreqctr);
1521 	writel(0x00002064, &axi_qos->qosthres0);
1522 	writel(0x00002004, &axi_qos->qosthres1);
1523 	writel(0x00000000, &axi_qos->qosthres2);
1524 	writel(0x00000001, &axi_qos->qosqon);
1525 
1526 	axi_qos = (struct rcar_axi_qos *)SYS_AXI_USB22_BASE;
1527 	writel(0x00000000, &axi_qos->qosconf);
1528 	writel(0x00002053, &axi_qos->qosctset0);
1529 	writel(0x00000001, &axi_qos->qosreqctr);
1530 	writel(0x00002064, &axi_qos->qosthres0);
1531 	writel(0x00002004, &axi_qos->qosthres1);
1532 	writel(0x00000000, &axi_qos->qosthres2);
1533 	writel(0x00000001, &axi_qos->qosqon);
1534 
1535 	axi_qos = (struct rcar_axi_qos *)SYS_AXI_USB30_BASE;
1536 	writel(0x00000000, &axi_qos->qosconf);
1537 	writel(0x0000214C, &axi_qos->qosctset0);
1538 	writel(0x00000001, &axi_qos->qosreqctr);
1539 	writel(0x00002064, &axi_qos->qosthres0);
1540 	writel(0x00002004, &axi_qos->qosthres1);
1541 	writel(0x00000000, &axi_qos->qosthres2);
1542 	writel(0x00000001, &axi_qos->qosqon);
1543 
1544 	axi_qos = (struct rcar_axi_qos *)SYS_AXI_AX2M_BASE;
1545 	writel(0x00000002, &axi_qos->qosconf);
1546 	writel(0x00002245, &axi_qos->qosctset0);
1547 	writel(0x00000001, &axi_qos->qosreqctr);
1548 	writel(0x00002064, &axi_qos->qosthres0);
1549 	writel(0x00002004, &axi_qos->qosthres1);
1550 	writel(0x00000000, &axi_qos->qosthres2);
1551 	writel(0x00000001, &axi_qos->qosqon);
1552 
1553 	axi_qos = (struct rcar_axi_qos *)SYS_AXI_CC50_BASE;
1554 	writel(0x00000000, &axi_qos->qosconf);
1555 	writel(0x00002029, &axi_qos->qosctset0);
1556 	writel(0x00000001, &axi_qos->qosreqctr);
1557 	writel(0x00002064, &axi_qos->qosthres0);
1558 	writel(0x00002004, &axi_qos->qosthres1);
1559 	writel(0x00000000, &axi_qos->qosthres2);
1560 	writel(0x00000001, &axi_qos->qosqon);
1561 
1562 	axi_qos = (struct rcar_axi_qos *)SYS_AXI_CCI_BASE;
1563 	writel(0x00000002, &axi_qos->qosconf);
1564 	writel(0x00002245, &axi_qos->qosctset0);
1565 	writel(0x00000001, &axi_qos->qosreqctr);
1566 	writel(0x00002064, &axi_qos->qosthres0);
1567 	writel(0x00002004, &axi_qos->qosthres1);
1568 	writel(0x00000000, &axi_qos->qosthres2);
1569 	writel(0x00000001, &axi_qos->qosqon);
1570 
1571 	axi_qos = (struct rcar_axi_qos *)SYS_AXI_CS_BASE;
1572 	writel(0x00000000, &axi_qos->qosconf);
1573 	writel(0x00002053, &axi_qos->qosctset0);
1574 	writel(0x00000001, &axi_qos->qosreqctr);
1575 	writel(0x00002064, &axi_qos->qosthres0);
1576 	writel(0x00002004, &axi_qos->qosthres1);
1577 	writel(0x00000000, &axi_qos->qosthres2);
1578 	writel(0x00000001, &axi_qos->qosqon);
1579 
1580 	axi_qos = (struct rcar_axi_qos *)SYS_AXI_DDM_BASE;
1581 	writel(0x00000000, &axi_qos->qosconf);
1582 	writel(0x000020A6, &axi_qos->qosctset0);
1583 	writel(0x00000001, &axi_qos->qosreqctr);
1584 	writel(0x00002064, &axi_qos->qosthres0);
1585 	writel(0x00002004, &axi_qos->qosthres1);
1586 	writel(0x00000000, &axi_qos->qosthres2);
1587 	writel(0x00000001, &axi_qos->qosqon);
1588 
1589 	axi_qos = (struct rcar_axi_qos *)SYS_AXI_ETH_BASE;
1590 	writel(0x00000000, &axi_qos->qosconf);
1591 	writel(0x00002053, &axi_qos->qosctset0);
1592 	writel(0x00000001, &axi_qos->qosreqctr);
1593 	writel(0x00002064, &axi_qos->qosthres0);
1594 	writel(0x00002004, &axi_qos->qosthres1);
1595 	writel(0x00000000, &axi_qos->qosthres2);
1596 	writel(0x00000001, &axi_qos->qosqon);
1597 
1598 	axi_qos = (struct rcar_axi_qos *)SYS_AXI_MPXM_BASE;
1599 	writel(0x00000002, &axi_qos->qosconf);
1600 	writel(0x00002245, &axi_qos->qosctset0);
1601 	writel(0x00000001, &axi_qos->qosreqctr);
1602 	writel(0x00002064, &axi_qos->qosthres0);
1603 	writel(0x00002004, &axi_qos->qosthres1);
1604 	writel(0x00000000, &axi_qos->qosthres2);
1605 	writel(0x00000001, &axi_qos->qosqon);
1606 
1607 	axi_qos = (struct rcar_axi_qos *)SYS_AXI_SAT0_BASE;
1608 	writel(0x00000000, &axi_qos->qosconf);
1609 	writel(0x00002053, &axi_qos->qosctset0);
1610 	writel(0x00000001, &axi_qos->qosreqctr);
1611 	writel(0x00002064, &axi_qos->qosthres0);
1612 	writel(0x00002004, &axi_qos->qosthres1);
1613 	writel(0x00000000, &axi_qos->qosthres2);
1614 	writel(0x00000001, &axi_qos->qosqon);
1615 
1616 	axi_qos = (struct rcar_axi_qos *)SYS_AXI_SAT1_BASE;
1617 	writel(0x00000000, &axi_qos->qosconf);
1618 	writel(0x00002053, &axi_qos->qosctset0);
1619 	writel(0x00000001, &axi_qos->qosreqctr);
1620 	writel(0x00002064, &axi_qos->qosthres0);
1621 	writel(0x00002004, &axi_qos->qosthres1);
1622 	writel(0x00000000, &axi_qos->qosthres2);
1623 	writel(0x00000001, &axi_qos->qosqon);
1624 
1625 	axi_qos = (struct rcar_axi_qos *)SYS_AXI_SDM0_BASE;
1626 	writel(0x00000000, &axi_qos->qosconf);
1627 	writel(0x0000214C, &axi_qos->qosctset0);
1628 	writel(0x00000001, &axi_qos->qosreqctr);
1629 	writel(0x00002064, &axi_qos->qosthres0);
1630 	writel(0x00002004, &axi_qos->qosthres1);
1631 	writel(0x00000000, &axi_qos->qosthres2);
1632 	writel(0x00000001, &axi_qos->qosqon);
1633 
1634 	axi_qos = (struct rcar_axi_qos *)SYS_AXI_SDM1_BASE;
1635 	writel(0x00000000, &axi_qos->qosconf);
1636 	writel(0x0000214C, &axi_qos->qosctset0);
1637 	writel(0x00000001, &axi_qos->qosreqctr);
1638 	writel(0x00002064, &axi_qos->qosthres0);
1639 	writel(0x00002004, &axi_qos->qosthres1);
1640 	writel(0x00000000, &axi_qos->qosthres2);
1641 	writel(0x00000001, &axi_qos->qosqon);
1642 
1643 	axi_qos = (struct rcar_axi_qos *)SYS_AXI_TRAB_BASE;
1644 	writel(0x00000000, &axi_qos->qosconf);
1645 	writel(0x000020A6, &axi_qos->qosctset0);
1646 	writel(0x00000001, &axi_qos->qosreqctr);
1647 	writel(0x00002064, &axi_qos->qosthres0);
1648 	writel(0x00002004, &axi_qos->qosthres1);
1649 	writel(0x00000000, &axi_qos->qosthres2);
1650 	writel(0x00000001, &axi_qos->qosqon);
1651 
1652 	axi_qos = (struct rcar_axi_qos *)SYS_AXI_UDM0_BASE;
1653 	writel(0x00000000, &axi_qos->qosconf);
1654 	writel(0x00002053, &axi_qos->qosctset0);
1655 	writel(0x00000001, &axi_qos->qosreqctr);
1656 	writel(0x00002064, &axi_qos->qosthres0);
1657 	writel(0x00002004, &axi_qos->qosthres1);
1658 	writel(0x00000000, &axi_qos->qosthres2);
1659 	writel(0x00000001, &axi_qos->qosqon);
1660 
1661 	axi_qos = (struct rcar_axi_qos *)SYS_AXI_UDM1_BASE;
1662 	writel(0x00000000, &axi_qos->qosconf);
1663 	writel(0x00002053, &axi_qos->qosctset0);
1664 	writel(0x00000001, &axi_qos->qosreqctr);
1665 	writel(0x00002064, &axi_qos->qosthres0);
1666 	writel(0x00002004, &axi_qos->qosthres1);
1667 	writel(0x00000000, &axi_qos->qosthres2);
1668 	writel(0x00000001, &axi_qos->qosqon);
1669 
1670 	/* QoS Register (RT-AXI) */
1671 	axi_qos = (struct rcar_axi_qos *)RT_AXI_SHX_BASE;
1672 	writel(0x00000001, &axi_qos->qosconf);
1673 	writel(0x00002053, &axi_qos->qosctset0);
1674 	writel(0x00002096, &axi_qos->qosctset1);
1675 	writel(0x00002030, &axi_qos->qosctset2);
1676 	writel(0x00002030, &axi_qos->qosctset3);
1677 	writel(0x00000001, &axi_qos->qosreqctr);
1678 	writel(0x00002064, &axi_qos->qosthres0);
1679 	writel(0x00002004, &axi_qos->qosthres1);
1680 	writel(0x00000000, &axi_qos->qosthres2);
1681 	writel(0x00000001, &axi_qos->qosqon);
1682 
1683 	axi_qos = (struct rcar_axi_qos *)RT_AXI_DBG_BASE;
1684 	writel(0x00000000, &axi_qos->qosconf);
1685 	writel(0x00002053, &axi_qos->qosctset0);
1686 	writel(0x00002096, &axi_qos->qosctset1);
1687 	writel(0x00002030, &axi_qos->qosctset2);
1688 	writel(0x00002030, &axi_qos->qosctset3);
1689 	writel(0x00000001, &axi_qos->qosreqctr);
1690 	writel(0x00002064, &axi_qos->qosthres0);
1691 	writel(0x00002004, &axi_qos->qosthres1);
1692 	writel(0x00000000, &axi_qos->qosthres2);
1693 	writel(0x00000001, &axi_qos->qosqon);
1694 
1695 	axi_qos = (struct rcar_axi_qos *)RT_AXI_RDM_BASE;
1696 	writel(0x00000000, &axi_qos->qosconf);
1697 	writel(0x00002299, &axi_qos->qosctset0);
1698 	writel(0x00000001, &axi_qos->qosreqctr);
1699 	writel(0x00002064, &axi_qos->qosthres0);
1700 	writel(0x00002004, &axi_qos->qosthres1);
1701 	writel(0x00000000, &axi_qos->qosthres2);
1702 	writel(0x00000001, &axi_qos->qosqon);
1703 
1704 	axi_qos = (struct rcar_axi_qos *)RT_AXI_RDS_BASE;
1705 	writel(0x00000000, &axi_qos->qosconf);
1706 	writel(0x00002029, &axi_qos->qosctset0);
1707 	writel(0x00000001, &axi_qos->qosreqctr);
1708 	writel(0x00002064, &axi_qos->qosthres0);
1709 	writel(0x00002004, &axi_qos->qosthres1);
1710 	writel(0x00000000, &axi_qos->qosthres2);
1711 	writel(0x00000001, &axi_qos->qosqon);
1712 
1713 	axi_qos = (struct rcar_axi_qos *)RT_AXI_RTX64TO128_BASE;
1714 	writel(0x00000002, &axi_qos->qosconf);
1715 	writel(0x00002245, &axi_qos->qosctset0);
1716 	writel(0x00002096, &axi_qos->qosctset1);
1717 	writel(0x00002030, &axi_qos->qosctset2);
1718 	writel(0x00002030, &axi_qos->qosctset3);
1719 	writel(0x00000001, &axi_qos->qosreqctr);
1720 	writel(0x00002064, &axi_qos->qosthres0);
1721 	writel(0x00002004, &axi_qos->qosthres1);
1722 	writel(0x00000000, &axi_qos->qosthres2);
1723 	writel(0x00000001, &axi_qos->qosqon);
1724 
1725 	axi_qos = (struct rcar_axi_qos *)RT_AXI_STPRO_BASE;
1726 	writel(0x00000000, &axi_qos->qosconf);
1727 	writel(0x00002029, &axi_qos->qosctset0);
1728 	writel(0x00002096, &axi_qos->qosctset1);
1729 	writel(0x00002030, &axi_qos->qosctset2);
1730 	writel(0x00002030, &axi_qos->qosctset3);
1731 	writel(0x00000001, &axi_qos->qosreqctr);
1732 	writel(0x00002064, &axi_qos->qosthres0);
1733 	writel(0x00002004, &axi_qos->qosthres1);
1734 	writel(0x00000000, &axi_qos->qosthres2);
1735 	writel(0x00000001, &axi_qos->qosqon);
1736 
1737 	axi_qos = (struct rcar_axi_qos *)RT_AXI_SY2RT_BASE;
1738 	writel(0x00000002, &axi_qos->qosconf);
1739 	writel(0x00002245, &axi_qos->qosctset0);
1740 	writel(0x00000001, &axi_qos->qosreqctr);
1741 	writel(0x00002064, &axi_qos->qosthres0);
1742 	writel(0x00002004, &axi_qos->qosthres1);
1743 	writel(0x00000000, &axi_qos->qosthres2);
1744 	writel(0x00000001, &axi_qos->qosqon);
1745 
1746 	/* QoS Register (MP-AXI) */
1747 	axi_qos = (struct rcar_axi_qos *)MP_AXI_ADSP_BASE;
1748 	writel(0x00000000, &axi_qos->qosconf);
1749 	writel(0x00002037, &axi_qos->qosctset0);
1750 	writel(0x00000001, &axi_qos->qosreqctr);
1751 	writel(0x00002064, &axi_qos->qosthres0);
1752 	writel(0x00002004, &axi_qos->qosthres1);
1753 	writel(0x00000000, &axi_qos->qosthres2);
1754 	writel(0x00000001, &axi_qos->qosqon);
1755 
1756 	axi_qos = (struct rcar_axi_qos *)MP_AXI_ASDS0_BASE;
1757 	writel(0x00000001, &axi_qos->qosconf);
1758 	writel(0x00002014, &axi_qos->qosctset0);
1759 	writel(0x00000040, &axi_qos->qosreqctr);
1760 	writel(0x00002064, &axi_qos->qosthres0);
1761 	writel(0x00002004, &axi_qos->qosthres1);
1762 	writel(0x00000000, &axi_qos->qosthres2);
1763 	writel(0x00000001, &axi_qos->qosqon);
1764 
1765 	axi_qos = (struct rcar_axi_qos *)MP_AXI_ASDS1_BASE;
1766 	writel(0x00000001, &axi_qos->qosconf);
1767 	writel(0x00002014, &axi_qos->qosctset0);
1768 	writel(0x00000040, &axi_qos->qosreqctr);
1769 	writel(0x00002064, &axi_qos->qosthres0);
1770 	writel(0x00002004, &axi_qos->qosthres1);
1771 	writel(0x00000000, &axi_qos->qosthres2);
1772 	writel(0x00000001, &axi_qos->qosqon);
1773 
1774 	axi_qos = (struct rcar_axi_qos *)MP_AXI_MLP_BASE;
1775 	writel(0x00000001, &axi_qos->qosconf);
1776 	writel(0x00001FF0, &axi_qos->qosctset0);
1777 	writel(0x00000020, &axi_qos->qosreqctr);
1778 	writel(0x00002064, &axi_qos->qosthres0);
1779 	writel(0x00002004, &axi_qos->qosthres1);
1780 	writel(0x00002001, &axi_qos->qosthres2);
1781 	writel(0x00000001, &axi_qos->qosqon);
1782 
1783 	axi_qos = (struct rcar_axi_qos *)MP_AXI_MMUMP_BASE;
1784 	writel(0x00000001, &axi_qos->qosconf);
1785 	writel(0x00002004, &axi_qos->qosctset0);
1786 	writel(0x00002096, &axi_qos->qosctset1);
1787 	writel(0x00002030, &axi_qos->qosctset2);
1788 	writel(0x00002030, &axi_qos->qosctset3);
1789 	writel(0x00000001, &axi_qos->qosreqctr);
1790 	writel(0x00002064, &axi_qos->qosthres0);
1791 	writel(0x00002004, &axi_qos->qosthres1);
1792 	writel(0x00000000, &axi_qos->qosthres2);
1793 	writel(0x00000001, &axi_qos->qosqon);
1794 
1795 	axi_qos = (struct rcar_axi_qos *)MP_AXI_SPU_BASE;
1796 	writel(0x00000000, &axi_qos->qosconf);
1797 	writel(0x00002053, &axi_qos->qosctset0);
1798 	writel(0x00000001, &axi_qos->qosreqctr);
1799 	writel(0x00002064, &axi_qos->qosthres0);
1800 	writel(0x00002004, &axi_qos->qosthres1);
1801 	writel(0x00000000, &axi_qos->qosthres2);
1802 	writel(0x00000001, &axi_qos->qosqon);
1803 
1804 	axi_qos = (struct rcar_axi_qos *)MP_AXI_SPUC_BASE;
1805 	writel(0x00000000, &axi_qos->qosconf);
1806 	writel(0x0000206E, &axi_qos->qosctset0);
1807 	writel(0x00000001, &axi_qos->qosreqctr);
1808 	writel(0x00002064, &axi_qos->qosthres0);
1809 	writel(0x00002004, &axi_qos->qosthres1);
1810 	writel(0x00000000, &axi_qos->qosthres2);
1811 	writel(0x00000001, &axi_qos->qosqon);
1812 
1813 	/* QoS Register (SYS-AXI256) */
1814 	axi_qos = (struct rcar_axi_qos *)SYS_AXI256_AXI128TO256_BASE;
1815 	writel(0x00000002, &axi_qos->qosconf);
1816 	writel(0x000020EB, &axi_qos->qosctset0);
1817 	writel(0x00002096, &axi_qos->qosctset1);
1818 	writel(0x00002030, &axi_qos->qosctset2);
1819 	writel(0x00002030, &axi_qos->qosctset3);
1820 	writel(0x00000001, &axi_qos->qosreqctr);
1821 	writel(0x00002064, &axi_qos->qosthres0);
1822 	writel(0x00002004, &axi_qos->qosthres1);
1823 	writel(0x00000000, &axi_qos->qosthres2);
1824 	writel(0x00000001, &axi_qos->qosqon);
1825 
1826 	axi_qos = (struct rcar_axi_qos *)SYS_AXI256_SYX_BASE;
1827 	writel(0x00000002, &axi_qos->qosconf);
1828 	writel(0x000020EB, &axi_qos->qosctset0);
1829 	writel(0x00002096, &axi_qos->qosctset1);
1830 	writel(0x00002030, &axi_qos->qosctset2);
1831 	writel(0x00002030, &axi_qos->qosctset3);
1832 	writel(0x00000001, &axi_qos->qosreqctr);
1833 	writel(0x00002064, &axi_qos->qosthres0);
1834 	writel(0x00002004, &axi_qos->qosthres1);
1835 	writel(0x00000000, &axi_qos->qosthres2);
1836 	writel(0x00000001, &axi_qos->qosqon);
1837 
1838 	axi_qos = (struct rcar_axi_qos *)SYS_AXI256_MPX_BASE;
1839 	writel(0x00000002, &axi_qos->qosconf);
1840 	writel(0x000020EB, &axi_qos->qosctset0);
1841 	writel(0x00002096, &axi_qos->qosctset1);
1842 	writel(0x00002030, &axi_qos->qosctset2);
1843 	writel(0x00002030, &axi_qos->qosctset3);
1844 	writel(0x00000001, &axi_qos->qosreqctr);
1845 	writel(0x00002064, &axi_qos->qosthres0);
1846 	writel(0x00002004, &axi_qos->qosthres1);
1847 	writel(0x00000000, &axi_qos->qosthres2);
1848 	writel(0x00000001, &axi_qos->qosqon);
1849 
1850 	axi_qos = (struct rcar_axi_qos *)SYS_AXI256_MXI_BASE;
1851 	writel(0x00000002, &axi_qos->qosconf);
1852 	writel(0x000020EB, &axi_qos->qosctset0);
1853 	writel(0x00002096, &axi_qos->qosctset1);
1854 	writel(0x00002030, &axi_qos->qosctset2);
1855 	writel(0x00002030, &axi_qos->qosctset3);
1856 	writel(0x00000001, &axi_qos->qosreqctr);
1857 	writel(0x00002064, &axi_qos->qosthres0);
1858 	writel(0x00002004, &axi_qos->qosthres1);
1859 	writel(0x00000000, &axi_qos->qosthres2);
1860 	writel(0x00000001, &axi_qos->qosqon);
1861 
1862 	/* QoS Register (CCI-AXI) */
1863 	axi_qos = (struct rcar_axi_qos *)CCI_AXI_MMUS0_BASE;
1864 	writel(0x00000001, &axi_qos->qosconf);
1865 	writel(0x00002004, &axi_qos->qosctset0);
1866 	writel(0x00002096, &axi_qos->qosctset1);
1867 	writel(0x00002030, &axi_qos->qosctset2);
1868 	writel(0x00002030, &axi_qos->qosctset3);
1869 	writel(0x00000001, &axi_qos->qosreqctr);
1870 	writel(0x00002064, &axi_qos->qosthres0);
1871 	writel(0x00002004, &axi_qos->qosthres1);
1872 	writel(0x00000000, &axi_qos->qosthres2);
1873 	writel(0x00000001, &axi_qos->qosqon);
1874 
1875 	axi_qos = (struct rcar_axi_qos *)CCI_AXI_SYX2_BASE;
1876 	writel(0x00000002, &axi_qos->qosconf);
1877 	writel(0x00002245, &axi_qos->qosctset0);
1878 	writel(0x00002096, &axi_qos->qosctset1);
1879 	writel(0x00002030, &axi_qos->qosctset2);
1880 	writel(0x00002030, &axi_qos->qosctset3);
1881 	writel(0x00000001, &axi_qos->qosreqctr);
1882 	writel(0x00002064, &axi_qos->qosthres0);
1883 	writel(0x00002004, &axi_qos->qosthres1);
1884 	writel(0x00000000, &axi_qos->qosthres2);
1885 	writel(0x00000001, &axi_qos->qosqon);
1886 
1887 	axi_qos = (struct rcar_axi_qos *)CCI_AXI_MMUR_BASE;
1888 	writel(0x00000001, &axi_qos->qosconf);
1889 	writel(0x00002004, &axi_qos->qosctset0);
1890 	writel(0x00002096, &axi_qos->qosctset1);
1891 	writel(0x00002030, &axi_qos->qosctset2);
1892 	writel(0x00002030, &axi_qos->qosctset3);
1893 	writel(0x00000001, &axi_qos->qosreqctr);
1894 	writel(0x00002064, &axi_qos->qosthres0);
1895 	writel(0x00002004, &axi_qos->qosthres1);
1896 	writel(0x00000000, &axi_qos->qosthres2);
1897 	writel(0x00000001, &axi_qos->qosqon);
1898 
1899 	axi_qos = (struct rcar_axi_qos *)CCI_AXI_MMUDS_BASE;
1900 	writel(0x00000001, &axi_qos->qosconf);
1901 	writel(0x00002004, &axi_qos->qosctset0);
1902 	writel(0x00002096, &axi_qos->qosctset1);
1903 	writel(0x00002030, &axi_qos->qosctset2);
1904 	writel(0x00002030, &axi_qos->qosctset3);
1905 	writel(0x00000001, &axi_qos->qosreqctr);
1906 	writel(0x00002064, &axi_qos->qosthres0);
1907 	writel(0x00002004, &axi_qos->qosthres1);
1908 	writel(0x00000000, &axi_qos->qosthres2);
1909 	writel(0x00000001, &axi_qos->qosqon);
1910 
1911 	axi_qos = (struct rcar_axi_qos *)CCI_AXI_MMUM_BASE;
1912 	writel(0x00000001, &axi_qos->qosconf);
1913 	writel(0x00002004, &axi_qos->qosctset0);
1914 	writel(0x00002096, &axi_qos->qosctset1);
1915 	writel(0x00002030, &axi_qos->qosctset2);
1916 	writel(0x00002030, &axi_qos->qosctset3);
1917 	writel(0x00000001, &axi_qos->qosreqctr);
1918 	writel(0x00002064, &axi_qos->qosthres0);
1919 	writel(0x00002004, &axi_qos->qosthres1);
1920 	writel(0x00000000, &axi_qos->qosthres2);
1921 	writel(0x00000001, &axi_qos->qosqon);
1922 
1923 	axi_qos = (struct rcar_axi_qos *)CCI_AXI_MXI_BASE;
1924 	writel(0x00000002, &axi_qos->qosconf);
1925 	writel(0x00002245, &axi_qos->qosctset0);
1926 	writel(0x00002096, &axi_qos->qosctset1);
1927 	writel(0x00002030, &axi_qos->qosctset2);
1928 	writel(0x00002030, &axi_qos->qosctset3);
1929 	writel(0x00000001, &axi_qos->qosreqctr);
1930 	writel(0x00002064, &axi_qos->qosthres0);
1931 	writel(0x00002004, &axi_qos->qosthres1);
1932 	writel(0x00000000, &axi_qos->qosthres2);
1933 	writel(0x00000001, &axi_qos->qosqon);
1934 
1935 	axi_qos = (struct rcar_axi_qos *)CCI_AXI_MMUS1_BASE;
1936 	writel(0x00000001, &axi_qos->qosconf);
1937 	writel(0x00002004, &axi_qos->qosctset0);
1938 	writel(0x00002096, &axi_qos->qosctset1);
1939 	writel(0x00002030, &axi_qos->qosctset2);
1940 	writel(0x00002030, &axi_qos->qosctset3);
1941 	writel(0x00000001, &axi_qos->qosreqctr);
1942 	writel(0x00002064, &axi_qos->qosthres0);
1943 	writel(0x00002004, &axi_qos->qosthres1);
1944 	writel(0x00000000, &axi_qos->qosthres2);
1945 	writel(0x00000001, &axi_qos->qosqon);
1946 
1947 	axi_qos = (struct rcar_axi_qos *)CCI_AXI_MMUMP_BASE;
1948 	writel(0x00000001, &axi_qos->qosconf);
1949 	writel(0x00002004, &axi_qos->qosctset0);
1950 	writel(0x00002096, &axi_qos->qosctset1);
1951 	writel(0x00002030, &axi_qos->qosctset2);
1952 	writel(0x00002030, &axi_qos->qosctset3);
1953 	writel(0x00000001, &axi_qos->qosreqctr);
1954 	writel(0x00002064, &axi_qos->qosthres0);
1955 	writel(0x00002004, &axi_qos->qosthres1);
1956 	writel(0x00000000, &axi_qos->qosthres2);
1957 	writel(0x00000001, &axi_qos->qosqon);
1958 
1959 	/* QoS Register (Media-AXI) */
1960 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_MXR_BASE;
1961 	writel(0x00000002, &axi_qos->qosconf);
1962 	writel(0x000020dc, &axi_qos->qosctset0);
1963 	writel(0x00002096, &axi_qos->qosctset1);
1964 	writel(0x00002030, &axi_qos->qosctset2);
1965 	writel(0x00002030, &axi_qos->qosctset3);
1966 	writel(0x00000020, &axi_qos->qosreqctr);
1967 	writel(0x000020AA, &axi_qos->qosthres0);
1968 	writel(0x00002032, &axi_qos->qosthres1);
1969 	writel(0x00000001, &axi_qos->qosthres2);
1970 
1971 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_MXW_BASE;
1972 	writel(0x00000002, &axi_qos->qosconf);
1973 	writel(0x000020dc, &axi_qos->qosctset0);
1974 	writel(0x00002096, &axi_qos->qosctset1);
1975 	writel(0x00002030, &axi_qos->qosctset2);
1976 	writel(0x00002030, &axi_qos->qosctset3);
1977 	writel(0x00000020, &axi_qos->qosreqctr);
1978 	writel(0x000020AA, &axi_qos->qosthres0);
1979 	writel(0x00002032, &axi_qos->qosthres1);
1980 	writel(0x00000001, &axi_qos->qosthres2);
1981 
1982 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_JPR_BASE;
1983 	writel(0x00000001, &axi_qos->qosconf);
1984 	writel(0x00002190, &axi_qos->qosctset0);
1985 	writel(0x00000020, &axi_qos->qosreqctr);
1986 	writel(0x00002064, &axi_qos->qosthres0);
1987 	writel(0x00002004, &axi_qos->qosthres1);
1988 	writel(0x00000001, &axi_qos->qosthres2);
1989 	writel(0x00000001, &axi_qos->qosqon);
1990 
1991 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_JPW_BASE;
1992 	writel(0x00000001, &axi_qos->qosconf);
1993 	writel(0x00002190, &axi_qos->qosctset0);
1994 	writel(0x00000020, &axi_qos->qosreqctr);
1995 	writel(0x00002004, &axi_qos->qosthres0);
1996 	writel(0x00000001, &axi_qos->qosthres1);
1997 	writel(0x00000001, &axi_qos->qosthres2);
1998 	writel(0x00000001, &axi_qos->qosqon);
1999 
2000 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_GCU0R_BASE;
2001 	writel(0x00000001, &axi_qos->qosconf);
2002 	writel(0x00002190, &axi_qos->qosctset0);
2003 	writel(0x00000020, &axi_qos->qosreqctr);
2004 	writel(0x00002064, &axi_qos->qosthres0);
2005 	writel(0x00002004, &axi_qos->qosthres1);
2006 	writel(0x00000001, &axi_qos->qosthres2);
2007 	writel(0x00000001, &axi_qos->qosqon);
2008 
2009 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_GCU0W_BASE;
2010 	writel(0x00000001, &axi_qos->qosconf);
2011 	writel(0x00002190, &axi_qos->qosctset0);
2012 	writel(0x00000020, &axi_qos->qosreqctr);
2013 	writel(0x00002004, &axi_qos->qosthres0);
2014 	writel(0x00000001, &axi_qos->qosthres1);
2015 	writel(0x00000001, &axi_qos->qosthres2);
2016 	writel(0x00000001, &axi_qos->qosqon);
2017 
2018 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_GCU1R_BASE;
2019 	writel(0x00000001, &axi_qos->qosconf);
2020 	writel(0x00002190, &axi_qos->qosctset0);
2021 	writel(0x00000020, &axi_qos->qosreqctr);
2022 	writel(0x00002064, &axi_qos->qosthres0);
2023 	writel(0x00002004, &axi_qos->qosthres1);
2024 	writel(0x00000001, &axi_qos->qosthres2);
2025 	writel(0x00000001, &axi_qos->qosqon);
2026 
2027 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_GCU1W_BASE;
2028 	writel(0x00000001, &axi_qos->qosconf);
2029 	writel(0x00002190, &axi_qos->qosctset0);
2030 	writel(0x00000020, &axi_qos->qosreqctr);
2031 	writel(0x00002004, &axi_qos->qosthres0);
2032 	writel(0x00000001, &axi_qos->qosthres1);
2033 	writel(0x00000001, &axi_qos->qosthres2);
2034 	writel(0x00000001, &axi_qos->qosqon);
2035 
2036 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_TDMR_BASE;
2037 	writel(0x00000001, &axi_qos->qosconf);
2038 	writel(0x00002190, &axi_qos->qosctset0);
2039 	writel(0x00000020, &axi_qos->qosreqctr);
2040 	writel(0x00002064, &axi_qos->qosthres0);
2041 	writel(0x00002004, &axi_qos->qosthres1);
2042 	writel(0x00000001, &axi_qos->qosthres2);
2043 	writel(0x00000001, &axi_qos->qosqon);
2044 
2045 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_TDMW_BASE;
2046 	writel(0x00000001, &axi_qos->qosconf);
2047 	writel(0x00002190, &axi_qos->qosctset0);
2048 	writel(0x00000020, &axi_qos->qosreqctr);
2049 	writel(0x00002004, &axi_qos->qosthres0);
2050 	writel(0x00000001, &axi_qos->qosthres1);
2051 	writel(0x00000001, &axi_qos->qosthres2);
2052 	writel(0x00000001, &axi_qos->qosqon);
2053 
2054 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSP0CR_BASE;
2055 	writel(0x00000001, &axi_qos->qosconf);
2056 	writel(0x00002190, &axi_qos->qosctset0);
2057 	writel(0x00000020, &axi_qos->qosreqctr);
2058 	writel(0x00002064, &axi_qos->qosthres0);
2059 	writel(0x00002004, &axi_qos->qosthres1);
2060 	writel(0x00000001, &axi_qos->qosthres2);
2061 	writel(0x00000001, &axi_qos->qosqon);
2062 
2063 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSP0CW_BASE;
2064 	writel(0x00000001, &axi_qos->qosconf);
2065 	writel(0x00002190, &axi_qos->qosctset0);
2066 	writel(0x00000020, &axi_qos->qosreqctr);
2067 	writel(0x00002004, &axi_qos->qosthres0);
2068 	writel(0x00000001, &axi_qos->qosthres1);
2069 	writel(0x00000001, &axi_qos->qosthres2);
2070 	writel(0x00000001, &axi_qos->qosqon);
2071 
2072 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSP1CR_BASE;
2073 	writel(0x00000001, &axi_qos->qosconf);
2074 	writel(0x00002190, &axi_qos->qosctset0);
2075 	writel(0x00000020, &axi_qos->qosreqctr);
2076 	writel(0x00002064, &axi_qos->qosthres0);
2077 	writel(0x00002004, &axi_qos->qosthres1);
2078 	writel(0x00000001, &axi_qos->qosthres2);
2079 	writel(0x00000001, &axi_qos->qosqon);
2080 
2081 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSP1CW_BASE;
2082 	writel(0x00000001, &axi_qos->qosconf);
2083 	writel(0x00002190, &axi_qos->qosctset0);
2084 	writel(0x00000020, &axi_qos->qosreqctr);
2085 	writel(0x00002004, &axi_qos->qosthres0);
2086 	writel(0x00000001, &axi_qos->qosthres1);
2087 	writel(0x00000001, &axi_qos->qosthres2);
2088 	writel(0x00000001, &axi_qos->qosqon);
2089 
2090 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSPDU0CR_BASE;
2091 	writel(0x00000001, &axi_qos->qosconf);
2092 	writel(0x00002190, &axi_qos->qosctset0);
2093 	writel(0x00000020, &axi_qos->qosreqctr);
2094 	writel(0x00002064, &axi_qos->qosthres0);
2095 	writel(0x00002004, &axi_qos->qosthres1);
2096 	writel(0x00000001, &axi_qos->qosthres2);
2097 	writel(0x00000001, &axi_qos->qosqon);
2098 
2099 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSPDU0CW_BASE;
2100 	writel(0x00000001, &axi_qos->qosconf);
2101 	writel(0x00002190, &axi_qos->qosctset0);
2102 	writel(0x00000020, &axi_qos->qosreqctr);
2103 	writel(0x00002004, &axi_qos->qosthres0);
2104 	writel(0x00000001, &axi_qos->qosthres1);
2105 	writel(0x00000001, &axi_qos->qosthres2);
2106 	writel(0x00000001, &axi_qos->qosqon);
2107 
2108 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSPDU1CR_BASE;
2109 	writel(0x00000001, &axi_qos->qosconf);
2110 	writel(0x00002190, &axi_qos->qosctset0);
2111 	writel(0x00000020, &axi_qos->qosreqctr);
2112 	writel(0x00002064, &axi_qos->qosthres0);
2113 	writel(0x00002004, &axi_qos->qosthres1);
2114 	writel(0x00000001, &axi_qos->qosthres2);
2115 	writel(0x00000001, &axi_qos->qosqon);
2116 
2117 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSPDU1CW_BASE;
2118 	writel(0x00000001, &axi_qos->qosconf);
2119 	writel(0x00002190, &axi_qos->qosctset0);
2120 	writel(0x00000020, &axi_qos->qosreqctr);
2121 	writel(0x00002004, &axi_qos->qosthres0);
2122 	writel(0x00000001, &axi_qos->qosthres1);
2123 	writel(0x00000001, &axi_qos->qosthres2);
2124 	writel(0x00000001, &axi_qos->qosqon);
2125 
2126 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VIN0W_BASE;
2127 	writel(0x00000001, &axi_qos->qosconf);
2128 	writel(0x00001FF0, &axi_qos->qosctset0);
2129 	writel(0x00000020, &axi_qos->qosreqctr);
2130 	writel(0x00002064, &axi_qos->qosthres0);
2131 	writel(0x00002004, &axi_qos->qosthres1);
2132 	writel(0x00002001, &axi_qos->qosthres2);
2133 	writel(0x00000001, &axi_qos->qosqon);
2134 
2135 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSP0R_BASE;
2136 	writel(0x00000001, &axi_qos->qosconf);
2137 	writel(0x000020C8, &axi_qos->qosctset0);
2138 	writel(0x00000020, &axi_qos->qosreqctr);
2139 	writel(0x00002064, &axi_qos->qosthres0);
2140 	writel(0x00002004, &axi_qos->qosthres1);
2141 	writel(0x00000001, &axi_qos->qosthres2);
2142 	writel(0x00000001, &axi_qos->qosqon);
2143 
2144 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSP0W_BASE;
2145 	writel(0x00000001, &axi_qos->qosconf);
2146 	writel(0x000020C8, &axi_qos->qosctset0);
2147 	writel(0x00000020, &axi_qos->qosreqctr);
2148 	writel(0x00002004, &axi_qos->qosthres0);
2149 	writel(0x00000001, &axi_qos->qosthres1);
2150 	writel(0x00000001, &axi_qos->qosthres2);
2151 	writel(0x00000001, &axi_qos->qosqon);
2152 
2153 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_FDP0R_BASE;
2154 	writel(0x00000001, &axi_qos->qosconf);
2155 	writel(0x000020C8, &axi_qos->qosctset0);
2156 	writel(0x00000020, &axi_qos->qosreqctr);
2157 	writel(0x00002064, &axi_qos->qosthres0);
2158 	writel(0x00002004, &axi_qos->qosthres1);
2159 	writel(0x00000001, &axi_qos->qosthres2);
2160 	writel(0x00000001, &axi_qos->qosqon);
2161 
2162 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_FDP0W_BASE;
2163 	writel(0x00000001, &axi_qos->qosconf);
2164 	writel(0x000020C8, &axi_qos->qosctset0);
2165 	writel(0x00000020, &axi_qos->qosreqctr);
2166 	writel(0x00002004, &axi_qos->qosthres0);
2167 	writel(0x00000001, &axi_qos->qosthres1);
2168 	writel(0x00000001, &axi_qos->qosthres2);
2169 	writel(0x00000001, &axi_qos->qosqon);
2170 
2171 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_IMSR_BASE;
2172 	writel(0x00000001, &axi_qos->qosconf);
2173 	writel(0x000020C8, &axi_qos->qosctset0);
2174 	writel(0x00000020, &axi_qos->qosreqctr);
2175 	writel(0x00002064, &axi_qos->qosthres0);
2176 	writel(0x00002004, &axi_qos->qosthres1);
2177 	writel(0x00000001, &axi_qos->qosthres2);
2178 	writel(0x00000001, &axi_qos->qosqon);
2179 
2180 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_IMSW_BASE;
2181 	writel(0x00000001, &axi_qos->qosconf);
2182 	writel(0x000020C8, &axi_qos->qosctset0);
2183 	writel(0x00000020, &axi_qos->qosreqctr);
2184 	writel(0x00002064, &axi_qos->qosthres0);
2185 	writel(0x00002004, &axi_qos->qosthres1);
2186 	writel(0x00000001, &axi_qos->qosthres2);
2187 	writel(0x00000001, &axi_qos->qosqon);
2188 
2189 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSP1R_BASE;
2190 	writel(0x00000001, &axi_qos->qosconf);
2191 	writel(0x000020C8, &axi_qos->qosctset0);
2192 	writel(0x00000020, &axi_qos->qosreqctr);
2193 	writel(0x00002064, &axi_qos->qosthres0);
2194 	writel(0x00002004, &axi_qos->qosthres1);
2195 	writel(0x00000001, &axi_qos->qosthres2);
2196 	writel(0x00000001, &axi_qos->qosqon);
2197 
2198 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSP1W_BASE;
2199 	writel(0x00000001, &axi_qos->qosconf);
2200 	writel(0x000020C8, &axi_qos->qosctset0);
2201 	writel(0x00000020, &axi_qos->qosreqctr);
2202 	writel(0x00002004, &axi_qos->qosthres0);
2203 	writel(0x00000001, &axi_qos->qosthres1);
2204 	writel(0x00000001, &axi_qos->qosthres2);
2205 	writel(0x00000001, &axi_qos->qosqon);
2206 
2207 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_FDP1R_BASE;
2208 	writel(0x00000001, &axi_qos->qosconf);
2209 	writel(0x000020C8, &axi_qos->qosctset0);
2210 	writel(0x00000020, &axi_qos->qosreqctr);
2211 	writel(0x00002064, &axi_qos->qosthres0);
2212 	writel(0x00002004, &axi_qos->qosthres1);
2213 	writel(0x00000001, &axi_qos->qosthres2);
2214 	writel(0x00000001, &axi_qos->qosqon);
2215 
2216 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_FDP1W_BASE;
2217 	writel(0x00000001, &axi_qos->qosconf);
2218 	writel(0x000020C8, &axi_qos->qosctset0);
2219 	writel(0x00000020, &axi_qos->qosreqctr);
2220 	writel(0x00002004, &axi_qos->qosthres0);
2221 	writel(0x00000001, &axi_qos->qosthres1);
2222 	writel(0x00000001, &axi_qos->qosthres2);
2223 	writel(0x00000001, &axi_qos->qosqon);
2224 
2225 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_IMRR_BASE;
2226 	writel(0x00000001, &axi_qos->qosconf);
2227 	writel(0x000020C8, &axi_qos->qosctset0);
2228 	writel(0x00000020, &axi_qos->qosreqctr);
2229 	writel(0x00002064, &axi_qos->qosthres0);
2230 	writel(0x00002004, &axi_qos->qosthres1);
2231 	writel(0x00000001, &axi_qos->qosthres2);
2232 	writel(0x00000001, &axi_qos->qosqon);
2233 
2234 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_IMRW_BASE;
2235 	writel(0x00000001, &axi_qos->qosconf);
2236 	writel(0x000020C8, &axi_qos->qosctset0);
2237 	writel(0x00000020, &axi_qos->qosreqctr);
2238 	writel(0x00002004, &axi_qos->qosthres0);
2239 	writel(0x00000001, &axi_qos->qosthres1);
2240 	writel(0x00000001, &axi_qos->qosthres2);
2241 	writel(0x00000001, &axi_qos->qosqon);
2242 
2243 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_FDP2R_BASE;
2244 	writel(0x00000001, &axi_qos->qosconf);
2245 	writel(0x000020C8, &axi_qos->qosctset0);
2246 	writel(0x00000020, &axi_qos->qosreqctr);
2247 	writel(0x00002064, &axi_qos->qosthres0);
2248 	writel(0x00002004, &axi_qos->qosthres1);
2249 	writel(0x00000001, &axi_qos->qosthres2);
2250 	writel(0x00000001, &axi_qos->qosqon);
2251 
2252 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_FDP2W_BASE;
2253 	writel(0x00000001, &axi_qos->qosconf);
2254 	writel(0x000020C8, &axi_qos->qosctset0);
2255 	writel(0x00000020, &axi_qos->qosreqctr);
2256 	writel(0x00002004, &axi_qos->qosthres0);
2257 	writel(0x00000001, &axi_qos->qosthres1);
2258 	writel(0x00000001, &axi_qos->qosthres2);
2259 	writel(0x00000001, &axi_qos->qosqon);
2260 
2261 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSPD0R_BASE;
2262 	writel(0x00000003, &axi_qos->qosconf);
2263 	writel(0x000020C8, &axi_qos->qosctset0);
2264 	writel(0x00000001, &axi_qos->qosreqctr);
2265 	writel(0x00002064, &axi_qos->qosthres0);
2266 	writel(0x00002004, &axi_qos->qosthres1);
2267 	writel(0x00000001, &axi_qos->qosthres2);
2268 	writel(0x00000001, &axi_qos->qosqon);
2269 
2270 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSPD0W_BASE;
2271 	writel(0x00000003, &axi_qos->qosconf);
2272 	writel(0x000020C8, &axi_qos->qosctset0);
2273 	writel(0x00000001, &axi_qos->qosreqctr);
2274 	writel(0x00000001, &axi_qos->qosthres0);
2275 	writel(0x00000001, &axi_qos->qosthres1);
2276 	writel(0x00000001, &axi_qos->qosthres2);
2277 	writel(0x00000001, &axi_qos->qosqon);
2278 
2279 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSPD1R_BASE;
2280 	writel(0x00000003, &axi_qos->qosconf);
2281 	writel(0x000020C8, &axi_qos->qosctset0);
2282 	writel(0x00000001, &axi_qos->qosreqctr);
2283 	writel(0x00002064, &axi_qos->qosthres0);
2284 	writel(0x00002004, &axi_qos->qosthres1);
2285 	writel(0x00000001, &axi_qos->qosthres2);
2286 	writel(0x00000001, &axi_qos->qosqon);
2287 
2288 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSPD1W_BASE;
2289 	writel(0x00000003, &axi_qos->qosconf);
2290 	writel(0x000020C8, &axi_qos->qosctset0);
2291 	writel(0x00000001, &axi_qos->qosreqctr);
2292 	writel(0x00000001, &axi_qos->qosthres0);
2293 	writel(0x00000001, &axi_qos->qosthres1);
2294 	writel(0x00000001, &axi_qos->qosthres2);
2295 	writel(0x00000001, &axi_qos->qosqon);
2296 
2297 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_DU0R_BASE;
2298 	writel(0x00000003, &axi_qos->qosconf);
2299 	writel(0x00002063, &axi_qos->qosctset0);
2300 	writel(0x00000001, &axi_qos->qosreqctr);
2301 	writel(0x00002064, &axi_qos->qosthres0);
2302 	writel(0x00002004, &axi_qos->qosthres1);
2303 	writel(0x00000001, &axi_qos->qosthres2);
2304 	writel(0x00000001, &axi_qos->qosqon);
2305 
2306 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_DU0W_BASE;
2307 	writel(0x00000003, &axi_qos->qosconf);
2308 	writel(0x00002063, &axi_qos->qosctset0);
2309 	writel(0x00000001, &axi_qos->qosreqctr);
2310 	writel(0x00000001, &axi_qos->qosthres0);
2311 	writel(0x00000001, &axi_qos->qosthres1);
2312 	writel(0x00000001, &axi_qos->qosthres2);
2313 	writel(0x00000001, &axi_qos->qosqon);
2314 
2315 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_DU1R_BASE;
2316 	writel(0x00000003, &axi_qos->qosconf);
2317 	writel(0x00002063, &axi_qos->qosctset0);
2318 	writel(0x00000001, &axi_qos->qosreqctr);
2319 	writel(0x00002064, &axi_qos->qosthres0);
2320 	writel(0x00002004, &axi_qos->qosthres1);
2321 	writel(0x00000001, &axi_qos->qosthres2);
2322 	writel(0x00000001, &axi_qos->qosqon);
2323 
2324 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_DU1W_BASE;
2325 	writel(0x00000003, &axi_qos->qosconf);
2326 	writel(0x00002063, &axi_qos->qosctset0);
2327 	writel(0x00000001, &axi_qos->qosreqctr);
2328 	writel(0x00000001, &axi_qos->qosthres0);
2329 	writel(0x00000001, &axi_qos->qosthres1);
2330 	writel(0x00000001, &axi_qos->qosthres2);
2331 	writel(0x00000001, &axi_qos->qosqon);
2332 
2333 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VCP0CR_BASE;
2334 	writel(0x00000001, &axi_qos->qosconf);
2335 	writel(0x00002073, &axi_qos->qosctset0);
2336 	writel(0x00000020, &axi_qos->qosreqctr);
2337 	writel(0x00002064, &axi_qos->qosthres0);
2338 	writel(0x00002004, &axi_qos->qosthres1);
2339 	writel(0x00000001, &axi_qos->qosthres2);
2340 	writel(0x00000001, &axi_qos->qosqon);
2341 
2342 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VCP0CW_BASE;
2343 	writel(0x00000001, &axi_qos->qosconf);
2344 	writel(0x00002073, &axi_qos->qosctset0);
2345 	writel(0x00000020, &axi_qos->qosreqctr);
2346 	writel(0x00002004, &axi_qos->qosthres0);
2347 	writel(0x00000001, &axi_qos->qosthres1);
2348 	writel(0x00000001, &axi_qos->qosthres2);
2349 	writel(0x00000001, &axi_qos->qosqon);
2350 
2351 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VCP0VR_BASE;
2352 	writel(0x00000001, &axi_qos->qosconf);
2353 	writel(0x00002073, &axi_qos->qosctset0);
2354 	writel(0x00000020, &axi_qos->qosreqctr);
2355 	writel(0x00002064, &axi_qos->qosthres0);
2356 	writel(0x00002004, &axi_qos->qosthres1);
2357 	writel(0x00000001, &axi_qos->qosthres2);
2358 	writel(0x00000001, &axi_qos->qosqon);
2359 
2360 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VCP0VW_BASE;
2361 	writel(0x00000001, &axi_qos->qosconf);
2362 	writel(0x00002073, &axi_qos->qosctset0);
2363 	writel(0x00000020, &axi_qos->qosreqctr);
2364 	writel(0x00002004, &axi_qos->qosthres0);
2365 	writel(0x00000001, &axi_qos->qosthres1);
2366 	writel(0x00000001, &axi_qos->qosthres2);
2367 	writel(0x00000001, &axi_qos->qosqon);
2368 
2369 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VPC0R_BASE;
2370 	writel(0x00000001, &axi_qos->qosconf);
2371 	writel(0x00002073, &axi_qos->qosctset0);
2372 	writel(0x00000020, &axi_qos->qosreqctr);
2373 	writel(0x00002064, &axi_qos->qosthres0);
2374 	writel(0x00002004, &axi_qos->qosthres1);
2375 	writel(0x00000001, &axi_qos->qosthres2);
2376 	writel(0x00000001, &axi_qos->qosqon);
2377 
2378 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VCP1CR_BASE;
2379 	writel(0x00000001, &axi_qos->qosconf);
2380 	writel(0x00002073, &axi_qos->qosctset0);
2381 	writel(0x00000020, &axi_qos->qosreqctr);
2382 	writel(0x00002064, &axi_qos->qosthres0);
2383 	writel(0x00002004, &axi_qos->qosthres1);
2384 	writel(0x00000001, &axi_qos->qosthres2);
2385 	writel(0x00000001, &axi_qos->qosqon);
2386 
2387 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VCP1CW_BASE;
2388 	writel(0x00000001, &axi_qos->qosconf);
2389 	writel(0x00002073, &axi_qos->qosctset0);
2390 	writel(0x00000020, &axi_qos->qosreqctr);
2391 	writel(0x00002004, &axi_qos->qosthres0);
2392 	writel(0x00000001, &axi_qos->qosthres1);
2393 	writel(0x00000001, &axi_qos->qosthres2);
2394 	writel(0x00000001, &axi_qos->qosqon);
2395 
2396 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VCP1VR_BASE;
2397 	writel(0x00000001, &axi_qos->qosconf);
2398 	writel(0x00002073, &axi_qos->qosctset0);
2399 	writel(0x00000020, &axi_qos->qosreqctr);
2400 	writel(0x00002064, &axi_qos->qosthres0);
2401 	writel(0x00002004, &axi_qos->qosthres1);
2402 	writel(0x00000001, &axi_qos->qosthres2);
2403 	writel(0x00000001, &axi_qos->qosqon);
2404 
2405 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VCP1VW_BASE;
2406 	writel(0x00000001, &axi_qos->qosconf);
2407 	writel(0x00002073, &axi_qos->qosctset0);
2408 	writel(0x00000020, &axi_qos->qosreqctr);
2409 	writel(0x00002004, &axi_qos->qosthres0);
2410 	writel(0x00000001, &axi_qos->qosthres1);
2411 	writel(0x00000001, &axi_qos->qosthres2);
2412 	writel(0x00000001, &axi_qos->qosqon);
2413 
2414 	axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VPC1R_BASE;
2415 	writel(0x00000001, &axi_qos->qosconf);
2416 	writel(0x00002073, &axi_qos->qosctset0);
2417 	writel(0x00000020, &axi_qos->qosreqctr);
2418 	writel(0x00002064, &axi_qos->qosthres0);
2419 	writel(0x00002004, &axi_qos->qosthres1);
2420 	writel(0x00000001, &axi_qos->qosthres2);
2421 	writel(0x00000001, &axi_qos->qosqon);
2422 }
2423 
2424 void qos_init(void)
2425 {
2426 	if (rmobile_get_cpu_rev_integer() >= R8A7790_CUT_ES2X)
2427 		qos_init_es2();
2428 	else
2429 		qos_init_es1();
2430 }
2431 #else /* CONFIG_ARCH_RMOBILE_EXTRAM_BOOT */
2432 void qos_init(void)
2433 {
2434 }
2435 #endif /* CONFIG_ARCH_RMOBILE_EXTRAM_BOOT */
2436