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