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