blob: 64e52cf3a426e01074e22f37a837a70479469530 [file] [log] [blame]
Nobuhiro Iwamatsu7e405632014-11-06 15:39:28 +09001/*
2 * board/renesas/gose/qos.c
3 * This file is gose QoS setting.
4 *
5 * Copyright (C) 2014 Renesas Electronics Corporation
6 *
7 * SPDX-License-Identifier: GPL-2.0
8 */
9
10#include <common.h>
11#include <asm/processor.h>
12#include <asm/mach-types.h>
13#include <asm/io.h>
14#include <asm/arch/rmobile.h>
15
16#if defined(CONFIG_RMOBILE_EXTRAM_BOOT)
17/* QoS version 0.20 */
18enum {
19 DBSC3_00, DBSC3_01, DBSC3_02, DBSC3_03, DBSC3_04,
20 DBSC3_05, DBSC3_06, DBSC3_07, DBSC3_08, DBSC3_09,
21 DBSC3_10, DBSC3_11, DBSC3_12, DBSC3_13, DBSC3_14,
22 DBSC3_15,
23 DBSC3_NR,
24};
25
26static u32 dbsc3_0_r_qos_addr[DBSC3_NR] = {
27 [DBSC3_00] = DBSC3_0_QOS_R0_BASE,
28 [DBSC3_01] = DBSC3_0_QOS_R1_BASE,
29 [DBSC3_02] = DBSC3_0_QOS_R2_BASE,
30 [DBSC3_03] = DBSC3_0_QOS_R3_BASE,
31 [DBSC3_04] = DBSC3_0_QOS_R4_BASE,
32 [DBSC3_05] = DBSC3_0_QOS_R5_BASE,
33 [DBSC3_06] = DBSC3_0_QOS_R6_BASE,
34 [DBSC3_07] = DBSC3_0_QOS_R7_BASE,
35 [DBSC3_08] = DBSC3_0_QOS_R8_BASE,
36 [DBSC3_09] = DBSC3_0_QOS_R9_BASE,
37 [DBSC3_10] = DBSC3_0_QOS_R10_BASE,
38 [DBSC3_11] = DBSC3_0_QOS_R11_BASE,
39 [DBSC3_12] = DBSC3_0_QOS_R12_BASE,
40 [DBSC3_13] = DBSC3_0_QOS_R13_BASE,
41 [DBSC3_14] = DBSC3_0_QOS_R14_BASE,
42 [DBSC3_15] = DBSC3_0_QOS_R15_BASE,
43};
44
45static u32 dbsc3_0_w_qos_addr[DBSC3_NR] = {
46 [DBSC3_00] = DBSC3_0_QOS_W0_BASE,
47 [DBSC3_01] = DBSC3_0_QOS_W1_BASE,
48 [DBSC3_02] = DBSC3_0_QOS_W2_BASE,
49 [DBSC3_03] = DBSC3_0_QOS_W3_BASE,
50 [DBSC3_04] = DBSC3_0_QOS_W4_BASE,
51 [DBSC3_05] = DBSC3_0_QOS_W5_BASE,
52 [DBSC3_06] = DBSC3_0_QOS_W6_BASE,
53 [DBSC3_07] = DBSC3_0_QOS_W7_BASE,
54 [DBSC3_08] = DBSC3_0_QOS_W8_BASE,
55 [DBSC3_09] = DBSC3_0_QOS_W9_BASE,
56 [DBSC3_10] = DBSC3_0_QOS_W10_BASE,
57 [DBSC3_11] = DBSC3_0_QOS_W11_BASE,
58 [DBSC3_12] = DBSC3_0_QOS_W12_BASE,
59 [DBSC3_13] = DBSC3_0_QOS_W13_BASE,
60 [DBSC3_14] = DBSC3_0_QOS_W14_BASE,
61 [DBSC3_15] = DBSC3_0_QOS_W15_BASE,
62};
63
64void qos_init(void)
65{
66 int i;
67 struct rcar_s3c *s3c;
68 struct rcar_s3c_qos *s3c_qos;
69 struct rcar_dbsc3_qos *qos_addr;
70 struct rcar_mxi *mxi;
71 struct rcar_mxi_qos *mxi_qos;
72 struct rcar_axi_qos *axi_qos;
73
74 /* DBSC DBADJ2 */
75 writel(0x20042004, DBSC3_0_DBADJ2);
76
77 /* S3C -QoS */
78 s3c = (struct rcar_s3c *)S3C_BASE;
79 writel(0x00000000, &s3c->s3cadsplcr);
80 writel(0x1F0B0908, &s3c->s3crorr);
81 writel(0x1F0C0A08, &s3c->s3cworr);
82
83 /* QoS Control Registers */
84 s3c_qos = (struct rcar_s3c_qos *)S3C_QOS_CCI0_BASE;
85 writel(0x00890089, &s3c_qos->s3cqos0);
86 writel(0x20960010, &s3c_qos->s3cqos1);
87 writel(0x20302030, &s3c_qos->s3cqos2);
88 writel(0x20AA2200, &s3c_qos->s3cqos3);
89 writel(0x00002032, &s3c_qos->s3cqos4);
90 writel(0x20960010, &s3c_qos->s3cqos5);
91 writel(0x20302030, &s3c_qos->s3cqos6);
92 writel(0x20AA2200, &s3c_qos->s3cqos7);
93 writel(0x00002032, &s3c_qos->s3cqos8);
94
95 s3c_qos = (struct rcar_s3c_qos *)S3C_QOS_CCI1_BASE;
96 writel(0x00890089, &s3c_qos->s3cqos0);
97 writel(0x20960010, &s3c_qos->s3cqos1);
98 writel(0x20302030, &s3c_qos->s3cqos2);
99 writel(0x20AA2200, &s3c_qos->s3cqos3);
100 writel(0x00002032, &s3c_qos->s3cqos4);
101 writel(0x20960010, &s3c_qos->s3cqos5);
102 writel(0x20302030, &s3c_qos->s3cqos6);
103 writel(0x20AA2200, &s3c_qos->s3cqos7);
104 writel(0x00002032, &s3c_qos->s3cqos8);
105
106 s3c_qos = (struct rcar_s3c_qos *)S3C_QOS_MXI_BASE;
107 writel(0x00820082, &s3c_qos->s3cqos0);
108 writel(0x20960020, &s3c_qos->s3cqos1);
109 writel(0x20302030, &s3c_qos->s3cqos2);
110 writel(0x20AA20DC, &s3c_qos->s3cqos3);
111 writel(0x00002032, &s3c_qos->s3cqos4);
112 writel(0x20960020, &s3c_qos->s3cqos5);
113 writel(0x20302030, &s3c_qos->s3cqos6);
114 writel(0x20AA20DC, &s3c_qos->s3cqos7);
115 writel(0x00002032, &s3c_qos->s3cqos8);
116
117 s3c_qos = (struct rcar_s3c_qos *)S3C_QOS_AXI_BASE;
118 writel(0x00820082, &s3c_qos->s3cqos0);
119 writel(0x20960020, &s3c_qos->s3cqos1);
120 writel(0x20302030, &s3c_qos->s3cqos2);
121 writel(0x20AA20FA, &s3c_qos->s3cqos3);
122 writel(0x00002032, &s3c_qos->s3cqos4);
123 writel(0x20960020, &s3c_qos->s3cqos5);
124 writel(0x20302030, &s3c_qos->s3cqos6);
125 writel(0x20AA20FA, &s3c_qos->s3cqos7);
126 writel(0x00002032, &s3c_qos->s3cqos8);
127
128 /* DBSC -QoS */
129 /* DBSC0 - Read */
130 for (i = DBSC3_00; i < DBSC3_NR; i++) {
131 qos_addr = (struct rcar_dbsc3_qos *)dbsc3_0_r_qos_addr[i];
132 writel(0x00000002, &qos_addr->dblgcnt);
133 writel(0x00002096, &qos_addr->dbtmval0);
134 writel(0x00002064, &qos_addr->dbtmval1);
135 writel(0x00002032, &qos_addr->dbtmval2);
136 writel(0x00001FB0, &qos_addr->dbtmval3);
137 writel(0x00000001, &qos_addr->dbrqctr);
138 writel(0x00002078, &qos_addr->dbthres0);
139 writel(0x0000204B, &qos_addr->dbthres1);
140 writel(0x0000201E, &qos_addr->dbthres2);
141 writel(0x00000001, &qos_addr->dblgqon);
142 }
143
144 /* DBSC0 - Write */
145 for (i = DBSC3_00; i < DBSC3_NR; i++) {
146 qos_addr = (struct rcar_dbsc3_qos *)dbsc3_0_w_qos_addr[i];
147 writel(0x00000002, &qos_addr->dblgcnt);
148 writel(0x00002096, &qos_addr->dbtmval0);
149 writel(0x00002064, &qos_addr->dbtmval1);
150 writel(0x00002050, &qos_addr->dbtmval2);
151 writel(0x0000203A, &qos_addr->dbtmval3);
152 writel(0x00000001, &qos_addr->dbrqctr);
153 writel(0x00002078, &qos_addr->dbthres0);
154 writel(0x0000204B, &qos_addr->dbthres1);
155 writel(0x0000203C, &qos_addr->dbthres2);
156 writel(0x00000001, &qos_addr->dblgqon);
157 }
158
159 /* CCI-400 -QoS */
160 writel(0x20001000, CCI_400_MAXOT_1);
161 writel(0x20001000, CCI_400_MAXOT_2);
162 writel(0x0000000C, CCI_400_QOSCNTL_1);
163 writel(0x0000000C, CCI_400_QOSCNTL_2);
164
165 /* MXI -QoS */
166 /* Transaction Control (MXI) */
167 mxi = (struct rcar_mxi *)MXI_BASE;
168 writel(0x00000013, &mxi->mxrtcr);
169 writel(0x00000013, &mxi->mxwtcr);
170 writel(0x00200000, &mxi->mxs3cracr);
171 writel(0x00200000, &mxi->mxs3cwacr);
172 writel(0x00200000, &mxi->mxaxiracr);
173 writel(0x00200000, &mxi->mxaxiwacr);
174
175 /* QoS Control (MXI) */
176 mxi_qos = (struct rcar_mxi_qos *)MXI_QOS_BASE;
177 writel(0x0000000C, &mxi_qos->vspdu0);
178 writel(0x0000000C, &mxi_qos->vspdu1);
179 writel(0x0000000E, &mxi_qos->du0);
180
181 /* AXI -QoS */
182 /* Transaction Control (MXI) */
183 axi_qos = (struct rcar_axi_qos *)SYS_AXI_SYX64TO128_BASE;
184 writel(0x00000002, &axi_qos->qosconf);
185 writel(0x00002245, &axi_qos->qosctset0);
186 writel(0x00002096, &axi_qos->qosctset1);
187 writel(0x00002030, &axi_qos->qosctset2);
188 writel(0x00002030, &axi_qos->qosctset3);
189 writel(0x00000001, &axi_qos->qosreqctr);
190 writel(0x00002064, &axi_qos->qosthres0);
191 writel(0x00002004, &axi_qos->qosthres1);
192 writel(0x00000000, &axi_qos->qosthres2);
193 writel(0x00000001, &axi_qos->qosqon);
194
195 axi_qos = (struct rcar_axi_qos *)SYS_AXI_AVB_BASE;
196 writel(0x00000000, &axi_qos->qosconf);
197 writel(0x000020A6, &axi_qos->qosctset0);
198 writel(0x00000001, &axi_qos->qosreqctr);
199 writel(0x00002064, &axi_qos->qosthres0);
200 writel(0x00002004, &axi_qos->qosthres1);
201 writel(0x00000000, &axi_qos->qosthres2);
202 writel(0x00000001, &axi_qos->qosqon);
203
204 axi_qos = (struct rcar_axi_qos *)SYS_AXI_G2D_BASE;
205 writel(0x00000000, &axi_qos->qosconf);
206 writel(0x000020A6, &axi_qos->qosctset0);
207 writel(0x00000001, &axi_qos->qosreqctr);
208 writel(0x00002064, &axi_qos->qosthres0);
209 writel(0x00002004, &axi_qos->qosthres1);
210 writel(0x00000000, &axi_qos->qosthres2);
211 writel(0x00000001, &axi_qos->qosqon);
212
213 axi_qos = (struct rcar_axi_qos *)SYS_AXI_IMP0_BASE;
214 writel(0x00000000, &axi_qos->qosconf);
215 writel(0x00002021, &axi_qos->qosctset0);
216 writel(0x00000001, &axi_qos->qosreqctr);
217 writel(0x00002064, &axi_qos->qosthres0);
218 writel(0x00002004, &axi_qos->qosthres1);
219 writel(0x00000000, &axi_qos->qosthres2);
220 writel(0x00000001, &axi_qos->qosqon);
221
222 axi_qos = (struct rcar_axi_qos *)SYS_AXI_IMP1_BASE;
223 writel(0x00000000, &axi_qos->qosconf);
224 writel(0x00002037, &axi_qos->qosctset0);
225 writel(0x00000001, &axi_qos->qosreqctr);
226 writel(0x00002064, &axi_qos->qosthres0);
227 writel(0x00002004, &axi_qos->qosthres1);
228 writel(0x00000000, &axi_qos->qosthres2);
229 writel(0x00000001, &axi_qos->qosqon);
230
231 axi_qos = (struct rcar_axi_qos *)SYS_AXI_IMUX0_BASE;
232 writel(0x00000002, &axi_qos->qosconf);
233 writel(0x00002245, &axi_qos->qosctset0);
234 writel(0x00002096, &axi_qos->qosctset1);
235 writel(0x00002030, &axi_qos->qosctset2);
236 writel(0x00002030, &axi_qos->qosctset3);
237 writel(0x00000001, &axi_qos->qosreqctr);
238 writel(0x00002064, &axi_qos->qosthres0);
239 writel(0x00002004, &axi_qos->qosthres1);
240 writel(0x00000000, &axi_qos->qosthres2);
241 writel(0x00000001, &axi_qos->qosqon);
242
243 axi_qos = (struct rcar_axi_qos *)SYS_AXI_IMUX1_BASE;
244 writel(0x00000002, &axi_qos->qosconf);
245 writel(0x00002245, &axi_qos->qosctset0);
246 writel(0x00002096, &axi_qos->qosctset1);
247 writel(0x00002030, &axi_qos->qosctset2);
248 writel(0x00002030, &axi_qos->qosctset3);
249 writel(0x00000001, &axi_qos->qosreqctr);
250 writel(0x00002064, &axi_qos->qosthres0);
251 writel(0x00002004, &axi_qos->qosthres1);
252 writel(0x00000000, &axi_qos->qosthres2);
253 writel(0x00000001, &axi_qos->qosqon);
254
255 axi_qos = (struct rcar_axi_qos *)SYS_AXI_IMUX2_BASE;
256 writel(0x00000002, &axi_qos->qosconf);
257 writel(0x00002245, &axi_qos->qosctset0);
258 writel(0x00002096, &axi_qos->qosctset1);
259 writel(0x00002030, &axi_qos->qosctset2);
260 writel(0x00002030, &axi_qos->qosctset3);
261 writel(0x00000001, &axi_qos->qosreqctr);
262 writel(0x00002064, &axi_qos->qosthres0);
263 writel(0x00002004, &axi_qos->qosthres1);
264 writel(0x00000000, &axi_qos->qosthres2);
265 writel(0x00000001, &axi_qos->qosqon);
266
267 axi_qos = (struct rcar_axi_qos *)SYS_AXI_LBS_BASE;
268 writel(0x00000000, &axi_qos->qosconf);
269 writel(0x0000214C, &axi_qos->qosctset0);
270 writel(0x00000001, &axi_qos->qosreqctr);
271 writel(0x00002064, &axi_qos->qosthres0);
272 writel(0x00002004, &axi_qos->qosthres1);
273 writel(0x00000000, &axi_qos->qosthres2);
274 writel(0x00000001, &axi_qos->qosqon);
275
276 axi_qos = (struct rcar_axi_qos *)SYS_AXI_MMUDS_BASE;
277 writel(0x00000001, &axi_qos->qosconf);
278 writel(0x00002004, &axi_qos->qosctset0);
279 writel(0x00002096, &axi_qos->qosctset1);
280 writel(0x00002030, &axi_qos->qosctset2);
281 writel(0x00002030, &axi_qos->qosctset3);
282 writel(0x00000001, &axi_qos->qosreqctr);
283 writel(0x00002064, &axi_qos->qosthres0);
284 writel(0x00002004, &axi_qos->qosthres1);
285 writel(0x00000000, &axi_qos->qosthres2);
286 writel(0x00000001, &axi_qos->qosqon);
287
288 axi_qos = (struct rcar_axi_qos *)SYS_AXI_MMUM_BASE;
289 writel(0x00000001, &axi_qos->qosconf);
290 writel(0x00002004, &axi_qos->qosctset0);
291 writel(0x00002096, &axi_qos->qosctset1);
292 writel(0x00002030, &axi_qos->qosctset2);
293 writel(0x00002030, &axi_qos->qosctset3);
294 writel(0x00000001, &axi_qos->qosreqctr);
295 writel(0x00002064, &axi_qos->qosthres0);
296 writel(0x00002004, &axi_qos->qosthres1);
297 writel(0x00000000, &axi_qos->qosthres2);
298 writel(0x00000001, &axi_qos->qosqon);
299
300 axi_qos = (struct rcar_axi_qos *)SYS_AXI_MMUR_BASE;
301 writel(0x00000001, &axi_qos->qosconf);
302 writel(0x00002004, &axi_qos->qosctset0);
303 writel(0x00002096, &axi_qos->qosctset1);
304 writel(0x00002030, &axi_qos->qosctset2);
305 writel(0x00002030, &axi_qos->qosctset3);
306 writel(0x00000001, &axi_qos->qosreqctr);
307 writel(0x00002064, &axi_qos->qosthres0);
308 writel(0x00002004, &axi_qos->qosthres1);
309 writel(0x00000000, &axi_qos->qosthres2);
310 writel(0x00000001, &axi_qos->qosqon);
311
312 axi_qos = (struct rcar_axi_qos *)SYS_AXI_MMUS0_BASE;
313 writel(0x00000001, &axi_qos->qosconf);
314 writel(0x00002004, &axi_qos->qosctset0);
315 writel(0x00002096, &axi_qos->qosctset1);
316 writel(0x00002030, &axi_qos->qosctset2);
317 writel(0x00002030, &axi_qos->qosctset3);
318 writel(0x00000001, &axi_qos->qosreqctr);
319 writel(0x00002064, &axi_qos->qosthres0);
320 writel(0x00002004, &axi_qos->qosthres1);
321 writel(0x00000000, &axi_qos->qosthres2);
322 writel(0x00000001, &axi_qos->qosqon);
323
324 axi_qos = (struct rcar_axi_qos *)SYS_AXI_MMUS1_BASE;
325 writel(0x00000001, &axi_qos->qosconf);
326 writel(0x00002004, &axi_qos->qosctset0);
327 writel(0x00002096, &axi_qos->qosctset1);
328 writel(0x00002030, &axi_qos->qosctset2);
329 writel(0x00002030, &axi_qos->qosctset3);
330 writel(0x00000001, &axi_qos->qosreqctr);
331 writel(0x00002064, &axi_qos->qosthres0);
332 writel(0x00002004, &axi_qos->qosthres1);
333 writel(0x00000000, &axi_qos->qosthres2);
334 writel(0x00000001, &axi_qos->qosqon);
335
336 axi_qos = (struct rcar_axi_qos *)SYS_AXI_MTSB0_BASE;
337 writel(0x00000000, &axi_qos->qosconf);
338 writel(0x00002021, &axi_qos->qosctset0);
339 writel(0x00000001, &axi_qos->qosreqctr);
340 writel(0x00002064, &axi_qos->qosthres0);
341 writel(0x00002004, &axi_qos->qosthres1);
342 writel(0x00000000, &axi_qos->qosthres2);
343 writel(0x00000001, &axi_qos->qosqon);
344
345 axi_qos = (struct rcar_axi_qos *)SYS_AXI_MTSB1_BASE;
346 writel(0x00000000, &axi_qos->qosconf);
347 writel(0x00002021, &axi_qos->qosctset0);
348 writel(0x00000001, &axi_qos->qosreqctr);
349 writel(0x00002064, &axi_qos->qosthres0);
350 writel(0x00002004, &axi_qos->qosthres1);
351 writel(0x00000000, &axi_qos->qosthres2);
352 writel(0x00000001, &axi_qos->qosqon);
353
354 axi_qos = (struct rcar_axi_qos *)SYS_AXI_PCI_BASE;
355 writel(0x00000000, &axi_qos->qosconf);
356 writel(0x0000214C, &axi_qos->qosctset0);
357 writel(0x00000001, &axi_qos->qosreqctr);
358 writel(0x00002064, &axi_qos->qosthres0);
359 writel(0x00002004, &axi_qos->qosthres1);
360 writel(0x00000000, &axi_qos->qosthres2);
361 writel(0x00000001, &axi_qos->qosqon);
362
363 axi_qos = (struct rcar_axi_qos *)SYS_AXI_RTX_BASE;
364 writel(0x00000002, &axi_qos->qosconf);
365 writel(0x00002245, &axi_qos->qosctset0);
366 writel(0x00002096, &axi_qos->qosctset1);
367 writel(0x00002030, &axi_qos->qosctset2);
368 writel(0x00002030, &axi_qos->qosctset3);
369 writel(0x00000001, &axi_qos->qosreqctr);
370 writel(0x00002064, &axi_qos->qosthres0);
371 writel(0x00002004, &axi_qos->qosthres1);
372 writel(0x00000000, &axi_qos->qosthres2);
373 writel(0x00000001, &axi_qos->qosqon);
374
375 axi_qos = (struct rcar_axi_qos *)SYS_AXI_SDS0_BASE;
376 writel(0x00000000, &axi_qos->qosconf);
377 writel(0x000020A6, &axi_qos->qosctset0);
378 writel(0x00000001, &axi_qos->qosreqctr);
379 writel(0x00002064, &axi_qos->qosthres0);
380 writel(0x00002004, &axi_qos->qosthres1);
381 writel(0x00000000, &axi_qos->qosthres2);
382 writel(0x00000001, &axi_qos->qosqon);
383
384 axi_qos = (struct rcar_axi_qos *)SYS_AXI_SDS1_BASE;
385 writel(0x00000000, &axi_qos->qosconf);
386 writel(0x000020A6, &axi_qos->qosctset0);
387 writel(0x00000001, &axi_qos->qosreqctr);
388 writel(0x00002064, &axi_qos->qosthres0);
389 writel(0x00002004, &axi_qos->qosthres1);
390 writel(0x00000000, &axi_qos->qosthres2);
391 writel(0x00000001, &axi_qos->qosqon);
392
393 axi_qos = (struct rcar_axi_qos *)SYS_AXI_USB20_BASE;
394 writel(0x00000000, &axi_qos->qosconf);
395 writel(0x00002053, &axi_qos->qosctset0);
396 writel(0x00000001, &axi_qos->qosreqctr);
397 writel(0x00002064, &axi_qos->qosthres0);
398 writel(0x00002004, &axi_qos->qosthres1);
399 writel(0x00000000, &axi_qos->qosthres2);
400 writel(0x00000001, &axi_qos->qosqon);
401
402 axi_qos = (struct rcar_axi_qos *)SYS_AXI_USB21_BASE;
403 writel(0x00000000, &axi_qos->qosconf);
404 writel(0x00002053, &axi_qos->qosctset0);
405 writel(0x00000001, &axi_qos->qosreqctr);
406 writel(0x00002064, &axi_qos->qosthres0);
407 writel(0x00002004, &axi_qos->qosthres1);
408 writel(0x00000000, &axi_qos->qosthres2);
409 writel(0x00000001, &axi_qos->qosqon);
410
411 axi_qos = (struct rcar_axi_qos *)SYS_AXI_USB22_BASE;
412 writel(0x00000000, &axi_qos->qosconf);
413 writel(0x00002053, &axi_qos->qosctset0);
414 writel(0x00000001, &axi_qos->qosreqctr);
415 writel(0x00002064, &axi_qos->qosthres0);
416 writel(0x00002004, &axi_qos->qosthres1);
417 writel(0x00000000, &axi_qos->qosthres2);
418 writel(0x00000001, &axi_qos->qosqon);
419
420 axi_qos = (struct rcar_axi_qos *)SYS_AXI_USB30_BASE;
421 writel(0x00000000, &axi_qos->qosconf);
422 writel(0x0000214C, &axi_qos->qosctset0);
423 writel(0x00000001, &axi_qos->qosreqctr);
424 writel(0x00002064, &axi_qos->qosthres0);
425 writel(0x00002004, &axi_qos->qosthres1);
426 writel(0x00000000, &axi_qos->qosthres2);
427 writel(0x00000001, &axi_qos->qosqon);
428
429 axi_qos = (struct rcar_axi_qos *)SYS_AXI_AX2M_BASE;
430 writel(0x00000002, &axi_qos->qosconf);
431 writel(0x00002245, &axi_qos->qosctset0);
432 writel(0x00000001, &axi_qos->qosreqctr);
433 writel(0x00002064, &axi_qos->qosthres0);
434 writel(0x00002004, &axi_qos->qosthres1);
435 writel(0x00000000, &axi_qos->qosthres2);
436 writel(0x00000001, &axi_qos->qosqon);
437
438 axi_qos = (struct rcar_axi_qos *)SYS_AXI_CC50_BASE;
439 writel(0x00000000, &axi_qos->qosconf);
440 writel(0x00002029, &axi_qos->qosctset0);
441 writel(0x00000001, &axi_qos->qosreqctr);
442 writel(0x00002064, &axi_qos->qosthres0);
443 writel(0x00002004, &axi_qos->qosthres1);
444 writel(0x00000000, &axi_qos->qosthres2);
445 writel(0x00000001, &axi_qos->qosqon);
446
447 axi_qos = (struct rcar_axi_qos *)SYS_AXI_CCI_BASE;
448 writel(0x00000002, &axi_qos->qosconf);
449 writel(0x00002245, &axi_qos->qosctset0);
450 writel(0x00000001, &axi_qos->qosreqctr);
451 writel(0x00002064, &axi_qos->qosthres0);
452 writel(0x00002004, &axi_qos->qosthres1);
453 writel(0x00000000, &axi_qos->qosthres2);
454 writel(0x00000001, &axi_qos->qosqon);
455
456 axi_qos = (struct rcar_axi_qos *)SYS_AXI_CS_BASE;
457 writel(0x00000000, &axi_qos->qosconf);
458 writel(0x00002053, &axi_qos->qosctset0);
459 writel(0x00000001, &axi_qos->qosreqctr);
460 writel(0x00002064, &axi_qos->qosthres0);
461 writel(0x00002004, &axi_qos->qosthres1);
462 writel(0x00000000, &axi_qos->qosthres2);
463 writel(0x00000001, &axi_qos->qosqon);
464
465 axi_qos = (struct rcar_axi_qos *)SYS_AXI_DDM_BASE;
466 writel(0x00000000, &axi_qos->qosconf);
467 writel(0x000020A6, &axi_qos->qosctset0);
468 writel(0x00000001, &axi_qos->qosreqctr);
469 writel(0x00002064, &axi_qos->qosthres0);
470 writel(0x00002004, &axi_qos->qosthres1);
471 writel(0x00000000, &axi_qos->qosthres2);
472 writel(0x00000001, &axi_qos->qosqon);
473
474 axi_qos = (struct rcar_axi_qos *)SYS_AXI_ETH_BASE;
475 writel(0x00000000, &axi_qos->qosconf);
476 writel(0x00002053, &axi_qos->qosctset0);
477 writel(0x00000001, &axi_qos->qosreqctr);
478 writel(0x00002064, &axi_qos->qosthres0);
479 writel(0x00002004, &axi_qos->qosthres1);
480 writel(0x00000000, &axi_qos->qosthres2);
481 writel(0x00000001, &axi_qos->qosqon);
482
483 axi_qos = (struct rcar_axi_qos *)SYS_AXI_MPXM_BASE;
484 writel(0x00000002, &axi_qos->qosconf);
485 writel(0x00002245, &axi_qos->qosctset0);
486 writel(0x00000001, &axi_qos->qosreqctr);
487 writel(0x00002064, &axi_qos->qosthres0);
488 writel(0x00002004, &axi_qos->qosthres1);
489 writel(0x00000000, &axi_qos->qosthres2);
490 writel(0x00000001, &axi_qos->qosqon);
491
492 axi_qos = (struct rcar_axi_qos *)SYS_AXI_SAT0_BASE;
493 writel(0x00000000, &axi_qos->qosconf);
494 writel(0x00002053, &axi_qos->qosctset0);
495 writel(0x00000001, &axi_qos->qosreqctr);
496 writel(0x00002064, &axi_qos->qosthres0);
497 writel(0x00002004, &axi_qos->qosthres1);
498 writel(0x00000000, &axi_qos->qosthres2);
499 writel(0x00000001, &axi_qos->qosqon);
500
501 axi_qos = (struct rcar_axi_qos *)SYS_AXI_SAT1_BASE;
502 writel(0x00000000, &axi_qos->qosconf);
503 writel(0x00002053, &axi_qos->qosctset0);
504 writel(0x00000001, &axi_qos->qosreqctr);
505 writel(0x00002064, &axi_qos->qosthres0);
506 writel(0x00002004, &axi_qos->qosthres1);
507 writel(0x00000000, &axi_qos->qosthres2);
508 writel(0x00000001, &axi_qos->qosqon);
509
510 axi_qos = (struct rcar_axi_qos *)SYS_AXI_SDM0_BASE;
511 writel(0x00000000, &axi_qos->qosconf);
512 writel(0x0000214C, &axi_qos->qosctset0);
513 writel(0x00000001, &axi_qos->qosreqctr);
514 writel(0x00002064, &axi_qos->qosthres0);
515 writel(0x00002004, &axi_qos->qosthres1);
516 writel(0x00000000, &axi_qos->qosthres2);
517 writel(0x00000001, &axi_qos->qosqon);
518
519 axi_qos = (struct rcar_axi_qos *)SYS_AXI_SDM1_BASE;
520 writel(0x00000000, &axi_qos->qosconf);
521 writel(0x0000214C, &axi_qos->qosctset0);
522 writel(0x00000001, &axi_qos->qosreqctr);
523 writel(0x00002064, &axi_qos->qosthres0);
524 writel(0x00002004, &axi_qos->qosthres1);
525 writel(0x00000000, &axi_qos->qosthres2);
526 writel(0x00000001, &axi_qos->qosqon);
527
528 axi_qos = (struct rcar_axi_qos *)SYS_AXI_TRAB_BASE;
529 writel(0x00000000, &axi_qos->qosconf);
530 writel(0x000020A6, &axi_qos->qosctset0);
531 writel(0x00000001, &axi_qos->qosreqctr);
532 writel(0x00002064, &axi_qos->qosthres0);
533 writel(0x00002004, &axi_qos->qosthres1);
534 writel(0x00000000, &axi_qos->qosthres2);
535 writel(0x00000001, &axi_qos->qosqon);
536
537 axi_qos = (struct rcar_axi_qos *)SYS_AXI_UDM0_BASE;
538 writel(0x00000000, &axi_qos->qosconf);
539 writel(0x00002053, &axi_qos->qosctset0);
540 writel(0x00000001, &axi_qos->qosreqctr);
541 writel(0x00002064, &axi_qos->qosthres0);
542 writel(0x00002004, &axi_qos->qosthres1);
543 writel(0x00000000, &axi_qos->qosthres2);
544 writel(0x00000001, &axi_qos->qosqon);
545
546 axi_qos = (struct rcar_axi_qos *)SYS_AXI_UDM1_BASE;
547 writel(0x00000000, &axi_qos->qosconf);
548 writel(0x00002053, &axi_qos->qosctset0);
549 writel(0x00000001, &axi_qos->qosreqctr);
550 writel(0x00002064, &axi_qos->qosthres0);
551 writel(0x00002004, &axi_qos->qosthres1);
552 writel(0x00000000, &axi_qos->qosthres2);
553 writel(0x00000001, &axi_qos->qosqon);
554
555 /* QoS Register (RT-AXI) */
556 axi_qos = (struct rcar_axi_qos *)RT_AXI_SHX_BASE;
557 writel(0x00000000, &axi_qos->qosconf);
558 writel(0x00002053, &axi_qos->qosctset0);
559 writel(0x00002096, &axi_qos->qosctset1);
560 writel(0x00002030, &axi_qos->qosctset2);
561 writel(0x00002030, &axi_qos->qosctset3);
562 writel(0x00000001, &axi_qos->qosreqctr);
563 writel(0x00002064, &axi_qos->qosthres0);
564 writel(0x00002004, &axi_qos->qosthres1);
565 writel(0x00000000, &axi_qos->qosthres2);
566 writel(0x00000001, &axi_qos->qosqon);
567
568 axi_qos = (struct rcar_axi_qos *)RT_AXI_DBG_BASE;
569 writel(0x00000000, &axi_qos->qosconf);
570 writel(0x00002053, &axi_qos->qosctset0);
571 writel(0x00002096, &axi_qos->qosctset1);
572 writel(0x00002030, &axi_qos->qosctset2);
573 writel(0x00002030, &axi_qos->qosctset3);
574 writel(0x00000001, &axi_qos->qosreqctr);
575 writel(0x00002064, &axi_qos->qosthres0);
576 writel(0x00002004, &axi_qos->qosthres1);
577 writel(0x00000000, &axi_qos->qosthres2);
578 writel(0x00000001, &axi_qos->qosqon);
579
580 axi_qos = (struct rcar_axi_qos *)RT_AXI_RDM_BASE;
581 writel(0x00000000, &axi_qos->qosconf);
582 writel(0x00002299, &axi_qos->qosctset0);
583 writel(0x00000001, &axi_qos->qosreqctr);
584 writel(0x00002064, &axi_qos->qosthres0);
585 writel(0x00002004, &axi_qos->qosthres1);
586 writel(0x00000000, &axi_qos->qosthres2);
587 writel(0x00000001, &axi_qos->qosqon);
588
589 axi_qos = (struct rcar_axi_qos *)RT_AXI_RDS_BASE;
590 writel(0x00000000, &axi_qos->qosconf);
591 writel(0x00002029, &axi_qos->qosctset0);
592 writel(0x00000001, &axi_qos->qosreqctr);
593 writel(0x00002064, &axi_qos->qosthres0);
594 writel(0x00002004, &axi_qos->qosthres1);
595 writel(0x00000000, &axi_qos->qosthres2);
596 writel(0x00000001, &axi_qos->qosqon);
597
598 axi_qos = (struct rcar_axi_qos *)RT_AXI_RTX64TO128_BASE;
599 writel(0x00000002, &axi_qos->qosconf);
600 writel(0x00002245, &axi_qos->qosctset0);
601 writel(0x00002096, &axi_qos->qosctset1);
602 writel(0x00002030, &axi_qos->qosctset2);
603 writel(0x00002030, &axi_qos->qosctset3);
604 writel(0x00000001, &axi_qos->qosreqctr);
605 writel(0x00002064, &axi_qos->qosthres0);
606 writel(0x00002004, &axi_qos->qosthres1);
607 writel(0x00000000, &axi_qos->qosthres2);
608 writel(0x00000001, &axi_qos->qosqon);
609
610 axi_qos = (struct rcar_axi_qos *)RT_AXI_STPRO_BASE;
611 writel(0x00000000, &axi_qos->qosconf);
612 writel(0x00002029, &axi_qos->qosctset0);
613 writel(0x00002096, &axi_qos->qosctset1);
614 writel(0x00002030, &axi_qos->qosctset2);
615 writel(0x00002030, &axi_qos->qosctset3);
616 writel(0x00000001, &axi_qos->qosreqctr);
617 writel(0x00002064, &axi_qos->qosthres0);
618 writel(0x00002004, &axi_qos->qosthres1);
619 writel(0x00000000, &axi_qos->qosthres2);
620 writel(0x00000001, &axi_qos->qosqon);
621
622 axi_qos = (struct rcar_axi_qos *)RT_AXI_SY2RT_BASE;
623 writel(0x00000002, &axi_qos->qosconf);
624 writel(0x00002245, &axi_qos->qosctset0);
625 writel(0x00000001, &axi_qos->qosreqctr);
626 writel(0x00002064, &axi_qos->qosthres0);
627 writel(0x00002004, &axi_qos->qosthres1);
628 writel(0x00000000, &axi_qos->qosthres2);
629 writel(0x00000001, &axi_qos->qosqon);
630
631 /* QoS Register (MP-AXI) */
632 axi_qos = (struct rcar_axi_qos *)MP_AXI_ADSP_BASE;
633 writel(0x00000000, &axi_qos->qosconf);
634 writel(0x00002037, &axi_qos->qosctset0);
635 writel(0x00000001, &axi_qos->qosreqctr);
636 writel(0x00002064, &axi_qos->qosthres0);
637 writel(0x00002004, &axi_qos->qosthres1);
638 writel(0x00000000, &axi_qos->qosthres2);
639 writel(0x00000001, &axi_qos->qosqon);
640
641 axi_qos = (struct rcar_axi_qos *)MP_AXI_ASDS0_BASE;
642 writel(0x00000001, &axi_qos->qosconf);
643 writel(0x00002014, &axi_qos->qosctset0);
644 writel(0x00000040, &axi_qos->qosreqctr);
645 writel(0x00002064, &axi_qos->qosthres0);
646 writel(0x00002004, &axi_qos->qosthres1);
647 writel(0x00000000, &axi_qos->qosthres2);
648 writel(0x00000001, &axi_qos->qosqon);
649
650 axi_qos = (struct rcar_axi_qos *)MP_AXI_ASDS1_BASE;
651 writel(0x00000001, &axi_qos->qosconf);
652 writel(0x00002014, &axi_qos->qosctset0);
653 writel(0x00000040, &axi_qos->qosreqctr);
654 writel(0x00002064, &axi_qos->qosthres0);
655 writel(0x00002004, &axi_qos->qosthres1);
656 writel(0x00000000, &axi_qos->qosthres2);
657 writel(0x00000001, &axi_qos->qosqon);
658
659 axi_qos = (struct rcar_axi_qos *)MP_AXI_MLP_BASE;
660 writel(0x00000001, &axi_qos->qosconf);
661 writel(0x00001FF0, &axi_qos->qosctset0);
662 writel(0x00000020, &axi_qos->qosreqctr);
663 writel(0x00002064, &axi_qos->qosthres0);
664 writel(0x00002004, &axi_qos->qosthres1);
665 writel(0x00002001, &axi_qos->qosthres2);
666 writel(0x00000001, &axi_qos->qosqon);
667
668 axi_qos = (struct rcar_axi_qos *)MP_AXI_MMUMP_BASE;
669 writel(0x00000001, &axi_qos->qosconf);
670 writel(0x00002004, &axi_qos->qosctset0);
671 writel(0x00002096, &axi_qos->qosctset1);
672 writel(0x00002030, &axi_qos->qosctset2);
673 writel(0x00002030, &axi_qos->qosctset3);
674 writel(0x00000001, &axi_qos->qosreqctr);
675 writel(0x00002064, &axi_qos->qosthres0);
676 writel(0x00002004, &axi_qos->qosthres1);
677 writel(0x00000000, &axi_qos->qosthres2);
678 writel(0x00000001, &axi_qos->qosqon);
679
680 axi_qos = (struct rcar_axi_qos *)MP_AXI_SPU_BASE;
681 writel(0x00000000, &axi_qos->qosconf);
682 writel(0x00002053, &axi_qos->qosctset0);
683 writel(0x00000001, &axi_qos->qosreqctr);
684 writel(0x00002064, &axi_qos->qosthres0);
685 writel(0x00002004, &axi_qos->qosthres1);
686 writel(0x00000000, &axi_qos->qosthres2);
687 writel(0x00000001, &axi_qos->qosqon);
688
689 axi_qos = (struct rcar_axi_qos *)MP_AXI_SPUC_BASE;
690 writel(0x00000000, &axi_qos->qosconf);
691 writel(0x0000206E, &axi_qos->qosctset0);
692 writel(0x00000001, &axi_qos->qosreqctr);
693 writel(0x00002064, &axi_qos->qosthres0);
694 writel(0x00002004, &axi_qos->qosthres1);
695 writel(0x00000000, &axi_qos->qosthres2);
696 writel(0x00000001, &axi_qos->qosqon);
697
698 /* QoS Register (SYS-AXI256) */
699 axi_qos = (struct rcar_axi_qos *)SYS_AXI256_AXI128TO256_BASE;
700 writel(0x00000002, &axi_qos->qosconf);
701 writel(0x000020EB, &axi_qos->qosctset0);
702 writel(0x00002096, &axi_qos->qosctset1);
703 writel(0x00002030, &axi_qos->qosctset2);
704 writel(0x00002030, &axi_qos->qosctset3);
705 writel(0x00000001, &axi_qos->qosreqctr);
706 writel(0x00002064, &axi_qos->qosthres0);
707 writel(0x00002004, &axi_qos->qosthres1);
708 writel(0x00000000, &axi_qos->qosthres2);
709 writel(0x00000001, &axi_qos->qosqon);
710
711 axi_qos = (struct rcar_axi_qos *)SYS_AXI256_SYX_BASE;
712 writel(0x00000002, &axi_qos->qosconf);
713 writel(0x000020EB, &axi_qos->qosctset0);
714 writel(0x00002096, &axi_qos->qosctset1);
715 writel(0x00002030, &axi_qos->qosctset2);
716 writel(0x00002030, &axi_qos->qosctset3);
717 writel(0x00000001, &axi_qos->qosreqctr);
718 writel(0x00002064, &axi_qos->qosthres0);
719 writel(0x00002004, &axi_qos->qosthres1);
720 writel(0x00000000, &axi_qos->qosthres2);
721 writel(0x00000001, &axi_qos->qosqon);
722
723 axi_qos = (struct rcar_axi_qos *)SYS_AXI256_MPX_BASE;
724 writel(0x00000002, &axi_qos->qosconf);
725 writel(0x000020EB, &axi_qos->qosctset0);
726 writel(0x00002096, &axi_qos->qosctset1);
727 writel(0x00002030, &axi_qos->qosctset2);
728 writel(0x00002030, &axi_qos->qosctset3);
729 writel(0x00000001, &axi_qos->qosreqctr);
730 writel(0x00002064, &axi_qos->qosthres0);
731 writel(0x00002004, &axi_qos->qosthres1);
732 writel(0x00000000, &axi_qos->qosthres2);
733 writel(0x00000001, &axi_qos->qosqon);
734
735 axi_qos = (struct rcar_axi_qos *)SYS_AXI256_MXI_BASE;
736 writel(0x00000002, &axi_qos->qosconf);
737 writel(0x000020EB, &axi_qos->qosctset0);
738 writel(0x00002096, &axi_qos->qosctset1);
739 writel(0x00002030, &axi_qos->qosctset2);
740 writel(0x00002030, &axi_qos->qosctset3);
741 writel(0x00000001, &axi_qos->qosreqctr);
742 writel(0x00002064, &axi_qos->qosthres0);
743 writel(0x00002004, &axi_qos->qosthres1);
744 writel(0x00000000, &axi_qos->qosthres2);
745 writel(0x00000001, &axi_qos->qosqon);
746
747 /* QoS Register (CCI-AXI) */
748 axi_qos = (struct rcar_axi_qos *)CCI_AXI_MMUS0_BASE;
749 writel(0x00000001, &axi_qos->qosconf);
750 writel(0x00002004, &axi_qos->qosctset0);
751 writel(0x00002096, &axi_qos->qosctset1);
752 writel(0x00002030, &axi_qos->qosctset2);
753 writel(0x00002030, &axi_qos->qosctset3);
754 writel(0x00000001, &axi_qos->qosreqctr);
755 writel(0x00002064, &axi_qos->qosthres0);
756 writel(0x00002004, &axi_qos->qosthres1);
757 writel(0x00000000, &axi_qos->qosthres2);
758 writel(0x00000001, &axi_qos->qosqon);
759
760 axi_qos = (struct rcar_axi_qos *)CCI_AXI_SYX2_BASE;
761 writel(0x00000002, &axi_qos->qosconf);
762 writel(0x00002245, &axi_qos->qosctset0);
763 writel(0x00002096, &axi_qos->qosctset1);
764 writel(0x00002030, &axi_qos->qosctset2);
765 writel(0x00002030, &axi_qos->qosctset3);
766 writel(0x00000001, &axi_qos->qosreqctr);
767 writel(0x00002064, &axi_qos->qosthres0);
768 writel(0x00002004, &axi_qos->qosthres1);
769 writel(0x00000000, &axi_qos->qosthres2);
770 writel(0x00000001, &axi_qos->qosqon);
771
772 axi_qos = (struct rcar_axi_qos *)CCI_AXI_MMUR_BASE;
773 writel(0x00000001, &axi_qos->qosconf);
774 writel(0x00002004, &axi_qos->qosctset0);
775 writel(0x00002096, &axi_qos->qosctset1);
776 writel(0x00002030, &axi_qos->qosctset2);
777 writel(0x00002030, &axi_qos->qosctset3);
778 writel(0x00000001, &axi_qos->qosreqctr);
779 writel(0x00002064, &axi_qos->qosthres0);
780 writel(0x00002004, &axi_qos->qosthres1);
781 writel(0x00000000, &axi_qos->qosthres2);
782 writel(0x00000001, &axi_qos->qosqon);
783
784 axi_qos = (struct rcar_axi_qos *)CCI_AXI_MMUDS_BASE;
785 writel(0x00000001, &axi_qos->qosconf);
786 writel(0x00002004, &axi_qos->qosctset0);
787 writel(0x00002096, &axi_qos->qosctset1);
788 writel(0x00002030, &axi_qos->qosctset2);
789 writel(0x00002030, &axi_qos->qosctset3);
790 writel(0x00000001, &axi_qos->qosreqctr);
791 writel(0x00002064, &axi_qos->qosthres0);
792 writel(0x00002004, &axi_qos->qosthres1);
793 writel(0x00000000, &axi_qos->qosthres2);
794 writel(0x00000001, &axi_qos->qosqon);
795
796 axi_qos = (struct rcar_axi_qos *)CCI_AXI_MMUM_BASE;
797 writel(0x00000001, &axi_qos->qosconf);
798 writel(0x00002004, &axi_qos->qosctset0);
799 writel(0x00002096, &axi_qos->qosctset1);
800 writel(0x00002030, &axi_qos->qosctset2);
801 writel(0x00002030, &axi_qos->qosctset3);
802 writel(0x00000001, &axi_qos->qosreqctr);
803 writel(0x00002064, &axi_qos->qosthres0);
804 writel(0x00002004, &axi_qos->qosthres1);
805 writel(0x00000000, &axi_qos->qosthres2);
806 writel(0x00000001, &axi_qos->qosqon);
807
808 axi_qos = (struct rcar_axi_qos *)CCI_AXI_MXI_BASE;
809 writel(0x00000002, &axi_qos->qosconf);
810 writel(0x00002245, &axi_qos->qosctset0);
811 writel(0x00002096, &axi_qos->qosctset1);
812 writel(0x00002030, &axi_qos->qosctset2);
813 writel(0x00002030, &axi_qos->qosctset3);
814 writel(0x00000001, &axi_qos->qosreqctr);
815 writel(0x00002064, &axi_qos->qosthres0);
816 writel(0x00002004, &axi_qos->qosthres1);
817 writel(0x00000000, &axi_qos->qosthres2);
818 writel(0x00000001, &axi_qos->qosqon);
819
820 axi_qos = (struct rcar_axi_qos *)CCI_AXI_MMUS1_BASE;
821 writel(0x00000001, &axi_qos->qosconf);
822 writel(0x00002004, &axi_qos->qosctset0);
823 writel(0x00002096, &axi_qos->qosctset1);
824 writel(0x00002030, &axi_qos->qosctset2);
825 writel(0x00002030, &axi_qos->qosctset3);
826 writel(0x00000001, &axi_qos->qosreqctr);
827 writel(0x00002064, &axi_qos->qosthres0);
828 writel(0x00002004, &axi_qos->qosthres1);
829 writel(0x00000000, &axi_qos->qosthres2);
830 writel(0x00000001, &axi_qos->qosqon);
831
832 axi_qos = (struct rcar_axi_qos *)CCI_AXI_MMUMP_BASE;
833 writel(0x00000001, &axi_qos->qosconf);
834 writel(0x00002004, &axi_qos->qosctset0);
835 writel(0x00002096, &axi_qos->qosctset1);
836 writel(0x00002030, &axi_qos->qosctset2);
837 writel(0x00002030, &axi_qos->qosctset3);
838 writel(0x00000001, &axi_qos->qosreqctr);
839 writel(0x00002064, &axi_qos->qosthres0);
840 writel(0x00002004, &axi_qos->qosthres1);
841 writel(0x00000000, &axi_qos->qosthres2);
842 writel(0x00000001, &axi_qos->qosqon);
843
844 /* QoS Register (Media-AXI) */
845 axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_MXR_BASE;
846 writel(0x00000002, &axi_qos->qosconf);
847 writel(0x000020DC, &axi_qos->qosctset0);
848 writel(0x00002096, &axi_qos->qosctset1);
849 writel(0x00002030, &axi_qos->qosctset2);
850 writel(0x00002030, &axi_qos->qosctset3);
851 writel(0x00000020, &axi_qos->qosreqctr);
852 writel(0x000020AA, &axi_qos->qosthres0);
853 writel(0x00002032, &axi_qos->qosthres1);
854 writel(0x00000001, &axi_qos->qosthres2);
855
856 axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_MXW_BASE;
857 writel(0x00000002, &axi_qos->qosconf);
858 writel(0x000020DC, &axi_qos->qosctset0);
859 writel(0x00002096, &axi_qos->qosctset1);
860 writel(0x00002030, &axi_qos->qosctset2);
861 writel(0x00002030, &axi_qos->qosctset3);
862 writel(0x00000020, &axi_qos->qosreqctr);
863 writel(0x000020AA, &axi_qos->qosthres0);
864 writel(0x00002032, &axi_qos->qosthres1);
865 writel(0x00000001, &axi_qos->qosthres2);
866
867 axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_JPR_BASE;
868 writel(0x00000001, &axi_qos->qosconf);
869 writel(0x00002190, &axi_qos->qosctset0);
870 writel(0x00000020, &axi_qos->qosreqctr);
871 writel(0x00002064, &axi_qos->qosthres0);
872 writel(0x00002004, &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_JPW_BASE;
877 writel(0x00000001, &axi_qos->qosconf);
878 writel(0x00002190, &axi_qos->qosctset0);
879 writel(0x00000020, &axi_qos->qosreqctr);
880 writel(0x00000001, &axi_qos->qosthres0);
881 writel(0x00000001, &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_TDMR_BASE;
886 writel(0x00000001, &axi_qos->qosconf);
887 writel(0x00002190, &axi_qos->qosctset0);
888 writel(0x00000020, &axi_qos->qosreqctr);
889 writel(0x00002064, &axi_qos->qosthres0);
890 writel(0x00002004, &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_TDMW_BASE;
895 writel(0x00000001, &axi_qos->qosconf);
896 writel(0x00002190, &axi_qos->qosctset0);
897 writel(0x00000020, &axi_qos->qosreqctr);
898 writel(0x00000001, &axi_qos->qosthres0);
899 writel(0x00000001, &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_VSP1CR_BASE;
904 writel(0x00000001, &axi_qos->qosconf);
905 writel(0x00002190, &axi_qos->qosctset0);
906 writel(0x00000020, &axi_qos->qosreqctr);
907 writel(0x00002064, &axi_qos->qosthres0);
908 writel(0x00002004, &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_VSP1CW_BASE;
913 writel(0x00000001, &axi_qos->qosconf);
914 writel(0x00002190, &axi_qos->qosctset0);
915 writel(0x00000020, &axi_qos->qosreqctr);
916 writel(0x00000001, &axi_qos->qosthres0);
917 writel(0x00000001, &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_VSPDU0CR_BASE;
922 writel(0x00000001, &axi_qos->qosconf);
923 writel(0x00002190, &axi_qos->qosctset0);
924 writel(0x00000020, &axi_qos->qosreqctr);
925 writel(0x00002064, &axi_qos->qosthres0);
926 writel(0x00002004, &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_VSPDU0CW_BASE;
931 writel(0x00000001, &axi_qos->qosconf);
932 writel(0x00002190, &axi_qos->qosctset0);
933 writel(0x00000020, &axi_qos->qosreqctr);
934 writel(0x00000001, &axi_qos->qosthres0);
935 writel(0x00000001, &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_VSPDU1CR_BASE;
940 writel(0x00000001, &axi_qos->qosconf);
941 writel(0x00002190, &axi_qos->qosctset0);
942 writel(0x00000020, &axi_qos->qosreqctr);
943 writel(0x00002064, &axi_qos->qosthres0);
944 writel(0x00002004, &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_VSPDU1CW_BASE;
949 writel(0x00000001, &axi_qos->qosconf);
950 writel(0x00002190, &axi_qos->qosctset0);
951 writel(0x00000020, &axi_qos->qosreqctr);
952 writel(0x00000001, &axi_qos->qosthres0);
953 writel(0x00000001, &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_VIN0W_BASE;
958 writel(0x00000001, &axi_qos->qosconf);
959 writel(0x00001FF0, &axi_qos->qosctset0);
960 writel(0x00000020, &axi_qos->qosreqctr);
961 writel(0x00002064, &axi_qos->qosthres0);
962 writel(0x00002004, &axi_qos->qosthres1);
963 writel(0x00002001, &axi_qos->qosthres2);
964 writel(0x00000001, &axi_qos->qosqon);
965
966 axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_FDP0R_BASE;
967 writel(0x00000001, &axi_qos->qosconf);
968 writel(0x000020C8, &axi_qos->qosctset0);
969 writel(0x00000020, &axi_qos->qosreqctr);
970 writel(0x00002064, &axi_qos->qosthres0);
971 writel(0x00002004, &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_FDP0W_BASE;
976 writel(0x00000001, &axi_qos->qosconf);
977 writel(0x000020C8, &axi_qos->qosctset0);
978 writel(0x00000020, &axi_qos->qosreqctr);
979 writel(0x00000001, &axi_qos->qosthres0);
980 writel(0x00000001, &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_IMSR_BASE;
985 writel(0x00000001, &axi_qos->qosconf);
986 writel(0x000020C8, &axi_qos->qosctset0);
987 writel(0x00000020, &axi_qos->qosreqctr);
988 writel(0x00002064, &axi_qos->qosthres0);
989 writel(0x00002004, &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_IMSW_BASE;
994 writel(0x00000001, &axi_qos->qosconf);
995 writel(0x000020C8, &axi_qos->qosctset0);
996 writel(0x00000020, &axi_qos->qosreqctr);
997 writel(0x00002064, &axi_qos->qosthres0);
998 writel(0x00002004, &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_VSP1R_BASE;
1003 writel(0x00000001, &axi_qos->qosconf);
1004 writel(0x000020C8, &axi_qos->qosctset0);
1005 writel(0x00000020, &axi_qos->qosreqctr);
1006 writel(0x00002064, &axi_qos->qosthres0);
1007 writel(0x00002004, &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_VSP1W_BASE;
1012 writel(0x00000001, &axi_qos->qosconf);
1013 writel(0x000020C8, &axi_qos->qosctset0);
1014 writel(0x00000020, &axi_qos->qosreqctr);
1015 writel(0x00000001, &axi_qos->qosthres0);
1016 writel(0x00000001, &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_FDP1R_BASE;
1021 writel(0x00000001, &axi_qos->qosconf);
1022 writel(0x000020C8, &axi_qos->qosctset0);
1023 writel(0x00000020, &axi_qos->qosreqctr);
1024 writel(0x00002064, &axi_qos->qosthres0);
1025 writel(0x00002004, &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_FDP1W_BASE;
1030 writel(0x00000001, &axi_qos->qosconf);
1031 writel(0x000020C8, &axi_qos->qosctset0);
1032 writel(0x00000020, &axi_qos->qosreqctr);
1033 writel(0x00000001, &axi_qos->qosthres0);
1034 writel(0x00000001, &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_IMRR_BASE;
1039 writel(0x00000001, &axi_qos->qosconf);
1040 writel(0x000020C8, &axi_qos->qosctset0);
1041 writel(0x00000020, &axi_qos->qosreqctr);
1042 writel(0x00002064, &axi_qos->qosthres0);
1043 writel(0x00002004, &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_IMRW_BASE;
1048 writel(0x00000001, &axi_qos->qosconf);
1049 writel(0x000020C8, &axi_qos->qosctset0);
1050 writel(0x00000020, &axi_qos->qosreqctr);
1051 writel(0x00002064, &axi_qos->qosthres0);
1052 writel(0x00002004, &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_VSPD0R_BASE;
1057 writel(0x00000003, &axi_qos->qosconf);
1058 writel(0x000020C8, &axi_qos->qosctset0);
1059 writel(0x00002064, &axi_qos->qosthres0);
1060 writel(0x00002004, &axi_qos->qosthres1);
1061 writel(0x00000001, &axi_qos->qosthres2);
1062 writel(0x00000001, &axi_qos->qosqon);
1063
1064 axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSPD0W_BASE;
1065 writel(0x00000003, &axi_qos->qosconf);
1066 writel(0x000020C8, &axi_qos->qosctset0);
1067 writel(0x00002064, &axi_qos->qosthres0);
1068 writel(0x00002004, &axi_qos->qosthres1);
1069 writel(0x00000001, &axi_qos->qosthres2);
1070 writel(0x00000001, &axi_qos->qosqon);
1071
1072 axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSPD1R_BASE;
1073 writel(0x00000003, &axi_qos->qosconf);
1074 writel(0x000020C8, &axi_qos->qosctset0);
1075 writel(0x00002064, &axi_qos->qosthres0);
1076 writel(0x00002004, &axi_qos->qosthres1);
1077 writel(0x00000001, &axi_qos->qosthres2);
1078 writel(0x00000001, &axi_qos->qosqon);
1079
1080 axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSPD1W_BASE;
1081 writel(0x00000003, &axi_qos->qosconf);
1082 writel(0x000020C8, &axi_qos->qosctset0);
1083 writel(0x00002064, &axi_qos->qosthres0);
1084 writel(0x00002004, &axi_qos->qosthres1);
1085 writel(0x00000001, &axi_qos->qosthres2);
1086 writel(0x00000001, &axi_qos->qosqon);
1087
1088 axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_DU0R_BASE;
1089 writel(0x00000003, &axi_qos->qosconf);
1090 writel(0x00002063, &axi_qos->qosctset0);
1091 writel(0x00000001, &axi_qos->qosreqctr);
1092 writel(0x00002064, &axi_qos->qosthres0);
1093 writel(0x00002004, &axi_qos->qosthres1);
1094 writel(0x00000001, &axi_qos->qosthres2);
1095 writel(0x00000001, &axi_qos->qosqon);
1096
1097 axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_DU0W_BASE;
1098 writel(0x00000003, &axi_qos->qosconf);
1099 writel(0x00002063, &axi_qos->qosctset0);
1100 writel(0x00000001, &axi_qos->qosreqctr);
1101 writel(0x00002064, &axi_qos->qosthres0);
1102 writel(0x00002004, &axi_qos->qosthres1);
1103 writel(0x00000001, &axi_qos->qosthres2);
1104 writel(0x00000001, &axi_qos->qosqon);
1105
1106 axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VCP0CR_BASE;
1107 writel(0x00000001, &axi_qos->qosconf);
1108 writel(0x00002073, &axi_qos->qosctset0);
1109 writel(0x00000020, &axi_qos->qosreqctr);
1110 writel(0x00002064, &axi_qos->qosthres0);
1111 writel(0x00002004, &axi_qos->qosthres1);
1112 writel(0x00000001, &axi_qos->qosthres2);
1113 writel(0x00000001, &axi_qos->qosqon);
1114
1115 axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VCP0CW_BASE;
1116 writel(0x00000001, &axi_qos->qosconf);
1117 writel(0x00002073, &axi_qos->qosctset0);
1118 writel(0x00000020, &axi_qos->qosreqctr);
1119 writel(0x00000001, &axi_qos->qosthres0);
1120 writel(0x00000001, &axi_qos->qosthres1);
1121 writel(0x00000001, &axi_qos->qosthres2);
1122 writel(0x00000001, &axi_qos->qosqon);
1123
1124 axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VCP0VR_BASE;
1125 writel(0x00000001, &axi_qos->qosconf);
1126 writel(0x00002073, &axi_qos->qosctset0);
1127 writel(0x00000020, &axi_qos->qosreqctr);
1128 writel(0x00002064, &axi_qos->qosthres0);
1129 writel(0x00002004, &axi_qos->qosthres1);
1130 writel(0x00000001, &axi_qos->qosthres2);
1131 writel(0x00000001, &axi_qos->qosqon);
1132
1133 axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VCP0VW_BASE;
1134 writel(0x00000001, &axi_qos->qosconf);
1135 writel(0x00002073, &axi_qos->qosctset0);
1136 writel(0x00000020, &axi_qos->qosreqctr);
1137 writel(0x00000001, &axi_qos->qosthres0);
1138 writel(0x00000001, &axi_qos->qosthres1);
1139 writel(0x00000001, &axi_qos->qosthres2);
1140 writel(0x00000001, &axi_qos->qosqon);
1141
1142 axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VPC0R_BASE;
1143 writel(0x00000001, &axi_qos->qosconf);
1144 writel(0x00002073, &axi_qos->qosctset0);
1145 writel(0x00000020, &axi_qos->qosreqctr);
1146 writel(0x00002064, &axi_qos->qosthres0);
1147 writel(0x00002004, &axi_qos->qosthres1);
1148 writel(0x00000001, &axi_qos->qosthres2);
1149 writel(0x00000001, &axi_qos->qosqon);
1150}
1151#else /* CONFIG_RMOBILE_EXTRAM_BOOT */
1152void qos_init(void)
1153{
1154}
1155#endif /* CONFIG_RMOBILE_EXTRAM_BOOT */