blob: 4f6e46ce5272648e2153b310b7ba794d8b80f42b [file] [log] [blame]
Vladimir Barinovc8c1a3e2015-01-12 19:17:07 +03001/*
2 * board/renesas/silk/qos.c
3 *
4 * Copyright (C) 2015 Renesas Electronics Corporation
5 * Copyright (C) 2015 Cogent Embedded, Inc.
6 *
7 * SPDX-License-Identifier: GPL-2.0
8 *
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#if defined(CONFIG_RMOBILE_EXTRAM_BOOT)
18/* QoS version 0.11 */
19
20enum {
21 DBSC3_00, DBSC3_01, DBSC3_02, DBSC3_03, DBSC3_04,
22 DBSC3_05, DBSC3_06, DBSC3_07, DBSC3_08, DBSC3_09,
23 DBSC3_10, DBSC3_11, DBSC3_12, DBSC3_13, DBSC3_14,
24 DBSC3_15,
25 DBSC3_NR,
26};
27
28static u32 dbsc3_0_r_qos_addr[DBSC3_NR] = {
29 [DBSC3_00] = DBSC3_0_QOS_R0_BASE,
30 [DBSC3_01] = DBSC3_0_QOS_R1_BASE,
31 [DBSC3_02] = DBSC3_0_QOS_R2_BASE,
32 [DBSC3_03] = DBSC3_0_QOS_R3_BASE,
33 [DBSC3_04] = DBSC3_0_QOS_R4_BASE,
34 [DBSC3_05] = DBSC3_0_QOS_R5_BASE,
35 [DBSC3_06] = DBSC3_0_QOS_R6_BASE,
36 [DBSC3_07] = DBSC3_0_QOS_R7_BASE,
37 [DBSC3_08] = DBSC3_0_QOS_R8_BASE,
38 [DBSC3_09] = DBSC3_0_QOS_R9_BASE,
39 [DBSC3_10] = DBSC3_0_QOS_R10_BASE,
40 [DBSC3_11] = DBSC3_0_QOS_R11_BASE,
41 [DBSC3_12] = DBSC3_0_QOS_R12_BASE,
42 [DBSC3_13] = DBSC3_0_QOS_R13_BASE,
43 [DBSC3_14] = DBSC3_0_QOS_R14_BASE,
44 [DBSC3_15] = DBSC3_0_QOS_R15_BASE,
45};
46
47static u32 dbsc3_0_w_qos_addr[DBSC3_NR] = {
48 [DBSC3_00] = DBSC3_0_QOS_W0_BASE,
49 [DBSC3_01] = DBSC3_0_QOS_W1_BASE,
50 [DBSC3_02] = DBSC3_0_QOS_W2_BASE,
51 [DBSC3_03] = DBSC3_0_QOS_W3_BASE,
52 [DBSC3_04] = DBSC3_0_QOS_W4_BASE,
53 [DBSC3_05] = DBSC3_0_QOS_W5_BASE,
54 [DBSC3_06] = DBSC3_0_QOS_W6_BASE,
55 [DBSC3_07] = DBSC3_0_QOS_W7_BASE,
56 [DBSC3_08] = DBSC3_0_QOS_W8_BASE,
57 [DBSC3_09] = DBSC3_0_QOS_W9_BASE,
58 [DBSC3_10] = DBSC3_0_QOS_W10_BASE,
59 [DBSC3_11] = DBSC3_0_QOS_W11_BASE,
60 [DBSC3_12] = DBSC3_0_QOS_W12_BASE,
61 [DBSC3_13] = DBSC3_0_QOS_W13_BASE,
62 [DBSC3_14] = DBSC3_0_QOS_W14_BASE,
63 [DBSC3_15] = DBSC3_0_QOS_W15_BASE,
64};
65
66void qos_init(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(0x1F0D0B0A, &s3c->s3crorr);
82 writel(0x1F0D0B09, &s3c->s3cworr);
83
84 /* QoS Control Registers */
85 s3c_qos = (struct rcar_s3c_qos *)S3C_QOS_CCI0_BASE;
86 writel(0x00890089, &s3c_qos->s3cqos0);
87 writel(0x20960010, &s3c_qos->s3cqos1);
88 writel(0x20302030, &s3c_qos->s3cqos2);
89 writel(0x20AA2200, &s3c_qos->s3cqos3);
90 writel(0x00002032, &s3c_qos->s3cqos4);
91 writel(0x20960010, &s3c_qos->s3cqos5);
92 writel(0x20302030, &s3c_qos->s3cqos6);
93 writel(0x20AA2200, &s3c_qos->s3cqos7);
94 writel(0x00002032, &s3c_qos->s3cqos8);
95
96 s3c_qos = (struct rcar_s3c_qos *)S3C_QOS_CCI1_BASE;
97 writel(0x00890089, &s3c_qos->s3cqos0);
98 writel(0x20960010, &s3c_qos->s3cqos1);
99 writel(0x20302030, &s3c_qos->s3cqos2);
100 writel(0x20AA2200, &s3c_qos->s3cqos3);
101 writel(0x00002032, &s3c_qos->s3cqos4);
102 writel(0x20960010, &s3c_qos->s3cqos5);
103 writel(0x20302030, &s3c_qos->s3cqos6);
104 writel(0x20AA2200, &s3c_qos->s3cqos7);
105 writel(0x00002032, &s3c_qos->s3cqos8);
106
107 s3c_qos = (struct rcar_s3c_qos *)S3C_QOS_MXI_BASE;
108 writel(0x80928092, &s3c_qos->s3cqos0);
109 writel(0x20960020, &s3c_qos->s3cqos1);
110 writel(0x20302030, &s3c_qos->s3cqos2);
111 writel(0x20AA20DC, &s3c_qos->s3cqos3);
112 writel(0x00002032, &s3c_qos->s3cqos4);
113 writel(0x20960020, &s3c_qos->s3cqos5);
114 writel(0x20302030, &s3c_qos->s3cqos6);
115 writel(0x20AA20DC, &s3c_qos->s3cqos7);
116 writel(0x00002032, &s3c_qos->s3cqos8);
117
118 s3c_qos = (struct rcar_s3c_qos *)S3C_QOS_AXI_BASE;
119 writel(0x00820082, &s3c_qos->s3cqos0);
120 writel(0x20960020, &s3c_qos->s3cqos1);
121 writel(0x20302030, &s3c_qos->s3cqos2);
122 writel(0x20AA20FA, &s3c_qos->s3cqos3);
123 writel(0x00002032, &s3c_qos->s3cqos4);
124 writel(0x20960020, &s3c_qos->s3cqos5);
125 writel(0x20302030, &s3c_qos->s3cqos6);
126 writel(0x20AA20FA, &s3c_qos->s3cqos7);
127 writel(0x00002032, &s3c_qos->s3cqos8);
128
129 /* DBSC -QoS */
130 /* DBSC0 - Read */
131 for (i = DBSC3_00; i < DBSC3_NR; i++) {
132 qos_addr = (struct rcar_dbsc3_qos *)dbsc3_0_r_qos_addr[i];
133 writel(0x00000002, &qos_addr->dblgcnt);
134 writel(0x0000207D, &qos_addr->dbtmval0);
135 writel(0x00002053, &qos_addr->dbtmval1);
136 writel(0x0000202A, &qos_addr->dbtmval2);
137 writel(0x00001FBD, &qos_addr->dbtmval3);
138 writel(0x00000001, &qos_addr->dbrqctr);
139 writel(0x00002064, &qos_addr->dbthres0);
140 writel(0x0000203E, &qos_addr->dbthres1);
141 writel(0x00002019, &qos_addr->dbthres2);
142 writel(0x00000001, &qos_addr->dblgqon);
143 }
144
145 /* DBSC0 - Write */
146 for (i = DBSC3_00; i < DBSC3_NR; i++) {
147 qos_addr = (struct rcar_dbsc3_qos *)dbsc3_0_w_qos_addr[i];
148 writel(0x00000002, &qos_addr->dblgcnt);
149 writel(0x0000207D, &qos_addr->dbtmval0);
150 writel(0x00002053, &qos_addr->dbtmval1);
151 writel(0x00002043, &qos_addr->dbtmval2);
152 writel(0x00002030, &qos_addr->dbtmval3);
153 writel(0x00000001, &qos_addr->dbrqctr);
154 writel(0x00002064, &qos_addr->dbthres0);
155 writel(0x0000203E, &qos_addr->dbthres1);
156 writel(0x00002031, &qos_addr->dbthres2);
157 writel(0x00000001, &qos_addr->dblgqon);
158 }
159
160 /* CCI-400 -QoS */
161 writel(0x20000800, CCI_400_MAXOT_1);
162 writel(0x20000800, CCI_400_MAXOT_2);
163 writel(0x0000000C, CCI_400_QOSCNTL_1);
164 writel(0x0000000C, CCI_400_QOSCNTL_2);
165
166 /* MXI -QoS */
167 /* Transaction Control (MXI) */
168 mxi = (struct rcar_mxi *)MXI_BASE;
169 writel(0x00000013, &mxi->mxrtcr);
170 writel(0x00000013, &mxi->mxwtcr);
171 writel(0x00780080, &mxi->mxsaar0);
172 writel(0x02000800, &mxi->mxsaar1);
173
174 /* QoS Control (MXI) */
175 mxi_qos = (struct rcar_mxi_qos *)MXI_QOS_BASE;
176 writel(0x0000000C, &mxi_qos->vspdu0);
177 writel(0x0000000E, &mxi_qos->du0);
178
179 /* AXI -QoS */
180 /* Transaction Control (MXI) */
181 axi_qos = (struct rcar_axi_qos *)SYS_AXI_SYX64TO128_BASE;
182 writel(0x00000002, &axi_qos->qosconf);
183 writel(0x00002245, &axi_qos->qosctset0);
184 writel(0x00002096, &axi_qos->qosctset1);
185 writel(0x00002030, &axi_qos->qosctset2);
186 writel(0x00002030, &axi_qos->qosctset3);
187 writel(0x00000001, &axi_qos->qosreqctr);
188 writel(0x00002064, &axi_qos->qosthres0);
189 writel(0x00002004, &axi_qos->qosthres1);
190 writel(0x00000000, &axi_qos->qosthres2);
191 writel(0x00000001, &axi_qos->qosqon);
192
193 axi_qos = (struct rcar_axi_qos *)SYS_AXI_AVB_BASE;
194 writel(0x00000000, &axi_qos->qosconf);
195 writel(0x000020A6, &axi_qos->qosctset0);
196 writel(0x00000001, &axi_qos->qosreqctr);
197 writel(0x00002064, &axi_qos->qosthres0);
198 writel(0x00002004, &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_IMUX0_BASE;
203 writel(0x00000002, &axi_qos->qosconf);
204 writel(0x00002245, &axi_qos->qosctset0);
205 writel(0x00002096, &axi_qos->qosctset1);
206 writel(0x00002030, &axi_qos->qosctset2);
207 writel(0x00002030, &axi_qos->qosctset3);
208 writel(0x00000001, &axi_qos->qosreqctr);
209 writel(0x00002064, &axi_qos->qosthres0);
210 writel(0x00002004, &axi_qos->qosthres1);
211 writel(0x00000000, &axi_qos->qosthres2);
212 writel(0x00000001, &axi_qos->qosqon);
213
214 axi_qos = (struct rcar_axi_qos *)SYS_AXI_IMUX1_BASE;
215 writel(0x00000002, &axi_qos->qosconf);
216 writel(0x00002245, &axi_qos->qosctset0);
217 writel(0x00002096, &axi_qos->qosctset1);
218 writel(0x00002030, &axi_qos->qosctset2);
219 writel(0x00002030, &axi_qos->qosctset3);
220 writel(0x00000001, &axi_qos->qosreqctr);
221 writel(0x00002064, &axi_qos->qosthres0);
222 writel(0x00002004, &axi_qos->qosthres1);
223 writel(0x00000000, &axi_qos->qosthres2);
224 writel(0x00000001, &axi_qos->qosqon);
225
226 axi_qos = (struct rcar_axi_qos *)SYS_AXI_IMUX2_BASE;
227 writel(0x00000002, &axi_qos->qosconf);
228 writel(0x00002245, &axi_qos->qosctset0);
229 writel(0x00002096, &axi_qos->qosctset1);
230 writel(0x00002030, &axi_qos->qosctset2);
231 writel(0x00002030, &axi_qos->qosctset3);
232 writel(0x00000001, &axi_qos->qosreqctr);
233 writel(0x00002064, &axi_qos->qosthres0);
234 writel(0x00002004, &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_LBS_BASE;
239 writel(0x00000000, &axi_qos->qosconf);
240 writel(0x0000214C, &axi_qos->qosctset0);
241 writel(0x00000001, &axi_qos->qosreqctr);
242 writel(0x00002064, &axi_qos->qosthres0);
243 writel(0x00002004, &axi_qos->qosthres1);
244 writel(0x00000000, &axi_qos->qosthres2);
245 writel(0x00000001, &axi_qos->qosqon);
246
247 axi_qos = (struct rcar_axi_qos *)SYS_AXI_MMUDS_BASE;
248 writel(0x00000001, &axi_qos->qosconf);
249 writel(0x00002004, &axi_qos->qosctset0);
250 writel(0x00002096, &axi_qos->qosctset1);
251 writel(0x00002030, &axi_qos->qosctset2);
252 writel(0x00002030, &axi_qos->qosctset3);
253 writel(0x00000001, &axi_qos->qosreqctr);
254 writel(0x00002064, &axi_qos->qosthres0);
255 writel(0x00002004, &axi_qos->qosthres1);
256 writel(0x00000000, &axi_qos->qosthres2);
257 writel(0x00000001, &axi_qos->qosqon);
258
259 axi_qos = (struct rcar_axi_qos *)SYS_AXI_MMUM_BASE;
260 writel(0x00000001, &axi_qos->qosconf);
261 writel(0x00002004, &axi_qos->qosctset0);
262 writel(0x00002096, &axi_qos->qosctset1);
263 writel(0x00002030, &axi_qos->qosctset2);
264 writel(0x00002030, &axi_qos->qosctset3);
265 writel(0x00000001, &axi_qos->qosreqctr);
266 writel(0x00002064, &axi_qos->qosthres0);
267 writel(0x00002004, &axi_qos->qosthres1);
268 writel(0x00000000, &axi_qos->qosthres2);
269 writel(0x00000001, &axi_qos->qosqon);
270
271 axi_qos = (struct rcar_axi_qos *)SYS_AXI_MMUS0_BASE;
272 writel(0x00000001, &axi_qos->qosconf);
273 writel(0x00002004, &axi_qos->qosctset0);
274 writel(0x00002096, &axi_qos->qosctset1);
275 writel(0x00002030, &axi_qos->qosctset2);
276 writel(0x00002030, &axi_qos->qosctset3);
277 writel(0x00000001, &axi_qos->qosreqctr);
278 writel(0x00002064, &axi_qos->qosthres0);
279 writel(0x00002004, &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_MMUS1_BASE;
284 writel(0x00000001, &axi_qos->qosconf);
285 writel(0x00002004, &axi_qos->qosctset0);
286 writel(0x00002096, &axi_qos->qosctset1);
287 writel(0x00002030, &axi_qos->qosctset2);
288 writel(0x00002030, &axi_qos->qosctset3);
289 writel(0x00000001, &axi_qos->qosreqctr);
290 writel(0x00002064, &axi_qos->qosthres0);
291 writel(0x00002004, &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_RTX_BASE;
296 writel(0x00000002, &axi_qos->qosconf);
297 writel(0x00002245, &axi_qos->qosctset0);
298 writel(0x00002096, &axi_qos->qosctset1);
299 writel(0x00002030, &axi_qos->qosctset2);
300 writel(0x00002030, &axi_qos->qosctset3);
301 writel(0x00000001, &axi_qos->qosreqctr);
302 writel(0x00002064, &axi_qos->qosthres0);
303 writel(0x00002004, &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_SDS0_BASE;
308 writel(0x00000000, &axi_qos->qosconf);
309 writel(0x000020A6, &axi_qos->qosctset0);
310 writel(0x00000001, &axi_qos->qosreqctr);
311 writel(0x00002064, &axi_qos->qosthres0);
312 writel(0x00002004, &axi_qos->qosthres1);
313 writel(0x00000000, &axi_qos->qosthres2);
314 writel(0x00000001, &axi_qos->qosqon);
315
316 axi_qos = (struct rcar_axi_qos *)SYS_AXI_SDS1_BASE;
317 writel(0x00000000, &axi_qos->qosconf);
318 writel(0x000020A6, &axi_qos->qosctset0);
319 writel(0x00000001, &axi_qos->qosreqctr);
320 writel(0x00002064, &axi_qos->qosthres0);
321 writel(0x00002004, &axi_qos->qosthres1);
322 writel(0x00000000, &axi_qos->qosthres2);
323 writel(0x00000001, &axi_qos->qosqon);
324
325 axi_qos = (struct rcar_axi_qos *)SYS_AXI_USB20_BASE;
326 writel(0x00000000, &axi_qos->qosconf);
327 writel(0x00002053, &axi_qos->qosctset0);
328 writel(0x00000001, &axi_qos->qosreqctr);
329 writel(0x00002064, &axi_qos->qosthres0);
330 writel(0x00002004, &axi_qos->qosthres1);
331 writel(0x00000000, &axi_qos->qosthres2);
332 writel(0x00000001, &axi_qos->qosqon);
333
334 axi_qos = (struct rcar_axi_qos *)SYS_AXI_USB22_BASE;
335 writel(0x00000000, &axi_qos->qosconf);
336 writel(0x00002053, &axi_qos->qosctset0);
337 writel(0x00000001, &axi_qos->qosreqctr);
338 writel(0x00002064, &axi_qos->qosthres0);
339 writel(0x00002004, &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_AX2M_BASE;
344 writel(0x00000002, &axi_qos->qosconf);
345 writel(0x00002245, &axi_qos->qosctset0);
346 writel(0x00000001, &axi_qos->qosreqctr);
347 writel(0x00002064, &axi_qos->qosthres0);
348 writel(0x00002004, &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_CC50_BASE;
353 writel(0x00000000, &axi_qos->qosconf);
354 writel(0x00002029, &axi_qos->qosctset0);
355 writel(0x00000001, &axi_qos->qosreqctr);
356 writel(0x00002064, &axi_qos->qosthres0);
357 writel(0x00002004, &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_CCI_BASE;
362 writel(0x00000002, &axi_qos->qosconf);
363 writel(0x00002245, &axi_qos->qosctset0);
364 writel(0x00000001, &axi_qos->qosreqctr);
365 writel(0x00002064, &axi_qos->qosthres0);
366 writel(0x00002004, &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_CS_BASE;
371 writel(0x00000000, &axi_qos->qosconf);
372 writel(0x00002053, &axi_qos->qosctset0);
373 writel(0x00000001, &axi_qos->qosreqctr);
374 writel(0x00002064, &axi_qos->qosthres0);
375 writel(0x00002004, &axi_qos->qosthres1);
376 writel(0x00000000, &axi_qos->qosthres2);
377 writel(0x00000001, &axi_qos->qosqon);
378
379 axi_qos = (struct rcar_axi_qos *)SYS_AXI_DDM_BASE;
380 writel(0x00000000, &axi_qos->qosconf);
381 writel(0x000020A6, &axi_qos->qosctset0);
382 writel(0x00000001, &axi_qos->qosreqctr);
383 writel(0x00002064, &axi_qos->qosthres0);
384 writel(0x00002004, &axi_qos->qosthres1);
385 writel(0x00000000, &axi_qos->qosthres2);
386 writel(0x00000001, &axi_qos->qosqon);
387
388 axi_qos = (struct rcar_axi_qos *)SYS_AXI_ETH_BASE;
389 writel(0x00000000, &axi_qos->qosconf);
390 writel(0x00002053, &axi_qos->qosctset0);
391 writel(0x00000001, &axi_qos->qosreqctr);
392 writel(0x00002064, &axi_qos->qosthres0);
393 writel(0x00002004, &axi_qos->qosthres1);
394 writel(0x00000000, &axi_qos->qosthres2);
395 writel(0x00000001, &axi_qos->qosqon);
396
397 axi_qos = (struct rcar_axi_qos *)SYS_AXI_MPXM_BASE;
398 writel(0x00000002, &axi_qos->qosconf);
399 writel(0x00002245, &axi_qos->qosctset0);
400 writel(0x00000001, &axi_qos->qosreqctr);
401 writel(0x00002064, &axi_qos->qosthres0);
402 writel(0x00002004, &axi_qos->qosthres1);
403 writel(0x00000000, &axi_qos->qosthres2);
404 writel(0x00000001, &axi_qos->qosqon);
405
406 axi_qos = (struct rcar_axi_qos *)SYS_AXI_SDM0_BASE;
407 writel(0x00000000, &axi_qos->qosconf);
408 writel(0x0000214C, &axi_qos->qosctset0);
409 writel(0x00000001, &axi_qos->qosreqctr);
410 writel(0x00002064, &axi_qos->qosthres0);
411 writel(0x00002004, &axi_qos->qosthres1);
412 writel(0x00000000, &axi_qos->qosthres2);
413 writel(0x00000001, &axi_qos->qosqon);
414
415 axi_qos = (struct rcar_axi_qos *)SYS_AXI_SDM1_BASE;
416 writel(0x00000000, &axi_qos->qosconf);
417 writel(0x0000214C, &axi_qos->qosctset0);
418 writel(0x00000001, &axi_qos->qosreqctr);
419 writel(0x00002064, &axi_qos->qosthres0);
420 writel(0x00002004, &axi_qos->qosthres1);
421 writel(0x00000000, &axi_qos->qosthres2);
422 writel(0x00000001, &axi_qos->qosqon);
423
424 axi_qos = (struct rcar_axi_qos *)SYS_AXI_TRAB_BASE;
425 writel(0x00000000, &axi_qos->qosconf);
426 writel(0x000020A6, &axi_qos->qosctset0);
427 writel(0x00000001, &axi_qos->qosreqctr);
428 writel(0x00002064, &axi_qos->qosthres0);
429 writel(0x00002004, &axi_qos->qosthres1);
430 writel(0x00000000, &axi_qos->qosthres2);
431 writel(0x00000001, &axi_qos->qosqon);
432
433 axi_qos = (struct rcar_axi_qos *)SYS_AXI_UDM0_BASE;
434 writel(0x00000000, &axi_qos->qosconf);
435 writel(0x00002053, &axi_qos->qosctset0);
436 writel(0x00000001, &axi_qos->qosreqctr);
437 writel(0x00002064, &axi_qos->qosthres0);
438 writel(0x00002004, &axi_qos->qosthres1);
439 writel(0x00000000, &axi_qos->qosthres2);
440 writel(0x00000001, &axi_qos->qosqon);
441
442 axi_qos = (struct rcar_axi_qos *)SYS_AXI_UDM1_BASE;
443 writel(0x00000000, &axi_qos->qosconf);
444 writel(0x00002053, &axi_qos->qosctset0);
445 writel(0x00000001, &axi_qos->qosreqctr);
446 writel(0x00002064, &axi_qos->qosthres0);
447 writel(0x00002004, &axi_qos->qosthres1);
448 writel(0x00000000, &axi_qos->qosthres2);
449 writel(0x00000001, &axi_qos->qosqon);
450
451 /* QoS Register (RT-AXI) */
452 axi_qos = (struct rcar_axi_qos *)RT_AXI_SHX_BASE;
453 writel(0x00000000, &axi_qos->qosconf);
454 writel(0x00002053, &axi_qos->qosctset0);
455 writel(0x00002096, &axi_qos->qosctset1);
456 writel(0x00002030, &axi_qos->qosctset2);
457 writel(0x00002030, &axi_qos->qosctset3);
458 writel(0x00000001, &axi_qos->qosreqctr);
459 writel(0x00002064, &axi_qos->qosthres0);
460 writel(0x00002004, &axi_qos->qosthres1);
461 writel(0x00000000, &axi_qos->qosthres2);
462 writel(0x00000001, &axi_qos->qosqon);
463
464 axi_qos = (struct rcar_axi_qos *)RT_AXI_DBG_BASE;
465 writel(0x00000000, &axi_qos->qosconf);
466 writel(0x00002053, &axi_qos->qosctset0);
467 writel(0x00002096, &axi_qos->qosctset1);
468 writel(0x00002030, &axi_qos->qosctset2);
469 writel(0x00002030, &axi_qos->qosctset3);
470 writel(0x00000001, &axi_qos->qosreqctr);
471 writel(0x00002064, &axi_qos->qosthres0);
472 writel(0x00002004, &axi_qos->qosthres1);
473 writel(0x00000000, &axi_qos->qosthres2);
474 writel(0x00000001, &axi_qos->qosqon);
475
476 axi_qos = (struct rcar_axi_qos *)RT_AXI_RTX64TO128_BASE;
477 writel(0x00000002, &axi_qos->qosconf);
478 writel(0x00002245, &axi_qos->qosctset0);
479 writel(0x00002096, &axi_qos->qosctset1);
480 writel(0x00002030, &axi_qos->qosctset2);
481 writel(0x00002030, &axi_qos->qosctset3);
482 writel(0x00000001, &axi_qos->qosreqctr);
483 writel(0x00002064, &axi_qos->qosthres0);
484 writel(0x00002004, &axi_qos->qosthres1);
485 writel(0x00000000, &axi_qos->qosthres2);
486 writel(0x00000001, &axi_qos->qosqon);
487
488 axi_qos = (struct rcar_axi_qos *)RT_AXI_SY2RT_BASE;
489 writel(0x00000002, &axi_qos->qosconf);
490 writel(0x00002245, &axi_qos->qosctset0);
491 writel(0x00000001, &axi_qos->qosreqctr);
492 writel(0x00002064, &axi_qos->qosthres0);
493 writel(0x00002004, &axi_qos->qosthres1);
494 writel(0x00000000, &axi_qos->qosthres2);
495 writel(0x00000001, &axi_qos->qosqon);
496
497 /* QoS Register (MP-AXI) */
498 axi_qos = (struct rcar_axi_qos *)MP_AXI_ADSP_BASE;
499 writel(0x00000000, &axi_qos->qosconf);
500 writel(0x00002037, &axi_qos->qosctset0);
501 writel(0x00000001, &axi_qos->qosreqctr);
502 writel(0x00002064, &axi_qos->qosthres0);
503 writel(0x00002004, &axi_qos->qosthres1);
504 writel(0x00000000, &axi_qos->qosthres2);
505 writel(0x00000001, &axi_qos->qosqon);
506
507 axi_qos = (struct rcar_axi_qos *)MP_AXI_ASDS0_BASE;
508 writel(0x00000001, &axi_qos->qosconf);
509 writel(0x00002014, &axi_qos->qosctset0);
510 writel(0x00000040, &axi_qos->qosreqctr);
511 writel(0x00002064, &axi_qos->qosthres0);
512 writel(0x00002004, &axi_qos->qosthres1);
513 writel(0x00000000, &axi_qos->qosthres2);
514 writel(0x00000001, &axi_qos->qosqon);
515
516 axi_qos = (struct rcar_axi_qos *)MP_AXI_ASDS1_BASE;
517 writel(0x00000001, &axi_qos->qosconf);
518 writel(0x00002014, &axi_qos->qosctset0);
519 writel(0x00000040, &axi_qos->qosreqctr);
520 writel(0x00002064, &axi_qos->qosthres0);
521 writel(0x00002004, &axi_qos->qosthres1);
522 writel(0x00000000, &axi_qos->qosthres2);
523 writel(0x00000001, &axi_qos->qosqon);
524
525 axi_qos = (struct rcar_axi_qos *)MP_AXI_MLP_BASE;
526 writel(0x00000001, &axi_qos->qosconf);
527 writel(0x00001FF0, &axi_qos->qosctset0);
528 writel(0x00000020, &axi_qos->qosreqctr);
529 writel(0x00002064, &axi_qos->qosthres0);
530 writel(0x00002004, &axi_qos->qosthres1);
531 writel(0x00002001, &axi_qos->qosthres2);
532 writel(0x00000001, &axi_qos->qosqon);
533
534 axi_qos = (struct rcar_axi_qos *)MP_AXI_MMUMP_BASE;
535 writel(0x00000001, &axi_qos->qosconf);
536 writel(0x00002004, &axi_qos->qosctset0);
537 writel(0x00002096, &axi_qos->qosctset1);
538 writel(0x00002030, &axi_qos->qosctset2);
539 writel(0x00002030, &axi_qos->qosctset3);
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 *)MP_AXI_SPU_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 axi_qos = (struct rcar_axi_qos *)MP_AXI_SPUC_BASE;
556 writel(0x00000000, &axi_qos->qosconf);
557 writel(0x0000206E, &axi_qos->qosctset0);
558 writel(0x00000001, &axi_qos->qosreqctr);
559 writel(0x00002064, &axi_qos->qosthres0);
560 writel(0x00002004, &axi_qos->qosthres1);
561 writel(0x00000000, &axi_qos->qosthres2);
562 writel(0x00000001, &axi_qos->qosqon);
563
564 /* QoS Register (SYS-AXI256) */
565 axi_qos = (struct rcar_axi_qos *)SYS_AXI256_AXI128TO256_BASE;
566 writel(0x00000002, &axi_qos->qosconf);
567 writel(0x000020EB, &axi_qos->qosctset0);
568 writel(0x00002096, &axi_qos->qosctset1);
569 writel(0x00002030, &axi_qos->qosctset2);
570 writel(0x00002030, &axi_qos->qosctset3);
571 writel(0x00000001, &axi_qos->qosreqctr);
572 writel(0x00002064, &axi_qos->qosthres0);
573 writel(0x00002004, &axi_qos->qosthres1);
574 writel(0x00000000, &axi_qos->qosthres2);
575 writel(0x00000001, &axi_qos->qosqon);
576
577 axi_qos = (struct rcar_axi_qos *)SYS_AXI256_SYX_BASE;
578 writel(0x00000002, &axi_qos->qosconf);
579 writel(0x000020EB, &axi_qos->qosctset0);
580 writel(0x00002096, &axi_qos->qosctset1);
581 writel(0x00002030, &axi_qos->qosctset2);
582 writel(0x00002030, &axi_qos->qosctset3);
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 *)SYS_AXI256_MPX_BASE;
590 writel(0x00000002, &axi_qos->qosconf);
591 writel(0x000020EB, &axi_qos->qosctset0);
592 writel(0x00002096, &axi_qos->qosctset1);
593 writel(0x00002030, &axi_qos->qosctset2);
594 writel(0x00002030, &axi_qos->qosctset3);
595 writel(0x00000001, &axi_qos->qosreqctr);
596 writel(0x00002064, &axi_qos->qosthres0);
597 writel(0x00002004, &axi_qos->qosthres1);
598 writel(0x00000000, &axi_qos->qosthres2);
599 writel(0x00000001, &axi_qos->qosqon);
600
601 axi_qos = (struct rcar_axi_qos *)SYS_AXI256_MXI_BASE;
602 writel(0x00000002, &axi_qos->qosconf);
603 writel(0x000020EB, &axi_qos->qosctset0);
604 writel(0x00002096, &axi_qos->qosctset1);
605 writel(0x00002030, &axi_qos->qosctset2);
606 writel(0x00002030, &axi_qos->qosctset3);
607 writel(0x00000001, &axi_qos->qosreqctr);
608 writel(0x00002064, &axi_qos->qosthres0);
609 writel(0x00002004, &axi_qos->qosthres1);
610 writel(0x00000000, &axi_qos->qosthres2);
611 writel(0x00000001, &axi_qos->qosqon);
612
613 /* QoS Register (CCI-AXI) */
614 axi_qos = (struct rcar_axi_qos *)CCI_AXI_MMUS0_BASE;
615 writel(0x00000001, &axi_qos->qosconf);
616 writel(0x00002004, &axi_qos->qosctset0);
617 writel(0x00002096, &axi_qos->qosctset1);
618 writel(0x00002030, &axi_qos->qosctset2);
619 writel(0x00002030, &axi_qos->qosctset3);
620 writel(0x00000001, &axi_qos->qosreqctr);
621 writel(0x00002064, &axi_qos->qosthres0);
622 writel(0x00002004, &axi_qos->qosthres1);
623 writel(0x00000000, &axi_qos->qosthres2);
624 writel(0x00000001, &axi_qos->qosqon);
625
626 axi_qos = (struct rcar_axi_qos *)CCI_AXI_SYX2_BASE;
627 writel(0x00000002, &axi_qos->qosconf);
628 writel(0x00002245, &axi_qos->qosctset0);
629 writel(0x00002096, &axi_qos->qosctset1);
630 writel(0x00002030, &axi_qos->qosctset2);
631 writel(0x00002030, &axi_qos->qosctset3);
632 writel(0x00000001, &axi_qos->qosreqctr);
633 writel(0x00002064, &axi_qos->qosthres0);
634 writel(0x00002004, &axi_qos->qosthres1);
635 writel(0x00000000, &axi_qos->qosthres2);
636 writel(0x00000001, &axi_qos->qosqon);
637
638 axi_qos = (struct rcar_axi_qos *)CCI_AXI_MMUR_BASE;
639 writel(0x00000001, &axi_qos->qosconf);
640 writel(0x00002004, &axi_qos->qosctset0);
641 writel(0x00002096, &axi_qos->qosctset1);
642 writel(0x00002030, &axi_qos->qosctset2);
643 writel(0x00002030, &axi_qos->qosctset3);
644 writel(0x00000001, &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 *)CCI_AXI_MMUDS_BASE;
651 writel(0x00000001, &axi_qos->qosconf);
652 writel(0x00002004, &axi_qos->qosctset0);
653 writel(0x00002096, &axi_qos->qosctset1);
654 writel(0x00002030, &axi_qos->qosctset2);
655 writel(0x00002030, &axi_qos->qosctset3);
656 writel(0x00000001, &axi_qos->qosreqctr);
657 writel(0x00002064, &axi_qos->qosthres0);
658 writel(0x00002004, &axi_qos->qosthres1);
659 writel(0x00000000, &axi_qos->qosthres2);
660 writel(0x00000001, &axi_qos->qosqon);
661
662 axi_qos = (struct rcar_axi_qos *)CCI_AXI_MMUM_BASE;
663 writel(0x00000001, &axi_qos->qosconf);
664 writel(0x00002004, &axi_qos->qosctset0);
665 writel(0x00002096, &axi_qos->qosctset1);
666 writel(0x00002030, &axi_qos->qosctset2);
667 writel(0x00002030, &axi_qos->qosctset3);
668 writel(0x00000001, &axi_qos->qosreqctr);
669 writel(0x00002064, &axi_qos->qosthres0);
670 writel(0x00002004, &axi_qos->qosthres1);
671 writel(0x00000000, &axi_qos->qosthres2);
672 writel(0x00000001, &axi_qos->qosqon);
673
674 axi_qos = (struct rcar_axi_qos *)CCI_AXI_MXI_BASE;
675 writel(0x00000002, &axi_qos->qosconf);
676 writel(0x00002245, &axi_qos->qosctset0);
677 writel(0x00002096, &axi_qos->qosctset1);
678 writel(0x00002030, &axi_qos->qosctset2);
679 writel(0x00002030, &axi_qos->qosctset3);
680 writel(0x00000001, &axi_qos->qosreqctr);
681 writel(0x00002064, &axi_qos->qosthres0);
682 writel(0x00002004, &axi_qos->qosthres1);
683 writel(0x00000000, &axi_qos->qosthres2);
684 writel(0x00000001, &axi_qos->qosqon);
685
686 axi_qos = (struct rcar_axi_qos *)CCI_AXI_MMUS1_BASE;
687 writel(0x00000001, &axi_qos->qosconf);
688 writel(0x00002004, &axi_qos->qosctset0);
689 writel(0x00002096, &axi_qos->qosctset1);
690 writel(0x00002030, &axi_qos->qosctset2);
691 writel(0x00002030, &axi_qos->qosctset3);
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 axi_qos = (struct rcar_axi_qos *)CCI_AXI_MMUMP_BASE;
699 writel(0x00000001, &axi_qos->qosconf);
700 writel(0x00002004, &axi_qos->qosctset0);
701 writel(0x00002096, &axi_qos->qosctset1);
702 writel(0x00002030, &axi_qos->qosctset2);
703 writel(0x00002030, &axi_qos->qosctset3);
704 writel(0x00000001, &axi_qos->qosreqctr);
705 writel(0x00002064, &axi_qos->qosthres0);
706 writel(0x00002004, &axi_qos->qosthres1);
707 writel(0x00000000, &axi_qos->qosthres2);
708 writel(0x00000001, &axi_qos->qosqon);
709
710 /* QoS Register (Media-AXI) */
711 axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_MXR_BASE;
712 writel(0x00000002, &axi_qos->qosconf);
713 writel(0x000020DC, &axi_qos->qosctset0);
714 writel(0x00002096, &axi_qos->qosctset1);
715 writel(0x00002030, &axi_qos->qosctset2);
716 writel(0x00002030, &axi_qos->qosctset3);
717 writel(0x00000020, &axi_qos->qosreqctr);
718 writel(0x000020AA, &axi_qos->qosthres0);
719 writel(0x00002032, &axi_qos->qosthres1);
720 writel(0x00000001, &axi_qos->qosthres2);
721
722 axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_MXW_BASE;
723 writel(0x00000002, &axi_qos->qosconf);
724 writel(0x000020DC, &axi_qos->qosctset0);
725 writel(0x00002096, &axi_qos->qosctset1);
726 writel(0x00002030, &axi_qos->qosctset2);
727 writel(0x00002030, &axi_qos->qosctset3);
728 writel(0x00000020, &axi_qos->qosreqctr);
729 writel(0x000020AA, &axi_qos->qosthres0);
730 writel(0x00002032, &axi_qos->qosthres1);
731 writel(0x00000001, &axi_qos->qosthres2);
732
733 axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_TDMR_BASE;
734 writel(0x00000001, &axi_qos->qosconf);
735 writel(0x00002190, &axi_qos->qosctset0);
736 writel(0x00000020, &axi_qos->qosreqctr);
737 writel(0x00002064, &axi_qos->qosthres0);
738 writel(0x00002004, &axi_qos->qosthres1);
739 writel(0x00000001, &axi_qos->qosthres2);
740 writel(0x00000001, &axi_qos->qosqon);
741
742 axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_TDMW_BASE;
743 writel(0x00000001, &axi_qos->qosconf);
744 writel(0x00002190, &axi_qos->qosctset0);
745 writel(0x00000020, &axi_qos->qosreqctr);
746 writel(0x00000001, &axi_qos->qosthres0);
747 writel(0x00000001, &axi_qos->qosthres1);
748 writel(0x00000001, &axi_qos->qosthres2);
749 writel(0x00000001, &axi_qos->qosqon);
750
751 axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSP1CR_BASE;
752 writel(0x00000001, &axi_qos->qosconf);
753 writel(0x00002190, &axi_qos->qosctset0);
754 writel(0x00000020, &axi_qos->qosreqctr);
755 writel(0x00002064, &axi_qos->qosthres0);
756 writel(0x00002004, &axi_qos->qosthres1);
757 writel(0x00000001, &axi_qos->qosthres2);
758 writel(0x00000001, &axi_qos->qosqon);
759
760 axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSP1CW_BASE;
761 writel(0x00000001, &axi_qos->qosconf);
762 writel(0x00002190, &axi_qos->qosctset0);
763 writel(0x00000020, &axi_qos->qosreqctr);
764 writel(0x00000001, &axi_qos->qosthres0);
765 writel(0x00000001, &axi_qos->qosthres1);
766 writel(0x00000001, &axi_qos->qosthres2);
767 writel(0x00000001, &axi_qos->qosqon);
768
769 axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSPDU0CR_BASE;
770 writel(0x00000001, &axi_qos->qosconf);
771 writel(0x00002190, &axi_qos->qosctset0);
772 writel(0x00000020, &axi_qos->qosreqctr);
773 writel(0x00002064, &axi_qos->qosthres0);
774 writel(0x00002004, &axi_qos->qosthres1);
775 writel(0x00000001, &axi_qos->qosthres2);
776 writel(0x00000001, &axi_qos->qosqon);
777
778 axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSPDU0CW_BASE;
779 writel(0x00000001, &axi_qos->qosconf);
780 writel(0x00002190, &axi_qos->qosctset0);
781 writel(0x00000020, &axi_qos->qosreqctr);
782 writel(0x00000001, &axi_qos->qosthres0);
783 writel(0x00000001, &axi_qos->qosthres1);
784 writel(0x00000001, &axi_qos->qosthres2);
785 writel(0x00000001, &axi_qos->qosqon);
786
787 axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VIN0W_BASE;
788 writel(0x00000001, &axi_qos->qosconf);
789 writel(0x00001FF0, &axi_qos->qosctset0);
790 writel(0x00000020, &axi_qos->qosreqctr);
791 writel(0x00002064, &axi_qos->qosthres0);
792 writel(0x00002004, &axi_qos->qosthres1);
793 writel(0x00002001, &axi_qos->qosthres2);
794 writel(0x00000001, &axi_qos->qosqon);
795
796 axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_FDP0R_BASE;
797 writel(0x00000001, &axi_qos->qosconf);
798 writel(0x000020C8, &axi_qos->qosctset0);
799 writel(0x00000020, &axi_qos->qosreqctr);
800 writel(0x00002064, &axi_qos->qosthres0);
801 writel(0x00002004, &axi_qos->qosthres1);
802 writel(0x00000001, &axi_qos->qosthres2);
803 writel(0x00000001, &axi_qos->qosqon);
804
805 axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_FDP0W_BASE;
806 writel(0x00000001, &axi_qos->qosconf);
807 writel(0x000020C8, &axi_qos->qosctset0);
808 writel(0x00000020, &axi_qos->qosreqctr);
809 writel(0x00000001, &axi_qos->qosthres0);
810 writel(0x00000001, &axi_qos->qosthres1);
811 writel(0x00000001, &axi_qos->qosthres2);
812 writel(0x00000001, &axi_qos->qosqon);
813
814 axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_IMSR_BASE;
815 writel(0x00000001, &axi_qos->qosconf);
816 writel(0x000020C8, &axi_qos->qosctset0);
817 writel(0x00000020, &axi_qos->qosreqctr);
818 writel(0x00002064, &axi_qos->qosthres0);
819 writel(0x00002004, &axi_qos->qosthres1);
820 writel(0x00000001, &axi_qos->qosthres2);
821 writel(0x00000001, &axi_qos->qosqon);
822
823 axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_IMSW_BASE;
824 writel(0x00000001, &axi_qos->qosconf);
825 writel(0x000020C8, &axi_qos->qosctset0);
826 writel(0x00000020, &axi_qos->qosreqctr);
827 writel(0x00002064, &axi_qos->qosthres0);
828 writel(0x00002004, &axi_qos->qosthres1);
829 writel(0x00000001, &axi_qos->qosthres2);
830 writel(0x00000001, &axi_qos->qosqon);
831
832 axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSP1R_BASE;
833 writel(0x00000001, &axi_qos->qosconf);
834 writel(0x000020C8, &axi_qos->qosctset0);
835 writel(0x00000020, &axi_qos->qosreqctr);
836 writel(0x00002064, &axi_qos->qosthres0);
837 writel(0x00002004, &axi_qos->qosthres1);
838 writel(0x00000001, &axi_qos->qosthres2);
839 writel(0x00000001, &axi_qos->qosqon);
840
841 axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSP1W_BASE;
842 writel(0x00000001, &axi_qos->qosconf);
843 writel(0x000020C8, &axi_qos->qosctset0);
844 writel(0x00000020, &axi_qos->qosreqctr);
845 writel(0x00000001, &axi_qos->qosthres0);
846 writel(0x00000001, &axi_qos->qosthres1);
847 writel(0x00000001, &axi_qos->qosthres2);
848 writel(0x00000001, &axi_qos->qosqon);
849
850 axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_IMRR_BASE;
851 writel(0x00000001, &axi_qos->qosconf);
852 writel(0x000020C8, &axi_qos->qosctset0);
853 writel(0x00000020, &axi_qos->qosreqctr);
854 writel(0x00002064, &axi_qos->qosthres0);
855 writel(0x00002004, &axi_qos->qosthres1);
856 writel(0x00000001, &axi_qos->qosthres2);
857 writel(0x00000001, &axi_qos->qosqon);
858
859 axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_IMRW_BASE;
860 writel(0x00000001, &axi_qos->qosconf);
861 writel(0x000020C8, &axi_qos->qosctset0);
862 writel(0x00000020, &axi_qos->qosreqctr);
863 writel(0x00002064, &axi_qos->qosthres0);
864 writel(0x00002004, &axi_qos->qosthres1);
865 writel(0x00000001, &axi_qos->qosthres2);
866 writel(0x00000001, &axi_qos->qosqon);
867
868 axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSPD0R_BASE;
869 writel(0x00000003, &axi_qos->qosconf);
870 writel(0x000020C8, &axi_qos->qosctset0);
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_VSPD0W_BASE;
877 writel(0x00000003, &axi_qos->qosconf);
878 writel(0x000020C8, &axi_qos->qosctset0);
879 writel(0x00002064, &axi_qos->qosthres0);
880 writel(0x00002004, &axi_qos->qosthres1);
881 writel(0x00000001, &axi_qos->qosthres2);
882 writel(0x00000001, &axi_qos->qosqon);
883
884 axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_DU0R_BASE;
885 writel(0x00000003, &axi_qos->qosconf);
886 writel(0x00002063, &axi_qos->qosctset0);
887 writel(0x00000001, &axi_qos->qosreqctr);
888 writel(0x00002064, &axi_qos->qosthres0);
889 writel(0x00002004, &axi_qos->qosthres1);
890 writel(0x00000001, &axi_qos->qosthres2);
891 writel(0x00000001, &axi_qos->qosqon);
892
893 axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_DU0W_BASE;
894 writel(0x00000003, &axi_qos->qosconf);
895 writel(0x00002063, &axi_qos->qosctset0);
896 writel(0x00000001, &axi_qos->qosreqctr);
897 writel(0x00002064, &axi_qos->qosthres0);
898 writel(0x00002004, &axi_qos->qosthres1);
899 writel(0x00000001, &axi_qos->qosthres2);
900 writel(0x00000001, &axi_qos->qosqon);
901
902 axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VCP0CR_BASE;
903 writel(0x00000001, &axi_qos->qosconf);
904 writel(0x00002073, &axi_qos->qosctset0);
905 writel(0x00000020, &axi_qos->qosreqctr);
906 writel(0x00002064, &axi_qos->qosthres0);
907 writel(0x00002004, &axi_qos->qosthres1);
908 writel(0x00000001, &axi_qos->qosthres2);
909 writel(0x00000001, &axi_qos->qosqon);
910
911 axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VCP0CW_BASE;
912 writel(0x00000001, &axi_qos->qosconf);
913 writel(0x00002073, &axi_qos->qosctset0);
914 writel(0x00000020, &axi_qos->qosreqctr);
915 writel(0x00000001, &axi_qos->qosthres0);
916 writel(0x00000001, &axi_qos->qosthres1);
917 writel(0x00000001, &axi_qos->qosthres2);
918 writel(0x00000001, &axi_qos->qosqon);
919
920 axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VCP0VR_BASE;
921 writel(0x00000001, &axi_qos->qosconf);
922 writel(0x00002073, &axi_qos->qosctset0);
923 writel(0x00000020, &axi_qos->qosreqctr);
924 writel(0x00002064, &axi_qos->qosthres0);
925 writel(0x00002004, &axi_qos->qosthres1);
926 writel(0x00000001, &axi_qos->qosthres2);
927 writel(0x00000001, &axi_qos->qosqon);
928
929 axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VCP0VW_BASE;
930 writel(0x00000001, &axi_qos->qosconf);
931 writel(0x00002073, &axi_qos->qosctset0);
932 writel(0x00000020, &axi_qos->qosreqctr);
933 writel(0x00000001, &axi_qos->qosthres0);
934 writel(0x00000001, &axi_qos->qosthres1);
935 writel(0x00000001, &axi_qos->qosthres2);
936 writel(0x00000001, &axi_qos->qosqon);
937
938 axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VPC0R_BASE;
939 writel(0x00000001, &axi_qos->qosconf);
940 writel(0x00002073, &axi_qos->qosctset0);
941 writel(0x00000020, &axi_qos->qosreqctr);
942 writel(0x00002064, &axi_qos->qosthres0);
943 writel(0x00002004, &axi_qos->qosthres1);
944 writel(0x00000001, &axi_qos->qosthres2);
945 writel(0x00000001, &axi_qos->qosqon);
946}
947#else /* CONFIG_RMOBILE_EXTRAM_BOOT */
948void qos_init(void)
949{
950}
951#endif /* CONFIG_RMOBILE_EXTRAM_BOOT */