121871138SVladimir Barinov /* 221871138SVladimir Barinov * board/renesas/stout/qos.c 321871138SVladimir Barinov * 421871138SVladimir Barinov * Copyright (C) 2015 Renesas Electronics Europe GmbH 521871138SVladimir Barinov * Copyright (C) 2015 Renesas Electronics Corporation 621871138SVladimir Barinov * Copyright (C) 2015 Cogent Embedded, Inc. 721871138SVladimir Barinov * 821871138SVladimir Barinov * SPDX-License-Identifier: GPL-2.0 921871138SVladimir Barinov */ 1021871138SVladimir Barinov 1121871138SVladimir Barinov #include <common.h> 1221871138SVladimir Barinov #include <asm/processor.h> 1321871138SVladimir Barinov #include <asm/mach-types.h> 1421871138SVladimir Barinov #include <asm/io.h> 1521871138SVladimir Barinov #include <asm/arch/rmobile.h> 1621871138SVladimir Barinov 1721871138SVladimir Barinov /* QoS version 0.955 for ES1 and version 0.973 for ES2 */ 18*1cc95f6eSNobuhiro Iwamatsu #if defined(CONFIG_ARCH_RMOBILE_EXTRAM_BOOT) 1921871138SVladimir Barinov enum { 2021871138SVladimir Barinov DBSC3_00, DBSC3_01, DBSC3_02, DBSC3_03, DBSC3_04, 2121871138SVladimir Barinov DBSC3_05, DBSC3_06, DBSC3_07, DBSC3_08, DBSC3_09, 2221871138SVladimir Barinov DBSC3_10, DBSC3_11, DBSC3_12, DBSC3_13, DBSC3_14, 2321871138SVladimir Barinov DBSC3_15, 2421871138SVladimir Barinov DBSC3_NR, 2521871138SVladimir Barinov }; 2621871138SVladimir Barinov 2721871138SVladimir Barinov static u32 dbsc3_0_r_qos_addr[DBSC3_NR] = { 2821871138SVladimir Barinov [DBSC3_00] = DBSC3_0_QOS_R0_BASE, 2921871138SVladimir Barinov [DBSC3_01] = DBSC3_0_QOS_R1_BASE, 3021871138SVladimir Barinov [DBSC3_02] = DBSC3_0_QOS_R2_BASE, 3121871138SVladimir Barinov [DBSC3_03] = DBSC3_0_QOS_R3_BASE, 3221871138SVladimir Barinov [DBSC3_04] = DBSC3_0_QOS_R4_BASE, 3321871138SVladimir Barinov [DBSC3_05] = DBSC3_0_QOS_R5_BASE, 3421871138SVladimir Barinov [DBSC3_06] = DBSC3_0_QOS_R6_BASE, 3521871138SVladimir Barinov [DBSC3_07] = DBSC3_0_QOS_R7_BASE, 3621871138SVladimir Barinov [DBSC3_08] = DBSC3_0_QOS_R8_BASE, 3721871138SVladimir Barinov [DBSC3_09] = DBSC3_0_QOS_R9_BASE, 3821871138SVladimir Barinov [DBSC3_10] = DBSC3_0_QOS_R10_BASE, 3921871138SVladimir Barinov [DBSC3_11] = DBSC3_0_QOS_R11_BASE, 4021871138SVladimir Barinov [DBSC3_12] = DBSC3_0_QOS_R12_BASE, 4121871138SVladimir Barinov [DBSC3_13] = DBSC3_0_QOS_R13_BASE, 4221871138SVladimir Barinov [DBSC3_14] = DBSC3_0_QOS_R14_BASE, 4321871138SVladimir Barinov [DBSC3_15] = DBSC3_0_QOS_R15_BASE, 4421871138SVladimir Barinov }; 4521871138SVladimir Barinov 4621871138SVladimir Barinov static u32 dbsc3_0_w_qos_addr[DBSC3_NR] = { 4721871138SVladimir Barinov [DBSC3_00] = DBSC3_0_QOS_W0_BASE, 4821871138SVladimir Barinov [DBSC3_01] = DBSC3_0_QOS_W1_BASE, 4921871138SVladimir Barinov [DBSC3_02] = DBSC3_0_QOS_W2_BASE, 5021871138SVladimir Barinov [DBSC3_03] = DBSC3_0_QOS_W3_BASE, 5121871138SVladimir Barinov [DBSC3_04] = DBSC3_0_QOS_W4_BASE, 5221871138SVladimir Barinov [DBSC3_05] = DBSC3_0_QOS_W5_BASE, 5321871138SVladimir Barinov [DBSC3_06] = DBSC3_0_QOS_W6_BASE, 5421871138SVladimir Barinov [DBSC3_07] = DBSC3_0_QOS_W7_BASE, 5521871138SVladimir Barinov [DBSC3_08] = DBSC3_0_QOS_W8_BASE, 5621871138SVladimir Barinov [DBSC3_09] = DBSC3_0_QOS_W9_BASE, 5721871138SVladimir Barinov [DBSC3_10] = DBSC3_0_QOS_W10_BASE, 5821871138SVladimir Barinov [DBSC3_11] = DBSC3_0_QOS_W11_BASE, 5921871138SVladimir Barinov [DBSC3_12] = DBSC3_0_QOS_W12_BASE, 6021871138SVladimir Barinov [DBSC3_13] = DBSC3_0_QOS_W13_BASE, 6121871138SVladimir Barinov [DBSC3_14] = DBSC3_0_QOS_W14_BASE, 6221871138SVladimir Barinov [DBSC3_15] = DBSC3_0_QOS_W15_BASE, 6321871138SVladimir Barinov }; 6421871138SVladimir Barinov 6521871138SVladimir Barinov /* QoS version 0.955 for ES1 */ 6621871138SVladimir Barinov static void qos_init_es1(void) 6721871138SVladimir Barinov { 6821871138SVladimir Barinov int i; 6921871138SVladimir Barinov struct rcar_s3c *s3c; 7021871138SVladimir Barinov struct rcar_s3c_qos *s3c_qos; 7121871138SVladimir Barinov struct rcar_dbsc3_qos *qos_addr; 7221871138SVladimir Barinov struct rcar_mxi *mxi; 7321871138SVladimir Barinov struct rcar_mxi_qos *mxi_qos; 7421871138SVladimir Barinov struct rcar_axi_qos *axi_qos; 7521871138SVladimir Barinov 7621871138SVladimir Barinov /* DBSC DBADJ2 */ 7721871138SVladimir Barinov writel(0x20042004, DBSC3_0_DBADJ2); 7821871138SVladimir Barinov 7921871138SVladimir Barinov /* S3C -QoS */ 8021871138SVladimir Barinov s3c = (struct rcar_s3c *)S3C_BASE; 8121871138SVladimir Barinov writel(0x80FF1C1E, &s3c->s3cadsplcr); 8221871138SVladimir Barinov writel(0x1F060505, &s3c->s3crorr); 8321871138SVladimir Barinov writel(0x1F020100, &s3c->s3cworr); 8421871138SVladimir Barinov 8521871138SVladimir Barinov /* QoS Control Registers */ 8621871138SVladimir Barinov s3c_qos = (struct rcar_s3c_qos *)S3C_QOS_CCI0_BASE; 8721871138SVladimir Barinov writel(0x00800080, &s3c_qos->s3cqos0); 8821871138SVladimir Barinov writel(0x22000010, &s3c_qos->s3cqos1); 8921871138SVladimir Barinov writel(0x22002200, &s3c_qos->s3cqos2); 9021871138SVladimir Barinov writel(0x2F002200, &s3c_qos->s3cqos3); 9121871138SVladimir Barinov writel(0x2F002F00, &s3c_qos->s3cqos4); 9221871138SVladimir Barinov writel(0x22000010, &s3c_qos->s3cqos5); 9321871138SVladimir Barinov writel(0x22002200, &s3c_qos->s3cqos6); 9421871138SVladimir Barinov writel(0x2F002200, &s3c_qos->s3cqos7); 9521871138SVladimir Barinov writel(0x2F002F00, &s3c_qos->s3cqos8); 9621871138SVladimir Barinov 9721871138SVladimir Barinov s3c_qos = (struct rcar_s3c_qos *)S3C_QOS_CCI1_BASE; 9821871138SVladimir Barinov writel(0x00800080, &s3c_qos->s3cqos0); 9921871138SVladimir Barinov writel(0x22000010, &s3c_qos->s3cqos1); 10021871138SVladimir Barinov writel(0x22002200, &s3c_qos->s3cqos2); 10121871138SVladimir Barinov writel(0x2F002200, &s3c_qos->s3cqos3); 10221871138SVladimir Barinov writel(0x2F002F00, &s3c_qos->s3cqos4); 10321871138SVladimir Barinov writel(0x22000010, &s3c_qos->s3cqos5); 10421871138SVladimir Barinov writel(0x22002200, &s3c_qos->s3cqos6); 10521871138SVladimir Barinov writel(0x2F002200, &s3c_qos->s3cqos7); 10621871138SVladimir Barinov writel(0x2F002F00, &s3c_qos->s3cqos8); 10721871138SVladimir Barinov 10821871138SVladimir Barinov s3c_qos = (struct rcar_s3c_qos *)S3C_QOS_MXI_BASE; 10921871138SVladimir Barinov writel(0x80918099, &s3c_qos->s3cqos0); 11021871138SVladimir Barinov writel(0x20410010, &s3c_qos->s3cqos1); 11121871138SVladimir Barinov writel(0x200A2023, &s3c_qos->s3cqos2); 11221871138SVladimir Barinov writel(0x20502001, &s3c_qos->s3cqos3); 11321871138SVladimir Barinov writel(0x00002032, &s3c_qos->s3cqos4); 11421871138SVladimir Barinov writel(0x20410FFF, &s3c_qos->s3cqos5); 11521871138SVladimir Barinov writel(0x200A2023, &s3c_qos->s3cqos6); 11621871138SVladimir Barinov writel(0x20502001, &s3c_qos->s3cqos7); 11721871138SVladimir Barinov writel(0x20142032, &s3c_qos->s3cqos8); 11821871138SVladimir Barinov 11921871138SVladimir Barinov s3c_qos = (struct rcar_s3c_qos *)S3C_QOS_AXI_BASE; 12021871138SVladimir Barinov writel(0x00810089, &s3c_qos->s3cqos0); 12121871138SVladimir Barinov writel(0x20410001, &s3c_qos->s3cqos1); 12221871138SVladimir Barinov writel(0x200A2023, &s3c_qos->s3cqos2); 12321871138SVladimir Barinov writel(0x20502001, &s3c_qos->s3cqos3); 12421871138SVladimir Barinov writel(0x00002032, &s3c_qos->s3cqos4); 12521871138SVladimir Barinov writel(0x20410FFF, &s3c_qos->s3cqos5); 12621871138SVladimir Barinov writel(0x200A2023, &s3c_qos->s3cqos6); 12721871138SVladimir Barinov writel(0x20502001, &s3c_qos->s3cqos7); 12821871138SVladimir Barinov writel(0x20142032, &s3c_qos->s3cqos8); 12921871138SVladimir Barinov 13021871138SVladimir Barinov writel(0x00200808, &s3c->s3carcr11); 13121871138SVladimir Barinov 13221871138SVladimir Barinov /* DBSC -QoS */ 13321871138SVladimir Barinov /* DBSC0 - Read */ 13421871138SVladimir Barinov for (i = DBSC3_00; i < DBSC3_NR; i++) { 13521871138SVladimir Barinov qos_addr = (struct rcar_dbsc3_qos *)dbsc3_0_r_qos_addr[i]; 13621871138SVladimir Barinov writel(0x00000203, &qos_addr->dblgcnt); 13721871138SVladimir Barinov writel(0x00002064, &qos_addr->dbtmval0); 13821871138SVladimir Barinov writel(0x00002048, &qos_addr->dbtmval1); 13921871138SVladimir Barinov writel(0x00002032, &qos_addr->dbtmval2); 14021871138SVladimir Barinov writel(0x00002019, &qos_addr->dbtmval3); 14121871138SVladimir Barinov writel(0x00000001, &qos_addr->dbrqctr); 14221871138SVladimir Barinov writel(0x00002019, &qos_addr->dbthres0); 14321871138SVladimir Barinov writel(0x00002019, &qos_addr->dbthres1); 14421871138SVladimir Barinov writel(0x00002019, &qos_addr->dbthres2); 14521871138SVladimir Barinov writel(0x00000000, &qos_addr->dblgqon); 14621871138SVladimir Barinov } 14721871138SVladimir Barinov 14821871138SVladimir Barinov /* DBSC0 - Write */ 14921871138SVladimir Barinov for (i = DBSC3_00; i < DBSC3_NR; i++) { 15021871138SVladimir Barinov qos_addr = (struct rcar_dbsc3_qos *)dbsc3_0_w_qos_addr[i]; 15121871138SVladimir Barinov writel(0x00000203, &qos_addr->dblgcnt); 15221871138SVladimir Barinov writel(0x00002064, &qos_addr->dbtmval0); 15321871138SVladimir Barinov writel(0x00002048, &qos_addr->dbtmval1); 15421871138SVladimir Barinov writel(0x00002032, &qos_addr->dbtmval2); 15521871138SVladimir Barinov writel(0x00002019, &qos_addr->dbtmval3); 15621871138SVladimir Barinov writel(0x00000001, &qos_addr->dbrqctr); 15721871138SVladimir Barinov writel(0x00002019, &qos_addr->dbthres0); 15821871138SVladimir Barinov writel(0x00002019, &qos_addr->dbthres1); 15921871138SVladimir Barinov writel(0x00002019, &qos_addr->dbthres2); 16021871138SVladimir Barinov writel(0x00000000, &qos_addr->dblgqon); 16121871138SVladimir Barinov } 16221871138SVladimir Barinov 16321871138SVladimir Barinov /* CCI-400 -QoS */ 16421871138SVladimir Barinov writel(0x20001000, CCI_400_MAXOT_1); 16521871138SVladimir Barinov writel(0x20001000, CCI_400_MAXOT_2); 16621871138SVladimir Barinov writel(0x0000000C, CCI_400_QOSCNTL_1); 16721871138SVladimir Barinov writel(0x0000000C, CCI_400_QOSCNTL_2); 16821871138SVladimir Barinov 16921871138SVladimir Barinov /* MXI -QoS */ 17021871138SVladimir Barinov /* Transaction Control (MXI) */ 17121871138SVladimir Barinov mxi = (struct rcar_mxi *)MXI_BASE; 17221871138SVladimir Barinov writel(0x00000013, &mxi->mxrtcr); 17321871138SVladimir Barinov writel(0x00000013, &mxi->mxwtcr); 17421871138SVladimir Barinov writel(0x00B800C0, &mxi->mxsaar0); 17521871138SVladimir Barinov writel(0x02000800, &mxi->mxsaar1); 17621871138SVladimir Barinov writel(0x00200000, &mxi->mxs3cracr); 17721871138SVladimir Barinov writel(0x00200000, &mxi->mxs3cwacr); 17821871138SVladimir Barinov writel(0x00200000, &mxi->mxaxiracr); 17921871138SVladimir Barinov writel(0x00200000, &mxi->mxaxiwacr); 18021871138SVladimir Barinov 18121871138SVladimir Barinov /* QoS Control (MXI) */ 18221871138SVladimir Barinov mxi_qos = (struct rcar_mxi_qos *)MXI_QOS_BASE; 18321871138SVladimir Barinov writel(0x0000000C, &mxi_qos->vspdu0); 18421871138SVladimir Barinov writel(0x0000000C, &mxi_qos->vspdu1); 18521871138SVladimir Barinov writel(0x0000000D, &mxi_qos->du0); 18621871138SVladimir Barinov writel(0x0000000D, &mxi_qos->du1); 18721871138SVladimir Barinov 18821871138SVladimir Barinov /* AXI -QoS */ 18921871138SVladimir Barinov /* Transaction Control (MXI) */ 19021871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)SYS_AXI_SYX64TO128_BASE; 19121871138SVladimir Barinov writel(0x00000002, &axi_qos->qosconf); 19221871138SVladimir Barinov writel(0x0000200F, &axi_qos->qosctset0); 19321871138SVladimir Barinov writel(0x00002009, &axi_qos->qosctset1); 19421871138SVladimir Barinov writel(0x00002003, &axi_qos->qosctset2); 19521871138SVladimir Barinov writel(0x00002003, &axi_qos->qosctset3); 19621871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 19721871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 19821871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 19921871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 20021871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 20121871138SVladimir Barinov 20221871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)SYS_AXI_AVB_BASE; 20321871138SVladimir Barinov writel(0x00000000, &axi_qos->qosconf); 20421871138SVladimir Barinov writel(0x0000200A, &axi_qos->qosctset0); 20521871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 20621871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 20721871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 20821871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 20921871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 21021871138SVladimir Barinov 21121871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)SYS_AXI_G2D_BASE; 21221871138SVladimir Barinov writel(0x00000000, &axi_qos->qosconf); 21321871138SVladimir Barinov writel(0x0000200A, &axi_qos->qosctset0); 21421871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 21521871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 21621871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 21721871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 21821871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 21921871138SVladimir Barinov 22021871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)SYS_AXI_IMP0_BASE; 22121871138SVladimir Barinov writel(0x00000000, &axi_qos->qosconf); 22221871138SVladimir Barinov writel(0x00002002, &axi_qos->qosctset0); 22321871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 22421871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 22521871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 22621871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 22721871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 22821871138SVladimir Barinov 22921871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)SYS_AXI_IMP1_BASE; 23021871138SVladimir Barinov writel(0x00000000, &axi_qos->qosconf); 23121871138SVladimir Barinov writel(0x00002004, &axi_qos->qosctset0); 23221871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 23321871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 23421871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 23521871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 23621871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 23721871138SVladimir Barinov 23821871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)SYS_AXI_IMUX0_BASE; 23921871138SVladimir Barinov writel(0x00000002, &axi_qos->qosconf); 24021871138SVladimir Barinov writel(0x0000200F, &axi_qos->qosctset0); 24121871138SVladimir Barinov writel(0x00002009, &axi_qos->qosctset1); 24221871138SVladimir Barinov writel(0x00002003, &axi_qos->qosctset2); 24321871138SVladimir Barinov writel(0x00002003, &axi_qos->qosctset3); 24421871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 24521871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 24621871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 24721871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 24821871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 24921871138SVladimir Barinov 25021871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)SYS_AXI_IMUX1_BASE; 25121871138SVladimir Barinov writel(0x00000002, &axi_qos->qosconf); 25221871138SVladimir Barinov writel(0x0000200F, &axi_qos->qosctset0); 25321871138SVladimir Barinov writel(0x00002009, &axi_qos->qosctset1); 25421871138SVladimir Barinov writel(0x00002003, &axi_qos->qosctset2); 25521871138SVladimir Barinov writel(0x00002003, &axi_qos->qosctset3); 25621871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 25721871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 25821871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 25921871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 26021871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 26121871138SVladimir Barinov 26221871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)SYS_AXI_IMUX2_BASE; 26321871138SVladimir Barinov writel(0x00000002, &axi_qos->qosconf); 26421871138SVladimir Barinov writel(0x0000200F, &axi_qos->qosctset0); 26521871138SVladimir Barinov writel(0x00002009, &axi_qos->qosctset1); 26621871138SVladimir Barinov writel(0x00002003, &axi_qos->qosctset2); 26721871138SVladimir Barinov writel(0x00002003, &axi_qos->qosctset3); 26821871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 26921871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 27021871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 27121871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 27221871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 27321871138SVladimir Barinov 27421871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)SYS_AXI_LBS_BASE; 27521871138SVladimir Barinov writel(0x00000000, &axi_qos->qosconf); 27621871138SVladimir Barinov writel(0x00002014, &axi_qos->qosctset0); 27721871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 27821871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 27921871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 28021871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 28121871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 28221871138SVladimir Barinov 28321871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)SYS_AXI_MMUDS_BASE; 28421871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 28521871138SVladimir Barinov writel(0x00002001, &axi_qos->qosctset0); 28621871138SVladimir Barinov writel(0x00002009, &axi_qos->qosctset1); 28721871138SVladimir Barinov writel(0x00002003, &axi_qos->qosctset2); 28821871138SVladimir Barinov writel(0x00002003, &axi_qos->qosctset3); 28921871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 29021871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 29121871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 29221871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 29321871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 29421871138SVladimir Barinov 29521871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)SYS_AXI_MMUM_BASE; 29621871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 29721871138SVladimir Barinov writel(0x00002001, &axi_qos->qosctset0); 29821871138SVladimir Barinov writel(0x00002009, &axi_qos->qosctset1); 29921871138SVladimir Barinov writel(0x00002003, &axi_qos->qosctset2); 30021871138SVladimir Barinov writel(0x00002003, &axi_qos->qosctset3); 30121871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 30221871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 30321871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 30421871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 30521871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 30621871138SVladimir Barinov 30721871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)SYS_AXI_MMUR_BASE; 30821871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 30921871138SVladimir Barinov writel(0x00002001, &axi_qos->qosctset0); 31021871138SVladimir Barinov writel(0x00002009, &axi_qos->qosctset1); 31121871138SVladimir Barinov writel(0x00002003, &axi_qos->qosctset2); 31221871138SVladimir Barinov writel(0x00002003, &axi_qos->qosctset3); 31321871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 31421871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 31521871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 31621871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 31721871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 31821871138SVladimir Barinov 31921871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)SYS_AXI_MMUS0_BASE; 32021871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 32121871138SVladimir Barinov writel(0x00002001, &axi_qos->qosctset0); 32221871138SVladimir Barinov writel(0x00002009, &axi_qos->qosctset1); 32321871138SVladimir Barinov writel(0x00002003, &axi_qos->qosctset2); 32421871138SVladimir Barinov writel(0x00002003, &axi_qos->qosctset3); 32521871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 32621871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 32721871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 32821871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 32921871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 33021871138SVladimir Barinov 33121871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)SYS_AXI_MMUS1_BASE; 33221871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 33321871138SVladimir Barinov writel(0x00002001, &axi_qos->qosctset0); 33421871138SVladimir Barinov writel(0x00002009, &axi_qos->qosctset1); 33521871138SVladimir Barinov writel(0x00002003, &axi_qos->qosctset2); 33621871138SVladimir Barinov writel(0x00002003, &axi_qos->qosctset3); 33721871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 33821871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 33921871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 34021871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 34121871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 34221871138SVladimir Barinov 34321871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)SYS_AXI_MTSB0_BASE; 34421871138SVladimir Barinov writel(0x00000000, &axi_qos->qosconf); 34521871138SVladimir Barinov writel(0x00002002, &axi_qos->qosctset0); 34621871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 34721871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 34821871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 34921871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 35021871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 35121871138SVladimir Barinov 35221871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)SYS_AXI_MTSB1_BASE; 35321871138SVladimir Barinov writel(0x00000000, &axi_qos->qosconf); 35421871138SVladimir Barinov writel(0x00002002, &axi_qos->qosctset0); 35521871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 35621871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 35721871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 35821871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 35921871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 36021871138SVladimir Barinov 36121871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)SYS_AXI_PCI_BASE; 36221871138SVladimir Barinov writel(0x00000000, &axi_qos->qosconf); 36321871138SVladimir Barinov writel(0x00002014, &axi_qos->qosctset0); 36421871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 36521871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 36621871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 36721871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 36821871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 36921871138SVladimir Barinov 37021871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)SYS_AXI_RTX_BASE; 37121871138SVladimir Barinov writel(0x00000002, &axi_qos->qosconf); 37221871138SVladimir Barinov writel(0x0000200F, &axi_qos->qosctset0); 37321871138SVladimir Barinov writel(0x00002009, &axi_qos->qosctset1); 37421871138SVladimir Barinov writel(0x00002003, &axi_qos->qosctset2); 37521871138SVladimir Barinov writel(0x00002003, &axi_qos->qosctset3); 37621871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 37721871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 37821871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 37921871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 38021871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 38121871138SVladimir Barinov 38221871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)SYS_AXI_SDS0_BASE; 38321871138SVladimir Barinov writel(0x00000000, &axi_qos->qosconf); 38421871138SVladimir Barinov writel(0x0000200A, &axi_qos->qosctset0); 38521871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 38621871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 38721871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 38821871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 38921871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 39021871138SVladimir Barinov 39121871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)SYS_AXI_SDS1_BASE; 39221871138SVladimir Barinov writel(0x00000000, &axi_qos->qosconf); 39321871138SVladimir Barinov writel(0x0000200A, &axi_qos->qosctset0); 39421871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 39521871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 39621871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 39721871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 39821871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 39921871138SVladimir Barinov 40021871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)SYS_AXI_USB20_BASE; 40121871138SVladimir Barinov writel(0x00000000, &axi_qos->qosconf); 40221871138SVladimir Barinov writel(0x00002005, &axi_qos->qosctset0); 40321871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 40421871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 40521871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 40621871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 40721871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 40821871138SVladimir Barinov 40921871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)SYS_AXI_USB21_BASE; 41021871138SVladimir Barinov writel(0x00000000, &axi_qos->qosconf); 41121871138SVladimir Barinov writel(0x00002005, &axi_qos->qosctset0); 41221871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 41321871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 41421871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 41521871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 41621871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 41721871138SVladimir Barinov 41821871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)SYS_AXI_USB22_BASE; 41921871138SVladimir Barinov writel(0x00000000, &axi_qos->qosconf); 42021871138SVladimir Barinov writel(0x00002005, &axi_qos->qosctset0); 42121871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 42221871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 42321871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 42421871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 42521871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 42621871138SVladimir Barinov 42721871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)SYS_AXI_USB30_BASE; 42821871138SVladimir Barinov writel(0x00000000, &axi_qos->qosconf); 42921871138SVladimir Barinov writel(0x00002014, &axi_qos->qosctset0); 43021871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 43121871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 43221871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 43321871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 43421871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 43521871138SVladimir Barinov 43621871138SVladimir Barinov /* QoS Register (RT-AXI) */ 43721871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)RT_AXI_SHX_BASE; 43821871138SVladimir Barinov writel(0x00000000, &axi_qos->qosconf); 43921871138SVladimir Barinov writel(0x00002005, &axi_qos->qosctset0); 44021871138SVladimir Barinov writel(0x00002009, &axi_qos->qosctset1); 44121871138SVladimir Barinov writel(0x00002003, &axi_qos->qosctset2); 44221871138SVladimir Barinov writel(0x00002003, &axi_qos->qosctset3); 44321871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 44421871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 44521871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 44621871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 44721871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 44821871138SVladimir Barinov 44921871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)RT_AXI_RDS_BASE; 45021871138SVladimir Barinov writel(0x00000000, &axi_qos->qosconf); 45121871138SVladimir Barinov writel(0x00002007, &axi_qos->qosctset0); 45221871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 45321871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 45421871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 45521871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 45621871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 45721871138SVladimir Barinov 45821871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)RT_AXI_RTX64TO128_BASE; 45921871138SVladimir Barinov writel(0x00000002, &axi_qos->qosconf); 46021871138SVladimir Barinov writel(0x0000200F, &axi_qos->qosctset0); 46121871138SVladimir Barinov writel(0x00002009, &axi_qos->qosctset1); 46221871138SVladimir Barinov writel(0x00002003, &axi_qos->qosctset2); 46321871138SVladimir Barinov writel(0x00002003, &axi_qos->qosctset3); 46421871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 46521871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 46621871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 46721871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 46821871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 46921871138SVladimir Barinov 47021871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)RT_AXI_STPRO_BASE; 47121871138SVladimir Barinov writel(0x00000000, &axi_qos->qosconf); 47221871138SVladimir Barinov writel(0x00002003, &axi_qos->qosctset0); 47321871138SVladimir Barinov writel(0x00002009, &axi_qos->qosctset1); 47421871138SVladimir Barinov writel(0x00002003, &axi_qos->qosctset2); 47521871138SVladimir Barinov writel(0x00002003, &axi_qos->qosctset3); 47621871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 47721871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 47821871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 47921871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 48021871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 48121871138SVladimir Barinov 48221871138SVladimir Barinov /* QoS Register (MP-AXI) */ 48321871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MP_AXI_ADSP_BASE; 48421871138SVladimir Barinov writel(0x00000000, &axi_qos->qosconf); 48521871138SVladimir Barinov writel(0x00002007, &axi_qos->qosctset0); 48621871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 48721871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 48821871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 48921871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 49021871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 49121871138SVladimir Barinov 49221871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MP_AXI_ASDS0_BASE; 49321871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 49421871138SVladimir Barinov writel(0x00002014, &axi_qos->qosctset0); 49521871138SVladimir Barinov writel(0x00000040, &axi_qos->qosreqctr); 49621871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 49721871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 49821871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 49921871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 50021871138SVladimir Barinov 50121871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MP_AXI_ASDS1_BASE; 50221871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 50321871138SVladimir Barinov writel(0x00002014, &axi_qos->qosctset0); 50421871138SVladimir Barinov writel(0x00000040, &axi_qos->qosreqctr); 50521871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 50621871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 50721871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 50821871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 50921871138SVladimir Barinov 51021871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MP_AXI_MLP_BASE; 51121871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 51221871138SVladimir Barinov writel(0x00001FF0, &axi_qos->qosctset0); 51321871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 51421871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 51521871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 51621871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres2); 51721871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 51821871138SVladimir Barinov 51921871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MP_AXI_MMUMP_BASE; 52021871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 52121871138SVladimir Barinov writel(0x00002001, &axi_qos->qosctset0); 52221871138SVladimir Barinov writel(0x00002009, &axi_qos->qosctset1); 52321871138SVladimir Barinov writel(0x00002003, &axi_qos->qosctset2); 52421871138SVladimir Barinov writel(0x00002003, &axi_qos->qosctset3); 52521871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 52621871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 52721871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 52821871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 52921871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 53021871138SVladimir Barinov 53121871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MP_AXI_SPU_BASE; 53221871138SVladimir Barinov writel(0x00000000, &axi_qos->qosconf); 53321871138SVladimir Barinov writel(0x00002018, &axi_qos->qosctset0); 53421871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 53521871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 53621871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 53721871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 53821871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 53921871138SVladimir Barinov 54021871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MP_AXI_SPUC_BASE; 54121871138SVladimir Barinov writel(0x00000000, &axi_qos->qosconf); 54221871138SVladimir Barinov writel(0x0000200D, &axi_qos->qosctset0); 54321871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 54421871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 54521871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 54621871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 54721871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 54821871138SVladimir Barinov 54921871138SVladimir Barinov /* QoS Register (SYS-AXI256) */ 55021871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)SYS_AXI256_AXI128TO256_BASE; 55121871138SVladimir Barinov writel(0x00000002, &axi_qos->qosconf); 55221871138SVladimir Barinov writel(0x0000200F, &axi_qos->qosctset0); 55321871138SVladimir Barinov writel(0x00002009, &axi_qos->qosctset1); 55421871138SVladimir Barinov writel(0x00002003, &axi_qos->qosctset2); 55521871138SVladimir Barinov writel(0x00002003, &axi_qos->qosctset3); 55621871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 55721871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 55821871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 55921871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 56021871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 56121871138SVladimir Barinov 56221871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)SYS_AXI256_SYX_BASE; 56321871138SVladimir Barinov writel(0x00000002, &axi_qos->qosconf); 56421871138SVladimir Barinov writel(0x0000200F, &axi_qos->qosctset0); 56521871138SVladimir Barinov writel(0x00002009, &axi_qos->qosctset1); 56621871138SVladimir Barinov writel(0x00002003, &axi_qos->qosctset2); 56721871138SVladimir Barinov writel(0x00002003, &axi_qos->qosctset3); 56821871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 56921871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 57021871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 57121871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 57221871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 57321871138SVladimir Barinov 57421871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)SYS_AXI256_MPX_BASE; 57521871138SVladimir Barinov writel(0x00000002, &axi_qos->qosconf); 57621871138SVladimir Barinov writel(0x0000200F, &axi_qos->qosctset0); 57721871138SVladimir Barinov writel(0x00002009, &axi_qos->qosctset1); 57821871138SVladimir Barinov writel(0x00002003, &axi_qos->qosctset2); 57921871138SVladimir Barinov writel(0x00002003, &axi_qos->qosctset3); 58021871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 58121871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 58221871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 58321871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 58421871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 58521871138SVladimir Barinov 58621871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)SYS_AXI256_MXI_BASE; 58721871138SVladimir Barinov writel(0x00000002, &axi_qos->qosconf); 58821871138SVladimir Barinov writel(0x0000200F, &axi_qos->qosctset0); 58921871138SVladimir Barinov writel(0x00002009, &axi_qos->qosctset1); 59021871138SVladimir Barinov writel(0x00002003, &axi_qos->qosctset2); 59121871138SVladimir Barinov writel(0x00002003, &axi_qos->qosctset3); 59221871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 59321871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 59421871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 59521871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 59621871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 59721871138SVladimir Barinov 59821871138SVladimir Barinov /* QoS Register (CCI-AXI) */ 59921871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)CCI_AXI_MMUS0_BASE; 60021871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 60121871138SVladimir Barinov writel(0x00002001, &axi_qos->qosctset0); 60221871138SVladimir Barinov writel(0x00002009, &axi_qos->qosctset1); 60321871138SVladimir Barinov writel(0x00002003, &axi_qos->qosctset2); 60421871138SVladimir Barinov writel(0x00002003, &axi_qos->qosctset3); 60521871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 60621871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 60721871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 60821871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 60921871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 61021871138SVladimir Barinov 61121871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)CCI_AXI_SYX2_BASE; 61221871138SVladimir Barinov writel(0x00000002, &axi_qos->qosconf); 61321871138SVladimir Barinov writel(0x0000200F, &axi_qos->qosctset0); 61421871138SVladimir Barinov writel(0x00002009, &axi_qos->qosctset1); 61521871138SVladimir Barinov writel(0x00002003, &axi_qos->qosctset2); 61621871138SVladimir Barinov writel(0x00002003, &axi_qos->qosctset3); 61721871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 61821871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 61921871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 62021871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 62121871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 62221871138SVladimir Barinov 62321871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)CCI_AXI_MMUR_BASE; 62421871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 62521871138SVladimir Barinov writel(0x00002001, &axi_qos->qosctset0); 62621871138SVladimir Barinov writel(0x00002009, &axi_qos->qosctset1); 62721871138SVladimir Barinov writel(0x00002003, &axi_qos->qosctset2); 62821871138SVladimir Barinov writel(0x00002003, &axi_qos->qosctset3); 62921871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 63021871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 63121871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 63221871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 63321871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 63421871138SVladimir Barinov 63521871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)CCI_AXI_MMUDS_BASE; 63621871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 63721871138SVladimir Barinov writel(0x00002001, &axi_qos->qosctset0); 63821871138SVladimir Barinov writel(0x00002009, &axi_qos->qosctset1); 63921871138SVladimir Barinov writel(0x00002003, &axi_qos->qosctset2); 64021871138SVladimir Barinov writel(0x00002003, &axi_qos->qosctset3); 64121871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 64221871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 64321871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 64421871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 64521871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 64621871138SVladimir Barinov 64721871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)CCI_AXI_MMUM_BASE; 64821871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 64921871138SVladimir Barinov writel(0x00002001, &axi_qos->qosctset0); 65021871138SVladimir Barinov writel(0x00002009, &axi_qos->qosctset1); 65121871138SVladimir Barinov writel(0x00002003, &axi_qos->qosctset2); 65221871138SVladimir Barinov writel(0x00002003, &axi_qos->qosctset3); 65321871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 65421871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 65521871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 65621871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 65721871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 65821871138SVladimir Barinov 65921871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)CCI_AXI_MXI_BASE; 66021871138SVladimir Barinov writel(0x00000002, &axi_qos->qosconf); 66121871138SVladimir Barinov writel(0x0000200F, &axi_qos->qosctset0); 66221871138SVladimir Barinov writel(0x00002009, &axi_qos->qosctset1); 66321871138SVladimir Barinov writel(0x00002003, &axi_qos->qosctset2); 66421871138SVladimir Barinov writel(0x00002003, &axi_qos->qosctset3); 66521871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 66621871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 66721871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 66821871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 66921871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 67021871138SVladimir Barinov 67121871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)CCI_AXI_MMUS1_BASE; 67221871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 67321871138SVladimir Barinov writel(0x00002001, &axi_qos->qosctset0); 67421871138SVladimir Barinov writel(0x00002009, &axi_qos->qosctset1); 67521871138SVladimir Barinov writel(0x00002003, &axi_qos->qosctset2); 67621871138SVladimir Barinov writel(0x00002003, &axi_qos->qosctset3); 67721871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 67821871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 67921871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 68021871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 68121871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 68221871138SVladimir Barinov 68321871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)CCI_AXI_MMUMP_BASE; 68421871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 68521871138SVladimir Barinov writel(0x00002001, &axi_qos->qosctset0); 68621871138SVladimir Barinov writel(0x00002009, &axi_qos->qosctset1); 68721871138SVladimir Barinov writel(0x00002003, &axi_qos->qosctset2); 68821871138SVladimir Barinov writel(0x00002003, &axi_qos->qosctset3); 68921871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 69021871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 69121871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 69221871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 69321871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 69421871138SVladimir Barinov 69521871138SVladimir Barinov /* QoS Register (Media-AXI) */ 69621871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_JPR_BASE; 69721871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 69821871138SVladimir Barinov writel(0x00002018, &axi_qos->qosctset0); 69921871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 70021871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 70121871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 70221871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 70321871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 70421871138SVladimir Barinov 70521871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_JPW_BASE; 70621871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 70721871138SVladimir Barinov writel(0x00002018, &axi_qos->qosctset0); 70821871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 70921871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 71021871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 71121871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 71221871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 71321871138SVladimir Barinov 71421871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_GCU0R_BASE; 71521871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 71621871138SVladimir Barinov writel(0x00002018, &axi_qos->qosctset0); 71721871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 71821871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 71921871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 72021871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 72121871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 72221871138SVladimir Barinov 72321871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_GCU0W_BASE; 72421871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 72521871138SVladimir Barinov writel(0x00002018, &axi_qos->qosctset0); 72621871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 72721871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 72821871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 72921871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 73021871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 73121871138SVladimir Barinov 73221871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_GCU1R_BASE; 73321871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 73421871138SVladimir Barinov writel(0x00002018, &axi_qos->qosctset0); 73521871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 73621871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 73721871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 73821871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 73921871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 74021871138SVladimir Barinov 74121871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_GCU1W_BASE; 74221871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 74321871138SVladimir Barinov writel(0x00002018, &axi_qos->qosctset0); 74421871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 74521871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 74621871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 74721871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 74821871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 74921871138SVladimir Barinov 75021871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_TDMR_BASE; 75121871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 75221871138SVladimir Barinov writel(0x00002018, &axi_qos->qosctset0); 75321871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 75421871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 75521871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 75621871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 75721871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 75821871138SVladimir Barinov 75921871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_TDMW_BASE; 76021871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 76121871138SVladimir Barinov writel(0x00002018, &axi_qos->qosctset0); 76221871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 76321871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 76421871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 76521871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 76621871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 76721871138SVladimir Barinov 76821871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSP0CR_BASE; 76921871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 77021871138SVladimir Barinov writel(0x00002018, &axi_qos->qosctset0); 77121871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 77221871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 77321871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 77421871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 77521871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 77621871138SVladimir Barinov 77721871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSP0CW_BASE; 77821871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 77921871138SVladimir Barinov writel(0x00002018, &axi_qos->qosctset0); 78021871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 78121871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 78221871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 78321871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 78421871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 78521871138SVladimir Barinov 78621871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSP1CR_BASE; 78721871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 78821871138SVladimir Barinov writel(0x00002018, &axi_qos->qosctset0); 78921871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 79021871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 79121871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 79221871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 79321871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 79421871138SVladimir Barinov 79521871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSP1CW_BASE; 79621871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 79721871138SVladimir Barinov writel(0x00002018, &axi_qos->qosctset0); 79821871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 79921871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 80021871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 80121871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 80221871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 80321871138SVladimir Barinov 80421871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSPDU0CR_BASE; 80521871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 80621871138SVladimir Barinov writel(0x00002018, &axi_qos->qosctset0); 80721871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 80821871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 80921871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 81021871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 81121871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 81221871138SVladimir Barinov 81321871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSPDU0CW_BASE; 81421871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 81521871138SVladimir Barinov writel(0x00002018, &axi_qos->qosctset0); 81621871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 81721871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 81821871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 81921871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 82021871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 82121871138SVladimir Barinov 82221871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSPDU1CR_BASE; 82321871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 82421871138SVladimir Barinov writel(0x00002018, &axi_qos->qosctset0); 82521871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 82621871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 82721871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 82821871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 82921871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 83021871138SVladimir Barinov 83121871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSPDU1CW_BASE; 83221871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 83321871138SVladimir Barinov writel(0x00002018, &axi_qos->qosctset0); 83421871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 83521871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 83621871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 83721871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 83821871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 83921871138SVladimir Barinov 84021871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VIN0W_BASE; 84121871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 84221871138SVladimir Barinov writel(0x0000200C, &axi_qos->qosctset0); 84321871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 84421871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 84521871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 84621871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 84721871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 84821871138SVladimir Barinov 84921871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSP0R_BASE; 85021871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 85121871138SVladimir Barinov writel(0x0000200C, &axi_qos->qosctset0); 85221871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 85321871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 85421871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 85521871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 85621871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 85721871138SVladimir Barinov 85821871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSP0W_BASE; 85921871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 86021871138SVladimir Barinov writel(0x0000200C, &axi_qos->qosctset0); 86121871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 86221871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 86321871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 86421871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 86521871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 86621871138SVladimir Barinov 86721871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_FDP0R_BASE; 86821871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 86921871138SVladimir Barinov writel(0x0000200C, &axi_qos->qosctset0); 87021871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 87121871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 87221871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 87321871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 87421871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 87521871138SVladimir Barinov 87621871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_FDP0W_BASE; 87721871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 87821871138SVladimir Barinov writel(0x0000200C, &axi_qos->qosctset0); 87921871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 88021871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 88121871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 88221871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 88321871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 88421871138SVladimir Barinov 88521871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_IMSR_BASE; 88621871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 88721871138SVladimir Barinov writel(0x0000200C, &axi_qos->qosctset0); 88821871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 88921871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 89021871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 89121871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 89221871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 89321871138SVladimir Barinov 89421871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_IMSW_BASE; 89521871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 89621871138SVladimir Barinov writel(0x0000200C, &axi_qos->qosctset0); 89721871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 89821871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 89921871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 90021871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 90121871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 90221871138SVladimir Barinov 90321871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSP1R_BASE; 90421871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 90521871138SVladimir Barinov writel(0x0000200C, &axi_qos->qosctset0); 90621871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 90721871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 90821871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 90921871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 91021871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 91121871138SVladimir Barinov 91221871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSP1W_BASE; 91321871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 91421871138SVladimir Barinov writel(0x0000200C, &axi_qos->qosctset0); 91521871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 91621871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 91721871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 91821871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 91921871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 92021871138SVladimir Barinov 92121871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_FDP1R_BASE; 92221871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 92321871138SVladimir Barinov writel(0x0000200C, &axi_qos->qosctset0); 92421871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 92521871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 92621871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 92721871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 92821871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 92921871138SVladimir Barinov 93021871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_FDP1W_BASE; 93121871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 93221871138SVladimir Barinov writel(0x0000200C, &axi_qos->qosctset0); 93321871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 93421871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 93521871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 93621871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 93721871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 93821871138SVladimir Barinov 93921871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_IMRR_BASE; 94021871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 94121871138SVladimir Barinov writel(0x0000200C, &axi_qos->qosctset0); 94221871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 94321871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 94421871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 94521871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 94621871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 94721871138SVladimir Barinov 94821871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_IMRW_BASE; 94921871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 95021871138SVladimir Barinov writel(0x0000200C, &axi_qos->qosctset0); 95121871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 95221871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 95321871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 95421871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 95521871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 95621871138SVladimir Barinov 95721871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_FDP2R_BASE; 95821871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 95921871138SVladimir Barinov writel(0x0000200C, &axi_qos->qosctset0); 96021871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 96121871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 96221871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 96321871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 96421871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 96521871138SVladimir Barinov 96621871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_FDP2W_BASE; 96721871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 96821871138SVladimir Barinov writel(0x0000200C, &axi_qos->qosctset0); 96921871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 97021871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 97121871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 97221871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 97321871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 97421871138SVladimir Barinov 97521871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSPD0R_BASE; 97621871138SVladimir Barinov writel(0x00000000, &axi_qos->qosconf); 97721871138SVladimir Barinov writel(0x0000200C, &axi_qos->qosctset0); 97821871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 97921871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 98021871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 98121871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 98221871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 98321871138SVladimir Barinov 98421871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSPD0W_BASE; 98521871138SVladimir Barinov writel(0x00000000, &axi_qos->qosconf); 98621871138SVladimir Barinov writel(0x0000200C, &axi_qos->qosctset0); 98721871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 98821871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 98921871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 99021871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 99121871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 99221871138SVladimir Barinov 99321871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSPD1R_BASE; 99421871138SVladimir Barinov writel(0x00000000, &axi_qos->qosconf); 99521871138SVladimir Barinov writel(0x0000200C, &axi_qos->qosctset0); 99621871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 99721871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 99821871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 99921871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 100021871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 100121871138SVladimir Barinov 100221871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSPD1W_BASE; 100321871138SVladimir Barinov writel(0x00000000, &axi_qos->qosconf); 100421871138SVladimir Barinov writel(0x0000200C, &axi_qos->qosctset0); 100521871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 100621871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 100721871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 100821871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 100921871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 101021871138SVladimir Barinov 101121871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_DU0R_BASE; 101221871138SVladimir Barinov writel(0x00000000, &axi_qos->qosconf); 101321871138SVladimir Barinov writel(0x0000200C, &axi_qos->qosctset0); 101421871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 101521871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 101621871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 101721871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 101821871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 101921871138SVladimir Barinov 102021871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_DU0W_BASE; 102121871138SVladimir Barinov writel(0x00000000, &axi_qos->qosconf); 102221871138SVladimir Barinov writel(0x0000200C, &axi_qos->qosctset0); 102321871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 102421871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 102521871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 102621871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 102721871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 102821871138SVladimir Barinov 102921871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_DU1R_BASE; 103021871138SVladimir Barinov writel(0x00000000, &axi_qos->qosconf); 103121871138SVladimir Barinov writel(0x0000200C, &axi_qos->qosctset0); 103221871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 103321871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 103421871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 103521871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 103621871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 103721871138SVladimir Barinov 103821871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_DU1W_BASE; 103921871138SVladimir Barinov writel(0x00000000, &axi_qos->qosconf); 104021871138SVladimir Barinov writel(0x0000200C, &axi_qos->qosctset0); 104121871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 104221871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 104321871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 104421871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 104521871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 104621871138SVladimir Barinov 104721871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VCP0CR_BASE; 104821871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 104921871138SVladimir Barinov writel(0x00002007, &axi_qos->qosctset0); 105021871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 105121871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 105221871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 105321871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 105421871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 105521871138SVladimir Barinov 105621871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VCP0CW_BASE; 105721871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 105821871138SVladimir Barinov writel(0x00002007, &axi_qos->qosctset0); 105921871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 106021871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 106121871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 106221871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 106321871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 106421871138SVladimir Barinov 106521871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VCP0VR_BASE; 106621871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 106721871138SVladimir Barinov writel(0x00002007, &axi_qos->qosctset0); 106821871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 106921871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 107021871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 107121871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 107221871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 107321871138SVladimir Barinov 107421871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VCP0VW_BASE; 107521871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 107621871138SVladimir Barinov writel(0x00002007, &axi_qos->qosctset0); 107721871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 107821871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 107921871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 108021871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 108121871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 108221871138SVladimir Barinov 108321871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VPC0R_BASE; 108421871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 108521871138SVladimir Barinov writel(0x00002007, &axi_qos->qosctset0); 108621871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 108721871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 108821871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 108921871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 109021871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 109121871138SVladimir Barinov 109221871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VCP1CR_BASE; 109321871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 109421871138SVladimir Barinov writel(0x00002007, &axi_qos->qosctset0); 109521871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 109621871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 109721871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 109821871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 109921871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 110021871138SVladimir Barinov 110121871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VCP1CW_BASE; 110221871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 110321871138SVladimir Barinov writel(0x00002007, &axi_qos->qosctset0); 110421871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 110521871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 110621871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 110721871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 110821871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 110921871138SVladimir Barinov 111021871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VCP1VR_BASE; 111121871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 111221871138SVladimir Barinov writel(0x00002007, &axi_qos->qosctset0); 111321871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 111421871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 111521871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 111621871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 111721871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 111821871138SVladimir Barinov 111921871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VCP1VW_BASE; 112021871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 112121871138SVladimir Barinov writel(0x00002007, &axi_qos->qosctset0); 112221871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 112321871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 112421871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 112521871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 112621871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 112721871138SVladimir Barinov 112821871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VPC1R_BASE; 112921871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 113021871138SVladimir Barinov writel(0x00002007, &axi_qos->qosctset0); 113121871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 113221871138SVladimir Barinov writel(0x00002006, &axi_qos->qosthres0); 113321871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres1); 113421871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 113521871138SVladimir Barinov writel(0x00000000, &axi_qos->qosqon); 113621871138SVladimir Barinov } 113721871138SVladimir Barinov 113821871138SVladimir Barinov #if defined(CONFIG_QOS_PRI_MEDIA) 113921871138SVladimir Barinov #define is_qos_pri_media() 1 114021871138SVladimir Barinov #else 114121871138SVladimir Barinov #define is_qos_pri_media() 0 114221871138SVladimir Barinov #endif 114321871138SVladimir Barinov 114421871138SVladimir Barinov #if defined(CONFIG_QOS_PRI_NORMAL) 114521871138SVladimir Barinov #define is_qos_pri_normal() 1 114621871138SVladimir Barinov #else 114721871138SVladimir Barinov #define is_qos_pri_normal() 0 114821871138SVladimir Barinov #endif 114921871138SVladimir Barinov 115021871138SVladimir Barinov #if defined(CONFIG_QOS_PRI_GFX) 115121871138SVladimir Barinov #define is_qos_pri_gfx() 1 115221871138SVladimir Barinov #else 115321871138SVladimir Barinov #define is_qos_pri_gfx() 0 115421871138SVladimir Barinov #endif 115521871138SVladimir Barinov 115621871138SVladimir Barinov /* QoS version 0.963 for ES2 */ 115721871138SVladimir Barinov static void qos_init_es2(void) 115821871138SVladimir Barinov { 115921871138SVladimir Barinov int i; 116021871138SVladimir Barinov struct rcar_s3c *s3c; 116121871138SVladimir Barinov struct rcar_s3c_qos *s3c_qos; 116221871138SVladimir Barinov struct rcar_dbsc3_qos *qos_addr; 116321871138SVladimir Barinov struct rcar_mxi *mxi; 116421871138SVladimir Barinov struct rcar_mxi_qos *mxi_qos; 116521871138SVladimir Barinov struct rcar_axi_qos *axi_qos; 116621871138SVladimir Barinov 116721871138SVladimir Barinov /* DBSC DBADJ2 */ 116821871138SVladimir Barinov writel(0x20042004, DBSC3_0_DBADJ2); 116921871138SVladimir Barinov 117021871138SVladimir Barinov /* S3C -QoS */ 117121871138SVladimir Barinov s3c = (struct rcar_s3c *)S3C_BASE; 117221871138SVladimir Barinov writel(0x80000000, &s3c->s3cadsplcr); 117321871138SVladimir Barinov if (is_qos_pri_media()) { 117421871138SVladimir Barinov writel(0x1F060302, &s3c->s3crorr); 117521871138SVladimir Barinov writel(0x07070302, &s3c->s3cworr); 117621871138SVladimir Barinov } else if (is_qos_pri_normal()) { 117721871138SVladimir Barinov writel(0x1F060504, &s3c->s3crorr); 117821871138SVladimir Barinov writel(0x07070503, &s3c->s3cworr); 117921871138SVladimir Barinov } else if (is_qos_pri_gfx()) { 118021871138SVladimir Barinov writel(0x1F060606, &s3c->s3crorr); 118121871138SVladimir Barinov writel(0x07070606, &s3c->s3cworr); 118221871138SVladimir Barinov } 118321871138SVladimir Barinov /* QoS Control Registers */ 118421871138SVladimir Barinov s3c_qos = (struct rcar_s3c_qos *)S3C_QOS_CCI0_BASE; 118521871138SVladimir Barinov writel(0x00890089, &s3c_qos->s3cqos0); 118621871138SVladimir Barinov writel(0x20960010, &s3c_qos->s3cqos1); 118721871138SVladimir Barinov writel(0x20302030, &s3c_qos->s3cqos2); 118821871138SVladimir Barinov if (is_qos_pri_media()) 118921871138SVladimir Barinov writel(0x20AA2300, &s3c_qos->s3cqos3); 119021871138SVladimir Barinov else if (is_qos_pri_normal()) 119121871138SVladimir Barinov writel(0x20AA2200, &s3c_qos->s3cqos3); 119221871138SVladimir Barinov else if (is_qos_pri_gfx()) 119321871138SVladimir Barinov writel(0x20AA2100, &s3c_qos->s3cqos3); 119421871138SVladimir Barinov writel(0x00002032, &s3c_qos->s3cqos4); 119521871138SVladimir Barinov writel(0x20960010, &s3c_qos->s3cqos5); 119621871138SVladimir Barinov writel(0x20302030, &s3c_qos->s3cqos6); 119721871138SVladimir Barinov if (is_qos_pri_media()) 119821871138SVladimir Barinov writel(0x20AA2300, &s3c_qos->s3cqos7); 119921871138SVladimir Barinov else if (is_qos_pri_normal()) 120021871138SVladimir Barinov writel(0x20AA2200, &s3c_qos->s3cqos7); 120121871138SVladimir Barinov else if (is_qos_pri_gfx()) 120221871138SVladimir Barinov writel(0x20AA2100, &s3c_qos->s3cqos7); 120321871138SVladimir Barinov writel(0x00002032, &s3c_qos->s3cqos8); 120421871138SVladimir Barinov 120521871138SVladimir Barinov s3c_qos = (struct rcar_s3c_qos *)S3C_QOS_CCI1_BASE; 120621871138SVladimir Barinov writel(0x00890089, &s3c_qos->s3cqos0); 120721871138SVladimir Barinov writel(0x20960010, &s3c_qos->s3cqos1); 120821871138SVladimir Barinov writel(0x20302030, &s3c_qos->s3cqos2); 120921871138SVladimir Barinov if (is_qos_pri_media()) 121021871138SVladimir Barinov writel(0x20AA2300, &s3c_qos->s3cqos3); 121121871138SVladimir Barinov else if (is_qos_pri_normal()) 121221871138SVladimir Barinov writel(0x20AA2200, &s3c_qos->s3cqos3); 121321871138SVladimir Barinov else if (is_qos_pri_gfx()) 121421871138SVladimir Barinov writel(0x20AA2100, &s3c_qos->s3cqos3); 121521871138SVladimir Barinov writel(0x00002032, &s3c_qos->s3cqos4); 121621871138SVladimir Barinov writel(0x20960010, &s3c_qos->s3cqos5); 121721871138SVladimir Barinov writel(0x20302030, &s3c_qos->s3cqos6); 121821871138SVladimir Barinov if (is_qos_pri_media()) 121921871138SVladimir Barinov writel(0x20AA2300, &s3c_qos->s3cqos7); 122021871138SVladimir Barinov else if (is_qos_pri_normal()) 122121871138SVladimir Barinov writel(0x20AA2200, &s3c_qos->s3cqos7); 122221871138SVladimir Barinov else if (is_qos_pri_gfx()) 122321871138SVladimir Barinov writel(0x20AA2100, &s3c_qos->s3cqos7); 122421871138SVladimir Barinov writel(0x00002032, &s3c_qos->s3cqos8); 122521871138SVladimir Barinov 122621871138SVladimir Barinov s3c_qos = (struct rcar_s3c_qos *)S3C_QOS_MXI_BASE; 122721871138SVladimir Barinov writel(0x80928092, &s3c_qos->s3cqos0); 122821871138SVladimir Barinov writel(0x20960020, &s3c_qos->s3cqos1); 122921871138SVladimir Barinov writel(0x20302030, &s3c_qos->s3cqos2); 123021871138SVladimir Barinov writel(0x20AA20DC, &s3c_qos->s3cqos3); 123121871138SVladimir Barinov writel(0x00002032, &s3c_qos->s3cqos4); 123221871138SVladimir Barinov writel(0x20960020, &s3c_qos->s3cqos5); 123321871138SVladimir Barinov writel(0x20302030, &s3c_qos->s3cqos6); 123421871138SVladimir Barinov writel(0x20AA20DC, &s3c_qos->s3cqos7); 123521871138SVladimir Barinov writel(0x00002032, &s3c_qos->s3cqos8); 123621871138SVladimir Barinov 123721871138SVladimir Barinov s3c_qos = (struct rcar_s3c_qos *)S3C_QOS_AXI_BASE; 123821871138SVladimir Barinov writel(0x00828092, &s3c_qos->s3cqos0); 123921871138SVladimir Barinov writel(0x20960020, &s3c_qos->s3cqos1); 124021871138SVladimir Barinov writel(0x20302030, &s3c_qos->s3cqos2); 124121871138SVladimir Barinov writel(0x20AA20FA, &s3c_qos->s3cqos3); 124221871138SVladimir Barinov writel(0x00002032, &s3c_qos->s3cqos4); 124321871138SVladimir Barinov writel(0x20960020, &s3c_qos->s3cqos5); 124421871138SVladimir Barinov writel(0x20302030, &s3c_qos->s3cqos6); 124521871138SVladimir Barinov writel(0x20AA20FA, &s3c_qos->s3cqos7); 124621871138SVladimir Barinov writel(0x00002032, &s3c_qos->s3cqos8); 124721871138SVladimir Barinov 124821871138SVladimir Barinov writel(0x00310808, &s3c->s3carcr11); 124921871138SVladimir Barinov 125021871138SVladimir Barinov /* DBSC -QoS */ 125121871138SVladimir Barinov /* DBSC0 - Read */ 125221871138SVladimir Barinov for (i = DBSC3_00; i < DBSC3_NR; i++) { 125321871138SVladimir Barinov qos_addr = (struct rcar_dbsc3_qos *)dbsc3_0_r_qos_addr[i]; 125421871138SVladimir Barinov writel(0x00000002, &qos_addr->dblgcnt); 125521871138SVladimir Barinov writel(0x00002096, &qos_addr->dbtmval0); 125621871138SVladimir Barinov writel(0x00002064, &qos_addr->dbtmval1); 125721871138SVladimir Barinov writel(0x00002032, &qos_addr->dbtmval2); 125821871138SVladimir Barinov writel(0x00001FB0, &qos_addr->dbtmval3); 125921871138SVladimir Barinov writel(0x00000001, &qos_addr->dbrqctr); 126021871138SVladimir Barinov writel(0x00002078, &qos_addr->dbthres0); 126121871138SVladimir Barinov writel(0x0000204B, &qos_addr->dbthres1); 126221871138SVladimir Barinov writel(0x0000201E, &qos_addr->dbthres2); 126321871138SVladimir Barinov writel(0x00000001, &qos_addr->dblgqon); 126421871138SVladimir Barinov } 126521871138SVladimir Barinov 126621871138SVladimir Barinov /* DBSC0 - Write */ 126721871138SVladimir Barinov for (i = DBSC3_00; i < DBSC3_NR; i++) { 126821871138SVladimir Barinov qos_addr = (struct rcar_dbsc3_qos *)dbsc3_0_w_qos_addr[i]; 126921871138SVladimir Barinov writel(0x00000002, &qos_addr->dblgcnt); 127021871138SVladimir Barinov writel(0x00002096, &qos_addr->dbtmval0); 127121871138SVladimir Barinov writel(0x00002064, &qos_addr->dbtmval1); 127221871138SVladimir Barinov writel(0x00002050, &qos_addr->dbtmval2); 127321871138SVladimir Barinov writel(0x0000203A, &qos_addr->dbtmval3); 127421871138SVladimir Barinov writel(0x00000001, &qos_addr->dbrqctr); 127521871138SVladimir Barinov writel(0x00002078, &qos_addr->dbthres0); 127621871138SVladimir Barinov writel(0x0000204B, &qos_addr->dbthres1); 127721871138SVladimir Barinov writel(0x0000203C, &qos_addr->dbthres2); 127821871138SVladimir Barinov writel(0x00000001, &qos_addr->dblgqon); 127921871138SVladimir Barinov } 128021871138SVladimir Barinov 128121871138SVladimir Barinov /* MXI -QoS */ 128221871138SVladimir Barinov /* Transaction Control (MXI) */ 128321871138SVladimir Barinov mxi = (struct rcar_mxi *)MXI_BASE; 128421871138SVladimir Barinov writel(0x00000013, &mxi->mxrtcr); 128521871138SVladimir Barinov writel(0x00000016, &mxi->mxwtcr); 128621871138SVladimir Barinov writel(0x00B800C0, &mxi->mxsaar0); 128721871138SVladimir Barinov writel(0x02000800, &mxi->mxsaar1); 128821871138SVladimir Barinov 128921871138SVladimir Barinov /* QoS Control (MXI) */ 129021871138SVladimir Barinov mxi_qos = (struct rcar_mxi_qos *)MXI_QOS_BASE; 129121871138SVladimir Barinov writel(0x0000000C, &mxi_qos->vspdu0); 129221871138SVladimir Barinov writel(0x0000000C, &mxi_qos->vspdu1); 129321871138SVladimir Barinov writel(0x0000000E, &mxi_qos->du0); 129421871138SVladimir Barinov writel(0x0000000E, &mxi_qos->du1); 129521871138SVladimir Barinov 129621871138SVladimir Barinov /* AXI -QoS */ 129721871138SVladimir Barinov /* Transaction Control (MXI) */ 129821871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)SYS_AXI_SYX64TO128_BASE; 129921871138SVladimir Barinov writel(0x00000002, &axi_qos->qosconf); 130021871138SVladimir Barinov writel(0x00002245, &axi_qos->qosctset0); 130121871138SVladimir Barinov writel(0x00002096, &axi_qos->qosctset1); 130221871138SVladimir Barinov writel(0x00002030, &axi_qos->qosctset2); 130321871138SVladimir Barinov writel(0x00002030, &axi_qos->qosctset3); 130421871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 130521871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 130621871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 130721871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 130821871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 130921871138SVladimir Barinov 131021871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)SYS_AXI_AVB_BASE; 131121871138SVladimir Barinov writel(0x00000000, &axi_qos->qosconf); 131221871138SVladimir Barinov writel(0x000020A6, &axi_qos->qosctset0); 131321871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 131421871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 131521871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 131621871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 131721871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 131821871138SVladimir Barinov 131921871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)SYS_AXI_G2D_BASE; 132021871138SVladimir Barinov writel(0x00000000, &axi_qos->qosconf); 132121871138SVladimir Barinov writel(0x000020A6, &axi_qos->qosctset0); 132221871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 132321871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 132421871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 132521871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 132621871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 132721871138SVladimir Barinov 132821871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)SYS_AXI_IMP0_BASE; 132921871138SVladimir Barinov writel(0x00000000, &axi_qos->qosconf); 133021871138SVladimir Barinov writel(0x00002021, &axi_qos->qosctset0); 133121871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 133221871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 133321871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 133421871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 133521871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 133621871138SVladimir Barinov 133721871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)SYS_AXI_IMP1_BASE; 133821871138SVladimir Barinov writel(0x00000000, &axi_qos->qosconf); 133921871138SVladimir Barinov writel(0x00002037, &axi_qos->qosctset0); 134021871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 134121871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 134221871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 134321871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 134421871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 134521871138SVladimir Barinov 134621871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)SYS_AXI_IMUX0_BASE; 134721871138SVladimir Barinov writel(0x00000002, &axi_qos->qosconf); 134821871138SVladimir Barinov writel(0x00002245, &axi_qos->qosctset0); 134921871138SVladimir Barinov writel(0x00002096, &axi_qos->qosctset1); 135021871138SVladimir Barinov writel(0x00002030, &axi_qos->qosctset2); 135121871138SVladimir Barinov writel(0x00002030, &axi_qos->qosctset3); 135221871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 135321871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 135421871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 135521871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 135621871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 135721871138SVladimir Barinov 135821871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)SYS_AXI_IMUX1_BASE; 135921871138SVladimir Barinov writel(0x00000002, &axi_qos->qosconf); 136021871138SVladimir Barinov writel(0x00002245, &axi_qos->qosctset0); 136121871138SVladimir Barinov writel(0x00002096, &axi_qos->qosctset1); 136221871138SVladimir Barinov writel(0x00002030, &axi_qos->qosctset2); 136321871138SVladimir Barinov writel(0x00002030, &axi_qos->qosctset3); 136421871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 136521871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 136621871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 136721871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 136821871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 136921871138SVladimir Barinov 137021871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)SYS_AXI_IMUX2_BASE; 137121871138SVladimir Barinov writel(0x00000002, &axi_qos->qosconf); 137221871138SVladimir Barinov writel(0x00002245, &axi_qos->qosctset0); 137321871138SVladimir Barinov writel(0x00002096, &axi_qos->qosctset1); 137421871138SVladimir Barinov writel(0x00002030, &axi_qos->qosctset2); 137521871138SVladimir Barinov writel(0x00002030, &axi_qos->qosctset3); 137621871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 137721871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 137821871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 137921871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 138021871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 138121871138SVladimir Barinov 138221871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)SYS_AXI_LBS_BASE; 138321871138SVladimir Barinov writel(0x00000000, &axi_qos->qosconf); 138421871138SVladimir Barinov writel(0x0000214C, &axi_qos->qosctset0); 138521871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 138621871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 138721871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 138821871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 138921871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 139021871138SVladimir Barinov 139121871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)SYS_AXI_MMUDS_BASE; 139221871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 139321871138SVladimir Barinov writel(0x00002004, &axi_qos->qosctset0); 139421871138SVladimir Barinov writel(0x00002096, &axi_qos->qosctset1); 139521871138SVladimir Barinov writel(0x00002030, &axi_qos->qosctset2); 139621871138SVladimir Barinov writel(0x00002030, &axi_qos->qosctset3); 139721871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 139821871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 139921871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 140021871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 140121871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 140221871138SVladimir Barinov 140321871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)SYS_AXI_MMUM_BASE; 140421871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 140521871138SVladimir Barinov writel(0x00002004, &axi_qos->qosctset0); 140621871138SVladimir Barinov writel(0x00002096, &axi_qos->qosctset1); 140721871138SVladimir Barinov writel(0x00002030, &axi_qos->qosctset2); 140821871138SVladimir Barinov writel(0x00002030, &axi_qos->qosctset3); 140921871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 141021871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 141121871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 141221871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 141321871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 141421871138SVladimir Barinov 141521871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)SYS_AXI_MMUR_BASE; 141621871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 141721871138SVladimir Barinov writel(0x00002004, &axi_qos->qosctset0); 141821871138SVladimir Barinov writel(0x00002096, &axi_qos->qosctset1); 141921871138SVladimir Barinov writel(0x00002030, &axi_qos->qosctset2); 142021871138SVladimir Barinov writel(0x00002030, &axi_qos->qosctset3); 142121871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 142221871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 142321871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 142421871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 142521871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 142621871138SVladimir Barinov 142721871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)SYS_AXI_MMUS0_BASE; 142821871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 142921871138SVladimir Barinov writel(0x00002004, &axi_qos->qosctset0); 143021871138SVladimir Barinov writel(0x00002096, &axi_qos->qosctset1); 143121871138SVladimir Barinov writel(0x00002030, &axi_qos->qosctset2); 143221871138SVladimir Barinov writel(0x00002030, &axi_qos->qosctset3); 143321871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 143421871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 143521871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 143621871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 143721871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 143821871138SVladimir Barinov 143921871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)SYS_AXI_MMUS1_BASE; 144021871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 144121871138SVladimir Barinov writel(0x00002004, &axi_qos->qosctset0); 144221871138SVladimir Barinov writel(0x00002096, &axi_qos->qosctset1); 144321871138SVladimir Barinov writel(0x00002030, &axi_qos->qosctset2); 144421871138SVladimir Barinov writel(0x00002030, &axi_qos->qosctset3); 144521871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 144621871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 144721871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 144821871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 144921871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 145021871138SVladimir Barinov 145121871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)SYS_AXI_MTSB0_BASE; 145221871138SVladimir Barinov writel(0x00000000, &axi_qos->qosconf); 145321871138SVladimir Barinov writel(0x00002021, &axi_qos->qosctset0); 145421871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 145521871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 145621871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 145721871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 145821871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 145921871138SVladimir Barinov 146021871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)SYS_AXI_MTSB1_BASE; 146121871138SVladimir Barinov writel(0x00000000, &axi_qos->qosconf); 146221871138SVladimir Barinov writel(0x00002021, &axi_qos->qosctset0); 146321871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 146421871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 146521871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 146621871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 146721871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 146821871138SVladimir Barinov 146921871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)SYS_AXI_PCI_BASE; 147021871138SVladimir Barinov writel(0x00000000, &axi_qos->qosconf); 147121871138SVladimir Barinov writel(0x0000214C, &axi_qos->qosctset0); 147221871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 147321871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 147421871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 147521871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 147621871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 147721871138SVladimir Barinov 147821871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)SYS_AXI_RTX_BASE; 147921871138SVladimir Barinov writel(0x00000002, &axi_qos->qosconf); 148021871138SVladimir Barinov writel(0x00002245, &axi_qos->qosctset0); 148121871138SVladimir Barinov writel(0x00002096, &axi_qos->qosctset1); 148221871138SVladimir Barinov writel(0x00002030, &axi_qos->qosctset2); 148321871138SVladimir Barinov writel(0x00002030, &axi_qos->qosctset3); 148421871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 148521871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 148621871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 148721871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 148821871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 148921871138SVladimir Barinov 149021871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)SYS_AXI_SDS0_BASE; 149121871138SVladimir Barinov writel(0x00000000, &axi_qos->qosconf); 149221871138SVladimir Barinov writel(0x000020A6, &axi_qos->qosctset0); 149321871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 149421871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 149521871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 149621871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 149721871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 149821871138SVladimir Barinov 149921871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)SYS_AXI_SDS1_BASE; 150021871138SVladimir Barinov writel(0x00000000, &axi_qos->qosconf); 150121871138SVladimir Barinov writel(0x000020A6, &axi_qos->qosctset0); 150221871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 150321871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 150421871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 150521871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 150621871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 150721871138SVladimir Barinov 150821871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)SYS_AXI_USB20_BASE; 150921871138SVladimir Barinov writel(0x00000000, &axi_qos->qosconf); 151021871138SVladimir Barinov writel(0x00002053, &axi_qos->qosctset0); 151121871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 151221871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 151321871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 151421871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 151521871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 151621871138SVladimir Barinov 151721871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)SYS_AXI_USB21_BASE; 151821871138SVladimir Barinov writel(0x00000000, &axi_qos->qosconf); 151921871138SVladimir Barinov writel(0x00002053, &axi_qos->qosctset0); 152021871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 152121871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 152221871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 152321871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 152421871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 152521871138SVladimir Barinov 152621871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)SYS_AXI_USB22_BASE; 152721871138SVladimir Barinov writel(0x00000000, &axi_qos->qosconf); 152821871138SVladimir Barinov writel(0x00002053, &axi_qos->qosctset0); 152921871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 153021871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 153121871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 153221871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 153321871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 153421871138SVladimir Barinov 153521871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)SYS_AXI_USB30_BASE; 153621871138SVladimir Barinov writel(0x00000000, &axi_qos->qosconf); 153721871138SVladimir Barinov writel(0x0000214C, &axi_qos->qosctset0); 153821871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 153921871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 154021871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 154121871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 154221871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 154321871138SVladimir Barinov 154421871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)SYS_AXI_AX2M_BASE; 154521871138SVladimir Barinov writel(0x00000002, &axi_qos->qosconf); 154621871138SVladimir Barinov writel(0x00002245, &axi_qos->qosctset0); 154721871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 154821871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 154921871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 155021871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 155121871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 155221871138SVladimir Barinov 155321871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)SYS_AXI_CC50_BASE; 155421871138SVladimir Barinov writel(0x00000000, &axi_qos->qosconf); 155521871138SVladimir Barinov writel(0x00002029, &axi_qos->qosctset0); 155621871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 155721871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 155821871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 155921871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 156021871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 156121871138SVladimir Barinov 156221871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)SYS_AXI_CCI_BASE; 156321871138SVladimir Barinov writel(0x00000002, &axi_qos->qosconf); 156421871138SVladimir Barinov writel(0x00002245, &axi_qos->qosctset0); 156521871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 156621871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 156721871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 156821871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 156921871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 157021871138SVladimir Barinov 157121871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)SYS_AXI_CS_BASE; 157221871138SVladimir Barinov writel(0x00000000, &axi_qos->qosconf); 157321871138SVladimir Barinov writel(0x00002053, &axi_qos->qosctset0); 157421871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 157521871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 157621871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 157721871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 157821871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 157921871138SVladimir Barinov 158021871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)SYS_AXI_DDM_BASE; 158121871138SVladimir Barinov writel(0x00000000, &axi_qos->qosconf); 158221871138SVladimir Barinov writel(0x000020A6, &axi_qos->qosctset0); 158321871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 158421871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 158521871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 158621871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 158721871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 158821871138SVladimir Barinov 158921871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)SYS_AXI_ETH_BASE; 159021871138SVladimir Barinov writel(0x00000000, &axi_qos->qosconf); 159121871138SVladimir Barinov writel(0x00002053, &axi_qos->qosctset0); 159221871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 159321871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 159421871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 159521871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 159621871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 159721871138SVladimir Barinov 159821871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)SYS_AXI_MPXM_BASE; 159921871138SVladimir Barinov writel(0x00000002, &axi_qos->qosconf); 160021871138SVladimir Barinov writel(0x00002245, &axi_qos->qosctset0); 160121871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 160221871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 160321871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 160421871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 160521871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 160621871138SVladimir Barinov 160721871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)SYS_AXI_SAT0_BASE; 160821871138SVladimir Barinov writel(0x00000000, &axi_qos->qosconf); 160921871138SVladimir Barinov writel(0x00002053, &axi_qos->qosctset0); 161021871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 161121871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 161221871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 161321871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 161421871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 161521871138SVladimir Barinov 161621871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)SYS_AXI_SAT1_BASE; 161721871138SVladimir Barinov writel(0x00000000, &axi_qos->qosconf); 161821871138SVladimir Barinov writel(0x00002053, &axi_qos->qosctset0); 161921871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 162021871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 162121871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 162221871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 162321871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 162421871138SVladimir Barinov 162521871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)SYS_AXI_SDM0_BASE; 162621871138SVladimir Barinov writel(0x00000000, &axi_qos->qosconf); 162721871138SVladimir Barinov writel(0x0000214C, &axi_qos->qosctset0); 162821871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 162921871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 163021871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 163121871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 163221871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 163321871138SVladimir Barinov 163421871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)SYS_AXI_SDM1_BASE; 163521871138SVladimir Barinov writel(0x00000000, &axi_qos->qosconf); 163621871138SVladimir Barinov writel(0x0000214C, &axi_qos->qosctset0); 163721871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 163821871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 163921871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 164021871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 164121871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 164221871138SVladimir Barinov 164321871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)SYS_AXI_TRAB_BASE; 164421871138SVladimir Barinov writel(0x00000000, &axi_qos->qosconf); 164521871138SVladimir Barinov writel(0x000020A6, &axi_qos->qosctset0); 164621871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 164721871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 164821871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 164921871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 165021871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 165121871138SVladimir Barinov 165221871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)SYS_AXI_UDM0_BASE; 165321871138SVladimir Barinov writel(0x00000000, &axi_qos->qosconf); 165421871138SVladimir Barinov writel(0x00002053, &axi_qos->qosctset0); 165521871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 165621871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 165721871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 165821871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 165921871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 166021871138SVladimir Barinov 166121871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)SYS_AXI_UDM1_BASE; 166221871138SVladimir Barinov writel(0x00000000, &axi_qos->qosconf); 166321871138SVladimir Barinov writel(0x00002053, &axi_qos->qosctset0); 166421871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 166521871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 166621871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 166721871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 166821871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 166921871138SVladimir Barinov 167021871138SVladimir Barinov /* QoS Register (RT-AXI) */ 167121871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)RT_AXI_SHX_BASE; 167221871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 167321871138SVladimir Barinov writel(0x00002053, &axi_qos->qosctset0); 167421871138SVladimir Barinov writel(0x00002096, &axi_qos->qosctset1); 167521871138SVladimir Barinov writel(0x00002030, &axi_qos->qosctset2); 167621871138SVladimir Barinov writel(0x00002030, &axi_qos->qosctset3); 167721871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 167821871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 167921871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 168021871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 168121871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 168221871138SVladimir Barinov 168321871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)RT_AXI_DBG_BASE; 168421871138SVladimir Barinov writel(0x00000000, &axi_qos->qosconf); 168521871138SVladimir Barinov writel(0x00002053, &axi_qos->qosctset0); 168621871138SVladimir Barinov writel(0x00002096, &axi_qos->qosctset1); 168721871138SVladimir Barinov writel(0x00002030, &axi_qos->qosctset2); 168821871138SVladimir Barinov writel(0x00002030, &axi_qos->qosctset3); 168921871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 169021871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 169121871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 169221871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 169321871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 169421871138SVladimir Barinov 169521871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)RT_AXI_RDM_BASE; 169621871138SVladimir Barinov writel(0x00000000, &axi_qos->qosconf); 169721871138SVladimir Barinov writel(0x00002299, &axi_qos->qosctset0); 169821871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 169921871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 170021871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 170121871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 170221871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 170321871138SVladimir Barinov 170421871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)RT_AXI_RDS_BASE; 170521871138SVladimir Barinov writel(0x00000000, &axi_qos->qosconf); 170621871138SVladimir Barinov writel(0x00002029, &axi_qos->qosctset0); 170721871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 170821871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 170921871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 171021871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 171121871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 171221871138SVladimir Barinov 171321871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)RT_AXI_RTX64TO128_BASE; 171421871138SVladimir Barinov writel(0x00000002, &axi_qos->qosconf); 171521871138SVladimir Barinov writel(0x00002245, &axi_qos->qosctset0); 171621871138SVladimir Barinov writel(0x00002096, &axi_qos->qosctset1); 171721871138SVladimir Barinov writel(0x00002030, &axi_qos->qosctset2); 171821871138SVladimir Barinov writel(0x00002030, &axi_qos->qosctset3); 171921871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 172021871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 172121871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 172221871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 172321871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 172421871138SVladimir Barinov 172521871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)RT_AXI_STPRO_BASE; 172621871138SVladimir Barinov writel(0x00000000, &axi_qos->qosconf); 172721871138SVladimir Barinov writel(0x00002029, &axi_qos->qosctset0); 172821871138SVladimir Barinov writel(0x00002096, &axi_qos->qosctset1); 172921871138SVladimir Barinov writel(0x00002030, &axi_qos->qosctset2); 173021871138SVladimir Barinov writel(0x00002030, &axi_qos->qosctset3); 173121871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 173221871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 173321871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 173421871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 173521871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 173621871138SVladimir Barinov 173721871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)RT_AXI_SY2RT_BASE; 173821871138SVladimir Barinov writel(0x00000002, &axi_qos->qosconf); 173921871138SVladimir Barinov writel(0x00002245, &axi_qos->qosctset0); 174021871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 174121871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 174221871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 174321871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 174421871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 174521871138SVladimir Barinov 174621871138SVladimir Barinov /* QoS Register (MP-AXI) */ 174721871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MP_AXI_ADSP_BASE; 174821871138SVladimir Barinov writel(0x00000000, &axi_qos->qosconf); 174921871138SVladimir Barinov writel(0x00002037, &axi_qos->qosctset0); 175021871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 175121871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 175221871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 175321871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 175421871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 175521871138SVladimir Barinov 175621871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MP_AXI_ASDS0_BASE; 175721871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 175821871138SVladimir Barinov writel(0x00002014, &axi_qos->qosctset0); 175921871138SVladimir Barinov writel(0x00000040, &axi_qos->qosreqctr); 176021871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 176121871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 176221871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 176321871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 176421871138SVladimir Barinov 176521871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MP_AXI_ASDS1_BASE; 176621871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 176721871138SVladimir Barinov writel(0x00002014, &axi_qos->qosctset0); 176821871138SVladimir Barinov writel(0x00000040, &axi_qos->qosreqctr); 176921871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 177021871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 177121871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 177221871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 177321871138SVladimir Barinov 177421871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MP_AXI_MLP_BASE; 177521871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 177621871138SVladimir Barinov writel(0x00001FF0, &axi_qos->qosctset0); 177721871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 177821871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 177921871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 178021871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres2); 178121871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 178221871138SVladimir Barinov 178321871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MP_AXI_MMUMP_BASE; 178421871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 178521871138SVladimir Barinov writel(0x00002004, &axi_qos->qosctset0); 178621871138SVladimir Barinov writel(0x00002096, &axi_qos->qosctset1); 178721871138SVladimir Barinov writel(0x00002030, &axi_qos->qosctset2); 178821871138SVladimir Barinov writel(0x00002030, &axi_qos->qosctset3); 178921871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 179021871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 179121871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 179221871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 179321871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 179421871138SVladimir Barinov 179521871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MP_AXI_SPU_BASE; 179621871138SVladimir Barinov writel(0x00000000, &axi_qos->qosconf); 179721871138SVladimir Barinov writel(0x00002053, &axi_qos->qosctset0); 179821871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 179921871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 180021871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 180121871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 180221871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 180321871138SVladimir Barinov 180421871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MP_AXI_SPUC_BASE; 180521871138SVladimir Barinov writel(0x00000000, &axi_qos->qosconf); 180621871138SVladimir Barinov writel(0x0000206E, &axi_qos->qosctset0); 180721871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 180821871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 180921871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 181021871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 181121871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 181221871138SVladimir Barinov 181321871138SVladimir Barinov /* QoS Register (SYS-AXI256) */ 181421871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)SYS_AXI256_AXI128TO256_BASE; 181521871138SVladimir Barinov writel(0x00000002, &axi_qos->qosconf); 181621871138SVladimir Barinov writel(0x000020EB, &axi_qos->qosctset0); 181721871138SVladimir Barinov writel(0x00002096, &axi_qos->qosctset1); 181821871138SVladimir Barinov writel(0x00002030, &axi_qos->qosctset2); 181921871138SVladimir Barinov writel(0x00002030, &axi_qos->qosctset3); 182021871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 182121871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 182221871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 182321871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 182421871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 182521871138SVladimir Barinov 182621871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)SYS_AXI256_SYX_BASE; 182721871138SVladimir Barinov writel(0x00000002, &axi_qos->qosconf); 182821871138SVladimir Barinov writel(0x000020EB, &axi_qos->qosctset0); 182921871138SVladimir Barinov writel(0x00002096, &axi_qos->qosctset1); 183021871138SVladimir Barinov writel(0x00002030, &axi_qos->qosctset2); 183121871138SVladimir Barinov writel(0x00002030, &axi_qos->qosctset3); 183221871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 183321871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 183421871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 183521871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 183621871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 183721871138SVladimir Barinov 183821871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)SYS_AXI256_MPX_BASE; 183921871138SVladimir Barinov writel(0x00000002, &axi_qos->qosconf); 184021871138SVladimir Barinov writel(0x000020EB, &axi_qos->qosctset0); 184121871138SVladimir Barinov writel(0x00002096, &axi_qos->qosctset1); 184221871138SVladimir Barinov writel(0x00002030, &axi_qos->qosctset2); 184321871138SVladimir Barinov writel(0x00002030, &axi_qos->qosctset3); 184421871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 184521871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 184621871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 184721871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 184821871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 184921871138SVladimir Barinov 185021871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)SYS_AXI256_MXI_BASE; 185121871138SVladimir Barinov writel(0x00000002, &axi_qos->qosconf); 185221871138SVladimir Barinov writel(0x000020EB, &axi_qos->qosctset0); 185321871138SVladimir Barinov writel(0x00002096, &axi_qos->qosctset1); 185421871138SVladimir Barinov writel(0x00002030, &axi_qos->qosctset2); 185521871138SVladimir Barinov writel(0x00002030, &axi_qos->qosctset3); 185621871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 185721871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 185821871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 185921871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 186021871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 186121871138SVladimir Barinov 186221871138SVladimir Barinov /* QoS Register (CCI-AXI) */ 186321871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)CCI_AXI_MMUS0_BASE; 186421871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 186521871138SVladimir Barinov writel(0x00002004, &axi_qos->qosctset0); 186621871138SVladimir Barinov writel(0x00002096, &axi_qos->qosctset1); 186721871138SVladimir Barinov writel(0x00002030, &axi_qos->qosctset2); 186821871138SVladimir Barinov writel(0x00002030, &axi_qos->qosctset3); 186921871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 187021871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 187121871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 187221871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 187321871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 187421871138SVladimir Barinov 187521871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)CCI_AXI_SYX2_BASE; 187621871138SVladimir Barinov writel(0x00000002, &axi_qos->qosconf); 187721871138SVladimir Barinov writel(0x00002245, &axi_qos->qosctset0); 187821871138SVladimir Barinov writel(0x00002096, &axi_qos->qosctset1); 187921871138SVladimir Barinov writel(0x00002030, &axi_qos->qosctset2); 188021871138SVladimir Barinov writel(0x00002030, &axi_qos->qosctset3); 188121871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 188221871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 188321871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 188421871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 188521871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 188621871138SVladimir Barinov 188721871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)CCI_AXI_MMUR_BASE; 188821871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 188921871138SVladimir Barinov writel(0x00002004, &axi_qos->qosctset0); 189021871138SVladimir Barinov writel(0x00002096, &axi_qos->qosctset1); 189121871138SVladimir Barinov writel(0x00002030, &axi_qos->qosctset2); 189221871138SVladimir Barinov writel(0x00002030, &axi_qos->qosctset3); 189321871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 189421871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 189521871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 189621871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 189721871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 189821871138SVladimir Barinov 189921871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)CCI_AXI_MMUDS_BASE; 190021871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 190121871138SVladimir Barinov writel(0x00002004, &axi_qos->qosctset0); 190221871138SVladimir Barinov writel(0x00002096, &axi_qos->qosctset1); 190321871138SVladimir Barinov writel(0x00002030, &axi_qos->qosctset2); 190421871138SVladimir Barinov writel(0x00002030, &axi_qos->qosctset3); 190521871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 190621871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 190721871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 190821871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 190921871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 191021871138SVladimir Barinov 191121871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)CCI_AXI_MMUM_BASE; 191221871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 191321871138SVladimir Barinov writel(0x00002004, &axi_qos->qosctset0); 191421871138SVladimir Barinov writel(0x00002096, &axi_qos->qosctset1); 191521871138SVladimir Barinov writel(0x00002030, &axi_qos->qosctset2); 191621871138SVladimir Barinov writel(0x00002030, &axi_qos->qosctset3); 191721871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 191821871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 191921871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 192021871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 192121871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 192221871138SVladimir Barinov 192321871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)CCI_AXI_MXI_BASE; 192421871138SVladimir Barinov writel(0x00000002, &axi_qos->qosconf); 192521871138SVladimir Barinov writel(0x00002245, &axi_qos->qosctset0); 192621871138SVladimir Barinov writel(0x00002096, &axi_qos->qosctset1); 192721871138SVladimir Barinov writel(0x00002030, &axi_qos->qosctset2); 192821871138SVladimir Barinov writel(0x00002030, &axi_qos->qosctset3); 192921871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 193021871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 193121871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 193221871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 193321871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 193421871138SVladimir Barinov 193521871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)CCI_AXI_MMUS1_BASE; 193621871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 193721871138SVladimir Barinov writel(0x00002004, &axi_qos->qosctset0); 193821871138SVladimir Barinov writel(0x00002096, &axi_qos->qosctset1); 193921871138SVladimir Barinov writel(0x00002030, &axi_qos->qosctset2); 194021871138SVladimir Barinov writel(0x00002030, &axi_qos->qosctset3); 194121871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 194221871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 194321871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 194421871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 194521871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 194621871138SVladimir Barinov 194721871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)CCI_AXI_MMUMP_BASE; 194821871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 194921871138SVladimir Barinov writel(0x00002004, &axi_qos->qosctset0); 195021871138SVladimir Barinov writel(0x00002096, &axi_qos->qosctset1); 195121871138SVladimir Barinov writel(0x00002030, &axi_qos->qosctset2); 195221871138SVladimir Barinov writel(0x00002030, &axi_qos->qosctset3); 195321871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 195421871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 195521871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 195621871138SVladimir Barinov writel(0x00000000, &axi_qos->qosthres2); 195721871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 195821871138SVladimir Barinov 195921871138SVladimir Barinov /* QoS Register (Media-AXI) */ 196021871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_MXR_BASE; 196121871138SVladimir Barinov writel(0x00000002, &axi_qos->qosconf); 196221871138SVladimir Barinov writel(0x000020dc, &axi_qos->qosctset0); 196321871138SVladimir Barinov writel(0x00002096, &axi_qos->qosctset1); 196421871138SVladimir Barinov writel(0x00002030, &axi_qos->qosctset2); 196521871138SVladimir Barinov writel(0x00002030, &axi_qos->qosctset3); 196621871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 196721871138SVladimir Barinov writel(0x000020AA, &axi_qos->qosthres0); 196821871138SVladimir Barinov writel(0x00002032, &axi_qos->qosthres1); 196921871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 197021871138SVladimir Barinov 197121871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_MXW_BASE; 197221871138SVladimir Barinov writel(0x00000002, &axi_qos->qosconf); 197321871138SVladimir Barinov writel(0x000020dc, &axi_qos->qosctset0); 197421871138SVladimir Barinov writel(0x00002096, &axi_qos->qosctset1); 197521871138SVladimir Barinov writel(0x00002030, &axi_qos->qosctset2); 197621871138SVladimir Barinov writel(0x00002030, &axi_qos->qosctset3); 197721871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 197821871138SVladimir Barinov writel(0x000020AA, &axi_qos->qosthres0); 197921871138SVladimir Barinov writel(0x00002032, &axi_qos->qosthres1); 198021871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 198121871138SVladimir Barinov 198221871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_JPR_BASE; 198321871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 198421871138SVladimir Barinov writel(0x00002190, &axi_qos->qosctset0); 198521871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 198621871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 198721871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 198821871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 198921871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 199021871138SVladimir Barinov 199121871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_JPW_BASE; 199221871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 199321871138SVladimir Barinov writel(0x00002190, &axi_qos->qosctset0); 199421871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 199521871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres0); 199621871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres1); 199721871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 199821871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 199921871138SVladimir Barinov 200021871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_GCU0R_BASE; 200121871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 200221871138SVladimir Barinov writel(0x00002190, &axi_qos->qosctset0); 200321871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 200421871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 200521871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 200621871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 200721871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 200821871138SVladimir Barinov 200921871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_GCU0W_BASE; 201021871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 201121871138SVladimir Barinov writel(0x00002190, &axi_qos->qosctset0); 201221871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 201321871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres0); 201421871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres1); 201521871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 201621871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 201721871138SVladimir Barinov 201821871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_GCU1R_BASE; 201921871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 202021871138SVladimir Barinov writel(0x00002190, &axi_qos->qosctset0); 202121871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 202221871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 202321871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 202421871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 202521871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 202621871138SVladimir Barinov 202721871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_GCU1W_BASE; 202821871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 202921871138SVladimir Barinov writel(0x00002190, &axi_qos->qosctset0); 203021871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 203121871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres0); 203221871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres1); 203321871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 203421871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 203521871138SVladimir Barinov 203621871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_TDMR_BASE; 203721871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 203821871138SVladimir Barinov writel(0x00002190, &axi_qos->qosctset0); 203921871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 204021871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 204121871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 204221871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 204321871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 204421871138SVladimir Barinov 204521871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_TDMW_BASE; 204621871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 204721871138SVladimir Barinov writel(0x00002190, &axi_qos->qosctset0); 204821871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 204921871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres0); 205021871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres1); 205121871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 205221871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 205321871138SVladimir Barinov 205421871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSP0CR_BASE; 205521871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 205621871138SVladimir Barinov writel(0x00002190, &axi_qos->qosctset0); 205721871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 205821871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 205921871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 206021871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 206121871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 206221871138SVladimir Barinov 206321871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSP0CW_BASE; 206421871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 206521871138SVladimir Barinov writel(0x00002190, &axi_qos->qosctset0); 206621871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 206721871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres0); 206821871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres1); 206921871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 207021871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 207121871138SVladimir Barinov 207221871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSP1CR_BASE; 207321871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 207421871138SVladimir Barinov writel(0x00002190, &axi_qos->qosctset0); 207521871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 207621871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 207721871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 207821871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 207921871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 208021871138SVladimir Barinov 208121871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSP1CW_BASE; 208221871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 208321871138SVladimir Barinov writel(0x00002190, &axi_qos->qosctset0); 208421871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 208521871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres0); 208621871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres1); 208721871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 208821871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 208921871138SVladimir Barinov 209021871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSPDU0CR_BASE; 209121871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 209221871138SVladimir Barinov writel(0x00002190, &axi_qos->qosctset0); 209321871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 209421871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 209521871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 209621871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 209721871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 209821871138SVladimir Barinov 209921871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSPDU0CW_BASE; 210021871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 210121871138SVladimir Barinov writel(0x00002190, &axi_qos->qosctset0); 210221871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 210321871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres0); 210421871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres1); 210521871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 210621871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 210721871138SVladimir Barinov 210821871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSPDU1CR_BASE; 210921871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 211021871138SVladimir Barinov writel(0x00002190, &axi_qos->qosctset0); 211121871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 211221871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 211321871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 211421871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 211521871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 211621871138SVladimir Barinov 211721871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSPDU1CW_BASE; 211821871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 211921871138SVladimir Barinov writel(0x00002190, &axi_qos->qosctset0); 212021871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 212121871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres0); 212221871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres1); 212321871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 212421871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 212521871138SVladimir Barinov 212621871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VIN0W_BASE; 212721871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 212821871138SVladimir Barinov writel(0x00001FF0, &axi_qos->qosctset0); 212921871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 213021871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 213121871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 213221871138SVladimir Barinov writel(0x00002001, &axi_qos->qosthres2); 213321871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 213421871138SVladimir Barinov 213521871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSP0R_BASE; 213621871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 213721871138SVladimir Barinov writel(0x000020C8, &axi_qos->qosctset0); 213821871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 213921871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 214021871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 214121871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 214221871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 214321871138SVladimir Barinov 214421871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSP0W_BASE; 214521871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 214621871138SVladimir Barinov writel(0x000020C8, &axi_qos->qosctset0); 214721871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 214821871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres0); 214921871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres1); 215021871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 215121871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 215221871138SVladimir Barinov 215321871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_FDP0R_BASE; 215421871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 215521871138SVladimir Barinov writel(0x000020C8, &axi_qos->qosctset0); 215621871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 215721871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 215821871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 215921871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 216021871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 216121871138SVladimir Barinov 216221871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_FDP0W_BASE; 216321871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 216421871138SVladimir Barinov writel(0x000020C8, &axi_qos->qosctset0); 216521871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 216621871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres0); 216721871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres1); 216821871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 216921871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 217021871138SVladimir Barinov 217121871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_IMSR_BASE; 217221871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 217321871138SVladimir Barinov writel(0x000020C8, &axi_qos->qosctset0); 217421871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 217521871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 217621871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 217721871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 217821871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 217921871138SVladimir Barinov 218021871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_IMSW_BASE; 218121871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 218221871138SVladimir Barinov writel(0x000020C8, &axi_qos->qosctset0); 218321871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 218421871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 218521871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 218621871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 218721871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 218821871138SVladimir Barinov 218921871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSP1R_BASE; 219021871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 219121871138SVladimir Barinov writel(0x000020C8, &axi_qos->qosctset0); 219221871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 219321871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 219421871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 219521871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 219621871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 219721871138SVladimir Barinov 219821871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSP1W_BASE; 219921871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 220021871138SVladimir Barinov writel(0x000020C8, &axi_qos->qosctset0); 220121871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 220221871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres0); 220321871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres1); 220421871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 220521871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 220621871138SVladimir Barinov 220721871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_FDP1R_BASE; 220821871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 220921871138SVladimir Barinov writel(0x000020C8, &axi_qos->qosctset0); 221021871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 221121871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 221221871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 221321871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 221421871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 221521871138SVladimir Barinov 221621871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_FDP1W_BASE; 221721871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 221821871138SVladimir Barinov writel(0x000020C8, &axi_qos->qosctset0); 221921871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 222021871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres0); 222121871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres1); 222221871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 222321871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 222421871138SVladimir Barinov 222521871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_IMRR_BASE; 222621871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 222721871138SVladimir Barinov writel(0x000020C8, &axi_qos->qosctset0); 222821871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 222921871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 223021871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 223121871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 223221871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 223321871138SVladimir Barinov 223421871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_IMRW_BASE; 223521871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 223621871138SVladimir Barinov writel(0x000020C8, &axi_qos->qosctset0); 223721871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 223821871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres0); 223921871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres1); 224021871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 224121871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 224221871138SVladimir Barinov 224321871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_FDP2R_BASE; 224421871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 224521871138SVladimir Barinov writel(0x000020C8, &axi_qos->qosctset0); 224621871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 224721871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 224821871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 224921871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 225021871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 225121871138SVladimir Barinov 225221871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_FDP2W_BASE; 225321871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 225421871138SVladimir Barinov writel(0x000020C8, &axi_qos->qosctset0); 225521871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 225621871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres0); 225721871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres1); 225821871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 225921871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 226021871138SVladimir Barinov 226121871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSPD0R_BASE; 226221871138SVladimir Barinov writel(0x00000003, &axi_qos->qosconf); 226321871138SVladimir Barinov writel(0x000020C8, &axi_qos->qosctset0); 226421871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 226521871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 226621871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 226721871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 226821871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 226921871138SVladimir Barinov 227021871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSPD0W_BASE; 227121871138SVladimir Barinov writel(0x00000003, &axi_qos->qosconf); 227221871138SVladimir Barinov writel(0x000020C8, &axi_qos->qosctset0); 227321871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 227421871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres0); 227521871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres1); 227621871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 227721871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 227821871138SVladimir Barinov 227921871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSPD1R_BASE; 228021871138SVladimir Barinov writel(0x00000003, &axi_qos->qosconf); 228121871138SVladimir Barinov writel(0x000020C8, &axi_qos->qosctset0); 228221871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 228321871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 228421871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 228521871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 228621871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 228721871138SVladimir Barinov 228821871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSPD1W_BASE; 228921871138SVladimir Barinov writel(0x00000003, &axi_qos->qosconf); 229021871138SVladimir Barinov writel(0x000020C8, &axi_qos->qosctset0); 229121871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 229221871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres0); 229321871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres1); 229421871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 229521871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 229621871138SVladimir Barinov 229721871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_DU0R_BASE; 229821871138SVladimir Barinov writel(0x00000003, &axi_qos->qosconf); 229921871138SVladimir Barinov writel(0x00002063, &axi_qos->qosctset0); 230021871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 230121871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 230221871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 230321871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 230421871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 230521871138SVladimir Barinov 230621871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_DU0W_BASE; 230721871138SVladimir Barinov writel(0x00000003, &axi_qos->qosconf); 230821871138SVladimir Barinov writel(0x00002063, &axi_qos->qosctset0); 230921871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 231021871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres0); 231121871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres1); 231221871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 231321871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 231421871138SVladimir Barinov 231521871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_DU1R_BASE; 231621871138SVladimir Barinov writel(0x00000003, &axi_qos->qosconf); 231721871138SVladimir Barinov writel(0x00002063, &axi_qos->qosctset0); 231821871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 231921871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 232021871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 232121871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 232221871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 232321871138SVladimir Barinov 232421871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_DU1W_BASE; 232521871138SVladimir Barinov writel(0x00000003, &axi_qos->qosconf); 232621871138SVladimir Barinov writel(0x00002063, &axi_qos->qosctset0); 232721871138SVladimir Barinov writel(0x00000001, &axi_qos->qosreqctr); 232821871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres0); 232921871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres1); 233021871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 233121871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 233221871138SVladimir Barinov 233321871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VCP0CR_BASE; 233421871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 233521871138SVladimir Barinov writel(0x00002073, &axi_qos->qosctset0); 233621871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 233721871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 233821871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 233921871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 234021871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 234121871138SVladimir Barinov 234221871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VCP0CW_BASE; 234321871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 234421871138SVladimir Barinov writel(0x00002073, &axi_qos->qosctset0); 234521871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 234621871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres0); 234721871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres1); 234821871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 234921871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 235021871138SVladimir Barinov 235121871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VCP0VR_BASE; 235221871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 235321871138SVladimir Barinov writel(0x00002073, &axi_qos->qosctset0); 235421871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 235521871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 235621871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 235721871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 235821871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 235921871138SVladimir Barinov 236021871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VCP0VW_BASE; 236121871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 236221871138SVladimir Barinov writel(0x00002073, &axi_qos->qosctset0); 236321871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 236421871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres0); 236521871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres1); 236621871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 236721871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 236821871138SVladimir Barinov 236921871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VPC0R_BASE; 237021871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 237121871138SVladimir Barinov writel(0x00002073, &axi_qos->qosctset0); 237221871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 237321871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 237421871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 237521871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 237621871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 237721871138SVladimir Barinov 237821871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VCP1CR_BASE; 237921871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 238021871138SVladimir Barinov writel(0x00002073, &axi_qos->qosctset0); 238121871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 238221871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 238321871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 238421871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 238521871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 238621871138SVladimir Barinov 238721871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VCP1CW_BASE; 238821871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 238921871138SVladimir Barinov writel(0x00002073, &axi_qos->qosctset0); 239021871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 239121871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres0); 239221871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres1); 239321871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 239421871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 239521871138SVladimir Barinov 239621871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VCP1VR_BASE; 239721871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 239821871138SVladimir Barinov writel(0x00002073, &axi_qos->qosctset0); 239921871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 240021871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 240121871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 240221871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 240321871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 240421871138SVladimir Barinov 240521871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VCP1VW_BASE; 240621871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 240721871138SVladimir Barinov writel(0x00002073, &axi_qos->qosctset0); 240821871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 240921871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres0); 241021871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres1); 241121871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 241221871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 241321871138SVladimir Barinov 241421871138SVladimir Barinov axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VPC1R_BASE; 241521871138SVladimir Barinov writel(0x00000001, &axi_qos->qosconf); 241621871138SVladimir Barinov writel(0x00002073, &axi_qos->qosctset0); 241721871138SVladimir Barinov writel(0x00000020, &axi_qos->qosreqctr); 241821871138SVladimir Barinov writel(0x00002064, &axi_qos->qosthres0); 241921871138SVladimir Barinov writel(0x00002004, &axi_qos->qosthres1); 242021871138SVladimir Barinov writel(0x00000001, &axi_qos->qosthres2); 242121871138SVladimir Barinov writel(0x00000001, &axi_qos->qosqon); 242221871138SVladimir Barinov } 242321871138SVladimir Barinov 242421871138SVladimir Barinov void qos_init(void) 242521871138SVladimir Barinov { 242621871138SVladimir Barinov if (rmobile_get_cpu_rev_integer() >= R8A7790_CUT_ES2X) 242721871138SVladimir Barinov qos_init_es2(); 242821871138SVladimir Barinov else 242921871138SVladimir Barinov qos_init_es1(); 243021871138SVladimir Barinov } 2431*1cc95f6eSNobuhiro Iwamatsu #else /* CONFIG_ARCH_RMOBILE_EXTRAM_BOOT */ 243221871138SVladimir Barinov void qos_init(void) 243321871138SVladimir Barinov { 243421871138SVladimir Barinov } 2435*1cc95f6eSNobuhiro Iwamatsu #endif /* CONFIG_ARCH_RMOBILE_EXTRAM_BOOT */ 2436