Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
Vladimir Barinov | 8c94627 | 2015-07-20 20:49:59 +0300 | [diff] [blame] | 2 | /* |
| 3 | * board/renesas/stout/qos.c |
| 4 | * |
| 5 | * Copyright (C) 2015 Renesas Electronics Europe GmbH |
| 6 | * Copyright (C) 2015 Renesas Electronics Corporation |
| 7 | * Copyright (C) 2015 Cogent Embedded, Inc. |
Vladimir Barinov | 8c94627 | 2015-07-20 20:49:59 +0300 | [diff] [blame] | 8 | */ |
| 9 | |
| 10 | #include <common.h> |
| 11 | #include <asm/processor.h> |
| 12 | #include <asm/mach-types.h> |
| 13 | #include <asm/io.h> |
| 14 | #include <asm/arch/rmobile.h> |
| 15 | |
| 16 | /* QoS version 0.955 for ES1 and version 0.973 for ES2 */ |
Nobuhiro Iwamatsu | 7c11273 | 2015-10-10 05:58:28 +0900 | [diff] [blame] | 17 | #if defined(CONFIG_ARCH_RMOBILE_EXTRAM_BOOT) |
Vladimir Barinov | 8c94627 | 2015-07-20 20:49:59 +0300 | [diff] [blame] | 18 | enum { |
| 19 | DBSC3_00, DBSC3_01, DBSC3_02, DBSC3_03, DBSC3_04, |
| 20 | DBSC3_05, DBSC3_06, DBSC3_07, DBSC3_08, DBSC3_09, |
| 21 | DBSC3_10, DBSC3_11, DBSC3_12, DBSC3_13, DBSC3_14, |
| 22 | DBSC3_15, |
| 23 | DBSC3_NR, |
| 24 | }; |
| 25 | |
| 26 | static u32 dbsc3_0_r_qos_addr[DBSC3_NR] = { |
| 27 | [DBSC3_00] = DBSC3_0_QOS_R0_BASE, |
| 28 | [DBSC3_01] = DBSC3_0_QOS_R1_BASE, |
| 29 | [DBSC3_02] = DBSC3_0_QOS_R2_BASE, |
| 30 | [DBSC3_03] = DBSC3_0_QOS_R3_BASE, |
| 31 | [DBSC3_04] = DBSC3_0_QOS_R4_BASE, |
| 32 | [DBSC3_05] = DBSC3_0_QOS_R5_BASE, |
| 33 | [DBSC3_06] = DBSC3_0_QOS_R6_BASE, |
| 34 | [DBSC3_07] = DBSC3_0_QOS_R7_BASE, |
| 35 | [DBSC3_08] = DBSC3_0_QOS_R8_BASE, |
| 36 | [DBSC3_09] = DBSC3_0_QOS_R9_BASE, |
| 37 | [DBSC3_10] = DBSC3_0_QOS_R10_BASE, |
| 38 | [DBSC3_11] = DBSC3_0_QOS_R11_BASE, |
| 39 | [DBSC3_12] = DBSC3_0_QOS_R12_BASE, |
| 40 | [DBSC3_13] = DBSC3_0_QOS_R13_BASE, |
| 41 | [DBSC3_14] = DBSC3_0_QOS_R14_BASE, |
| 42 | [DBSC3_15] = DBSC3_0_QOS_R15_BASE, |
| 43 | }; |
| 44 | |
| 45 | static u32 dbsc3_0_w_qos_addr[DBSC3_NR] = { |
| 46 | [DBSC3_00] = DBSC3_0_QOS_W0_BASE, |
| 47 | [DBSC3_01] = DBSC3_0_QOS_W1_BASE, |
| 48 | [DBSC3_02] = DBSC3_0_QOS_W2_BASE, |
| 49 | [DBSC3_03] = DBSC3_0_QOS_W3_BASE, |
| 50 | [DBSC3_04] = DBSC3_0_QOS_W4_BASE, |
| 51 | [DBSC3_05] = DBSC3_0_QOS_W5_BASE, |
| 52 | [DBSC3_06] = DBSC3_0_QOS_W6_BASE, |
| 53 | [DBSC3_07] = DBSC3_0_QOS_W7_BASE, |
| 54 | [DBSC3_08] = DBSC3_0_QOS_W8_BASE, |
| 55 | [DBSC3_09] = DBSC3_0_QOS_W9_BASE, |
| 56 | [DBSC3_10] = DBSC3_0_QOS_W10_BASE, |
| 57 | [DBSC3_11] = DBSC3_0_QOS_W11_BASE, |
| 58 | [DBSC3_12] = DBSC3_0_QOS_W12_BASE, |
| 59 | [DBSC3_13] = DBSC3_0_QOS_W13_BASE, |
| 60 | [DBSC3_14] = DBSC3_0_QOS_W14_BASE, |
| 61 | [DBSC3_15] = DBSC3_0_QOS_W15_BASE, |
| 62 | }; |
| 63 | |
| 64 | /* QoS version 0.955 for ES1 */ |
| 65 | static void qos_init_es1(void) |
| 66 | { |
| 67 | int i; |
| 68 | struct rcar_s3c *s3c; |
| 69 | struct rcar_s3c_qos *s3c_qos; |
| 70 | struct rcar_dbsc3_qos *qos_addr; |
| 71 | struct rcar_mxi *mxi; |
| 72 | struct rcar_mxi_qos *mxi_qos; |
| 73 | struct rcar_axi_qos *axi_qos; |
| 74 | |
| 75 | /* DBSC DBADJ2 */ |
| 76 | writel(0x20042004, DBSC3_0_DBADJ2); |
| 77 | |
| 78 | /* S3C -QoS */ |
| 79 | s3c = (struct rcar_s3c *)S3C_BASE; |
| 80 | writel(0x80FF1C1E, &s3c->s3cadsplcr); |
| 81 | writel(0x1F060505, &s3c->s3crorr); |
| 82 | writel(0x1F020100, &s3c->s3cworr); |
| 83 | |
| 84 | /* QoS Control Registers */ |
| 85 | s3c_qos = (struct rcar_s3c_qos *)S3C_QOS_CCI0_BASE; |
| 86 | writel(0x00800080, &s3c_qos->s3cqos0); |
| 87 | writel(0x22000010, &s3c_qos->s3cqos1); |
| 88 | writel(0x22002200, &s3c_qos->s3cqos2); |
| 89 | writel(0x2F002200, &s3c_qos->s3cqos3); |
| 90 | writel(0x2F002F00, &s3c_qos->s3cqos4); |
| 91 | writel(0x22000010, &s3c_qos->s3cqos5); |
| 92 | writel(0x22002200, &s3c_qos->s3cqos6); |
| 93 | writel(0x2F002200, &s3c_qos->s3cqos7); |
| 94 | writel(0x2F002F00, &s3c_qos->s3cqos8); |
| 95 | |
| 96 | s3c_qos = (struct rcar_s3c_qos *)S3C_QOS_CCI1_BASE; |
| 97 | writel(0x00800080, &s3c_qos->s3cqos0); |
| 98 | writel(0x22000010, &s3c_qos->s3cqos1); |
| 99 | writel(0x22002200, &s3c_qos->s3cqos2); |
| 100 | writel(0x2F002200, &s3c_qos->s3cqos3); |
| 101 | writel(0x2F002F00, &s3c_qos->s3cqos4); |
| 102 | writel(0x22000010, &s3c_qos->s3cqos5); |
| 103 | writel(0x22002200, &s3c_qos->s3cqos6); |
| 104 | writel(0x2F002200, &s3c_qos->s3cqos7); |
| 105 | writel(0x2F002F00, &s3c_qos->s3cqos8); |
| 106 | |
| 107 | s3c_qos = (struct rcar_s3c_qos *)S3C_QOS_MXI_BASE; |
| 108 | writel(0x80918099, &s3c_qos->s3cqos0); |
| 109 | writel(0x20410010, &s3c_qos->s3cqos1); |
| 110 | writel(0x200A2023, &s3c_qos->s3cqos2); |
| 111 | writel(0x20502001, &s3c_qos->s3cqos3); |
| 112 | writel(0x00002032, &s3c_qos->s3cqos4); |
| 113 | writel(0x20410FFF, &s3c_qos->s3cqos5); |
| 114 | writel(0x200A2023, &s3c_qos->s3cqos6); |
| 115 | writel(0x20502001, &s3c_qos->s3cqos7); |
| 116 | writel(0x20142032, &s3c_qos->s3cqos8); |
| 117 | |
| 118 | s3c_qos = (struct rcar_s3c_qos *)S3C_QOS_AXI_BASE; |
| 119 | writel(0x00810089, &s3c_qos->s3cqos0); |
| 120 | writel(0x20410001, &s3c_qos->s3cqos1); |
| 121 | writel(0x200A2023, &s3c_qos->s3cqos2); |
| 122 | writel(0x20502001, &s3c_qos->s3cqos3); |
| 123 | writel(0x00002032, &s3c_qos->s3cqos4); |
| 124 | writel(0x20410FFF, &s3c_qos->s3cqos5); |
| 125 | writel(0x200A2023, &s3c_qos->s3cqos6); |
| 126 | writel(0x20502001, &s3c_qos->s3cqos7); |
| 127 | writel(0x20142032, &s3c_qos->s3cqos8); |
| 128 | |
| 129 | writel(0x00200808, &s3c->s3carcr11); |
| 130 | |
| 131 | /* DBSC -QoS */ |
| 132 | /* DBSC0 - Read */ |
| 133 | for (i = DBSC3_00; i < DBSC3_NR; i++) { |
| 134 | qos_addr = (struct rcar_dbsc3_qos *)dbsc3_0_r_qos_addr[i]; |
| 135 | writel(0x00000203, &qos_addr->dblgcnt); |
| 136 | writel(0x00002064, &qos_addr->dbtmval0); |
| 137 | writel(0x00002048, &qos_addr->dbtmval1); |
| 138 | writel(0x00002032, &qos_addr->dbtmval2); |
| 139 | writel(0x00002019, &qos_addr->dbtmval3); |
| 140 | writel(0x00000001, &qos_addr->dbrqctr); |
| 141 | writel(0x00002019, &qos_addr->dbthres0); |
| 142 | writel(0x00002019, &qos_addr->dbthres1); |
| 143 | writel(0x00002019, &qos_addr->dbthres2); |
| 144 | writel(0x00000000, &qos_addr->dblgqon); |
| 145 | } |
| 146 | |
| 147 | /* DBSC0 - Write */ |
| 148 | for (i = DBSC3_00; i < DBSC3_NR; i++) { |
| 149 | qos_addr = (struct rcar_dbsc3_qos *)dbsc3_0_w_qos_addr[i]; |
| 150 | writel(0x00000203, &qos_addr->dblgcnt); |
| 151 | writel(0x00002064, &qos_addr->dbtmval0); |
| 152 | writel(0x00002048, &qos_addr->dbtmval1); |
| 153 | writel(0x00002032, &qos_addr->dbtmval2); |
| 154 | writel(0x00002019, &qos_addr->dbtmval3); |
| 155 | writel(0x00000001, &qos_addr->dbrqctr); |
| 156 | writel(0x00002019, &qos_addr->dbthres0); |
| 157 | writel(0x00002019, &qos_addr->dbthres1); |
| 158 | writel(0x00002019, &qos_addr->dbthres2); |
| 159 | writel(0x00000000, &qos_addr->dblgqon); |
| 160 | } |
| 161 | |
| 162 | /* CCI-400 -QoS */ |
| 163 | writel(0x20001000, CCI_400_MAXOT_1); |
| 164 | writel(0x20001000, CCI_400_MAXOT_2); |
| 165 | writel(0x0000000C, CCI_400_QOSCNTL_1); |
| 166 | writel(0x0000000C, CCI_400_QOSCNTL_2); |
| 167 | |
| 168 | /* MXI -QoS */ |
| 169 | /* Transaction Control (MXI) */ |
| 170 | mxi = (struct rcar_mxi *)MXI_BASE; |
| 171 | writel(0x00000013, &mxi->mxrtcr); |
| 172 | writel(0x00000013, &mxi->mxwtcr); |
| 173 | writel(0x00B800C0, &mxi->mxsaar0); |
| 174 | writel(0x02000800, &mxi->mxsaar1); |
| 175 | writel(0x00200000, &mxi->mxs3cracr); |
| 176 | writel(0x00200000, &mxi->mxs3cwacr); |
| 177 | writel(0x00200000, &mxi->mxaxiracr); |
| 178 | writel(0x00200000, &mxi->mxaxiwacr); |
| 179 | |
| 180 | /* QoS Control (MXI) */ |
| 181 | mxi_qos = (struct rcar_mxi_qos *)MXI_QOS_BASE; |
| 182 | writel(0x0000000C, &mxi_qos->vspdu0); |
| 183 | writel(0x0000000C, &mxi_qos->vspdu1); |
| 184 | writel(0x0000000D, &mxi_qos->du0); |
| 185 | writel(0x0000000D, &mxi_qos->du1); |
| 186 | |
| 187 | /* AXI -QoS */ |
| 188 | /* Transaction Control (MXI) */ |
| 189 | axi_qos = (struct rcar_axi_qos *)SYS_AXI_SYX64TO128_BASE; |
| 190 | writel(0x00000002, &axi_qos->qosconf); |
| 191 | writel(0x0000200F, &axi_qos->qosctset0); |
| 192 | writel(0x00002009, &axi_qos->qosctset1); |
| 193 | writel(0x00002003, &axi_qos->qosctset2); |
| 194 | writel(0x00002003, &axi_qos->qosctset3); |
| 195 | writel(0x00000001, &axi_qos->qosreqctr); |
| 196 | writel(0x00002006, &axi_qos->qosthres0); |
| 197 | writel(0x00002001, &axi_qos->qosthres1); |
| 198 | writel(0x00000000, &axi_qos->qosthres2); |
| 199 | writel(0x00000001, &axi_qos->qosqon); |
| 200 | |
| 201 | axi_qos = (struct rcar_axi_qos *)SYS_AXI_AVB_BASE; |
| 202 | writel(0x00000000, &axi_qos->qosconf); |
| 203 | writel(0x0000200A, &axi_qos->qosctset0); |
| 204 | writel(0x00000001, &axi_qos->qosreqctr); |
| 205 | writel(0x00002006, &axi_qos->qosthres0); |
| 206 | writel(0x00002001, &axi_qos->qosthres1); |
| 207 | writel(0x00000000, &axi_qos->qosthres2); |
| 208 | writel(0x00000001, &axi_qos->qosqon); |
| 209 | |
| 210 | axi_qos = (struct rcar_axi_qos *)SYS_AXI_G2D_BASE; |
| 211 | writel(0x00000000, &axi_qos->qosconf); |
| 212 | writel(0x0000200A, &axi_qos->qosctset0); |
| 213 | writel(0x00000001, &axi_qos->qosreqctr); |
| 214 | writel(0x00002006, &axi_qos->qosthres0); |
| 215 | writel(0x00002001, &axi_qos->qosthres1); |
| 216 | writel(0x00000000, &axi_qos->qosthres2); |
| 217 | writel(0x00000001, &axi_qos->qosqon); |
| 218 | |
| 219 | axi_qos = (struct rcar_axi_qos *)SYS_AXI_IMP0_BASE; |
| 220 | writel(0x00000000, &axi_qos->qosconf); |
| 221 | writel(0x00002002, &axi_qos->qosctset0); |
| 222 | writel(0x00000001, &axi_qos->qosreqctr); |
| 223 | writel(0x00002006, &axi_qos->qosthres0); |
| 224 | writel(0x00002001, &axi_qos->qosthres1); |
| 225 | writel(0x00000000, &axi_qos->qosthres2); |
| 226 | writel(0x00000001, &axi_qos->qosqon); |
| 227 | |
| 228 | axi_qos = (struct rcar_axi_qos *)SYS_AXI_IMP1_BASE; |
| 229 | writel(0x00000000, &axi_qos->qosconf); |
| 230 | writel(0x00002004, &axi_qos->qosctset0); |
| 231 | writel(0x00000001, &axi_qos->qosreqctr); |
| 232 | writel(0x00002006, &axi_qos->qosthres0); |
| 233 | writel(0x00002001, &axi_qos->qosthres1); |
| 234 | writel(0x00000000, &axi_qos->qosthres2); |
| 235 | writel(0x00000001, &axi_qos->qosqon); |
| 236 | |
| 237 | axi_qos = (struct rcar_axi_qos *)SYS_AXI_IMUX0_BASE; |
| 238 | writel(0x00000002, &axi_qos->qosconf); |
| 239 | writel(0x0000200F, &axi_qos->qosctset0); |
| 240 | writel(0x00002009, &axi_qos->qosctset1); |
| 241 | writel(0x00002003, &axi_qos->qosctset2); |
| 242 | writel(0x00002003, &axi_qos->qosctset3); |
| 243 | writel(0x00000001, &axi_qos->qosreqctr); |
| 244 | writel(0x00002006, &axi_qos->qosthres0); |
| 245 | writel(0x00002001, &axi_qos->qosthres1); |
| 246 | writel(0x00000000, &axi_qos->qosthres2); |
| 247 | writel(0x00000001, &axi_qos->qosqon); |
| 248 | |
| 249 | axi_qos = (struct rcar_axi_qos *)SYS_AXI_IMUX1_BASE; |
| 250 | writel(0x00000002, &axi_qos->qosconf); |
| 251 | writel(0x0000200F, &axi_qos->qosctset0); |
| 252 | writel(0x00002009, &axi_qos->qosctset1); |
| 253 | writel(0x00002003, &axi_qos->qosctset2); |
| 254 | writel(0x00002003, &axi_qos->qosctset3); |
| 255 | writel(0x00000001, &axi_qos->qosreqctr); |
| 256 | writel(0x00002006, &axi_qos->qosthres0); |
| 257 | writel(0x00002001, &axi_qos->qosthres1); |
| 258 | writel(0x00000000, &axi_qos->qosthres2); |
| 259 | writel(0x00000001, &axi_qos->qosqon); |
| 260 | |
| 261 | axi_qos = (struct rcar_axi_qos *)SYS_AXI_IMUX2_BASE; |
| 262 | writel(0x00000002, &axi_qos->qosconf); |
| 263 | writel(0x0000200F, &axi_qos->qosctset0); |
| 264 | writel(0x00002009, &axi_qos->qosctset1); |
| 265 | writel(0x00002003, &axi_qos->qosctset2); |
| 266 | writel(0x00002003, &axi_qos->qosctset3); |
| 267 | writel(0x00000001, &axi_qos->qosreqctr); |
| 268 | writel(0x00002006, &axi_qos->qosthres0); |
| 269 | writel(0x00002001, &axi_qos->qosthres1); |
| 270 | writel(0x00000000, &axi_qos->qosthres2); |
| 271 | writel(0x00000001, &axi_qos->qosqon); |
| 272 | |
| 273 | axi_qos = (struct rcar_axi_qos *)SYS_AXI_LBS_BASE; |
| 274 | writel(0x00000000, &axi_qos->qosconf); |
| 275 | writel(0x00002014, &axi_qos->qosctset0); |
| 276 | writel(0x00000001, &axi_qos->qosreqctr); |
| 277 | writel(0x00002006, &axi_qos->qosthres0); |
| 278 | writel(0x00002001, &axi_qos->qosthres1); |
| 279 | writel(0x00000000, &axi_qos->qosthres2); |
| 280 | writel(0x00000001, &axi_qos->qosqon); |
| 281 | |
| 282 | axi_qos = (struct rcar_axi_qos *)SYS_AXI_MMUDS_BASE; |
| 283 | writel(0x00000001, &axi_qos->qosconf); |
| 284 | writel(0x00002001, &axi_qos->qosctset0); |
| 285 | writel(0x00002009, &axi_qos->qosctset1); |
| 286 | writel(0x00002003, &axi_qos->qosctset2); |
| 287 | writel(0x00002003, &axi_qos->qosctset3); |
| 288 | writel(0x00000001, &axi_qos->qosreqctr); |
| 289 | writel(0x00002006, &axi_qos->qosthres0); |
| 290 | writel(0x00002001, &axi_qos->qosthres1); |
| 291 | writel(0x00000000, &axi_qos->qosthres2); |
| 292 | writel(0x00000001, &axi_qos->qosqon); |
| 293 | |
| 294 | axi_qos = (struct rcar_axi_qos *)SYS_AXI_MMUM_BASE; |
| 295 | writel(0x00000001, &axi_qos->qosconf); |
| 296 | writel(0x00002001, &axi_qos->qosctset0); |
| 297 | writel(0x00002009, &axi_qos->qosctset1); |
| 298 | writel(0x00002003, &axi_qos->qosctset2); |
| 299 | writel(0x00002003, &axi_qos->qosctset3); |
| 300 | writel(0x00000001, &axi_qos->qosreqctr); |
| 301 | writel(0x00002006, &axi_qos->qosthres0); |
| 302 | writel(0x00002001, &axi_qos->qosthres1); |
| 303 | writel(0x00000000, &axi_qos->qosthres2); |
| 304 | writel(0x00000001, &axi_qos->qosqon); |
| 305 | |
| 306 | axi_qos = (struct rcar_axi_qos *)SYS_AXI_MMUR_BASE; |
| 307 | writel(0x00000001, &axi_qos->qosconf); |
| 308 | writel(0x00002001, &axi_qos->qosctset0); |
| 309 | writel(0x00002009, &axi_qos->qosctset1); |
| 310 | writel(0x00002003, &axi_qos->qosctset2); |
| 311 | writel(0x00002003, &axi_qos->qosctset3); |
| 312 | writel(0x00000001, &axi_qos->qosreqctr); |
| 313 | writel(0x00002006, &axi_qos->qosthres0); |
| 314 | writel(0x00002001, &axi_qos->qosthres1); |
| 315 | writel(0x00000000, &axi_qos->qosthres2); |
| 316 | writel(0x00000001, &axi_qos->qosqon); |
| 317 | |
| 318 | axi_qos = (struct rcar_axi_qos *)SYS_AXI_MMUS0_BASE; |
| 319 | writel(0x00000001, &axi_qos->qosconf); |
| 320 | writel(0x00002001, &axi_qos->qosctset0); |
| 321 | writel(0x00002009, &axi_qos->qosctset1); |
| 322 | writel(0x00002003, &axi_qos->qosctset2); |
| 323 | writel(0x00002003, &axi_qos->qosctset3); |
| 324 | writel(0x00000001, &axi_qos->qosreqctr); |
| 325 | writel(0x00002006, &axi_qos->qosthres0); |
| 326 | writel(0x00002001, &axi_qos->qosthres1); |
| 327 | writel(0x00000000, &axi_qos->qosthres2); |
| 328 | writel(0x00000001, &axi_qos->qosqon); |
| 329 | |
| 330 | axi_qos = (struct rcar_axi_qos *)SYS_AXI_MMUS1_BASE; |
| 331 | writel(0x00000001, &axi_qos->qosconf); |
| 332 | writel(0x00002001, &axi_qos->qosctset0); |
| 333 | writel(0x00002009, &axi_qos->qosctset1); |
| 334 | writel(0x00002003, &axi_qos->qosctset2); |
| 335 | writel(0x00002003, &axi_qos->qosctset3); |
| 336 | writel(0x00000001, &axi_qos->qosreqctr); |
| 337 | writel(0x00002006, &axi_qos->qosthres0); |
| 338 | writel(0x00002001, &axi_qos->qosthres1); |
| 339 | writel(0x00000000, &axi_qos->qosthres2); |
| 340 | writel(0x00000001, &axi_qos->qosqon); |
| 341 | |
| 342 | axi_qos = (struct rcar_axi_qos *)SYS_AXI_MTSB0_BASE; |
| 343 | writel(0x00000000, &axi_qos->qosconf); |
| 344 | writel(0x00002002, &axi_qos->qosctset0); |
| 345 | writel(0x00000001, &axi_qos->qosreqctr); |
| 346 | writel(0x00002006, &axi_qos->qosthres0); |
| 347 | writel(0x00002001, &axi_qos->qosthres1); |
| 348 | writel(0x00000000, &axi_qos->qosthres2); |
| 349 | writel(0x00000001, &axi_qos->qosqon); |
| 350 | |
| 351 | axi_qos = (struct rcar_axi_qos *)SYS_AXI_MTSB1_BASE; |
| 352 | writel(0x00000000, &axi_qos->qosconf); |
| 353 | writel(0x00002002, &axi_qos->qosctset0); |
| 354 | writel(0x00000001, &axi_qos->qosreqctr); |
| 355 | writel(0x00002006, &axi_qos->qosthres0); |
| 356 | writel(0x00002001, &axi_qos->qosthres1); |
| 357 | writel(0x00000000, &axi_qos->qosthres2); |
| 358 | writel(0x00000001, &axi_qos->qosqon); |
| 359 | |
| 360 | axi_qos = (struct rcar_axi_qos *)SYS_AXI_PCI_BASE; |
| 361 | writel(0x00000000, &axi_qos->qosconf); |
| 362 | writel(0x00002014, &axi_qos->qosctset0); |
| 363 | writel(0x00000001, &axi_qos->qosreqctr); |
| 364 | writel(0x00002006, &axi_qos->qosthres0); |
| 365 | writel(0x00002001, &axi_qos->qosthres1); |
| 366 | writel(0x00000000, &axi_qos->qosthres2); |
| 367 | writel(0x00000001, &axi_qos->qosqon); |
| 368 | |
| 369 | axi_qos = (struct rcar_axi_qos *)SYS_AXI_RTX_BASE; |
| 370 | writel(0x00000002, &axi_qos->qosconf); |
| 371 | writel(0x0000200F, &axi_qos->qosctset0); |
| 372 | writel(0x00002009, &axi_qos->qosctset1); |
| 373 | writel(0x00002003, &axi_qos->qosctset2); |
| 374 | writel(0x00002003, &axi_qos->qosctset3); |
| 375 | writel(0x00000001, &axi_qos->qosreqctr); |
| 376 | writel(0x00002006, &axi_qos->qosthres0); |
| 377 | writel(0x00002001, &axi_qos->qosthres1); |
| 378 | writel(0x00000000, &axi_qos->qosthres2); |
| 379 | writel(0x00000001, &axi_qos->qosqon); |
| 380 | |
| 381 | axi_qos = (struct rcar_axi_qos *)SYS_AXI_SDS0_BASE; |
| 382 | writel(0x00000000, &axi_qos->qosconf); |
| 383 | writel(0x0000200A, &axi_qos->qosctset0); |
| 384 | writel(0x00000001, &axi_qos->qosreqctr); |
| 385 | writel(0x00002006, &axi_qos->qosthres0); |
| 386 | writel(0x00002001, &axi_qos->qosthres1); |
| 387 | writel(0x00000000, &axi_qos->qosthres2); |
| 388 | writel(0x00000001, &axi_qos->qosqon); |
| 389 | |
| 390 | axi_qos = (struct rcar_axi_qos *)SYS_AXI_SDS1_BASE; |
| 391 | writel(0x00000000, &axi_qos->qosconf); |
| 392 | writel(0x0000200A, &axi_qos->qosctset0); |
| 393 | writel(0x00000001, &axi_qos->qosreqctr); |
| 394 | writel(0x00002006, &axi_qos->qosthres0); |
| 395 | writel(0x00002001, &axi_qos->qosthres1); |
| 396 | writel(0x00000000, &axi_qos->qosthres2); |
| 397 | writel(0x00000001, &axi_qos->qosqon); |
| 398 | |
| 399 | axi_qos = (struct rcar_axi_qos *)SYS_AXI_USB20_BASE; |
| 400 | writel(0x00000000, &axi_qos->qosconf); |
| 401 | writel(0x00002005, &axi_qos->qosctset0); |
| 402 | writel(0x00000001, &axi_qos->qosreqctr); |
| 403 | writel(0x00002006, &axi_qos->qosthres0); |
| 404 | writel(0x00002001, &axi_qos->qosthres1); |
| 405 | writel(0x00000000, &axi_qos->qosthres2); |
| 406 | writel(0x00000001, &axi_qos->qosqon); |
| 407 | |
| 408 | axi_qos = (struct rcar_axi_qos *)SYS_AXI_USB21_BASE; |
| 409 | writel(0x00000000, &axi_qos->qosconf); |
| 410 | writel(0x00002005, &axi_qos->qosctset0); |
| 411 | writel(0x00000001, &axi_qos->qosreqctr); |
| 412 | writel(0x00002006, &axi_qos->qosthres0); |
| 413 | writel(0x00002001, &axi_qos->qosthres1); |
| 414 | writel(0x00000000, &axi_qos->qosthres2); |
| 415 | writel(0x00000001, &axi_qos->qosqon); |
| 416 | |
| 417 | axi_qos = (struct rcar_axi_qos *)SYS_AXI_USB22_BASE; |
| 418 | writel(0x00000000, &axi_qos->qosconf); |
| 419 | writel(0x00002005, &axi_qos->qosctset0); |
| 420 | writel(0x00000001, &axi_qos->qosreqctr); |
| 421 | writel(0x00002006, &axi_qos->qosthres0); |
| 422 | writel(0x00002001, &axi_qos->qosthres1); |
| 423 | writel(0x00000000, &axi_qos->qosthres2); |
| 424 | writel(0x00000001, &axi_qos->qosqon); |
| 425 | |
| 426 | axi_qos = (struct rcar_axi_qos *)SYS_AXI_USB30_BASE; |
| 427 | writel(0x00000000, &axi_qos->qosconf); |
| 428 | writel(0x00002014, &axi_qos->qosctset0); |
| 429 | writel(0x00000001, &axi_qos->qosreqctr); |
| 430 | writel(0x00002006, &axi_qos->qosthres0); |
| 431 | writel(0x00002001, &axi_qos->qosthres1); |
| 432 | writel(0x00000000, &axi_qos->qosthres2); |
| 433 | writel(0x00000001, &axi_qos->qosqon); |
| 434 | |
| 435 | /* QoS Register (RT-AXI) */ |
| 436 | axi_qos = (struct rcar_axi_qos *)RT_AXI_SHX_BASE; |
| 437 | writel(0x00000000, &axi_qos->qosconf); |
| 438 | writel(0x00002005, &axi_qos->qosctset0); |
| 439 | writel(0x00002009, &axi_qos->qosctset1); |
| 440 | writel(0x00002003, &axi_qos->qosctset2); |
| 441 | writel(0x00002003, &axi_qos->qosctset3); |
| 442 | writel(0x00000001, &axi_qos->qosreqctr); |
| 443 | writel(0x00002006, &axi_qos->qosthres0); |
| 444 | writel(0x00002001, &axi_qos->qosthres1); |
| 445 | writel(0x00000000, &axi_qos->qosthres2); |
| 446 | writel(0x00000001, &axi_qos->qosqon); |
| 447 | |
| 448 | axi_qos = (struct rcar_axi_qos *)RT_AXI_RDS_BASE; |
| 449 | writel(0x00000000, &axi_qos->qosconf); |
| 450 | writel(0x00002007, &axi_qos->qosctset0); |
| 451 | writel(0x00000001, &axi_qos->qosreqctr); |
| 452 | writel(0x00002006, &axi_qos->qosthres0); |
| 453 | writel(0x00002001, &axi_qos->qosthres1); |
| 454 | writel(0x00000000, &axi_qos->qosthres2); |
| 455 | writel(0x00000001, &axi_qos->qosqon); |
| 456 | |
| 457 | axi_qos = (struct rcar_axi_qos *)RT_AXI_RTX64TO128_BASE; |
| 458 | writel(0x00000002, &axi_qos->qosconf); |
| 459 | writel(0x0000200F, &axi_qos->qosctset0); |
| 460 | writel(0x00002009, &axi_qos->qosctset1); |
| 461 | writel(0x00002003, &axi_qos->qosctset2); |
| 462 | writel(0x00002003, &axi_qos->qosctset3); |
| 463 | writel(0x00000001, &axi_qos->qosreqctr); |
| 464 | writel(0x00002006, &axi_qos->qosthres0); |
| 465 | writel(0x00002001, &axi_qos->qosthres1); |
| 466 | writel(0x00000000, &axi_qos->qosthres2); |
| 467 | writel(0x00000001, &axi_qos->qosqon); |
| 468 | |
| 469 | axi_qos = (struct rcar_axi_qos *)RT_AXI_STPRO_BASE; |
| 470 | writel(0x00000000, &axi_qos->qosconf); |
| 471 | writel(0x00002003, &axi_qos->qosctset0); |
| 472 | writel(0x00002009, &axi_qos->qosctset1); |
| 473 | writel(0x00002003, &axi_qos->qosctset2); |
| 474 | writel(0x00002003, &axi_qos->qosctset3); |
| 475 | writel(0x00000001, &axi_qos->qosreqctr); |
| 476 | writel(0x00002006, &axi_qos->qosthres0); |
| 477 | writel(0x00002001, &axi_qos->qosthres1); |
| 478 | writel(0x00000000, &axi_qos->qosthres2); |
| 479 | writel(0x00000001, &axi_qos->qosqon); |
| 480 | |
| 481 | /* QoS Register (MP-AXI) */ |
| 482 | axi_qos = (struct rcar_axi_qos *)MP_AXI_ADSP_BASE; |
| 483 | writel(0x00000000, &axi_qos->qosconf); |
| 484 | writel(0x00002007, &axi_qos->qosctset0); |
| 485 | writel(0x00000001, &axi_qos->qosreqctr); |
| 486 | writel(0x00002006, &axi_qos->qosthres0); |
| 487 | writel(0x00002001, &axi_qos->qosthres1); |
| 488 | writel(0x00000000, &axi_qos->qosthres2); |
| 489 | writel(0x00000001, &axi_qos->qosqon); |
| 490 | |
| 491 | axi_qos = (struct rcar_axi_qos *)MP_AXI_ASDS0_BASE; |
| 492 | writel(0x00000001, &axi_qos->qosconf); |
| 493 | writel(0x00002014, &axi_qos->qosctset0); |
| 494 | writel(0x00000040, &axi_qos->qosreqctr); |
| 495 | writel(0x00002006, &axi_qos->qosthres0); |
| 496 | writel(0x00002001, &axi_qos->qosthres1); |
| 497 | writel(0x00000000, &axi_qos->qosthres2); |
| 498 | writel(0x00000001, &axi_qos->qosqon); |
| 499 | |
| 500 | axi_qos = (struct rcar_axi_qos *)MP_AXI_ASDS1_BASE; |
| 501 | writel(0x00000001, &axi_qos->qosconf); |
| 502 | writel(0x00002014, &axi_qos->qosctset0); |
| 503 | writel(0x00000040, &axi_qos->qosreqctr); |
| 504 | writel(0x00002006, &axi_qos->qosthres0); |
| 505 | writel(0x00002001, &axi_qos->qosthres1); |
| 506 | writel(0x00000000, &axi_qos->qosthres2); |
| 507 | writel(0x00000001, &axi_qos->qosqon); |
| 508 | |
| 509 | axi_qos = (struct rcar_axi_qos *)MP_AXI_MLP_BASE; |
| 510 | writel(0x00000001, &axi_qos->qosconf); |
| 511 | writel(0x00001FF0, &axi_qos->qosctset0); |
| 512 | writel(0x00000020, &axi_qos->qosreqctr); |
| 513 | writel(0x00002006, &axi_qos->qosthres0); |
| 514 | writel(0x00002001, &axi_qos->qosthres1); |
| 515 | writel(0x00002001, &axi_qos->qosthres2); |
| 516 | writel(0x00000001, &axi_qos->qosqon); |
| 517 | |
| 518 | axi_qos = (struct rcar_axi_qos *)MP_AXI_MMUMP_BASE; |
| 519 | writel(0x00000001, &axi_qos->qosconf); |
| 520 | writel(0x00002001, &axi_qos->qosctset0); |
| 521 | writel(0x00002009, &axi_qos->qosctset1); |
| 522 | writel(0x00002003, &axi_qos->qosctset2); |
| 523 | writel(0x00002003, &axi_qos->qosctset3); |
| 524 | writel(0x00000001, &axi_qos->qosreqctr); |
| 525 | writel(0x00002006, &axi_qos->qosthres0); |
| 526 | writel(0x00002001, &axi_qos->qosthres1); |
| 527 | writel(0x00000000, &axi_qos->qosthres2); |
| 528 | writel(0x00000001, &axi_qos->qosqon); |
| 529 | |
| 530 | axi_qos = (struct rcar_axi_qos *)MP_AXI_SPU_BASE; |
| 531 | writel(0x00000000, &axi_qos->qosconf); |
| 532 | writel(0x00002018, &axi_qos->qosctset0); |
| 533 | writel(0x00000001, &axi_qos->qosreqctr); |
| 534 | writel(0x00002006, &axi_qos->qosthres0); |
| 535 | writel(0x00002001, &axi_qos->qosthres1); |
| 536 | writel(0x00000000, &axi_qos->qosthres2); |
| 537 | writel(0x00000001, &axi_qos->qosqon); |
| 538 | |
| 539 | axi_qos = (struct rcar_axi_qos *)MP_AXI_SPUC_BASE; |
| 540 | writel(0x00000000, &axi_qos->qosconf); |
| 541 | writel(0x0000200D, &axi_qos->qosctset0); |
| 542 | writel(0x00000001, &axi_qos->qosreqctr); |
| 543 | writel(0x00002006, &axi_qos->qosthres0); |
| 544 | writel(0x00002001, &axi_qos->qosthres1); |
| 545 | writel(0x00000000, &axi_qos->qosthres2); |
| 546 | writel(0x00000001, &axi_qos->qosqon); |
| 547 | |
| 548 | /* QoS Register (SYS-AXI256) */ |
| 549 | axi_qos = (struct rcar_axi_qos *)SYS_AXI256_AXI128TO256_BASE; |
| 550 | writel(0x00000002, &axi_qos->qosconf); |
| 551 | writel(0x0000200F, &axi_qos->qosctset0); |
| 552 | writel(0x00002009, &axi_qos->qosctset1); |
| 553 | writel(0x00002003, &axi_qos->qosctset2); |
| 554 | writel(0x00002003, &axi_qos->qosctset3); |
| 555 | writel(0x00000001, &axi_qos->qosreqctr); |
| 556 | writel(0x00002006, &axi_qos->qosthres0); |
| 557 | writel(0x00002001, &axi_qos->qosthres1); |
| 558 | writel(0x00000000, &axi_qos->qosthres2); |
| 559 | writel(0x00000001, &axi_qos->qosqon); |
| 560 | |
| 561 | axi_qos = (struct rcar_axi_qos *)SYS_AXI256_SYX_BASE; |
| 562 | writel(0x00000002, &axi_qos->qosconf); |
| 563 | writel(0x0000200F, &axi_qos->qosctset0); |
| 564 | writel(0x00002009, &axi_qos->qosctset1); |
| 565 | writel(0x00002003, &axi_qos->qosctset2); |
| 566 | writel(0x00002003, &axi_qos->qosctset3); |
| 567 | writel(0x00000001, &axi_qos->qosreqctr); |
| 568 | writel(0x00002006, &axi_qos->qosthres0); |
| 569 | writel(0x00002001, &axi_qos->qosthres1); |
| 570 | writel(0x00000000, &axi_qos->qosthres2); |
| 571 | writel(0x00000001, &axi_qos->qosqon); |
| 572 | |
| 573 | axi_qos = (struct rcar_axi_qos *)SYS_AXI256_MPX_BASE; |
| 574 | writel(0x00000002, &axi_qos->qosconf); |
| 575 | writel(0x0000200F, &axi_qos->qosctset0); |
| 576 | writel(0x00002009, &axi_qos->qosctset1); |
| 577 | writel(0x00002003, &axi_qos->qosctset2); |
| 578 | writel(0x00002003, &axi_qos->qosctset3); |
| 579 | writel(0x00000001, &axi_qos->qosreqctr); |
| 580 | writel(0x00002006, &axi_qos->qosthres0); |
| 581 | writel(0x00002001, &axi_qos->qosthres1); |
| 582 | writel(0x00000000, &axi_qos->qosthres2); |
| 583 | writel(0x00000001, &axi_qos->qosqon); |
| 584 | |
| 585 | axi_qos = (struct rcar_axi_qos *)SYS_AXI256_MXI_BASE; |
| 586 | writel(0x00000002, &axi_qos->qosconf); |
| 587 | writel(0x0000200F, &axi_qos->qosctset0); |
| 588 | writel(0x00002009, &axi_qos->qosctset1); |
| 589 | writel(0x00002003, &axi_qos->qosctset2); |
| 590 | writel(0x00002003, &axi_qos->qosctset3); |
| 591 | writel(0x00000001, &axi_qos->qosreqctr); |
| 592 | writel(0x00002006, &axi_qos->qosthres0); |
| 593 | writel(0x00002001, &axi_qos->qosthres1); |
| 594 | writel(0x00000000, &axi_qos->qosthres2); |
| 595 | writel(0x00000001, &axi_qos->qosqon); |
| 596 | |
| 597 | /* QoS Register (CCI-AXI) */ |
| 598 | axi_qos = (struct rcar_axi_qos *)CCI_AXI_MMUS0_BASE; |
| 599 | writel(0x00000001, &axi_qos->qosconf); |
| 600 | writel(0x00002001, &axi_qos->qosctset0); |
| 601 | writel(0x00002009, &axi_qos->qosctset1); |
| 602 | writel(0x00002003, &axi_qos->qosctset2); |
| 603 | writel(0x00002003, &axi_qos->qosctset3); |
| 604 | writel(0x00000001, &axi_qos->qosreqctr); |
| 605 | writel(0x00002006, &axi_qos->qosthres0); |
| 606 | writel(0x00002001, &axi_qos->qosthres1); |
| 607 | writel(0x00000000, &axi_qos->qosthres2); |
| 608 | writel(0x00000001, &axi_qos->qosqon); |
| 609 | |
| 610 | axi_qos = (struct rcar_axi_qos *)CCI_AXI_SYX2_BASE; |
| 611 | writel(0x00000002, &axi_qos->qosconf); |
| 612 | writel(0x0000200F, &axi_qos->qosctset0); |
| 613 | writel(0x00002009, &axi_qos->qosctset1); |
| 614 | writel(0x00002003, &axi_qos->qosctset2); |
| 615 | writel(0x00002003, &axi_qos->qosctset3); |
| 616 | writel(0x00000001, &axi_qos->qosreqctr); |
| 617 | writel(0x00002006, &axi_qos->qosthres0); |
| 618 | writel(0x00002001, &axi_qos->qosthres1); |
| 619 | writel(0x00000000, &axi_qos->qosthres2); |
| 620 | writel(0x00000001, &axi_qos->qosqon); |
| 621 | |
| 622 | axi_qos = (struct rcar_axi_qos *)CCI_AXI_MMUR_BASE; |
| 623 | writel(0x00000001, &axi_qos->qosconf); |
| 624 | writel(0x00002001, &axi_qos->qosctset0); |
| 625 | writel(0x00002009, &axi_qos->qosctset1); |
| 626 | writel(0x00002003, &axi_qos->qosctset2); |
| 627 | writel(0x00002003, &axi_qos->qosctset3); |
| 628 | writel(0x00000001, &axi_qos->qosreqctr); |
| 629 | writel(0x00002006, &axi_qos->qosthres0); |
| 630 | writel(0x00002001, &axi_qos->qosthres1); |
| 631 | writel(0x00000000, &axi_qos->qosthres2); |
| 632 | writel(0x00000001, &axi_qos->qosqon); |
| 633 | |
| 634 | axi_qos = (struct rcar_axi_qos *)CCI_AXI_MMUDS_BASE; |
| 635 | writel(0x00000001, &axi_qos->qosconf); |
| 636 | writel(0x00002001, &axi_qos->qosctset0); |
| 637 | writel(0x00002009, &axi_qos->qosctset1); |
| 638 | writel(0x00002003, &axi_qos->qosctset2); |
| 639 | writel(0x00002003, &axi_qos->qosctset3); |
| 640 | writel(0x00000001, &axi_qos->qosreqctr); |
| 641 | writel(0x00002006, &axi_qos->qosthres0); |
| 642 | writel(0x00002001, &axi_qos->qosthres1); |
| 643 | writel(0x00000000, &axi_qos->qosthres2); |
| 644 | writel(0x00000001, &axi_qos->qosqon); |
| 645 | |
| 646 | axi_qos = (struct rcar_axi_qos *)CCI_AXI_MMUM_BASE; |
| 647 | writel(0x00000001, &axi_qos->qosconf); |
| 648 | writel(0x00002001, &axi_qos->qosctset0); |
| 649 | writel(0x00002009, &axi_qos->qosctset1); |
| 650 | writel(0x00002003, &axi_qos->qosctset2); |
| 651 | writel(0x00002003, &axi_qos->qosctset3); |
| 652 | writel(0x00000001, &axi_qos->qosreqctr); |
| 653 | writel(0x00002006, &axi_qos->qosthres0); |
| 654 | writel(0x00002001, &axi_qos->qosthres1); |
| 655 | writel(0x00000000, &axi_qos->qosthres2); |
| 656 | writel(0x00000001, &axi_qos->qosqon); |
| 657 | |
| 658 | axi_qos = (struct rcar_axi_qos *)CCI_AXI_MXI_BASE; |
| 659 | writel(0x00000002, &axi_qos->qosconf); |
| 660 | writel(0x0000200F, &axi_qos->qosctset0); |
| 661 | writel(0x00002009, &axi_qos->qosctset1); |
| 662 | writel(0x00002003, &axi_qos->qosctset2); |
| 663 | writel(0x00002003, &axi_qos->qosctset3); |
| 664 | writel(0x00000001, &axi_qos->qosreqctr); |
| 665 | writel(0x00002006, &axi_qos->qosthres0); |
| 666 | writel(0x00002001, &axi_qos->qosthres1); |
| 667 | writel(0x00000000, &axi_qos->qosthres2); |
| 668 | writel(0x00000001, &axi_qos->qosqon); |
| 669 | |
| 670 | axi_qos = (struct rcar_axi_qos *)CCI_AXI_MMUS1_BASE; |
| 671 | writel(0x00000001, &axi_qos->qosconf); |
| 672 | writel(0x00002001, &axi_qos->qosctset0); |
| 673 | writel(0x00002009, &axi_qos->qosctset1); |
| 674 | writel(0x00002003, &axi_qos->qosctset2); |
| 675 | writel(0x00002003, &axi_qos->qosctset3); |
| 676 | writel(0x00000001, &axi_qos->qosreqctr); |
| 677 | writel(0x00002006, &axi_qos->qosthres0); |
| 678 | writel(0x00002001, &axi_qos->qosthres1); |
| 679 | writel(0x00000000, &axi_qos->qosthres2); |
| 680 | writel(0x00000001, &axi_qos->qosqon); |
| 681 | |
| 682 | axi_qos = (struct rcar_axi_qos *)CCI_AXI_MMUMP_BASE; |
| 683 | writel(0x00000001, &axi_qos->qosconf); |
| 684 | writel(0x00002001, &axi_qos->qosctset0); |
| 685 | writel(0x00002009, &axi_qos->qosctset1); |
| 686 | writel(0x00002003, &axi_qos->qosctset2); |
| 687 | writel(0x00002003, &axi_qos->qosctset3); |
| 688 | writel(0x00000001, &axi_qos->qosreqctr); |
| 689 | writel(0x00002006, &axi_qos->qosthres0); |
| 690 | writel(0x00002001, &axi_qos->qosthres1); |
| 691 | writel(0x00000000, &axi_qos->qosthres2); |
| 692 | writel(0x00000001, &axi_qos->qosqon); |
| 693 | |
| 694 | /* QoS Register (Media-AXI) */ |
| 695 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_JPR_BASE; |
| 696 | writel(0x00000001, &axi_qos->qosconf); |
| 697 | writel(0x00002018, &axi_qos->qosctset0); |
| 698 | writel(0x00000020, &axi_qos->qosreqctr); |
| 699 | writel(0x00002006, &axi_qos->qosthres0); |
| 700 | writel(0x00002001, &axi_qos->qosthres1); |
| 701 | writel(0x00000001, &axi_qos->qosthres2); |
| 702 | writel(0x00000001, &axi_qos->qosqon); |
| 703 | |
| 704 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_JPW_BASE; |
| 705 | writel(0x00000001, &axi_qos->qosconf); |
| 706 | writel(0x00002018, &axi_qos->qosctset0); |
| 707 | writel(0x00000020, &axi_qos->qosreqctr); |
| 708 | writel(0x00002006, &axi_qos->qosthres0); |
| 709 | writel(0x00002001, &axi_qos->qosthres1); |
| 710 | writel(0x00000001, &axi_qos->qosthres2); |
| 711 | writel(0x00000001, &axi_qos->qosqon); |
| 712 | |
| 713 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_GCU0R_BASE; |
| 714 | writel(0x00000001, &axi_qos->qosconf); |
| 715 | writel(0x00002018, &axi_qos->qosctset0); |
| 716 | writel(0x00000020, &axi_qos->qosreqctr); |
| 717 | writel(0x00002006, &axi_qos->qosthres0); |
| 718 | writel(0x00002001, &axi_qos->qosthres1); |
| 719 | writel(0x00000001, &axi_qos->qosthres2); |
| 720 | writel(0x00000001, &axi_qos->qosqon); |
| 721 | |
| 722 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_GCU0W_BASE; |
| 723 | writel(0x00000001, &axi_qos->qosconf); |
| 724 | writel(0x00002018, &axi_qos->qosctset0); |
| 725 | writel(0x00000020, &axi_qos->qosreqctr); |
| 726 | writel(0x00002006, &axi_qos->qosthres0); |
| 727 | writel(0x00002001, &axi_qos->qosthres1); |
| 728 | writel(0x00000001, &axi_qos->qosthres2); |
| 729 | writel(0x00000001, &axi_qos->qosqon); |
| 730 | |
| 731 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_GCU1R_BASE; |
| 732 | writel(0x00000001, &axi_qos->qosconf); |
| 733 | writel(0x00002018, &axi_qos->qosctset0); |
| 734 | writel(0x00000020, &axi_qos->qosreqctr); |
| 735 | writel(0x00002006, &axi_qos->qosthres0); |
| 736 | writel(0x00002001, &axi_qos->qosthres1); |
| 737 | writel(0x00000001, &axi_qos->qosthres2); |
| 738 | writel(0x00000001, &axi_qos->qosqon); |
| 739 | |
| 740 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_GCU1W_BASE; |
| 741 | writel(0x00000001, &axi_qos->qosconf); |
| 742 | writel(0x00002018, &axi_qos->qosctset0); |
| 743 | writel(0x00000020, &axi_qos->qosreqctr); |
| 744 | writel(0x00002006, &axi_qos->qosthres0); |
| 745 | writel(0x00002001, &axi_qos->qosthres1); |
| 746 | writel(0x00000001, &axi_qos->qosthres2); |
| 747 | writel(0x00000001, &axi_qos->qosqon); |
| 748 | |
| 749 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_TDMR_BASE; |
| 750 | writel(0x00000001, &axi_qos->qosconf); |
| 751 | writel(0x00002018, &axi_qos->qosctset0); |
| 752 | writel(0x00000020, &axi_qos->qosreqctr); |
| 753 | writel(0x00002006, &axi_qos->qosthres0); |
| 754 | writel(0x00002001, &axi_qos->qosthres1); |
| 755 | writel(0x00000001, &axi_qos->qosthres2); |
| 756 | writel(0x00000001, &axi_qos->qosqon); |
| 757 | |
| 758 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_TDMW_BASE; |
| 759 | writel(0x00000001, &axi_qos->qosconf); |
| 760 | writel(0x00002018, &axi_qos->qosctset0); |
| 761 | writel(0x00000020, &axi_qos->qosreqctr); |
| 762 | writel(0x00002006, &axi_qos->qosthres0); |
| 763 | writel(0x00002001, &axi_qos->qosthres1); |
| 764 | writel(0x00000001, &axi_qos->qosthres2); |
| 765 | writel(0x00000001, &axi_qos->qosqon); |
| 766 | |
| 767 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSP0CR_BASE; |
| 768 | writel(0x00000001, &axi_qos->qosconf); |
| 769 | writel(0x00002018, &axi_qos->qosctset0); |
| 770 | writel(0x00000020, &axi_qos->qosreqctr); |
| 771 | writel(0x00002006, &axi_qos->qosthres0); |
| 772 | writel(0x00002001, &axi_qos->qosthres1); |
| 773 | writel(0x00000001, &axi_qos->qosthres2); |
| 774 | writel(0x00000001, &axi_qos->qosqon); |
| 775 | |
| 776 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSP0CW_BASE; |
| 777 | writel(0x00000001, &axi_qos->qosconf); |
| 778 | writel(0x00002018, &axi_qos->qosctset0); |
| 779 | writel(0x00000020, &axi_qos->qosreqctr); |
| 780 | writel(0x00002006, &axi_qos->qosthres0); |
| 781 | writel(0x00002001, &axi_qos->qosthres1); |
| 782 | writel(0x00000001, &axi_qos->qosthres2); |
| 783 | writel(0x00000001, &axi_qos->qosqon); |
| 784 | |
| 785 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSP1CR_BASE; |
| 786 | writel(0x00000001, &axi_qos->qosconf); |
| 787 | writel(0x00002018, &axi_qos->qosctset0); |
| 788 | writel(0x00000020, &axi_qos->qosreqctr); |
| 789 | writel(0x00002006, &axi_qos->qosthres0); |
| 790 | writel(0x00002001, &axi_qos->qosthres1); |
| 791 | writel(0x00000001, &axi_qos->qosthres2); |
| 792 | writel(0x00000001, &axi_qos->qosqon); |
| 793 | |
| 794 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSP1CW_BASE; |
| 795 | writel(0x00000001, &axi_qos->qosconf); |
| 796 | writel(0x00002018, &axi_qos->qosctset0); |
| 797 | writel(0x00000020, &axi_qos->qosreqctr); |
| 798 | writel(0x00002006, &axi_qos->qosthres0); |
| 799 | writel(0x00002001, &axi_qos->qosthres1); |
| 800 | writel(0x00000001, &axi_qos->qosthres2); |
| 801 | writel(0x00000001, &axi_qos->qosqon); |
| 802 | |
| 803 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSPDU0CR_BASE; |
| 804 | writel(0x00000001, &axi_qos->qosconf); |
| 805 | writel(0x00002018, &axi_qos->qosctset0); |
| 806 | writel(0x00000020, &axi_qos->qosreqctr); |
| 807 | writel(0x00002006, &axi_qos->qosthres0); |
| 808 | writel(0x00002001, &axi_qos->qosthres1); |
| 809 | writel(0x00000001, &axi_qos->qosthres2); |
| 810 | writel(0x00000001, &axi_qos->qosqon); |
| 811 | |
| 812 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSPDU0CW_BASE; |
| 813 | writel(0x00000001, &axi_qos->qosconf); |
| 814 | writel(0x00002018, &axi_qos->qosctset0); |
| 815 | writel(0x00000020, &axi_qos->qosreqctr); |
| 816 | writel(0x00002006, &axi_qos->qosthres0); |
| 817 | writel(0x00002001, &axi_qos->qosthres1); |
| 818 | writel(0x00000001, &axi_qos->qosthres2); |
| 819 | writel(0x00000001, &axi_qos->qosqon); |
| 820 | |
| 821 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSPDU1CR_BASE; |
| 822 | writel(0x00000001, &axi_qos->qosconf); |
| 823 | writel(0x00002018, &axi_qos->qosctset0); |
| 824 | writel(0x00000020, &axi_qos->qosreqctr); |
| 825 | writel(0x00002006, &axi_qos->qosthres0); |
| 826 | writel(0x00002001, &axi_qos->qosthres1); |
| 827 | writel(0x00000001, &axi_qos->qosthres2); |
| 828 | writel(0x00000001, &axi_qos->qosqon); |
| 829 | |
| 830 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSPDU1CW_BASE; |
| 831 | writel(0x00000001, &axi_qos->qosconf); |
| 832 | writel(0x00002018, &axi_qos->qosctset0); |
| 833 | writel(0x00000020, &axi_qos->qosreqctr); |
| 834 | writel(0x00002006, &axi_qos->qosthres0); |
| 835 | writel(0x00002001, &axi_qos->qosthres1); |
| 836 | writel(0x00000001, &axi_qos->qosthres2); |
| 837 | writel(0x00000001, &axi_qos->qosqon); |
| 838 | |
| 839 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VIN0W_BASE; |
| 840 | writel(0x00000001, &axi_qos->qosconf); |
| 841 | writel(0x0000200C, &axi_qos->qosctset0); |
| 842 | writel(0x00000020, &axi_qos->qosreqctr); |
| 843 | writel(0x00002006, &axi_qos->qosthres0); |
| 844 | writel(0x00002001, &axi_qos->qosthres1); |
| 845 | writel(0x00000001, &axi_qos->qosthres2); |
| 846 | writel(0x00000001, &axi_qos->qosqon); |
| 847 | |
| 848 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSP0R_BASE; |
| 849 | writel(0x00000001, &axi_qos->qosconf); |
| 850 | writel(0x0000200C, &axi_qos->qosctset0); |
| 851 | writel(0x00000020, &axi_qos->qosreqctr); |
| 852 | writel(0x00002006, &axi_qos->qosthres0); |
| 853 | writel(0x00002001, &axi_qos->qosthres1); |
| 854 | writel(0x00000001, &axi_qos->qosthres2); |
| 855 | writel(0x00000001, &axi_qos->qosqon); |
| 856 | |
| 857 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSP0W_BASE; |
| 858 | writel(0x00000001, &axi_qos->qosconf); |
| 859 | writel(0x0000200C, &axi_qos->qosctset0); |
| 860 | writel(0x00000020, &axi_qos->qosreqctr); |
| 861 | writel(0x00002006, &axi_qos->qosthres0); |
| 862 | writel(0x00002001, &axi_qos->qosthres1); |
| 863 | writel(0x00000001, &axi_qos->qosthres2); |
| 864 | writel(0x00000001, &axi_qos->qosqon); |
| 865 | |
| 866 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_FDP0R_BASE; |
| 867 | writel(0x00000001, &axi_qos->qosconf); |
| 868 | writel(0x0000200C, &axi_qos->qosctset0); |
| 869 | writel(0x00000020, &axi_qos->qosreqctr); |
| 870 | writel(0x00002006, &axi_qos->qosthres0); |
| 871 | writel(0x00002001, &axi_qos->qosthres1); |
| 872 | writel(0x00000001, &axi_qos->qosthres2); |
| 873 | writel(0x00000001, &axi_qos->qosqon); |
| 874 | |
| 875 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_FDP0W_BASE; |
| 876 | writel(0x00000001, &axi_qos->qosconf); |
| 877 | writel(0x0000200C, &axi_qos->qosctset0); |
| 878 | writel(0x00000020, &axi_qos->qosreqctr); |
| 879 | writel(0x00002006, &axi_qos->qosthres0); |
| 880 | writel(0x00002001, &axi_qos->qosthres1); |
| 881 | writel(0x00000001, &axi_qos->qosthres2); |
| 882 | writel(0x00000001, &axi_qos->qosqon); |
| 883 | |
| 884 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_IMSR_BASE; |
| 885 | writel(0x00000001, &axi_qos->qosconf); |
| 886 | writel(0x0000200C, &axi_qos->qosctset0); |
| 887 | writel(0x00000020, &axi_qos->qosreqctr); |
| 888 | writel(0x00002006, &axi_qos->qosthres0); |
| 889 | writel(0x00002001, &axi_qos->qosthres1); |
| 890 | writel(0x00000001, &axi_qos->qosthres2); |
| 891 | writel(0x00000001, &axi_qos->qosqon); |
| 892 | |
| 893 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_IMSW_BASE; |
| 894 | writel(0x00000001, &axi_qos->qosconf); |
| 895 | writel(0x0000200C, &axi_qos->qosctset0); |
| 896 | writel(0x00000020, &axi_qos->qosreqctr); |
| 897 | writel(0x00002006, &axi_qos->qosthres0); |
| 898 | writel(0x00002001, &axi_qos->qosthres1); |
| 899 | writel(0x00000001, &axi_qos->qosthres2); |
| 900 | writel(0x00000001, &axi_qos->qosqon); |
| 901 | |
| 902 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSP1R_BASE; |
| 903 | writel(0x00000001, &axi_qos->qosconf); |
| 904 | writel(0x0000200C, &axi_qos->qosctset0); |
| 905 | writel(0x00000020, &axi_qos->qosreqctr); |
| 906 | writel(0x00002006, &axi_qos->qosthres0); |
| 907 | writel(0x00002001, &axi_qos->qosthres1); |
| 908 | writel(0x00000001, &axi_qos->qosthres2); |
| 909 | writel(0x00000001, &axi_qos->qosqon); |
| 910 | |
| 911 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSP1W_BASE; |
| 912 | writel(0x00000001, &axi_qos->qosconf); |
| 913 | writel(0x0000200C, &axi_qos->qosctset0); |
| 914 | writel(0x00000020, &axi_qos->qosreqctr); |
| 915 | writel(0x00002006, &axi_qos->qosthres0); |
| 916 | writel(0x00002001, &axi_qos->qosthres1); |
| 917 | writel(0x00000001, &axi_qos->qosthres2); |
| 918 | writel(0x00000001, &axi_qos->qosqon); |
| 919 | |
| 920 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_FDP1R_BASE; |
| 921 | writel(0x00000001, &axi_qos->qosconf); |
| 922 | writel(0x0000200C, &axi_qos->qosctset0); |
| 923 | writel(0x00000020, &axi_qos->qosreqctr); |
| 924 | writel(0x00002006, &axi_qos->qosthres0); |
| 925 | writel(0x00002001, &axi_qos->qosthres1); |
| 926 | writel(0x00000001, &axi_qos->qosthres2); |
| 927 | writel(0x00000001, &axi_qos->qosqon); |
| 928 | |
| 929 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_FDP1W_BASE; |
| 930 | writel(0x00000001, &axi_qos->qosconf); |
| 931 | writel(0x0000200C, &axi_qos->qosctset0); |
| 932 | writel(0x00000020, &axi_qos->qosreqctr); |
| 933 | writel(0x00002006, &axi_qos->qosthres0); |
| 934 | writel(0x00002001, &axi_qos->qosthres1); |
| 935 | writel(0x00000001, &axi_qos->qosthres2); |
| 936 | writel(0x00000001, &axi_qos->qosqon); |
| 937 | |
| 938 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_IMRR_BASE; |
| 939 | writel(0x00000001, &axi_qos->qosconf); |
| 940 | writel(0x0000200C, &axi_qos->qosctset0); |
| 941 | writel(0x00000020, &axi_qos->qosreqctr); |
| 942 | writel(0x00002006, &axi_qos->qosthres0); |
| 943 | writel(0x00002001, &axi_qos->qosthres1); |
| 944 | writel(0x00000001, &axi_qos->qosthres2); |
| 945 | writel(0x00000001, &axi_qos->qosqon); |
| 946 | |
| 947 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_IMRW_BASE; |
| 948 | writel(0x00000001, &axi_qos->qosconf); |
| 949 | writel(0x0000200C, &axi_qos->qosctset0); |
| 950 | writel(0x00000020, &axi_qos->qosreqctr); |
| 951 | writel(0x00002006, &axi_qos->qosthres0); |
| 952 | writel(0x00002001, &axi_qos->qosthres1); |
| 953 | writel(0x00000001, &axi_qos->qosthres2); |
| 954 | writel(0x00000001, &axi_qos->qosqon); |
| 955 | |
| 956 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_FDP2R_BASE; |
| 957 | writel(0x00000001, &axi_qos->qosconf); |
| 958 | writel(0x0000200C, &axi_qos->qosctset0); |
| 959 | writel(0x00000020, &axi_qos->qosreqctr); |
| 960 | writel(0x00002006, &axi_qos->qosthres0); |
| 961 | writel(0x00002001, &axi_qos->qosthres1); |
| 962 | writel(0x00000001, &axi_qos->qosthres2); |
| 963 | writel(0x00000001, &axi_qos->qosqon); |
| 964 | |
| 965 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_FDP2W_BASE; |
| 966 | writel(0x00000001, &axi_qos->qosconf); |
| 967 | writel(0x0000200C, &axi_qos->qosctset0); |
| 968 | writel(0x00000020, &axi_qos->qosreqctr); |
| 969 | writel(0x00002006, &axi_qos->qosthres0); |
| 970 | writel(0x00002001, &axi_qos->qosthres1); |
| 971 | writel(0x00000001, &axi_qos->qosthres2); |
| 972 | writel(0x00000001, &axi_qos->qosqon); |
| 973 | |
| 974 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSPD0R_BASE; |
| 975 | writel(0x00000000, &axi_qos->qosconf); |
| 976 | writel(0x0000200C, &axi_qos->qosctset0); |
| 977 | writel(0x00000001, &axi_qos->qosreqctr); |
| 978 | writel(0x00002006, &axi_qos->qosthres0); |
| 979 | writel(0x00002001, &axi_qos->qosthres1); |
| 980 | writel(0x00000001, &axi_qos->qosthres2); |
| 981 | writel(0x00000001, &axi_qos->qosqon); |
| 982 | |
| 983 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSPD0W_BASE; |
| 984 | writel(0x00000000, &axi_qos->qosconf); |
| 985 | writel(0x0000200C, &axi_qos->qosctset0); |
| 986 | writel(0x00000001, &axi_qos->qosreqctr); |
| 987 | writel(0x00002006, &axi_qos->qosthres0); |
| 988 | writel(0x00002001, &axi_qos->qosthres1); |
| 989 | writel(0x00000001, &axi_qos->qosthres2); |
| 990 | writel(0x00000001, &axi_qos->qosqon); |
| 991 | |
| 992 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSPD1R_BASE; |
| 993 | writel(0x00000000, &axi_qos->qosconf); |
| 994 | writel(0x0000200C, &axi_qos->qosctset0); |
| 995 | writel(0x00000001, &axi_qos->qosreqctr); |
| 996 | writel(0x00002006, &axi_qos->qosthres0); |
| 997 | writel(0x00002001, &axi_qos->qosthres1); |
| 998 | writel(0x00000001, &axi_qos->qosthres2); |
| 999 | writel(0x00000001, &axi_qos->qosqon); |
| 1000 | |
| 1001 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSPD1W_BASE; |
| 1002 | writel(0x00000000, &axi_qos->qosconf); |
| 1003 | writel(0x0000200C, &axi_qos->qosctset0); |
| 1004 | writel(0x00000001, &axi_qos->qosreqctr); |
| 1005 | writel(0x00002006, &axi_qos->qosthres0); |
| 1006 | writel(0x00002001, &axi_qos->qosthres1); |
| 1007 | writel(0x00000001, &axi_qos->qosthres2); |
| 1008 | writel(0x00000001, &axi_qos->qosqon); |
| 1009 | |
| 1010 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_DU0R_BASE; |
| 1011 | writel(0x00000000, &axi_qos->qosconf); |
| 1012 | writel(0x0000200C, &axi_qos->qosctset0); |
| 1013 | writel(0x00000001, &axi_qos->qosreqctr); |
| 1014 | writel(0x00002006, &axi_qos->qosthres0); |
| 1015 | writel(0x00002001, &axi_qos->qosthres1); |
| 1016 | writel(0x00000001, &axi_qos->qosthres2); |
| 1017 | writel(0x00000001, &axi_qos->qosqon); |
| 1018 | |
| 1019 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_DU0W_BASE; |
| 1020 | writel(0x00000000, &axi_qos->qosconf); |
| 1021 | writel(0x0000200C, &axi_qos->qosctset0); |
| 1022 | writel(0x00000001, &axi_qos->qosreqctr); |
| 1023 | writel(0x00002006, &axi_qos->qosthres0); |
| 1024 | writel(0x00002001, &axi_qos->qosthres1); |
| 1025 | writel(0x00000001, &axi_qos->qosthres2); |
| 1026 | writel(0x00000001, &axi_qos->qosqon); |
| 1027 | |
| 1028 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_DU1R_BASE; |
| 1029 | writel(0x00000000, &axi_qos->qosconf); |
| 1030 | writel(0x0000200C, &axi_qos->qosctset0); |
| 1031 | writel(0x00000001, &axi_qos->qosreqctr); |
| 1032 | writel(0x00002006, &axi_qos->qosthres0); |
| 1033 | writel(0x00002001, &axi_qos->qosthres1); |
| 1034 | writel(0x00000001, &axi_qos->qosthres2); |
| 1035 | writel(0x00000001, &axi_qos->qosqon); |
| 1036 | |
| 1037 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_DU1W_BASE; |
| 1038 | writel(0x00000000, &axi_qos->qosconf); |
| 1039 | writel(0x0000200C, &axi_qos->qosctset0); |
| 1040 | writel(0x00000001, &axi_qos->qosreqctr); |
| 1041 | writel(0x00002006, &axi_qos->qosthres0); |
| 1042 | writel(0x00002001, &axi_qos->qosthres1); |
| 1043 | writel(0x00000001, &axi_qos->qosthres2); |
| 1044 | writel(0x00000001, &axi_qos->qosqon); |
| 1045 | |
| 1046 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VCP0CR_BASE; |
| 1047 | writel(0x00000001, &axi_qos->qosconf); |
| 1048 | writel(0x00002007, &axi_qos->qosctset0); |
| 1049 | writel(0x00000020, &axi_qos->qosreqctr); |
| 1050 | writel(0x00002006, &axi_qos->qosthres0); |
| 1051 | writel(0x00002001, &axi_qos->qosthres1); |
| 1052 | writel(0x00000001, &axi_qos->qosthres2); |
| 1053 | writel(0x00000001, &axi_qos->qosqon); |
| 1054 | |
| 1055 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VCP0CW_BASE; |
| 1056 | writel(0x00000001, &axi_qos->qosconf); |
| 1057 | writel(0x00002007, &axi_qos->qosctset0); |
| 1058 | writel(0x00000020, &axi_qos->qosreqctr); |
| 1059 | writel(0x00002006, &axi_qos->qosthres0); |
| 1060 | writel(0x00002001, &axi_qos->qosthres1); |
| 1061 | writel(0x00000001, &axi_qos->qosthres2); |
| 1062 | writel(0x00000001, &axi_qos->qosqon); |
| 1063 | |
| 1064 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VCP0VR_BASE; |
| 1065 | writel(0x00000001, &axi_qos->qosconf); |
| 1066 | writel(0x00002007, &axi_qos->qosctset0); |
| 1067 | writel(0x00000020, &axi_qos->qosreqctr); |
| 1068 | writel(0x00002006, &axi_qos->qosthres0); |
| 1069 | writel(0x00002001, &axi_qos->qosthres1); |
| 1070 | writel(0x00000001, &axi_qos->qosthres2); |
| 1071 | writel(0x00000001, &axi_qos->qosqon); |
| 1072 | |
| 1073 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VCP0VW_BASE; |
| 1074 | writel(0x00000001, &axi_qos->qosconf); |
| 1075 | writel(0x00002007, &axi_qos->qosctset0); |
| 1076 | writel(0x00000020, &axi_qos->qosreqctr); |
| 1077 | writel(0x00002006, &axi_qos->qosthres0); |
| 1078 | writel(0x00002001, &axi_qos->qosthres1); |
| 1079 | writel(0x00000001, &axi_qos->qosthres2); |
| 1080 | writel(0x00000001, &axi_qos->qosqon); |
| 1081 | |
| 1082 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VPC0R_BASE; |
| 1083 | writel(0x00000001, &axi_qos->qosconf); |
| 1084 | writel(0x00002007, &axi_qos->qosctset0); |
| 1085 | writel(0x00000020, &axi_qos->qosreqctr); |
| 1086 | writel(0x00002006, &axi_qos->qosthres0); |
| 1087 | writel(0x00002001, &axi_qos->qosthres1); |
| 1088 | writel(0x00000001, &axi_qos->qosthres2); |
| 1089 | writel(0x00000001, &axi_qos->qosqon); |
| 1090 | |
| 1091 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VCP1CR_BASE; |
| 1092 | writel(0x00000001, &axi_qos->qosconf); |
| 1093 | writel(0x00002007, &axi_qos->qosctset0); |
| 1094 | writel(0x00000020, &axi_qos->qosreqctr); |
| 1095 | writel(0x00002006, &axi_qos->qosthres0); |
| 1096 | writel(0x00002001, &axi_qos->qosthres1); |
| 1097 | writel(0x00000001, &axi_qos->qosthres2); |
| 1098 | writel(0x00000001, &axi_qos->qosqon); |
| 1099 | |
| 1100 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VCP1CW_BASE; |
| 1101 | writel(0x00000001, &axi_qos->qosconf); |
| 1102 | writel(0x00002007, &axi_qos->qosctset0); |
| 1103 | writel(0x00000020, &axi_qos->qosreqctr); |
| 1104 | writel(0x00002006, &axi_qos->qosthres0); |
| 1105 | writel(0x00002001, &axi_qos->qosthres1); |
| 1106 | writel(0x00000001, &axi_qos->qosthres2); |
| 1107 | writel(0x00000001, &axi_qos->qosqon); |
| 1108 | |
| 1109 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VCP1VR_BASE; |
| 1110 | writel(0x00000001, &axi_qos->qosconf); |
| 1111 | writel(0x00002007, &axi_qos->qosctset0); |
| 1112 | writel(0x00000020, &axi_qos->qosreqctr); |
| 1113 | writel(0x00002006, &axi_qos->qosthres0); |
| 1114 | writel(0x00002001, &axi_qos->qosthres1); |
| 1115 | writel(0x00000001, &axi_qos->qosthres2); |
| 1116 | writel(0x00000001, &axi_qos->qosqon); |
| 1117 | |
| 1118 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VCP1VW_BASE; |
| 1119 | writel(0x00000001, &axi_qos->qosconf); |
| 1120 | writel(0x00002007, &axi_qos->qosctset0); |
| 1121 | writel(0x00000020, &axi_qos->qosreqctr); |
| 1122 | writel(0x00002006, &axi_qos->qosthres0); |
| 1123 | writel(0x00002001, &axi_qos->qosthres1); |
| 1124 | writel(0x00000001, &axi_qos->qosthres2); |
| 1125 | writel(0x00000001, &axi_qos->qosqon); |
| 1126 | |
| 1127 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VPC1R_BASE; |
| 1128 | writel(0x00000001, &axi_qos->qosconf); |
| 1129 | writel(0x00002007, &axi_qos->qosctset0); |
| 1130 | writel(0x00000020, &axi_qos->qosreqctr); |
| 1131 | writel(0x00002006, &axi_qos->qosthres0); |
| 1132 | writel(0x00002001, &axi_qos->qosthres1); |
| 1133 | writel(0x00000001, &axi_qos->qosthres2); |
| 1134 | writel(0x00000000, &axi_qos->qosqon); |
| 1135 | } |
| 1136 | |
| 1137 | #if defined(CONFIG_QOS_PRI_MEDIA) |
| 1138 | #define is_qos_pri_media() 1 |
| 1139 | #else |
| 1140 | #define is_qos_pri_media() 0 |
| 1141 | #endif |
| 1142 | |
| 1143 | #if defined(CONFIG_QOS_PRI_NORMAL) |
| 1144 | #define is_qos_pri_normal() 1 |
| 1145 | #else |
| 1146 | #define is_qos_pri_normal() 0 |
| 1147 | #endif |
| 1148 | |
| 1149 | #if defined(CONFIG_QOS_PRI_GFX) |
| 1150 | #define is_qos_pri_gfx() 1 |
| 1151 | #else |
| 1152 | #define is_qos_pri_gfx() 0 |
| 1153 | #endif |
| 1154 | |
| 1155 | /* QoS version 0.963 for ES2 */ |
| 1156 | static void qos_init_es2(void) |
| 1157 | { |
| 1158 | int i; |
| 1159 | struct rcar_s3c *s3c; |
| 1160 | struct rcar_s3c_qos *s3c_qos; |
| 1161 | struct rcar_dbsc3_qos *qos_addr; |
| 1162 | struct rcar_mxi *mxi; |
| 1163 | struct rcar_mxi_qos *mxi_qos; |
| 1164 | struct rcar_axi_qos *axi_qos; |
| 1165 | |
| 1166 | /* DBSC DBADJ2 */ |
| 1167 | writel(0x20042004, DBSC3_0_DBADJ2); |
| 1168 | |
| 1169 | /* S3C -QoS */ |
| 1170 | s3c = (struct rcar_s3c *)S3C_BASE; |
| 1171 | writel(0x80000000, &s3c->s3cadsplcr); |
| 1172 | if (is_qos_pri_media()) { |
| 1173 | writel(0x1F060302, &s3c->s3crorr); |
| 1174 | writel(0x07070302, &s3c->s3cworr); |
| 1175 | } else if (is_qos_pri_normal()) { |
| 1176 | writel(0x1F060504, &s3c->s3crorr); |
| 1177 | writel(0x07070503, &s3c->s3cworr); |
| 1178 | } else if (is_qos_pri_gfx()) { |
| 1179 | writel(0x1F060606, &s3c->s3crorr); |
| 1180 | writel(0x07070606, &s3c->s3cworr); |
| 1181 | } |
| 1182 | /* QoS Control Registers */ |
| 1183 | s3c_qos = (struct rcar_s3c_qos *)S3C_QOS_CCI0_BASE; |
| 1184 | writel(0x00890089, &s3c_qos->s3cqos0); |
| 1185 | writel(0x20960010, &s3c_qos->s3cqos1); |
| 1186 | writel(0x20302030, &s3c_qos->s3cqos2); |
| 1187 | if (is_qos_pri_media()) |
| 1188 | writel(0x20AA2300, &s3c_qos->s3cqos3); |
| 1189 | else if (is_qos_pri_normal()) |
| 1190 | writel(0x20AA2200, &s3c_qos->s3cqos3); |
| 1191 | else if (is_qos_pri_gfx()) |
| 1192 | writel(0x20AA2100, &s3c_qos->s3cqos3); |
| 1193 | writel(0x00002032, &s3c_qos->s3cqos4); |
| 1194 | writel(0x20960010, &s3c_qos->s3cqos5); |
| 1195 | writel(0x20302030, &s3c_qos->s3cqos6); |
| 1196 | if (is_qos_pri_media()) |
| 1197 | writel(0x20AA2300, &s3c_qos->s3cqos7); |
| 1198 | else if (is_qos_pri_normal()) |
| 1199 | writel(0x20AA2200, &s3c_qos->s3cqos7); |
| 1200 | else if (is_qos_pri_gfx()) |
| 1201 | writel(0x20AA2100, &s3c_qos->s3cqos7); |
| 1202 | writel(0x00002032, &s3c_qos->s3cqos8); |
| 1203 | |
| 1204 | s3c_qos = (struct rcar_s3c_qos *)S3C_QOS_CCI1_BASE; |
| 1205 | writel(0x00890089, &s3c_qos->s3cqos0); |
| 1206 | writel(0x20960010, &s3c_qos->s3cqos1); |
| 1207 | writel(0x20302030, &s3c_qos->s3cqos2); |
| 1208 | if (is_qos_pri_media()) |
| 1209 | writel(0x20AA2300, &s3c_qos->s3cqos3); |
| 1210 | else if (is_qos_pri_normal()) |
| 1211 | writel(0x20AA2200, &s3c_qos->s3cqos3); |
| 1212 | else if (is_qos_pri_gfx()) |
| 1213 | writel(0x20AA2100, &s3c_qos->s3cqos3); |
| 1214 | writel(0x00002032, &s3c_qos->s3cqos4); |
| 1215 | writel(0x20960010, &s3c_qos->s3cqos5); |
| 1216 | writel(0x20302030, &s3c_qos->s3cqos6); |
| 1217 | if (is_qos_pri_media()) |
| 1218 | writel(0x20AA2300, &s3c_qos->s3cqos7); |
| 1219 | else if (is_qos_pri_normal()) |
| 1220 | writel(0x20AA2200, &s3c_qos->s3cqos7); |
| 1221 | else if (is_qos_pri_gfx()) |
| 1222 | writel(0x20AA2100, &s3c_qos->s3cqos7); |
| 1223 | writel(0x00002032, &s3c_qos->s3cqos8); |
| 1224 | |
| 1225 | s3c_qos = (struct rcar_s3c_qos *)S3C_QOS_MXI_BASE; |
| 1226 | writel(0x80928092, &s3c_qos->s3cqos0); |
| 1227 | writel(0x20960020, &s3c_qos->s3cqos1); |
| 1228 | writel(0x20302030, &s3c_qos->s3cqos2); |
| 1229 | writel(0x20AA20DC, &s3c_qos->s3cqos3); |
| 1230 | writel(0x00002032, &s3c_qos->s3cqos4); |
| 1231 | writel(0x20960020, &s3c_qos->s3cqos5); |
| 1232 | writel(0x20302030, &s3c_qos->s3cqos6); |
| 1233 | writel(0x20AA20DC, &s3c_qos->s3cqos7); |
| 1234 | writel(0x00002032, &s3c_qos->s3cqos8); |
| 1235 | |
| 1236 | s3c_qos = (struct rcar_s3c_qos *)S3C_QOS_AXI_BASE; |
| 1237 | writel(0x00828092, &s3c_qos->s3cqos0); |
| 1238 | writel(0x20960020, &s3c_qos->s3cqos1); |
| 1239 | writel(0x20302030, &s3c_qos->s3cqos2); |
| 1240 | writel(0x20AA20FA, &s3c_qos->s3cqos3); |
| 1241 | writel(0x00002032, &s3c_qos->s3cqos4); |
| 1242 | writel(0x20960020, &s3c_qos->s3cqos5); |
| 1243 | writel(0x20302030, &s3c_qos->s3cqos6); |
| 1244 | writel(0x20AA20FA, &s3c_qos->s3cqos7); |
| 1245 | writel(0x00002032, &s3c_qos->s3cqos8); |
| 1246 | |
| 1247 | writel(0x00310808, &s3c->s3carcr11); |
| 1248 | |
| 1249 | /* DBSC -QoS */ |
| 1250 | /* DBSC0 - Read */ |
| 1251 | for (i = DBSC3_00; i < DBSC3_NR; i++) { |
| 1252 | qos_addr = (struct rcar_dbsc3_qos *)dbsc3_0_r_qos_addr[i]; |
| 1253 | writel(0x00000002, &qos_addr->dblgcnt); |
| 1254 | writel(0x00002096, &qos_addr->dbtmval0); |
| 1255 | writel(0x00002064, &qos_addr->dbtmval1); |
| 1256 | writel(0x00002032, &qos_addr->dbtmval2); |
| 1257 | writel(0x00001FB0, &qos_addr->dbtmval3); |
| 1258 | writel(0x00000001, &qos_addr->dbrqctr); |
| 1259 | writel(0x00002078, &qos_addr->dbthres0); |
| 1260 | writel(0x0000204B, &qos_addr->dbthres1); |
| 1261 | writel(0x0000201E, &qos_addr->dbthres2); |
| 1262 | writel(0x00000001, &qos_addr->dblgqon); |
| 1263 | } |
| 1264 | |
| 1265 | /* DBSC0 - Write */ |
| 1266 | for (i = DBSC3_00; i < DBSC3_NR; i++) { |
| 1267 | qos_addr = (struct rcar_dbsc3_qos *)dbsc3_0_w_qos_addr[i]; |
| 1268 | writel(0x00000002, &qos_addr->dblgcnt); |
| 1269 | writel(0x00002096, &qos_addr->dbtmval0); |
| 1270 | writel(0x00002064, &qos_addr->dbtmval1); |
| 1271 | writel(0x00002050, &qos_addr->dbtmval2); |
| 1272 | writel(0x0000203A, &qos_addr->dbtmval3); |
| 1273 | writel(0x00000001, &qos_addr->dbrqctr); |
| 1274 | writel(0x00002078, &qos_addr->dbthres0); |
| 1275 | writel(0x0000204B, &qos_addr->dbthres1); |
| 1276 | writel(0x0000203C, &qos_addr->dbthres2); |
| 1277 | writel(0x00000001, &qos_addr->dblgqon); |
| 1278 | } |
| 1279 | |
| 1280 | /* MXI -QoS */ |
| 1281 | /* Transaction Control (MXI) */ |
| 1282 | mxi = (struct rcar_mxi *)MXI_BASE; |
| 1283 | writel(0x00000013, &mxi->mxrtcr); |
| 1284 | writel(0x00000016, &mxi->mxwtcr); |
| 1285 | writel(0x00B800C0, &mxi->mxsaar0); |
| 1286 | writel(0x02000800, &mxi->mxsaar1); |
| 1287 | |
| 1288 | /* QoS Control (MXI) */ |
| 1289 | mxi_qos = (struct rcar_mxi_qos *)MXI_QOS_BASE; |
| 1290 | writel(0x0000000C, &mxi_qos->vspdu0); |
| 1291 | writel(0x0000000C, &mxi_qos->vspdu1); |
| 1292 | writel(0x0000000E, &mxi_qos->du0); |
| 1293 | writel(0x0000000E, &mxi_qos->du1); |
| 1294 | |
| 1295 | /* AXI -QoS */ |
| 1296 | /* Transaction Control (MXI) */ |
| 1297 | axi_qos = (struct rcar_axi_qos *)SYS_AXI_SYX64TO128_BASE; |
| 1298 | writel(0x00000002, &axi_qos->qosconf); |
| 1299 | writel(0x00002245, &axi_qos->qosctset0); |
| 1300 | writel(0x00002096, &axi_qos->qosctset1); |
| 1301 | writel(0x00002030, &axi_qos->qosctset2); |
| 1302 | writel(0x00002030, &axi_qos->qosctset3); |
| 1303 | writel(0x00000001, &axi_qos->qosreqctr); |
| 1304 | writel(0x00002064, &axi_qos->qosthres0); |
| 1305 | writel(0x00002004, &axi_qos->qosthres1); |
| 1306 | writel(0x00000000, &axi_qos->qosthres2); |
| 1307 | writel(0x00000001, &axi_qos->qosqon); |
| 1308 | |
| 1309 | axi_qos = (struct rcar_axi_qos *)SYS_AXI_AVB_BASE; |
| 1310 | writel(0x00000000, &axi_qos->qosconf); |
| 1311 | writel(0x000020A6, &axi_qos->qosctset0); |
| 1312 | writel(0x00000001, &axi_qos->qosreqctr); |
| 1313 | writel(0x00002064, &axi_qos->qosthres0); |
| 1314 | writel(0x00002004, &axi_qos->qosthres1); |
| 1315 | writel(0x00000000, &axi_qos->qosthres2); |
| 1316 | writel(0x00000001, &axi_qos->qosqon); |
| 1317 | |
| 1318 | axi_qos = (struct rcar_axi_qos *)SYS_AXI_G2D_BASE; |
| 1319 | writel(0x00000000, &axi_qos->qosconf); |
| 1320 | writel(0x000020A6, &axi_qos->qosctset0); |
| 1321 | writel(0x00000001, &axi_qos->qosreqctr); |
| 1322 | writel(0x00002064, &axi_qos->qosthres0); |
| 1323 | writel(0x00002004, &axi_qos->qosthres1); |
| 1324 | writel(0x00000000, &axi_qos->qosthres2); |
| 1325 | writel(0x00000001, &axi_qos->qosqon); |
| 1326 | |
| 1327 | axi_qos = (struct rcar_axi_qos *)SYS_AXI_IMP0_BASE; |
| 1328 | writel(0x00000000, &axi_qos->qosconf); |
| 1329 | writel(0x00002021, &axi_qos->qosctset0); |
| 1330 | writel(0x00000001, &axi_qos->qosreqctr); |
| 1331 | writel(0x00002064, &axi_qos->qosthres0); |
| 1332 | writel(0x00002004, &axi_qos->qosthres1); |
| 1333 | writel(0x00000000, &axi_qos->qosthres2); |
| 1334 | writel(0x00000001, &axi_qos->qosqon); |
| 1335 | |
| 1336 | axi_qos = (struct rcar_axi_qos *)SYS_AXI_IMP1_BASE; |
| 1337 | writel(0x00000000, &axi_qos->qosconf); |
| 1338 | writel(0x00002037, &axi_qos->qosctset0); |
| 1339 | writel(0x00000001, &axi_qos->qosreqctr); |
| 1340 | writel(0x00002064, &axi_qos->qosthres0); |
| 1341 | writel(0x00002004, &axi_qos->qosthres1); |
| 1342 | writel(0x00000000, &axi_qos->qosthres2); |
| 1343 | writel(0x00000001, &axi_qos->qosqon); |
| 1344 | |
| 1345 | axi_qos = (struct rcar_axi_qos *)SYS_AXI_IMUX0_BASE; |
| 1346 | writel(0x00000002, &axi_qos->qosconf); |
| 1347 | writel(0x00002245, &axi_qos->qosctset0); |
| 1348 | writel(0x00002096, &axi_qos->qosctset1); |
| 1349 | writel(0x00002030, &axi_qos->qosctset2); |
| 1350 | writel(0x00002030, &axi_qos->qosctset3); |
| 1351 | writel(0x00000001, &axi_qos->qosreqctr); |
| 1352 | writel(0x00002064, &axi_qos->qosthres0); |
| 1353 | writel(0x00002004, &axi_qos->qosthres1); |
| 1354 | writel(0x00000000, &axi_qos->qosthres2); |
| 1355 | writel(0x00000001, &axi_qos->qosqon); |
| 1356 | |
| 1357 | axi_qos = (struct rcar_axi_qos *)SYS_AXI_IMUX1_BASE; |
| 1358 | writel(0x00000002, &axi_qos->qosconf); |
| 1359 | writel(0x00002245, &axi_qos->qosctset0); |
| 1360 | writel(0x00002096, &axi_qos->qosctset1); |
| 1361 | writel(0x00002030, &axi_qos->qosctset2); |
| 1362 | writel(0x00002030, &axi_qos->qosctset3); |
| 1363 | writel(0x00000001, &axi_qos->qosreqctr); |
| 1364 | writel(0x00002064, &axi_qos->qosthres0); |
| 1365 | writel(0x00002004, &axi_qos->qosthres1); |
| 1366 | writel(0x00000000, &axi_qos->qosthres2); |
| 1367 | writel(0x00000001, &axi_qos->qosqon); |
| 1368 | |
| 1369 | axi_qos = (struct rcar_axi_qos *)SYS_AXI_IMUX2_BASE; |
| 1370 | writel(0x00000002, &axi_qos->qosconf); |
| 1371 | writel(0x00002245, &axi_qos->qosctset0); |
| 1372 | writel(0x00002096, &axi_qos->qosctset1); |
| 1373 | writel(0x00002030, &axi_qos->qosctset2); |
| 1374 | writel(0x00002030, &axi_qos->qosctset3); |
| 1375 | writel(0x00000001, &axi_qos->qosreqctr); |
| 1376 | writel(0x00002064, &axi_qos->qosthres0); |
| 1377 | writel(0x00002004, &axi_qos->qosthres1); |
| 1378 | writel(0x00000000, &axi_qos->qosthres2); |
| 1379 | writel(0x00000001, &axi_qos->qosqon); |
| 1380 | |
| 1381 | axi_qos = (struct rcar_axi_qos *)SYS_AXI_LBS_BASE; |
| 1382 | writel(0x00000000, &axi_qos->qosconf); |
| 1383 | writel(0x0000214C, &axi_qos->qosctset0); |
| 1384 | writel(0x00000001, &axi_qos->qosreqctr); |
| 1385 | writel(0x00002064, &axi_qos->qosthres0); |
| 1386 | writel(0x00002004, &axi_qos->qosthres1); |
| 1387 | writel(0x00000000, &axi_qos->qosthres2); |
| 1388 | writel(0x00000001, &axi_qos->qosqon); |
| 1389 | |
| 1390 | axi_qos = (struct rcar_axi_qos *)SYS_AXI_MMUDS_BASE; |
| 1391 | writel(0x00000001, &axi_qos->qosconf); |
| 1392 | writel(0x00002004, &axi_qos->qosctset0); |
| 1393 | writel(0x00002096, &axi_qos->qosctset1); |
| 1394 | writel(0x00002030, &axi_qos->qosctset2); |
| 1395 | writel(0x00002030, &axi_qos->qosctset3); |
| 1396 | writel(0x00000001, &axi_qos->qosreqctr); |
| 1397 | writel(0x00002064, &axi_qos->qosthres0); |
| 1398 | writel(0x00002004, &axi_qos->qosthres1); |
| 1399 | writel(0x00000000, &axi_qos->qosthres2); |
| 1400 | writel(0x00000001, &axi_qos->qosqon); |
| 1401 | |
| 1402 | axi_qos = (struct rcar_axi_qos *)SYS_AXI_MMUM_BASE; |
| 1403 | writel(0x00000001, &axi_qos->qosconf); |
| 1404 | writel(0x00002004, &axi_qos->qosctset0); |
| 1405 | writel(0x00002096, &axi_qos->qosctset1); |
| 1406 | writel(0x00002030, &axi_qos->qosctset2); |
| 1407 | writel(0x00002030, &axi_qos->qosctset3); |
| 1408 | writel(0x00000001, &axi_qos->qosreqctr); |
| 1409 | writel(0x00002064, &axi_qos->qosthres0); |
| 1410 | writel(0x00002004, &axi_qos->qosthres1); |
| 1411 | writel(0x00000000, &axi_qos->qosthres2); |
| 1412 | writel(0x00000001, &axi_qos->qosqon); |
| 1413 | |
| 1414 | axi_qos = (struct rcar_axi_qos *)SYS_AXI_MMUR_BASE; |
| 1415 | writel(0x00000001, &axi_qos->qosconf); |
| 1416 | writel(0x00002004, &axi_qos->qosctset0); |
| 1417 | writel(0x00002096, &axi_qos->qosctset1); |
| 1418 | writel(0x00002030, &axi_qos->qosctset2); |
| 1419 | writel(0x00002030, &axi_qos->qosctset3); |
| 1420 | writel(0x00000001, &axi_qos->qosreqctr); |
| 1421 | writel(0x00002064, &axi_qos->qosthres0); |
| 1422 | writel(0x00002004, &axi_qos->qosthres1); |
| 1423 | writel(0x00000000, &axi_qos->qosthres2); |
| 1424 | writel(0x00000001, &axi_qos->qosqon); |
| 1425 | |
| 1426 | axi_qos = (struct rcar_axi_qos *)SYS_AXI_MMUS0_BASE; |
| 1427 | writel(0x00000001, &axi_qos->qosconf); |
| 1428 | writel(0x00002004, &axi_qos->qosctset0); |
| 1429 | writel(0x00002096, &axi_qos->qosctset1); |
| 1430 | writel(0x00002030, &axi_qos->qosctset2); |
| 1431 | writel(0x00002030, &axi_qos->qosctset3); |
| 1432 | writel(0x00000001, &axi_qos->qosreqctr); |
| 1433 | writel(0x00002064, &axi_qos->qosthres0); |
| 1434 | writel(0x00002004, &axi_qos->qosthres1); |
| 1435 | writel(0x00000000, &axi_qos->qosthres2); |
| 1436 | writel(0x00000001, &axi_qos->qosqon); |
| 1437 | |
| 1438 | axi_qos = (struct rcar_axi_qos *)SYS_AXI_MMUS1_BASE; |
| 1439 | writel(0x00000001, &axi_qos->qosconf); |
| 1440 | writel(0x00002004, &axi_qos->qosctset0); |
| 1441 | writel(0x00002096, &axi_qos->qosctset1); |
| 1442 | writel(0x00002030, &axi_qos->qosctset2); |
| 1443 | writel(0x00002030, &axi_qos->qosctset3); |
| 1444 | writel(0x00000001, &axi_qos->qosreqctr); |
| 1445 | writel(0x00002064, &axi_qos->qosthres0); |
| 1446 | writel(0x00002004, &axi_qos->qosthres1); |
| 1447 | writel(0x00000000, &axi_qos->qosthres2); |
| 1448 | writel(0x00000001, &axi_qos->qosqon); |
| 1449 | |
| 1450 | axi_qos = (struct rcar_axi_qos *)SYS_AXI_MTSB0_BASE; |
| 1451 | writel(0x00000000, &axi_qos->qosconf); |
| 1452 | writel(0x00002021, &axi_qos->qosctset0); |
| 1453 | writel(0x00000001, &axi_qos->qosreqctr); |
| 1454 | writel(0x00002064, &axi_qos->qosthres0); |
| 1455 | writel(0x00002004, &axi_qos->qosthres1); |
| 1456 | writel(0x00000000, &axi_qos->qosthres2); |
| 1457 | writel(0x00000001, &axi_qos->qosqon); |
| 1458 | |
| 1459 | axi_qos = (struct rcar_axi_qos *)SYS_AXI_MTSB1_BASE; |
| 1460 | writel(0x00000000, &axi_qos->qosconf); |
| 1461 | writel(0x00002021, &axi_qos->qosctset0); |
| 1462 | writel(0x00000001, &axi_qos->qosreqctr); |
| 1463 | writel(0x00002064, &axi_qos->qosthres0); |
| 1464 | writel(0x00002004, &axi_qos->qosthres1); |
| 1465 | writel(0x00000000, &axi_qos->qosthres2); |
| 1466 | writel(0x00000001, &axi_qos->qosqon); |
| 1467 | |
| 1468 | axi_qos = (struct rcar_axi_qos *)SYS_AXI_PCI_BASE; |
| 1469 | writel(0x00000000, &axi_qos->qosconf); |
| 1470 | writel(0x0000214C, &axi_qos->qosctset0); |
| 1471 | writel(0x00000001, &axi_qos->qosreqctr); |
| 1472 | writel(0x00002064, &axi_qos->qosthres0); |
| 1473 | writel(0x00002004, &axi_qos->qosthres1); |
| 1474 | writel(0x00000000, &axi_qos->qosthres2); |
| 1475 | writel(0x00000001, &axi_qos->qosqon); |
| 1476 | |
| 1477 | axi_qos = (struct rcar_axi_qos *)SYS_AXI_RTX_BASE; |
| 1478 | writel(0x00000002, &axi_qos->qosconf); |
| 1479 | writel(0x00002245, &axi_qos->qosctset0); |
| 1480 | writel(0x00002096, &axi_qos->qosctset1); |
| 1481 | writel(0x00002030, &axi_qos->qosctset2); |
| 1482 | writel(0x00002030, &axi_qos->qosctset3); |
| 1483 | writel(0x00000001, &axi_qos->qosreqctr); |
| 1484 | writel(0x00002064, &axi_qos->qosthres0); |
| 1485 | writel(0x00002004, &axi_qos->qosthres1); |
| 1486 | writel(0x00000000, &axi_qos->qosthres2); |
| 1487 | writel(0x00000001, &axi_qos->qosqon); |
| 1488 | |
| 1489 | axi_qos = (struct rcar_axi_qos *)SYS_AXI_SDS0_BASE; |
| 1490 | writel(0x00000000, &axi_qos->qosconf); |
| 1491 | writel(0x000020A6, &axi_qos->qosctset0); |
| 1492 | writel(0x00000001, &axi_qos->qosreqctr); |
| 1493 | writel(0x00002064, &axi_qos->qosthres0); |
| 1494 | writel(0x00002004, &axi_qos->qosthres1); |
| 1495 | writel(0x00000000, &axi_qos->qosthres2); |
| 1496 | writel(0x00000001, &axi_qos->qosqon); |
| 1497 | |
| 1498 | axi_qos = (struct rcar_axi_qos *)SYS_AXI_SDS1_BASE; |
| 1499 | writel(0x00000000, &axi_qos->qosconf); |
| 1500 | writel(0x000020A6, &axi_qos->qosctset0); |
| 1501 | writel(0x00000001, &axi_qos->qosreqctr); |
| 1502 | writel(0x00002064, &axi_qos->qosthres0); |
| 1503 | writel(0x00002004, &axi_qos->qosthres1); |
| 1504 | writel(0x00000000, &axi_qos->qosthres2); |
| 1505 | writel(0x00000001, &axi_qos->qosqon); |
| 1506 | |
| 1507 | axi_qos = (struct rcar_axi_qos *)SYS_AXI_USB20_BASE; |
| 1508 | writel(0x00000000, &axi_qos->qosconf); |
| 1509 | writel(0x00002053, &axi_qos->qosctset0); |
| 1510 | writel(0x00000001, &axi_qos->qosreqctr); |
| 1511 | writel(0x00002064, &axi_qos->qosthres0); |
| 1512 | writel(0x00002004, &axi_qos->qosthres1); |
| 1513 | writel(0x00000000, &axi_qos->qosthres2); |
| 1514 | writel(0x00000001, &axi_qos->qosqon); |
| 1515 | |
| 1516 | axi_qos = (struct rcar_axi_qos *)SYS_AXI_USB21_BASE; |
| 1517 | writel(0x00000000, &axi_qos->qosconf); |
| 1518 | writel(0x00002053, &axi_qos->qosctset0); |
| 1519 | writel(0x00000001, &axi_qos->qosreqctr); |
| 1520 | writel(0x00002064, &axi_qos->qosthres0); |
| 1521 | writel(0x00002004, &axi_qos->qosthres1); |
| 1522 | writel(0x00000000, &axi_qos->qosthres2); |
| 1523 | writel(0x00000001, &axi_qos->qosqon); |
| 1524 | |
| 1525 | axi_qos = (struct rcar_axi_qos *)SYS_AXI_USB22_BASE; |
| 1526 | writel(0x00000000, &axi_qos->qosconf); |
| 1527 | writel(0x00002053, &axi_qos->qosctset0); |
| 1528 | writel(0x00000001, &axi_qos->qosreqctr); |
| 1529 | writel(0x00002064, &axi_qos->qosthres0); |
| 1530 | writel(0x00002004, &axi_qos->qosthres1); |
| 1531 | writel(0x00000000, &axi_qos->qosthres2); |
| 1532 | writel(0x00000001, &axi_qos->qosqon); |
| 1533 | |
| 1534 | axi_qos = (struct rcar_axi_qos *)SYS_AXI_USB30_BASE; |
| 1535 | writel(0x00000000, &axi_qos->qosconf); |
| 1536 | writel(0x0000214C, &axi_qos->qosctset0); |
| 1537 | writel(0x00000001, &axi_qos->qosreqctr); |
| 1538 | writel(0x00002064, &axi_qos->qosthres0); |
| 1539 | writel(0x00002004, &axi_qos->qosthres1); |
| 1540 | writel(0x00000000, &axi_qos->qosthres2); |
| 1541 | writel(0x00000001, &axi_qos->qosqon); |
| 1542 | |
| 1543 | axi_qos = (struct rcar_axi_qos *)SYS_AXI_AX2M_BASE; |
| 1544 | writel(0x00000002, &axi_qos->qosconf); |
| 1545 | writel(0x00002245, &axi_qos->qosctset0); |
| 1546 | writel(0x00000001, &axi_qos->qosreqctr); |
| 1547 | writel(0x00002064, &axi_qos->qosthres0); |
| 1548 | writel(0x00002004, &axi_qos->qosthres1); |
| 1549 | writel(0x00000000, &axi_qos->qosthres2); |
| 1550 | writel(0x00000001, &axi_qos->qosqon); |
| 1551 | |
| 1552 | axi_qos = (struct rcar_axi_qos *)SYS_AXI_CC50_BASE; |
| 1553 | writel(0x00000000, &axi_qos->qosconf); |
| 1554 | writel(0x00002029, &axi_qos->qosctset0); |
| 1555 | writel(0x00000001, &axi_qos->qosreqctr); |
| 1556 | writel(0x00002064, &axi_qos->qosthres0); |
| 1557 | writel(0x00002004, &axi_qos->qosthres1); |
| 1558 | writel(0x00000000, &axi_qos->qosthres2); |
| 1559 | writel(0x00000001, &axi_qos->qosqon); |
| 1560 | |
| 1561 | axi_qos = (struct rcar_axi_qos *)SYS_AXI_CCI_BASE; |
| 1562 | writel(0x00000002, &axi_qos->qosconf); |
| 1563 | writel(0x00002245, &axi_qos->qosctset0); |
| 1564 | writel(0x00000001, &axi_qos->qosreqctr); |
| 1565 | writel(0x00002064, &axi_qos->qosthres0); |
| 1566 | writel(0x00002004, &axi_qos->qosthres1); |
| 1567 | writel(0x00000000, &axi_qos->qosthres2); |
| 1568 | writel(0x00000001, &axi_qos->qosqon); |
| 1569 | |
| 1570 | axi_qos = (struct rcar_axi_qos *)SYS_AXI_CS_BASE; |
| 1571 | writel(0x00000000, &axi_qos->qosconf); |
| 1572 | writel(0x00002053, &axi_qos->qosctset0); |
| 1573 | writel(0x00000001, &axi_qos->qosreqctr); |
| 1574 | writel(0x00002064, &axi_qos->qosthres0); |
| 1575 | writel(0x00002004, &axi_qos->qosthres1); |
| 1576 | writel(0x00000000, &axi_qos->qosthres2); |
| 1577 | writel(0x00000001, &axi_qos->qosqon); |
| 1578 | |
| 1579 | axi_qos = (struct rcar_axi_qos *)SYS_AXI_DDM_BASE; |
| 1580 | writel(0x00000000, &axi_qos->qosconf); |
| 1581 | writel(0x000020A6, &axi_qos->qosctset0); |
| 1582 | writel(0x00000001, &axi_qos->qosreqctr); |
| 1583 | writel(0x00002064, &axi_qos->qosthres0); |
| 1584 | writel(0x00002004, &axi_qos->qosthres1); |
| 1585 | writel(0x00000000, &axi_qos->qosthres2); |
| 1586 | writel(0x00000001, &axi_qos->qosqon); |
| 1587 | |
| 1588 | axi_qos = (struct rcar_axi_qos *)SYS_AXI_ETH_BASE; |
| 1589 | writel(0x00000000, &axi_qos->qosconf); |
| 1590 | writel(0x00002053, &axi_qos->qosctset0); |
| 1591 | writel(0x00000001, &axi_qos->qosreqctr); |
| 1592 | writel(0x00002064, &axi_qos->qosthres0); |
| 1593 | writel(0x00002004, &axi_qos->qosthres1); |
| 1594 | writel(0x00000000, &axi_qos->qosthres2); |
| 1595 | writel(0x00000001, &axi_qos->qosqon); |
| 1596 | |
| 1597 | axi_qos = (struct rcar_axi_qos *)SYS_AXI_MPXM_BASE; |
| 1598 | writel(0x00000002, &axi_qos->qosconf); |
| 1599 | writel(0x00002245, &axi_qos->qosctset0); |
| 1600 | writel(0x00000001, &axi_qos->qosreqctr); |
| 1601 | writel(0x00002064, &axi_qos->qosthres0); |
| 1602 | writel(0x00002004, &axi_qos->qosthres1); |
| 1603 | writel(0x00000000, &axi_qos->qosthres2); |
| 1604 | writel(0x00000001, &axi_qos->qosqon); |
| 1605 | |
| 1606 | axi_qos = (struct rcar_axi_qos *)SYS_AXI_SAT0_BASE; |
| 1607 | writel(0x00000000, &axi_qos->qosconf); |
| 1608 | writel(0x00002053, &axi_qos->qosctset0); |
| 1609 | writel(0x00000001, &axi_qos->qosreqctr); |
| 1610 | writel(0x00002064, &axi_qos->qosthres0); |
| 1611 | writel(0x00002004, &axi_qos->qosthres1); |
| 1612 | writel(0x00000000, &axi_qos->qosthres2); |
| 1613 | writel(0x00000001, &axi_qos->qosqon); |
| 1614 | |
| 1615 | axi_qos = (struct rcar_axi_qos *)SYS_AXI_SAT1_BASE; |
| 1616 | writel(0x00000000, &axi_qos->qosconf); |
| 1617 | writel(0x00002053, &axi_qos->qosctset0); |
| 1618 | writel(0x00000001, &axi_qos->qosreqctr); |
| 1619 | writel(0x00002064, &axi_qos->qosthres0); |
| 1620 | writel(0x00002004, &axi_qos->qosthres1); |
| 1621 | writel(0x00000000, &axi_qos->qosthres2); |
| 1622 | writel(0x00000001, &axi_qos->qosqon); |
| 1623 | |
| 1624 | axi_qos = (struct rcar_axi_qos *)SYS_AXI_SDM0_BASE; |
| 1625 | writel(0x00000000, &axi_qos->qosconf); |
| 1626 | writel(0x0000214C, &axi_qos->qosctset0); |
| 1627 | writel(0x00000001, &axi_qos->qosreqctr); |
| 1628 | writel(0x00002064, &axi_qos->qosthres0); |
| 1629 | writel(0x00002004, &axi_qos->qosthres1); |
| 1630 | writel(0x00000000, &axi_qos->qosthres2); |
| 1631 | writel(0x00000001, &axi_qos->qosqon); |
| 1632 | |
| 1633 | axi_qos = (struct rcar_axi_qos *)SYS_AXI_SDM1_BASE; |
| 1634 | writel(0x00000000, &axi_qos->qosconf); |
| 1635 | writel(0x0000214C, &axi_qos->qosctset0); |
| 1636 | writel(0x00000001, &axi_qos->qosreqctr); |
| 1637 | writel(0x00002064, &axi_qos->qosthres0); |
| 1638 | writel(0x00002004, &axi_qos->qosthres1); |
| 1639 | writel(0x00000000, &axi_qos->qosthres2); |
| 1640 | writel(0x00000001, &axi_qos->qosqon); |
| 1641 | |
| 1642 | axi_qos = (struct rcar_axi_qos *)SYS_AXI_TRAB_BASE; |
| 1643 | writel(0x00000000, &axi_qos->qosconf); |
| 1644 | writel(0x000020A6, &axi_qos->qosctset0); |
| 1645 | writel(0x00000001, &axi_qos->qosreqctr); |
| 1646 | writel(0x00002064, &axi_qos->qosthres0); |
| 1647 | writel(0x00002004, &axi_qos->qosthres1); |
| 1648 | writel(0x00000000, &axi_qos->qosthres2); |
| 1649 | writel(0x00000001, &axi_qos->qosqon); |
| 1650 | |
| 1651 | axi_qos = (struct rcar_axi_qos *)SYS_AXI_UDM0_BASE; |
| 1652 | writel(0x00000000, &axi_qos->qosconf); |
| 1653 | writel(0x00002053, &axi_qos->qosctset0); |
| 1654 | writel(0x00000001, &axi_qos->qosreqctr); |
| 1655 | writel(0x00002064, &axi_qos->qosthres0); |
| 1656 | writel(0x00002004, &axi_qos->qosthres1); |
| 1657 | writel(0x00000000, &axi_qos->qosthres2); |
| 1658 | writel(0x00000001, &axi_qos->qosqon); |
| 1659 | |
| 1660 | axi_qos = (struct rcar_axi_qos *)SYS_AXI_UDM1_BASE; |
| 1661 | writel(0x00000000, &axi_qos->qosconf); |
| 1662 | writel(0x00002053, &axi_qos->qosctset0); |
| 1663 | writel(0x00000001, &axi_qos->qosreqctr); |
| 1664 | writel(0x00002064, &axi_qos->qosthres0); |
| 1665 | writel(0x00002004, &axi_qos->qosthres1); |
| 1666 | writel(0x00000000, &axi_qos->qosthres2); |
| 1667 | writel(0x00000001, &axi_qos->qosqon); |
| 1668 | |
| 1669 | /* QoS Register (RT-AXI) */ |
| 1670 | axi_qos = (struct rcar_axi_qos *)RT_AXI_SHX_BASE; |
| 1671 | writel(0x00000001, &axi_qos->qosconf); |
| 1672 | writel(0x00002053, &axi_qos->qosctset0); |
| 1673 | writel(0x00002096, &axi_qos->qosctset1); |
| 1674 | writel(0x00002030, &axi_qos->qosctset2); |
| 1675 | writel(0x00002030, &axi_qos->qosctset3); |
| 1676 | writel(0x00000001, &axi_qos->qosreqctr); |
| 1677 | writel(0x00002064, &axi_qos->qosthres0); |
| 1678 | writel(0x00002004, &axi_qos->qosthres1); |
| 1679 | writel(0x00000000, &axi_qos->qosthres2); |
| 1680 | writel(0x00000001, &axi_qos->qosqon); |
| 1681 | |
| 1682 | axi_qos = (struct rcar_axi_qos *)RT_AXI_DBG_BASE; |
| 1683 | writel(0x00000000, &axi_qos->qosconf); |
| 1684 | writel(0x00002053, &axi_qos->qosctset0); |
| 1685 | writel(0x00002096, &axi_qos->qosctset1); |
| 1686 | writel(0x00002030, &axi_qos->qosctset2); |
| 1687 | writel(0x00002030, &axi_qos->qosctset3); |
| 1688 | writel(0x00000001, &axi_qos->qosreqctr); |
| 1689 | writel(0x00002064, &axi_qos->qosthres0); |
| 1690 | writel(0x00002004, &axi_qos->qosthres1); |
| 1691 | writel(0x00000000, &axi_qos->qosthres2); |
| 1692 | writel(0x00000001, &axi_qos->qosqon); |
| 1693 | |
| 1694 | axi_qos = (struct rcar_axi_qos *)RT_AXI_RDM_BASE; |
| 1695 | writel(0x00000000, &axi_qos->qosconf); |
| 1696 | writel(0x00002299, &axi_qos->qosctset0); |
| 1697 | writel(0x00000001, &axi_qos->qosreqctr); |
| 1698 | writel(0x00002064, &axi_qos->qosthres0); |
| 1699 | writel(0x00002004, &axi_qos->qosthres1); |
| 1700 | writel(0x00000000, &axi_qos->qosthres2); |
| 1701 | writel(0x00000001, &axi_qos->qosqon); |
| 1702 | |
| 1703 | axi_qos = (struct rcar_axi_qos *)RT_AXI_RDS_BASE; |
| 1704 | writel(0x00000000, &axi_qos->qosconf); |
| 1705 | writel(0x00002029, &axi_qos->qosctset0); |
| 1706 | writel(0x00000001, &axi_qos->qosreqctr); |
| 1707 | writel(0x00002064, &axi_qos->qosthres0); |
| 1708 | writel(0x00002004, &axi_qos->qosthres1); |
| 1709 | writel(0x00000000, &axi_qos->qosthres2); |
| 1710 | writel(0x00000001, &axi_qos->qosqon); |
| 1711 | |
| 1712 | axi_qos = (struct rcar_axi_qos *)RT_AXI_RTX64TO128_BASE; |
| 1713 | writel(0x00000002, &axi_qos->qosconf); |
| 1714 | writel(0x00002245, &axi_qos->qosctset0); |
| 1715 | writel(0x00002096, &axi_qos->qosctset1); |
| 1716 | writel(0x00002030, &axi_qos->qosctset2); |
| 1717 | writel(0x00002030, &axi_qos->qosctset3); |
| 1718 | writel(0x00000001, &axi_qos->qosreqctr); |
| 1719 | writel(0x00002064, &axi_qos->qosthres0); |
| 1720 | writel(0x00002004, &axi_qos->qosthres1); |
| 1721 | writel(0x00000000, &axi_qos->qosthres2); |
| 1722 | writel(0x00000001, &axi_qos->qosqon); |
| 1723 | |
| 1724 | axi_qos = (struct rcar_axi_qos *)RT_AXI_STPRO_BASE; |
| 1725 | writel(0x00000000, &axi_qos->qosconf); |
| 1726 | writel(0x00002029, &axi_qos->qosctset0); |
| 1727 | writel(0x00002096, &axi_qos->qosctset1); |
| 1728 | writel(0x00002030, &axi_qos->qosctset2); |
| 1729 | writel(0x00002030, &axi_qos->qosctset3); |
| 1730 | writel(0x00000001, &axi_qos->qosreqctr); |
| 1731 | writel(0x00002064, &axi_qos->qosthres0); |
| 1732 | writel(0x00002004, &axi_qos->qosthres1); |
| 1733 | writel(0x00000000, &axi_qos->qosthres2); |
| 1734 | writel(0x00000001, &axi_qos->qosqon); |
| 1735 | |
| 1736 | axi_qos = (struct rcar_axi_qos *)RT_AXI_SY2RT_BASE; |
| 1737 | writel(0x00000002, &axi_qos->qosconf); |
| 1738 | writel(0x00002245, &axi_qos->qosctset0); |
| 1739 | writel(0x00000001, &axi_qos->qosreqctr); |
| 1740 | writel(0x00002064, &axi_qos->qosthres0); |
| 1741 | writel(0x00002004, &axi_qos->qosthres1); |
| 1742 | writel(0x00000000, &axi_qos->qosthres2); |
| 1743 | writel(0x00000001, &axi_qos->qosqon); |
| 1744 | |
| 1745 | /* QoS Register (MP-AXI) */ |
| 1746 | axi_qos = (struct rcar_axi_qos *)MP_AXI_ADSP_BASE; |
| 1747 | writel(0x00000000, &axi_qos->qosconf); |
| 1748 | writel(0x00002037, &axi_qos->qosctset0); |
| 1749 | writel(0x00000001, &axi_qos->qosreqctr); |
| 1750 | writel(0x00002064, &axi_qos->qosthres0); |
| 1751 | writel(0x00002004, &axi_qos->qosthres1); |
| 1752 | writel(0x00000000, &axi_qos->qosthres2); |
| 1753 | writel(0x00000001, &axi_qos->qosqon); |
| 1754 | |
| 1755 | axi_qos = (struct rcar_axi_qos *)MP_AXI_ASDS0_BASE; |
| 1756 | writel(0x00000001, &axi_qos->qosconf); |
| 1757 | writel(0x00002014, &axi_qos->qosctset0); |
| 1758 | writel(0x00000040, &axi_qos->qosreqctr); |
| 1759 | writel(0x00002064, &axi_qos->qosthres0); |
| 1760 | writel(0x00002004, &axi_qos->qosthres1); |
| 1761 | writel(0x00000000, &axi_qos->qosthres2); |
| 1762 | writel(0x00000001, &axi_qos->qosqon); |
| 1763 | |
| 1764 | axi_qos = (struct rcar_axi_qos *)MP_AXI_ASDS1_BASE; |
| 1765 | writel(0x00000001, &axi_qos->qosconf); |
| 1766 | writel(0x00002014, &axi_qos->qosctset0); |
| 1767 | writel(0x00000040, &axi_qos->qosreqctr); |
| 1768 | writel(0x00002064, &axi_qos->qosthres0); |
| 1769 | writel(0x00002004, &axi_qos->qosthres1); |
| 1770 | writel(0x00000000, &axi_qos->qosthres2); |
| 1771 | writel(0x00000001, &axi_qos->qosqon); |
| 1772 | |
| 1773 | axi_qos = (struct rcar_axi_qos *)MP_AXI_MLP_BASE; |
| 1774 | writel(0x00000001, &axi_qos->qosconf); |
| 1775 | writel(0x00001FF0, &axi_qos->qosctset0); |
| 1776 | writel(0x00000020, &axi_qos->qosreqctr); |
| 1777 | writel(0x00002064, &axi_qos->qosthres0); |
| 1778 | writel(0x00002004, &axi_qos->qosthres1); |
| 1779 | writel(0x00002001, &axi_qos->qosthres2); |
| 1780 | writel(0x00000001, &axi_qos->qosqon); |
| 1781 | |
| 1782 | axi_qos = (struct rcar_axi_qos *)MP_AXI_MMUMP_BASE; |
| 1783 | writel(0x00000001, &axi_qos->qosconf); |
| 1784 | writel(0x00002004, &axi_qos->qosctset0); |
| 1785 | writel(0x00002096, &axi_qos->qosctset1); |
| 1786 | writel(0x00002030, &axi_qos->qosctset2); |
| 1787 | writel(0x00002030, &axi_qos->qosctset3); |
| 1788 | writel(0x00000001, &axi_qos->qosreqctr); |
| 1789 | writel(0x00002064, &axi_qos->qosthres0); |
| 1790 | writel(0x00002004, &axi_qos->qosthres1); |
| 1791 | writel(0x00000000, &axi_qos->qosthres2); |
| 1792 | writel(0x00000001, &axi_qos->qosqon); |
| 1793 | |
| 1794 | axi_qos = (struct rcar_axi_qos *)MP_AXI_SPU_BASE; |
| 1795 | writel(0x00000000, &axi_qos->qosconf); |
| 1796 | writel(0x00002053, &axi_qos->qosctset0); |
| 1797 | writel(0x00000001, &axi_qos->qosreqctr); |
| 1798 | writel(0x00002064, &axi_qos->qosthres0); |
| 1799 | writel(0x00002004, &axi_qos->qosthres1); |
| 1800 | writel(0x00000000, &axi_qos->qosthres2); |
| 1801 | writel(0x00000001, &axi_qos->qosqon); |
| 1802 | |
| 1803 | axi_qos = (struct rcar_axi_qos *)MP_AXI_SPUC_BASE; |
| 1804 | writel(0x00000000, &axi_qos->qosconf); |
| 1805 | writel(0x0000206E, &axi_qos->qosctset0); |
| 1806 | writel(0x00000001, &axi_qos->qosreqctr); |
| 1807 | writel(0x00002064, &axi_qos->qosthres0); |
| 1808 | writel(0x00002004, &axi_qos->qosthres1); |
| 1809 | writel(0x00000000, &axi_qos->qosthres2); |
| 1810 | writel(0x00000001, &axi_qos->qosqon); |
| 1811 | |
| 1812 | /* QoS Register (SYS-AXI256) */ |
| 1813 | axi_qos = (struct rcar_axi_qos *)SYS_AXI256_AXI128TO256_BASE; |
| 1814 | writel(0x00000002, &axi_qos->qosconf); |
| 1815 | writel(0x000020EB, &axi_qos->qosctset0); |
| 1816 | writel(0x00002096, &axi_qos->qosctset1); |
| 1817 | writel(0x00002030, &axi_qos->qosctset2); |
| 1818 | writel(0x00002030, &axi_qos->qosctset3); |
| 1819 | writel(0x00000001, &axi_qos->qosreqctr); |
| 1820 | writel(0x00002064, &axi_qos->qosthres0); |
| 1821 | writel(0x00002004, &axi_qos->qosthres1); |
| 1822 | writel(0x00000000, &axi_qos->qosthres2); |
| 1823 | writel(0x00000001, &axi_qos->qosqon); |
| 1824 | |
| 1825 | axi_qos = (struct rcar_axi_qos *)SYS_AXI256_SYX_BASE; |
| 1826 | writel(0x00000002, &axi_qos->qosconf); |
| 1827 | writel(0x000020EB, &axi_qos->qosctset0); |
| 1828 | writel(0x00002096, &axi_qos->qosctset1); |
| 1829 | writel(0x00002030, &axi_qos->qosctset2); |
| 1830 | writel(0x00002030, &axi_qos->qosctset3); |
| 1831 | writel(0x00000001, &axi_qos->qosreqctr); |
| 1832 | writel(0x00002064, &axi_qos->qosthres0); |
| 1833 | writel(0x00002004, &axi_qos->qosthres1); |
| 1834 | writel(0x00000000, &axi_qos->qosthres2); |
| 1835 | writel(0x00000001, &axi_qos->qosqon); |
| 1836 | |
| 1837 | axi_qos = (struct rcar_axi_qos *)SYS_AXI256_MPX_BASE; |
| 1838 | writel(0x00000002, &axi_qos->qosconf); |
| 1839 | writel(0x000020EB, &axi_qos->qosctset0); |
| 1840 | writel(0x00002096, &axi_qos->qosctset1); |
| 1841 | writel(0x00002030, &axi_qos->qosctset2); |
| 1842 | writel(0x00002030, &axi_qos->qosctset3); |
| 1843 | writel(0x00000001, &axi_qos->qosreqctr); |
| 1844 | writel(0x00002064, &axi_qos->qosthres0); |
| 1845 | writel(0x00002004, &axi_qos->qosthres1); |
| 1846 | writel(0x00000000, &axi_qos->qosthres2); |
| 1847 | writel(0x00000001, &axi_qos->qosqon); |
| 1848 | |
| 1849 | axi_qos = (struct rcar_axi_qos *)SYS_AXI256_MXI_BASE; |
| 1850 | writel(0x00000002, &axi_qos->qosconf); |
| 1851 | writel(0x000020EB, &axi_qos->qosctset0); |
| 1852 | writel(0x00002096, &axi_qos->qosctset1); |
| 1853 | writel(0x00002030, &axi_qos->qosctset2); |
| 1854 | writel(0x00002030, &axi_qos->qosctset3); |
| 1855 | writel(0x00000001, &axi_qos->qosreqctr); |
| 1856 | writel(0x00002064, &axi_qos->qosthres0); |
| 1857 | writel(0x00002004, &axi_qos->qosthres1); |
| 1858 | writel(0x00000000, &axi_qos->qosthres2); |
| 1859 | writel(0x00000001, &axi_qos->qosqon); |
| 1860 | |
| 1861 | /* QoS Register (CCI-AXI) */ |
| 1862 | axi_qos = (struct rcar_axi_qos *)CCI_AXI_MMUS0_BASE; |
| 1863 | writel(0x00000001, &axi_qos->qosconf); |
| 1864 | writel(0x00002004, &axi_qos->qosctset0); |
| 1865 | writel(0x00002096, &axi_qos->qosctset1); |
| 1866 | writel(0x00002030, &axi_qos->qosctset2); |
| 1867 | writel(0x00002030, &axi_qos->qosctset3); |
| 1868 | writel(0x00000001, &axi_qos->qosreqctr); |
| 1869 | writel(0x00002064, &axi_qos->qosthres0); |
| 1870 | writel(0x00002004, &axi_qos->qosthres1); |
| 1871 | writel(0x00000000, &axi_qos->qosthres2); |
| 1872 | writel(0x00000001, &axi_qos->qosqon); |
| 1873 | |
| 1874 | axi_qos = (struct rcar_axi_qos *)CCI_AXI_SYX2_BASE; |
| 1875 | writel(0x00000002, &axi_qos->qosconf); |
| 1876 | writel(0x00002245, &axi_qos->qosctset0); |
| 1877 | writel(0x00002096, &axi_qos->qosctset1); |
| 1878 | writel(0x00002030, &axi_qos->qosctset2); |
| 1879 | writel(0x00002030, &axi_qos->qosctset3); |
| 1880 | writel(0x00000001, &axi_qos->qosreqctr); |
| 1881 | writel(0x00002064, &axi_qos->qosthres0); |
| 1882 | writel(0x00002004, &axi_qos->qosthres1); |
| 1883 | writel(0x00000000, &axi_qos->qosthres2); |
| 1884 | writel(0x00000001, &axi_qos->qosqon); |
| 1885 | |
| 1886 | axi_qos = (struct rcar_axi_qos *)CCI_AXI_MMUR_BASE; |
| 1887 | writel(0x00000001, &axi_qos->qosconf); |
| 1888 | writel(0x00002004, &axi_qos->qosctset0); |
| 1889 | writel(0x00002096, &axi_qos->qosctset1); |
| 1890 | writel(0x00002030, &axi_qos->qosctset2); |
| 1891 | writel(0x00002030, &axi_qos->qosctset3); |
| 1892 | writel(0x00000001, &axi_qos->qosreqctr); |
| 1893 | writel(0x00002064, &axi_qos->qosthres0); |
| 1894 | writel(0x00002004, &axi_qos->qosthres1); |
| 1895 | writel(0x00000000, &axi_qos->qosthres2); |
| 1896 | writel(0x00000001, &axi_qos->qosqon); |
| 1897 | |
| 1898 | axi_qos = (struct rcar_axi_qos *)CCI_AXI_MMUDS_BASE; |
| 1899 | writel(0x00000001, &axi_qos->qosconf); |
| 1900 | writel(0x00002004, &axi_qos->qosctset0); |
| 1901 | writel(0x00002096, &axi_qos->qosctset1); |
| 1902 | writel(0x00002030, &axi_qos->qosctset2); |
| 1903 | writel(0x00002030, &axi_qos->qosctset3); |
| 1904 | writel(0x00000001, &axi_qos->qosreqctr); |
| 1905 | writel(0x00002064, &axi_qos->qosthres0); |
| 1906 | writel(0x00002004, &axi_qos->qosthres1); |
| 1907 | writel(0x00000000, &axi_qos->qosthres2); |
| 1908 | writel(0x00000001, &axi_qos->qosqon); |
| 1909 | |
| 1910 | axi_qos = (struct rcar_axi_qos *)CCI_AXI_MMUM_BASE; |
| 1911 | writel(0x00000001, &axi_qos->qosconf); |
| 1912 | writel(0x00002004, &axi_qos->qosctset0); |
| 1913 | writel(0x00002096, &axi_qos->qosctset1); |
| 1914 | writel(0x00002030, &axi_qos->qosctset2); |
| 1915 | writel(0x00002030, &axi_qos->qosctset3); |
| 1916 | writel(0x00000001, &axi_qos->qosreqctr); |
| 1917 | writel(0x00002064, &axi_qos->qosthres0); |
| 1918 | writel(0x00002004, &axi_qos->qosthres1); |
| 1919 | writel(0x00000000, &axi_qos->qosthres2); |
| 1920 | writel(0x00000001, &axi_qos->qosqon); |
| 1921 | |
| 1922 | axi_qos = (struct rcar_axi_qos *)CCI_AXI_MXI_BASE; |
| 1923 | writel(0x00000002, &axi_qos->qosconf); |
| 1924 | writel(0x00002245, &axi_qos->qosctset0); |
| 1925 | writel(0x00002096, &axi_qos->qosctset1); |
| 1926 | writel(0x00002030, &axi_qos->qosctset2); |
| 1927 | writel(0x00002030, &axi_qos->qosctset3); |
| 1928 | writel(0x00000001, &axi_qos->qosreqctr); |
| 1929 | writel(0x00002064, &axi_qos->qosthres0); |
| 1930 | writel(0x00002004, &axi_qos->qosthres1); |
| 1931 | writel(0x00000000, &axi_qos->qosthres2); |
| 1932 | writel(0x00000001, &axi_qos->qosqon); |
| 1933 | |
| 1934 | axi_qos = (struct rcar_axi_qos *)CCI_AXI_MMUS1_BASE; |
| 1935 | writel(0x00000001, &axi_qos->qosconf); |
| 1936 | writel(0x00002004, &axi_qos->qosctset0); |
| 1937 | writel(0x00002096, &axi_qos->qosctset1); |
| 1938 | writel(0x00002030, &axi_qos->qosctset2); |
| 1939 | writel(0x00002030, &axi_qos->qosctset3); |
| 1940 | writel(0x00000001, &axi_qos->qosreqctr); |
| 1941 | writel(0x00002064, &axi_qos->qosthres0); |
| 1942 | writel(0x00002004, &axi_qos->qosthres1); |
| 1943 | writel(0x00000000, &axi_qos->qosthres2); |
| 1944 | writel(0x00000001, &axi_qos->qosqon); |
| 1945 | |
| 1946 | axi_qos = (struct rcar_axi_qos *)CCI_AXI_MMUMP_BASE; |
| 1947 | writel(0x00000001, &axi_qos->qosconf); |
| 1948 | writel(0x00002004, &axi_qos->qosctset0); |
| 1949 | writel(0x00002096, &axi_qos->qosctset1); |
| 1950 | writel(0x00002030, &axi_qos->qosctset2); |
| 1951 | writel(0x00002030, &axi_qos->qosctset3); |
| 1952 | writel(0x00000001, &axi_qos->qosreqctr); |
| 1953 | writel(0x00002064, &axi_qos->qosthres0); |
| 1954 | writel(0x00002004, &axi_qos->qosthres1); |
| 1955 | writel(0x00000000, &axi_qos->qosthres2); |
| 1956 | writel(0x00000001, &axi_qos->qosqon); |
| 1957 | |
| 1958 | /* QoS Register (Media-AXI) */ |
| 1959 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_MXR_BASE; |
| 1960 | writel(0x00000002, &axi_qos->qosconf); |
| 1961 | writel(0x000020dc, &axi_qos->qosctset0); |
| 1962 | writel(0x00002096, &axi_qos->qosctset1); |
| 1963 | writel(0x00002030, &axi_qos->qosctset2); |
| 1964 | writel(0x00002030, &axi_qos->qosctset3); |
| 1965 | writel(0x00000020, &axi_qos->qosreqctr); |
| 1966 | writel(0x000020AA, &axi_qos->qosthres0); |
| 1967 | writel(0x00002032, &axi_qos->qosthres1); |
| 1968 | writel(0x00000001, &axi_qos->qosthres2); |
| 1969 | |
| 1970 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_MXW_BASE; |
| 1971 | writel(0x00000002, &axi_qos->qosconf); |
| 1972 | writel(0x000020dc, &axi_qos->qosctset0); |
| 1973 | writel(0x00002096, &axi_qos->qosctset1); |
| 1974 | writel(0x00002030, &axi_qos->qosctset2); |
| 1975 | writel(0x00002030, &axi_qos->qosctset3); |
| 1976 | writel(0x00000020, &axi_qos->qosreqctr); |
| 1977 | writel(0x000020AA, &axi_qos->qosthres0); |
| 1978 | writel(0x00002032, &axi_qos->qosthres1); |
| 1979 | writel(0x00000001, &axi_qos->qosthres2); |
| 1980 | |
| 1981 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_JPR_BASE; |
| 1982 | writel(0x00000001, &axi_qos->qosconf); |
| 1983 | writel(0x00002190, &axi_qos->qosctset0); |
| 1984 | writel(0x00000020, &axi_qos->qosreqctr); |
| 1985 | writel(0x00002064, &axi_qos->qosthres0); |
| 1986 | writel(0x00002004, &axi_qos->qosthres1); |
| 1987 | writel(0x00000001, &axi_qos->qosthres2); |
| 1988 | writel(0x00000001, &axi_qos->qosqon); |
| 1989 | |
| 1990 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_JPW_BASE; |
| 1991 | writel(0x00000001, &axi_qos->qosconf); |
| 1992 | writel(0x00002190, &axi_qos->qosctset0); |
| 1993 | writel(0x00000020, &axi_qos->qosreqctr); |
| 1994 | writel(0x00002004, &axi_qos->qosthres0); |
| 1995 | writel(0x00000001, &axi_qos->qosthres1); |
| 1996 | writel(0x00000001, &axi_qos->qosthres2); |
| 1997 | writel(0x00000001, &axi_qos->qosqon); |
| 1998 | |
| 1999 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_GCU0R_BASE; |
| 2000 | writel(0x00000001, &axi_qos->qosconf); |
| 2001 | writel(0x00002190, &axi_qos->qosctset0); |
| 2002 | writel(0x00000020, &axi_qos->qosreqctr); |
| 2003 | writel(0x00002064, &axi_qos->qosthres0); |
| 2004 | writel(0x00002004, &axi_qos->qosthres1); |
| 2005 | writel(0x00000001, &axi_qos->qosthres2); |
| 2006 | writel(0x00000001, &axi_qos->qosqon); |
| 2007 | |
| 2008 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_GCU0W_BASE; |
| 2009 | writel(0x00000001, &axi_qos->qosconf); |
| 2010 | writel(0x00002190, &axi_qos->qosctset0); |
| 2011 | writel(0x00000020, &axi_qos->qosreqctr); |
| 2012 | writel(0x00002004, &axi_qos->qosthres0); |
| 2013 | writel(0x00000001, &axi_qos->qosthres1); |
| 2014 | writel(0x00000001, &axi_qos->qosthres2); |
| 2015 | writel(0x00000001, &axi_qos->qosqon); |
| 2016 | |
| 2017 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_GCU1R_BASE; |
| 2018 | writel(0x00000001, &axi_qos->qosconf); |
| 2019 | writel(0x00002190, &axi_qos->qosctset0); |
| 2020 | writel(0x00000020, &axi_qos->qosreqctr); |
| 2021 | writel(0x00002064, &axi_qos->qosthres0); |
| 2022 | writel(0x00002004, &axi_qos->qosthres1); |
| 2023 | writel(0x00000001, &axi_qos->qosthres2); |
| 2024 | writel(0x00000001, &axi_qos->qosqon); |
| 2025 | |
| 2026 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_GCU1W_BASE; |
| 2027 | writel(0x00000001, &axi_qos->qosconf); |
| 2028 | writel(0x00002190, &axi_qos->qosctset0); |
| 2029 | writel(0x00000020, &axi_qos->qosreqctr); |
| 2030 | writel(0x00002004, &axi_qos->qosthres0); |
| 2031 | writel(0x00000001, &axi_qos->qosthres1); |
| 2032 | writel(0x00000001, &axi_qos->qosthres2); |
| 2033 | writel(0x00000001, &axi_qos->qosqon); |
| 2034 | |
| 2035 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_TDMR_BASE; |
| 2036 | writel(0x00000001, &axi_qos->qosconf); |
| 2037 | writel(0x00002190, &axi_qos->qosctset0); |
| 2038 | writel(0x00000020, &axi_qos->qosreqctr); |
| 2039 | writel(0x00002064, &axi_qos->qosthres0); |
| 2040 | writel(0x00002004, &axi_qos->qosthres1); |
| 2041 | writel(0x00000001, &axi_qos->qosthres2); |
| 2042 | writel(0x00000001, &axi_qos->qosqon); |
| 2043 | |
| 2044 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_TDMW_BASE; |
| 2045 | writel(0x00000001, &axi_qos->qosconf); |
| 2046 | writel(0x00002190, &axi_qos->qosctset0); |
| 2047 | writel(0x00000020, &axi_qos->qosreqctr); |
| 2048 | writel(0x00002004, &axi_qos->qosthres0); |
| 2049 | writel(0x00000001, &axi_qos->qosthres1); |
| 2050 | writel(0x00000001, &axi_qos->qosthres2); |
| 2051 | writel(0x00000001, &axi_qos->qosqon); |
| 2052 | |
| 2053 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSP0CR_BASE; |
| 2054 | writel(0x00000001, &axi_qos->qosconf); |
| 2055 | writel(0x00002190, &axi_qos->qosctset0); |
| 2056 | writel(0x00000020, &axi_qos->qosreqctr); |
| 2057 | writel(0x00002064, &axi_qos->qosthres0); |
| 2058 | writel(0x00002004, &axi_qos->qosthres1); |
| 2059 | writel(0x00000001, &axi_qos->qosthres2); |
| 2060 | writel(0x00000001, &axi_qos->qosqon); |
| 2061 | |
| 2062 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSP0CW_BASE; |
| 2063 | writel(0x00000001, &axi_qos->qosconf); |
| 2064 | writel(0x00002190, &axi_qos->qosctset0); |
| 2065 | writel(0x00000020, &axi_qos->qosreqctr); |
| 2066 | writel(0x00002004, &axi_qos->qosthres0); |
| 2067 | writel(0x00000001, &axi_qos->qosthres1); |
| 2068 | writel(0x00000001, &axi_qos->qosthres2); |
| 2069 | writel(0x00000001, &axi_qos->qosqon); |
| 2070 | |
| 2071 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSP1CR_BASE; |
| 2072 | writel(0x00000001, &axi_qos->qosconf); |
| 2073 | writel(0x00002190, &axi_qos->qosctset0); |
| 2074 | writel(0x00000020, &axi_qos->qosreqctr); |
| 2075 | writel(0x00002064, &axi_qos->qosthres0); |
| 2076 | writel(0x00002004, &axi_qos->qosthres1); |
| 2077 | writel(0x00000001, &axi_qos->qosthres2); |
| 2078 | writel(0x00000001, &axi_qos->qosqon); |
| 2079 | |
| 2080 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSP1CW_BASE; |
| 2081 | writel(0x00000001, &axi_qos->qosconf); |
| 2082 | writel(0x00002190, &axi_qos->qosctset0); |
| 2083 | writel(0x00000020, &axi_qos->qosreqctr); |
| 2084 | writel(0x00002004, &axi_qos->qosthres0); |
| 2085 | writel(0x00000001, &axi_qos->qosthres1); |
| 2086 | writel(0x00000001, &axi_qos->qosthres2); |
| 2087 | writel(0x00000001, &axi_qos->qosqon); |
| 2088 | |
| 2089 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSPDU0CR_BASE; |
| 2090 | writel(0x00000001, &axi_qos->qosconf); |
| 2091 | writel(0x00002190, &axi_qos->qosctset0); |
| 2092 | writel(0x00000020, &axi_qos->qosreqctr); |
| 2093 | writel(0x00002064, &axi_qos->qosthres0); |
| 2094 | writel(0x00002004, &axi_qos->qosthres1); |
| 2095 | writel(0x00000001, &axi_qos->qosthres2); |
| 2096 | writel(0x00000001, &axi_qos->qosqon); |
| 2097 | |
| 2098 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSPDU0CW_BASE; |
| 2099 | writel(0x00000001, &axi_qos->qosconf); |
| 2100 | writel(0x00002190, &axi_qos->qosctset0); |
| 2101 | writel(0x00000020, &axi_qos->qosreqctr); |
| 2102 | writel(0x00002004, &axi_qos->qosthres0); |
| 2103 | writel(0x00000001, &axi_qos->qosthres1); |
| 2104 | writel(0x00000001, &axi_qos->qosthres2); |
| 2105 | writel(0x00000001, &axi_qos->qosqon); |
| 2106 | |
| 2107 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSPDU1CR_BASE; |
| 2108 | writel(0x00000001, &axi_qos->qosconf); |
| 2109 | writel(0x00002190, &axi_qos->qosctset0); |
| 2110 | writel(0x00000020, &axi_qos->qosreqctr); |
| 2111 | writel(0x00002064, &axi_qos->qosthres0); |
| 2112 | writel(0x00002004, &axi_qos->qosthres1); |
| 2113 | writel(0x00000001, &axi_qos->qosthres2); |
| 2114 | writel(0x00000001, &axi_qos->qosqon); |
| 2115 | |
| 2116 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSPDU1CW_BASE; |
| 2117 | writel(0x00000001, &axi_qos->qosconf); |
| 2118 | writel(0x00002190, &axi_qos->qosctset0); |
| 2119 | writel(0x00000020, &axi_qos->qosreqctr); |
| 2120 | writel(0x00002004, &axi_qos->qosthres0); |
| 2121 | writel(0x00000001, &axi_qos->qosthres1); |
| 2122 | writel(0x00000001, &axi_qos->qosthres2); |
| 2123 | writel(0x00000001, &axi_qos->qosqon); |
| 2124 | |
| 2125 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VIN0W_BASE; |
| 2126 | writel(0x00000001, &axi_qos->qosconf); |
| 2127 | writel(0x00001FF0, &axi_qos->qosctset0); |
| 2128 | writel(0x00000020, &axi_qos->qosreqctr); |
| 2129 | writel(0x00002064, &axi_qos->qosthres0); |
| 2130 | writel(0x00002004, &axi_qos->qosthres1); |
| 2131 | writel(0x00002001, &axi_qos->qosthres2); |
| 2132 | writel(0x00000001, &axi_qos->qosqon); |
| 2133 | |
| 2134 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSP0R_BASE; |
| 2135 | writel(0x00000001, &axi_qos->qosconf); |
| 2136 | writel(0x000020C8, &axi_qos->qosctset0); |
| 2137 | writel(0x00000020, &axi_qos->qosreqctr); |
| 2138 | writel(0x00002064, &axi_qos->qosthres0); |
| 2139 | writel(0x00002004, &axi_qos->qosthres1); |
| 2140 | writel(0x00000001, &axi_qos->qosthres2); |
| 2141 | writel(0x00000001, &axi_qos->qosqon); |
| 2142 | |
| 2143 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSP0W_BASE; |
| 2144 | writel(0x00000001, &axi_qos->qosconf); |
| 2145 | writel(0x000020C8, &axi_qos->qosctset0); |
| 2146 | writel(0x00000020, &axi_qos->qosreqctr); |
| 2147 | writel(0x00002004, &axi_qos->qosthres0); |
| 2148 | writel(0x00000001, &axi_qos->qosthres1); |
| 2149 | writel(0x00000001, &axi_qos->qosthres2); |
| 2150 | writel(0x00000001, &axi_qos->qosqon); |
| 2151 | |
| 2152 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_FDP0R_BASE; |
| 2153 | writel(0x00000001, &axi_qos->qosconf); |
| 2154 | writel(0x000020C8, &axi_qos->qosctset0); |
| 2155 | writel(0x00000020, &axi_qos->qosreqctr); |
| 2156 | writel(0x00002064, &axi_qos->qosthres0); |
| 2157 | writel(0x00002004, &axi_qos->qosthres1); |
| 2158 | writel(0x00000001, &axi_qos->qosthres2); |
| 2159 | writel(0x00000001, &axi_qos->qosqon); |
| 2160 | |
| 2161 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_FDP0W_BASE; |
| 2162 | writel(0x00000001, &axi_qos->qosconf); |
| 2163 | writel(0x000020C8, &axi_qos->qosctset0); |
| 2164 | writel(0x00000020, &axi_qos->qosreqctr); |
| 2165 | writel(0x00002004, &axi_qos->qosthres0); |
| 2166 | writel(0x00000001, &axi_qos->qosthres1); |
| 2167 | writel(0x00000001, &axi_qos->qosthres2); |
| 2168 | writel(0x00000001, &axi_qos->qosqon); |
| 2169 | |
| 2170 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_IMSR_BASE; |
| 2171 | writel(0x00000001, &axi_qos->qosconf); |
| 2172 | writel(0x000020C8, &axi_qos->qosctset0); |
| 2173 | writel(0x00000020, &axi_qos->qosreqctr); |
| 2174 | writel(0x00002064, &axi_qos->qosthres0); |
| 2175 | writel(0x00002004, &axi_qos->qosthres1); |
| 2176 | writel(0x00000001, &axi_qos->qosthres2); |
| 2177 | writel(0x00000001, &axi_qos->qosqon); |
| 2178 | |
| 2179 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_IMSW_BASE; |
| 2180 | writel(0x00000001, &axi_qos->qosconf); |
| 2181 | writel(0x000020C8, &axi_qos->qosctset0); |
| 2182 | writel(0x00000020, &axi_qos->qosreqctr); |
| 2183 | writel(0x00002064, &axi_qos->qosthres0); |
| 2184 | writel(0x00002004, &axi_qos->qosthres1); |
| 2185 | writel(0x00000001, &axi_qos->qosthres2); |
| 2186 | writel(0x00000001, &axi_qos->qosqon); |
| 2187 | |
| 2188 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSP1R_BASE; |
| 2189 | writel(0x00000001, &axi_qos->qosconf); |
| 2190 | writel(0x000020C8, &axi_qos->qosctset0); |
| 2191 | writel(0x00000020, &axi_qos->qosreqctr); |
| 2192 | writel(0x00002064, &axi_qos->qosthres0); |
| 2193 | writel(0x00002004, &axi_qos->qosthres1); |
| 2194 | writel(0x00000001, &axi_qos->qosthres2); |
| 2195 | writel(0x00000001, &axi_qos->qosqon); |
| 2196 | |
| 2197 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSP1W_BASE; |
| 2198 | writel(0x00000001, &axi_qos->qosconf); |
| 2199 | writel(0x000020C8, &axi_qos->qosctset0); |
| 2200 | writel(0x00000020, &axi_qos->qosreqctr); |
| 2201 | writel(0x00002004, &axi_qos->qosthres0); |
| 2202 | writel(0x00000001, &axi_qos->qosthres1); |
| 2203 | writel(0x00000001, &axi_qos->qosthres2); |
| 2204 | writel(0x00000001, &axi_qos->qosqon); |
| 2205 | |
| 2206 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_FDP1R_BASE; |
| 2207 | writel(0x00000001, &axi_qos->qosconf); |
| 2208 | writel(0x000020C8, &axi_qos->qosctset0); |
| 2209 | writel(0x00000020, &axi_qos->qosreqctr); |
| 2210 | writel(0x00002064, &axi_qos->qosthres0); |
| 2211 | writel(0x00002004, &axi_qos->qosthres1); |
| 2212 | writel(0x00000001, &axi_qos->qosthres2); |
| 2213 | writel(0x00000001, &axi_qos->qosqon); |
| 2214 | |
| 2215 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_FDP1W_BASE; |
| 2216 | writel(0x00000001, &axi_qos->qosconf); |
| 2217 | writel(0x000020C8, &axi_qos->qosctset0); |
| 2218 | writel(0x00000020, &axi_qos->qosreqctr); |
| 2219 | writel(0x00002004, &axi_qos->qosthres0); |
| 2220 | writel(0x00000001, &axi_qos->qosthres1); |
| 2221 | writel(0x00000001, &axi_qos->qosthres2); |
| 2222 | writel(0x00000001, &axi_qos->qosqon); |
| 2223 | |
| 2224 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_IMRR_BASE; |
| 2225 | writel(0x00000001, &axi_qos->qosconf); |
| 2226 | writel(0x000020C8, &axi_qos->qosctset0); |
| 2227 | writel(0x00000020, &axi_qos->qosreqctr); |
| 2228 | writel(0x00002064, &axi_qos->qosthres0); |
| 2229 | writel(0x00002004, &axi_qos->qosthres1); |
| 2230 | writel(0x00000001, &axi_qos->qosthres2); |
| 2231 | writel(0x00000001, &axi_qos->qosqon); |
| 2232 | |
| 2233 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_IMRW_BASE; |
| 2234 | writel(0x00000001, &axi_qos->qosconf); |
| 2235 | writel(0x000020C8, &axi_qos->qosctset0); |
| 2236 | writel(0x00000020, &axi_qos->qosreqctr); |
| 2237 | writel(0x00002004, &axi_qos->qosthres0); |
| 2238 | writel(0x00000001, &axi_qos->qosthres1); |
| 2239 | writel(0x00000001, &axi_qos->qosthres2); |
| 2240 | writel(0x00000001, &axi_qos->qosqon); |
| 2241 | |
| 2242 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_FDP2R_BASE; |
| 2243 | writel(0x00000001, &axi_qos->qosconf); |
| 2244 | writel(0x000020C8, &axi_qos->qosctset0); |
| 2245 | writel(0x00000020, &axi_qos->qosreqctr); |
| 2246 | writel(0x00002064, &axi_qos->qosthres0); |
| 2247 | writel(0x00002004, &axi_qos->qosthres1); |
| 2248 | writel(0x00000001, &axi_qos->qosthres2); |
| 2249 | writel(0x00000001, &axi_qos->qosqon); |
| 2250 | |
| 2251 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_FDP2W_BASE; |
| 2252 | writel(0x00000001, &axi_qos->qosconf); |
| 2253 | writel(0x000020C8, &axi_qos->qosctset0); |
| 2254 | writel(0x00000020, &axi_qos->qosreqctr); |
| 2255 | writel(0x00002004, &axi_qos->qosthres0); |
| 2256 | writel(0x00000001, &axi_qos->qosthres1); |
| 2257 | writel(0x00000001, &axi_qos->qosthres2); |
| 2258 | writel(0x00000001, &axi_qos->qosqon); |
| 2259 | |
| 2260 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSPD0R_BASE; |
| 2261 | writel(0x00000003, &axi_qos->qosconf); |
| 2262 | writel(0x000020C8, &axi_qos->qosctset0); |
| 2263 | writel(0x00000001, &axi_qos->qosreqctr); |
| 2264 | writel(0x00002064, &axi_qos->qosthres0); |
| 2265 | writel(0x00002004, &axi_qos->qosthres1); |
| 2266 | writel(0x00000001, &axi_qos->qosthres2); |
| 2267 | writel(0x00000001, &axi_qos->qosqon); |
| 2268 | |
| 2269 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSPD0W_BASE; |
| 2270 | writel(0x00000003, &axi_qos->qosconf); |
| 2271 | writel(0x000020C8, &axi_qos->qosctset0); |
| 2272 | writel(0x00000001, &axi_qos->qosreqctr); |
| 2273 | writel(0x00000001, &axi_qos->qosthres0); |
| 2274 | writel(0x00000001, &axi_qos->qosthres1); |
| 2275 | writel(0x00000001, &axi_qos->qosthres2); |
| 2276 | writel(0x00000001, &axi_qos->qosqon); |
| 2277 | |
| 2278 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSPD1R_BASE; |
| 2279 | writel(0x00000003, &axi_qos->qosconf); |
| 2280 | writel(0x000020C8, &axi_qos->qosctset0); |
| 2281 | writel(0x00000001, &axi_qos->qosreqctr); |
| 2282 | writel(0x00002064, &axi_qos->qosthres0); |
| 2283 | writel(0x00002004, &axi_qos->qosthres1); |
| 2284 | writel(0x00000001, &axi_qos->qosthres2); |
| 2285 | writel(0x00000001, &axi_qos->qosqon); |
| 2286 | |
| 2287 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VSPD1W_BASE; |
| 2288 | writel(0x00000003, &axi_qos->qosconf); |
| 2289 | writel(0x000020C8, &axi_qos->qosctset0); |
| 2290 | writel(0x00000001, &axi_qos->qosreqctr); |
| 2291 | writel(0x00000001, &axi_qos->qosthres0); |
| 2292 | writel(0x00000001, &axi_qos->qosthres1); |
| 2293 | writel(0x00000001, &axi_qos->qosthres2); |
| 2294 | writel(0x00000001, &axi_qos->qosqon); |
| 2295 | |
| 2296 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_DU0R_BASE; |
| 2297 | writel(0x00000003, &axi_qos->qosconf); |
| 2298 | writel(0x00002063, &axi_qos->qosctset0); |
| 2299 | writel(0x00000001, &axi_qos->qosreqctr); |
| 2300 | writel(0x00002064, &axi_qos->qosthres0); |
| 2301 | writel(0x00002004, &axi_qos->qosthres1); |
| 2302 | writel(0x00000001, &axi_qos->qosthres2); |
| 2303 | writel(0x00000001, &axi_qos->qosqon); |
| 2304 | |
| 2305 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_DU0W_BASE; |
| 2306 | writel(0x00000003, &axi_qos->qosconf); |
| 2307 | writel(0x00002063, &axi_qos->qosctset0); |
| 2308 | writel(0x00000001, &axi_qos->qosreqctr); |
| 2309 | writel(0x00000001, &axi_qos->qosthres0); |
| 2310 | writel(0x00000001, &axi_qos->qosthres1); |
| 2311 | writel(0x00000001, &axi_qos->qosthres2); |
| 2312 | writel(0x00000001, &axi_qos->qosqon); |
| 2313 | |
| 2314 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_DU1R_BASE; |
| 2315 | writel(0x00000003, &axi_qos->qosconf); |
| 2316 | writel(0x00002063, &axi_qos->qosctset0); |
| 2317 | writel(0x00000001, &axi_qos->qosreqctr); |
| 2318 | writel(0x00002064, &axi_qos->qosthres0); |
| 2319 | writel(0x00002004, &axi_qos->qosthres1); |
| 2320 | writel(0x00000001, &axi_qos->qosthres2); |
| 2321 | writel(0x00000001, &axi_qos->qosqon); |
| 2322 | |
| 2323 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_DU1W_BASE; |
| 2324 | writel(0x00000003, &axi_qos->qosconf); |
| 2325 | writel(0x00002063, &axi_qos->qosctset0); |
| 2326 | writel(0x00000001, &axi_qos->qosreqctr); |
| 2327 | writel(0x00000001, &axi_qos->qosthres0); |
| 2328 | writel(0x00000001, &axi_qos->qosthres1); |
| 2329 | writel(0x00000001, &axi_qos->qosthres2); |
| 2330 | writel(0x00000001, &axi_qos->qosqon); |
| 2331 | |
| 2332 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VCP0CR_BASE; |
| 2333 | writel(0x00000001, &axi_qos->qosconf); |
| 2334 | writel(0x00002073, &axi_qos->qosctset0); |
| 2335 | writel(0x00000020, &axi_qos->qosreqctr); |
| 2336 | writel(0x00002064, &axi_qos->qosthres0); |
| 2337 | writel(0x00002004, &axi_qos->qosthres1); |
| 2338 | writel(0x00000001, &axi_qos->qosthres2); |
| 2339 | writel(0x00000001, &axi_qos->qosqon); |
| 2340 | |
| 2341 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VCP0CW_BASE; |
| 2342 | writel(0x00000001, &axi_qos->qosconf); |
| 2343 | writel(0x00002073, &axi_qos->qosctset0); |
| 2344 | writel(0x00000020, &axi_qos->qosreqctr); |
| 2345 | writel(0x00002004, &axi_qos->qosthres0); |
| 2346 | writel(0x00000001, &axi_qos->qosthres1); |
| 2347 | writel(0x00000001, &axi_qos->qosthres2); |
| 2348 | writel(0x00000001, &axi_qos->qosqon); |
| 2349 | |
| 2350 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VCP0VR_BASE; |
| 2351 | writel(0x00000001, &axi_qos->qosconf); |
| 2352 | writel(0x00002073, &axi_qos->qosctset0); |
| 2353 | writel(0x00000020, &axi_qos->qosreqctr); |
| 2354 | writel(0x00002064, &axi_qos->qosthres0); |
| 2355 | writel(0x00002004, &axi_qos->qosthres1); |
| 2356 | writel(0x00000001, &axi_qos->qosthres2); |
| 2357 | writel(0x00000001, &axi_qos->qosqon); |
| 2358 | |
| 2359 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VCP0VW_BASE; |
| 2360 | writel(0x00000001, &axi_qos->qosconf); |
| 2361 | writel(0x00002073, &axi_qos->qosctset0); |
| 2362 | writel(0x00000020, &axi_qos->qosreqctr); |
| 2363 | writel(0x00002004, &axi_qos->qosthres0); |
| 2364 | writel(0x00000001, &axi_qos->qosthres1); |
| 2365 | writel(0x00000001, &axi_qos->qosthres2); |
| 2366 | writel(0x00000001, &axi_qos->qosqon); |
| 2367 | |
| 2368 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VPC0R_BASE; |
| 2369 | writel(0x00000001, &axi_qos->qosconf); |
| 2370 | writel(0x00002073, &axi_qos->qosctset0); |
| 2371 | writel(0x00000020, &axi_qos->qosreqctr); |
| 2372 | writel(0x00002064, &axi_qos->qosthres0); |
| 2373 | writel(0x00002004, &axi_qos->qosthres1); |
| 2374 | writel(0x00000001, &axi_qos->qosthres2); |
| 2375 | writel(0x00000001, &axi_qos->qosqon); |
| 2376 | |
| 2377 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VCP1CR_BASE; |
| 2378 | writel(0x00000001, &axi_qos->qosconf); |
| 2379 | writel(0x00002073, &axi_qos->qosctset0); |
| 2380 | writel(0x00000020, &axi_qos->qosreqctr); |
| 2381 | writel(0x00002064, &axi_qos->qosthres0); |
| 2382 | writel(0x00002004, &axi_qos->qosthres1); |
| 2383 | writel(0x00000001, &axi_qos->qosthres2); |
| 2384 | writel(0x00000001, &axi_qos->qosqon); |
| 2385 | |
| 2386 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VCP1CW_BASE; |
| 2387 | writel(0x00000001, &axi_qos->qosconf); |
| 2388 | writel(0x00002073, &axi_qos->qosctset0); |
| 2389 | writel(0x00000020, &axi_qos->qosreqctr); |
| 2390 | writel(0x00002004, &axi_qos->qosthres0); |
| 2391 | writel(0x00000001, &axi_qos->qosthres1); |
| 2392 | writel(0x00000001, &axi_qos->qosthres2); |
| 2393 | writel(0x00000001, &axi_qos->qosqon); |
| 2394 | |
| 2395 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VCP1VR_BASE; |
| 2396 | writel(0x00000001, &axi_qos->qosconf); |
| 2397 | writel(0x00002073, &axi_qos->qosctset0); |
| 2398 | writel(0x00000020, &axi_qos->qosreqctr); |
| 2399 | writel(0x00002064, &axi_qos->qosthres0); |
| 2400 | writel(0x00002004, &axi_qos->qosthres1); |
| 2401 | writel(0x00000001, &axi_qos->qosthres2); |
| 2402 | writel(0x00000001, &axi_qos->qosqon); |
| 2403 | |
| 2404 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VCP1VW_BASE; |
| 2405 | writel(0x00000001, &axi_qos->qosconf); |
| 2406 | writel(0x00002073, &axi_qos->qosctset0); |
| 2407 | writel(0x00000020, &axi_qos->qosreqctr); |
| 2408 | writel(0x00002004, &axi_qos->qosthres0); |
| 2409 | writel(0x00000001, &axi_qos->qosthres1); |
| 2410 | writel(0x00000001, &axi_qos->qosthres2); |
| 2411 | writel(0x00000001, &axi_qos->qosqon); |
| 2412 | |
| 2413 | axi_qos = (struct rcar_axi_qos *)MEDIA_AXI_VPC1R_BASE; |
| 2414 | writel(0x00000001, &axi_qos->qosconf); |
| 2415 | writel(0x00002073, &axi_qos->qosctset0); |
| 2416 | writel(0x00000020, &axi_qos->qosreqctr); |
| 2417 | writel(0x00002064, &axi_qos->qosthres0); |
| 2418 | writel(0x00002004, &axi_qos->qosthres1); |
| 2419 | writel(0x00000001, &axi_qos->qosthres2); |
| 2420 | writel(0x00000001, &axi_qos->qosqon); |
| 2421 | } |
| 2422 | |
| 2423 | void qos_init(void) |
| 2424 | { |
| 2425 | if (rmobile_get_cpu_rev_integer() >= R8A7790_CUT_ES2X) |
| 2426 | qos_init_es2(); |
| 2427 | else |
| 2428 | qos_init_es1(); |
| 2429 | } |
Nobuhiro Iwamatsu | 7c11273 | 2015-10-10 05:58:28 +0900 | [diff] [blame] | 2430 | #else /* CONFIG_ARCH_RMOBILE_EXTRAM_BOOT */ |
Vladimir Barinov | 8c94627 | 2015-07-20 20:49:59 +0300 | [diff] [blame] | 2431 | void qos_init(void) |
| 2432 | { |
| 2433 | } |
Nobuhiro Iwamatsu | 7c11273 | 2015-10-10 05:58:28 +0900 | [diff] [blame] | 2434 | #endif /* CONFIG_ARCH_RMOBILE_EXTRAM_BOOT */ |