1 /* 2 * Copyright (c) 2015-2019, Renesas Electronics Corporation. 3 * All rights reserved. 4 * 5 * SPDX-License-Identifier: BSD-3-Clause 6 */ 7 8 #define DDR_PHY_SLICE_REGSET_OFS_H3VER2 0x0400 9 #define DDR_PHY_ADR_V_REGSET_OFS_H3VER2 0x0600 10 #define DDR_PHY_ADR_I_REGSET_OFS_H3VER2 0x0640 11 #define DDR_PHY_ADR_G_REGSET_OFS_H3VER2 0x0680 12 #define DDR_PI_REGSET_OFS_H3VER2 0x0200 13 14 #define DDR_PHY_SLICE_REGSET_SIZE_H3VER2 0x80 15 #define DDR_PHY_ADR_V_REGSET_SIZE_H3VER2 0x40 16 #define DDR_PHY_ADR_I_REGSET_SIZE_H3VER2 0x40 17 #define DDR_PHY_ADR_G_REGSET_SIZE_H3VER2 0x80 18 #define DDR_PI_REGSET_SIZE_H3VER2 0x100 19 20 #define DDR_PHY_SLICE_REGSET_NUM_H3VER2 97 21 #define DDR_PHY_ADR_V_REGSET_NUM_H3VER2 37 22 #define DDR_PHY_ADR_I_REGSET_NUM_H3VER2 37 23 #define DDR_PHY_ADR_G_REGSET_NUM_H3VER2 79 24 #define DDR_PI_REGSET_NUM_H3VER2 245 25 26 static const uint32_t DDR_PHY_SLICE_REGSET_H3VER2 27 [DDR_PHY_SLICE_REGSET_NUM_H3VER2] = { 28 /*0400*/ 0x76543210, 29 /*0401*/ 0x0004f008, 30 /*0402*/ 0x00020133, 31 /*0403*/ 0x00000000, 32 /*0404*/ 0x00000000, 33 /*0405*/ 0x00010000, 34 /*0406*/ 0x016e6e0e, 35 /*0407*/ 0x026e6e0e, 36 /*0408*/ 0x00010300, 37 /*0409*/ 0x04000100, 38 /*040a*/ 0x01000000, 39 /*040b*/ 0x00000000, 40 /*040c*/ 0x00000000, 41 /*040d*/ 0x00000100, 42 /*040e*/ 0x001700c0, 43 /*040f*/ 0x020100b0, 44 /*0410*/ 0x00030020, 45 /*0411*/ 0x00000000, 46 /*0412*/ 0x00000000, 47 /*0413*/ 0x00000000, 48 /*0414*/ 0x00000000, 49 /*0415*/ 0x00000000, 50 /*0416*/ 0x00000000, 51 /*0417*/ 0x00000000, 52 /*0418*/ 0x09000000, 53 /*0419*/ 0x04080000, 54 /*041a*/ 0x04080400, 55 /*041b*/ 0x08000000, 56 /*041c*/ 0x0c008007, 57 /*041d*/ 0x00000f00, 58 /*041e*/ 0x00000100, 59 /*041f*/ 0x55aa55aa, 60 /*0420*/ 0x33cc33cc, 61 /*0421*/ 0x0ff00ff0, 62 /*0422*/ 0x0f0ff0f0, 63 /*0423*/ 0x00018e38, 64 /*0424*/ 0x00000000, 65 /*0425*/ 0x00000000, 66 /*0426*/ 0x00000000, 67 /*0427*/ 0x00000000, 68 /*0428*/ 0x00000000, 69 /*0429*/ 0x00000000, 70 /*042a*/ 0x00000000, 71 /*042b*/ 0x00000000, 72 /*042c*/ 0x00000000, 73 /*042d*/ 0x00000000, 74 /*042e*/ 0x00000000, 75 /*042f*/ 0x00000000, 76 /*0430*/ 0x00000000, 77 /*0431*/ 0x00000000, 78 /*0432*/ 0x00000000, 79 /*0433*/ 0x00000000, 80 /*0434*/ 0x00000000, 81 /*0435*/ 0x00000000, 82 /*0436*/ 0x00000000, 83 /*0437*/ 0x00000000, 84 /*0438*/ 0x00000104, 85 /*0439*/ 0x00082020, 86 /*043a*/ 0x08200820, 87 /*043b*/ 0x08200820, 88 /*043c*/ 0x08200820, 89 /*043d*/ 0x08200820, 90 /*043e*/ 0x08200820, 91 /*043f*/ 0x00000000, 92 /*0440*/ 0x00000000, 93 /*0441*/ 0x03000300, 94 /*0442*/ 0x03000300, 95 /*0443*/ 0x03000300, 96 /*0444*/ 0x03000300, 97 /*0445*/ 0x00000300, 98 /*0446*/ 0x00000000, 99 /*0447*/ 0x00000000, 100 /*0448*/ 0x00000000, 101 /*0449*/ 0x00000000, 102 /*044a*/ 0x00000000, 103 /*044b*/ 0x00a000a0, 104 /*044c*/ 0x00a000a0, 105 /*044d*/ 0x00a000a0, 106 /*044e*/ 0x00a000a0, 107 /*044f*/ 0x00a000a0, 108 /*0450*/ 0x00a000a0, 109 /*0451*/ 0x00a000a0, 110 /*0452*/ 0x00a000a0, 111 /*0453*/ 0x00a000a0, 112 /*0454*/ 0x01040109, 113 /*0455*/ 0x00000200, 114 /*0456*/ 0x01000000, 115 /*0457*/ 0x00000200, 116 /*0458*/ 0x00000004, 117 /*0459*/ 0x4041a151, 118 /*045a*/ 0xc00141a0, 119 /*045b*/ 0x0e0000c0, 120 /*045c*/ 0x0010000c, 121 /*045d*/ 0x063e4208, 122 /*045e*/ 0x0f0c180c, 123 /*045f*/ 0x00e00140, 124 /*0460*/ 0x00000c20 125 }; 126 127 static const uint32_t 128 DDR_PHY_ADR_V_REGSET_H3VER2[DDR_PHY_ADR_V_REGSET_NUM_H3VER2] = { 129 /*0600*/ 0x00000000, 130 /*0601*/ 0x00000000, 131 /*0602*/ 0x00000000, 132 /*0603*/ 0x00000000, 133 /*0604*/ 0x00000000, 134 /*0605*/ 0x00000000, 135 /*0606*/ 0x00000000, 136 /*0607*/ 0x00010000, 137 /*0608*/ 0x00000200, 138 /*0609*/ 0x00000000, 139 /*060a*/ 0x00000000, 140 /*060b*/ 0x00000000, 141 /*060c*/ 0x00400320, 142 /*060d*/ 0x00000040, 143 /*060e*/ 0x00dcba98, 144 /*060f*/ 0x03000000, 145 /*0610*/ 0x00000200, 146 /*0611*/ 0x00000000, 147 /*0612*/ 0x00000000, 148 /*0613*/ 0x00000000, 149 /*0614*/ 0x0000002a, 150 /*0615*/ 0x00000015, 151 /*0616*/ 0x00000015, 152 /*0617*/ 0x0000002a, 153 /*0618*/ 0x00000033, 154 /*0619*/ 0x0000000c, 155 /*061a*/ 0x0000000c, 156 /*061b*/ 0x00000033, 157 /*061c*/ 0x00418820, 158 /*061d*/ 0x003f0000, 159 /*061e*/ 0x0000003f, 160 /*061f*/ 0x0002c06e, 161 /*0620*/ 0x02c002c0, 162 /*0621*/ 0x02c002c0, 163 /*0622*/ 0x000002c0, 164 /*0623*/ 0x42080010, 165 /*0624*/ 0x0000033e 166 }; 167 168 static const uint32_t 169 DDR_PHY_ADR_I_REGSET_H3VER2[DDR_PHY_ADR_I_REGSET_NUM_H3VER2] = { 170 /*0640*/ 0x00000000, 171 /*0641*/ 0x00000000, 172 /*0642*/ 0x00000000, 173 /*0643*/ 0x00000000, 174 /*0644*/ 0x00000000, 175 /*0645*/ 0x00000000, 176 /*0646*/ 0x00000000, 177 /*0647*/ 0x00000000, 178 /*0648*/ 0x00000000, 179 /*0649*/ 0x00000000, 180 /*064a*/ 0x00000000, 181 /*064b*/ 0x00000000, 182 /*064c*/ 0x00000000, 183 /*064d*/ 0x00000000, 184 /*064e*/ 0x00000000, 185 /*064f*/ 0x00000000, 186 /*0650*/ 0x00000000, 187 /*0651*/ 0x00000000, 188 /*0652*/ 0x00000000, 189 /*0653*/ 0x00000000, 190 /*0654*/ 0x00000000, 191 /*0655*/ 0x00000000, 192 /*0656*/ 0x00000000, 193 /*0657*/ 0x00000000, 194 /*0658*/ 0x00000000, 195 /*0659*/ 0x00000000, 196 /*065a*/ 0x00000000, 197 /*065b*/ 0x00000000, 198 /*065c*/ 0x00000000, 199 /*065d*/ 0x00000000, 200 /*065e*/ 0x00000000, 201 /*065f*/ 0x00000000, 202 /*0660*/ 0x00000000, 203 /*0661*/ 0x00000000, 204 /*0662*/ 0x00000000, 205 /*0663*/ 0x00000000, 206 /*0664*/ 0x00000000 207 }; 208 209 static const uint32_t 210 DDR_PHY_ADR_G_REGSET_H3VER2[DDR_PHY_ADR_G_REGSET_NUM_H3VER2] = { 211 /*0680*/ 0x00000000, 212 /*0681*/ 0x00000100, 213 /*0682*/ 0x00000000, 214 /*0683*/ 0x00050000, 215 /*0684*/ 0x0f000000, 216 /*0685*/ 0x00800400, 217 /*0686*/ 0x00020032, 218 /*0687*/ 0x00020055, 219 /*0688*/ 0x00000000, 220 /*0689*/ 0x00000000, 221 /*068a*/ 0x00000000, 222 /*068b*/ 0x00000050, 223 /*068c*/ 0x00000000, 224 /*068d*/ 0x01010100, 225 /*068e*/ 0x01000200, 226 /*068f*/ 0x00000000, 227 /*0690*/ 0x00010100, 228 /*0691*/ 0x00000000, 229 /*0692*/ 0x00000000, 230 /*0693*/ 0x00000000, 231 /*0694*/ 0x00000000, 232 /*0695*/ 0x00005064, 233 /*0696*/ 0x01421142, 234 /*0697*/ 0x00000142, 235 /*0698*/ 0x00000000, 236 /*0699*/ 0x000f1100, 237 /*069a*/ 0x0f110f11, 238 /*069b*/ 0x09000f11, 239 /*069c*/ 0x00000003, 240 /*069d*/ 0x0002c000, 241 /*069e*/ 0x02c002c0, 242 /*069f*/ 0x000002c0, 243 /*06a0*/ 0x03421342, 244 /*06a1*/ 0x00000342, 245 /*06a2*/ 0x00000000, 246 /*06a3*/ 0x00000000, 247 /*06a4*/ 0x05020000, 248 /*06a5*/ 0x14000000, 249 /*06a6*/ 0x027f6e00, 250 /*06a7*/ 0x047f027f, 251 /*06a8*/ 0x00027f6e, 252 /*06a9*/ 0x00047f6e, 253 /*06aa*/ 0x0003554f, 254 /*06ab*/ 0x0001554f, 255 /*06ac*/ 0x0001554f, 256 /*06ad*/ 0x0001554f, 257 /*06ae*/ 0x0001554f, 258 /*06af*/ 0x00003fee, 259 /*06b0*/ 0x0001554f, 260 /*06b1*/ 0x00003fee, 261 /*06b2*/ 0x0001554f, 262 /*06b3*/ 0x00027f6e, 263 /*06b4*/ 0x0001554f, 264 /*06b5*/ 0x00004011, 265 /*06b6*/ 0x00004410, 266 /*06b7*/ 0x00000000, 267 /*06b8*/ 0x00000000, 268 /*06b9*/ 0x00000000, 269 /*06ba*/ 0x00000065, 270 /*06bb*/ 0x00000000, 271 /*06bc*/ 0x00020201, 272 /*06bd*/ 0x00000000, 273 /*06be*/ 0x03000000, 274 /*06bf*/ 0x00000008, 275 /*06c0*/ 0x00000000, 276 /*06c1*/ 0x00000000, 277 /*06c2*/ 0x00000000, 278 /*06c3*/ 0x00000000, 279 /*06c4*/ 0x00000001, 280 /*06c5*/ 0x00000000, 281 /*06c6*/ 0x00000000, 282 /*06c7*/ 0x00000000, 283 /*06c8*/ 0x000000e4, 284 /*06c9*/ 0x00010198, 285 /*06ca*/ 0x00000000, 286 /*06cb*/ 0x00000000, 287 /*06cc*/ 0x07010000, 288 /*06cd*/ 0x00000104, 289 /*06ce*/ 0x00000000 290 }; 291 292 static const uint32_t DDR_PI_REGSET_H3VER2[DDR_PI_REGSET_NUM_H3VER2] = { 293 /*0200*/ 0x00000b00, 294 /*0201*/ 0x00000100, 295 /*0202*/ 0x00640000, 296 /*0203*/ 0x00000000, 297 /*0204*/ 0x0000ffff, 298 /*0205*/ 0x00000000, 299 /*0206*/ 0x0000ffff, 300 /*0207*/ 0x00000000, 301 /*0208*/ 0x0000ffff, 302 /*0209*/ 0x0000304c, 303 /*020a*/ 0x00000200, 304 /*020b*/ 0x00000200, 305 /*020c*/ 0x00000200, 306 /*020d*/ 0x00000200, 307 /*020e*/ 0x0000304c, 308 /*020f*/ 0x00000200, 309 /*0210*/ 0x00000200, 310 /*0211*/ 0x00000200, 311 /*0212*/ 0x00000200, 312 /*0213*/ 0x0000304c, 313 /*0214*/ 0x00000200, 314 /*0215*/ 0x00000200, 315 /*0216*/ 0x00000200, 316 /*0217*/ 0x00000200, 317 /*0218*/ 0x00010000, 318 /*0219*/ 0x00000003, 319 /*021a*/ 0x01000001, 320 /*021b*/ 0x00000000, 321 /*021c*/ 0x00000000, 322 /*021d*/ 0x00000000, 323 /*021e*/ 0x00000000, 324 /*021f*/ 0x00000000, 325 /*0220*/ 0x00000000, 326 /*0221*/ 0x00000000, 327 /*0222*/ 0x00000000, 328 /*0223*/ 0x00000000, 329 /*0224*/ 0x00000000, 330 /*0225*/ 0x00000000, 331 /*0226*/ 0x00000000, 332 /*0227*/ 0x00000000, 333 /*0228*/ 0x00000000, 334 /*0229*/ 0x00000000, 335 /*022a*/ 0x00000000, 336 /*022b*/ 0x0f000101, 337 /*022c*/ 0x08492d25, 338 /*022d*/ 0x500e0c04, 339 /*022e*/ 0x0002500e, 340 /*022f*/ 0x00000301, 341 /*0230*/ 0x00000046, 342 /*0231*/ 0x000000cf, 343 /*0232*/ 0x00001826, 344 /*0233*/ 0x000000cf, 345 /*0234*/ 0x00001826, 346 /*0235*/ 0x00000005, 347 /*0236*/ 0x00000000, 348 /*0237*/ 0x00000000, 349 /*0238*/ 0x00000000, 350 /*0239*/ 0x00000000, 351 /*023a*/ 0x00000000, 352 /*023b*/ 0x00000000, 353 /*023c*/ 0x00000000, 354 /*023d*/ 0x00000000, 355 /*023e*/ 0x04010000, 356 /*023f*/ 0x00000404, 357 /*0240*/ 0x0101280a, 358 /*0241*/ 0x00000000, 359 /*0242*/ 0x00000000, 360 /*0243*/ 0x0003000f, 361 /*0244*/ 0x00000018, 362 /*0245*/ 0x00000000, 363 /*0246*/ 0x00000000, 364 /*0247*/ 0x00060002, 365 /*0248*/ 0x00010001, 366 /*0249*/ 0x01000101, 367 /*024a*/ 0x04020201, 368 /*024b*/ 0x00080804, 369 /*024c*/ 0x00000000, 370 /*024d*/ 0x08030000, 371 /*024e*/ 0x15150408, 372 /*024f*/ 0x00000000, 373 /*0250*/ 0x00000000, 374 /*0251*/ 0x00000000, 375 /*0252*/ 0x0f0f0000, 376 /*0253*/ 0x0000001e, 377 /*0254*/ 0x00000000, 378 /*0255*/ 0x01000300, 379 /*0256*/ 0x00000100, 380 /*0257*/ 0x00000000, 381 /*0258*/ 0x00000000, 382 /*0259*/ 0x01000000, 383 /*025a*/ 0x00000101, 384 /*025b*/ 0x55555a5a, 385 /*025c*/ 0x55555a5a, 386 /*025d*/ 0x55555a5a, 387 /*025e*/ 0x55555a5a, 388 /*025f*/ 0x0e0e0001, 389 /*0260*/ 0x0c0c000e, 390 /*0261*/ 0x0601000c, 391 /*0262*/ 0x17170106, 392 /*0263*/ 0x00020202, 393 /*0264*/ 0x03000000, 394 /*0265*/ 0x00000000, 395 /*0266*/ 0x00181703, 396 /*0267*/ 0x00280006, 397 /*0268*/ 0x00280016, 398 /*0269*/ 0x00000016, 399 /*026a*/ 0x00000000, 400 /*026b*/ 0x00000000, 401 /*026c*/ 0x00000000, 402 /*026d*/ 0x0a000000, 403 /*026e*/ 0x00010a14, 404 /*026f*/ 0x00030005, 405 /*0270*/ 0x0003018d, 406 /*0271*/ 0x000a018d, 407 /*0272*/ 0x00060100, 408 /*0273*/ 0x01000006, 409 /*0274*/ 0x018e018e, 410 /*0275*/ 0x018e0100, 411 /*0276*/ 0x1111018e, 412 /*0277*/ 0x10010204, 413 /*0278*/ 0x09090650, 414 /*0279*/ 0xff110202, 415 /*027a*/ 0x00ff1000, 416 /*027b*/ 0x00ff1000, 417 /*027c*/ 0x04041000, 418 /*027d*/ 0x18020100, 419 /*027e*/ 0x01010018, 420 /*027f*/ 0x004a004a, 421 /*0280*/ 0x004b004a, 422 /*0281*/ 0x050f0000, 423 /*0282*/ 0x0c01021e, 424 /*0283*/ 0x34000000, 425 /*0284*/ 0x00000000, 426 /*0285*/ 0x00000000, 427 /*0286*/ 0x00000000, 428 /*0287*/ 0x00000000, 429 /*0288*/ 0x36312ed4, 430 /*0289*/ 0x2ed41111, 431 /*028a*/ 0x11113631, 432 /*028b*/ 0x36312ed4, 433 /*028c*/ 0xd4001111, 434 /*028d*/ 0x1136312e, 435 /*028e*/ 0x312ed411, 436 /*028f*/ 0xd4111136, 437 /*0290*/ 0x1136312e, 438 /*0291*/ 0x2ed40011, 439 /*0292*/ 0x11113631, 440 /*0293*/ 0x36312ed4, 441 /*0294*/ 0x2ed41111, 442 /*0295*/ 0x11113631, 443 /*0296*/ 0x312ed400, 444 /*0297*/ 0xd4111136, 445 /*0298*/ 0x1136312e, 446 /*0299*/ 0x312ed411, 447 /*029a*/ 0x00111136, 448 /*029b*/ 0x018d0200, 449 /*029c*/ 0x018d018d, 450 /*029d*/ 0x1d220c08, 451 /*029e*/ 0x00001f12, 452 /*029f*/ 0x4301b344, 453 /*02a0*/ 0x10172006, 454 /*02a1*/ 0x121d220c, 455 /*02a2*/ 0x01b3441f, 456 /*02a3*/ 0x17200643, 457 /*02a4*/ 0x1d220c10, 458 /*02a5*/ 0x00001f12, 459 /*02a6*/ 0x4301b344, 460 /*02a7*/ 0x10172006, 461 /*02a8*/ 0x00020002, 462 /*02a9*/ 0x00020002, 463 /*02aa*/ 0x00020002, 464 /*02ab*/ 0x00020002, 465 /*02ac*/ 0x00020002, 466 /*02ad*/ 0x00000000, 467 /*02ae*/ 0x00000000, 468 /*02af*/ 0x00000000, 469 /*02b0*/ 0x00000000, 470 /*02b1*/ 0x00000000, 471 /*02b2*/ 0x00000000, 472 /*02b3*/ 0x00000000, 473 /*02b4*/ 0x00000000, 474 /*02b5*/ 0x00000000, 475 /*02b6*/ 0x00000000, 476 /*02b7*/ 0x00000000, 477 /*02b8*/ 0x00000000, 478 /*02b9*/ 0x00000400, 479 /*02ba*/ 0x05040302, 480 /*02bb*/ 0x01000f0e, 481 /*02bc*/ 0x07060504, 482 /*02bd*/ 0x03020100, 483 /*02be*/ 0x02010000, 484 /*02bf*/ 0x00000103, 485 /*02c0*/ 0x0000304c, 486 /*02c1*/ 0x0001e2f8, 487 /*02c2*/ 0x0000304c, 488 /*02c3*/ 0x0001e2f8, 489 /*02c4*/ 0x0000304c, 490 /*02c5*/ 0x0001e2f8, 491 /*02c6*/ 0x08000000, 492 /*02c7*/ 0x00000100, 493 /*02c8*/ 0x00000000, 494 /*02c9*/ 0x00000000, 495 /*02ca*/ 0x00000000, 496 /*02cb*/ 0x00000000, 497 /*02cc*/ 0x00010000, 498 /*02cd*/ 0x00000000, 499 /*02ce*/ 0x00000000, 500 /*02cf*/ 0x00000000, 501 /*02d0*/ 0x00000000, 502 /*02d1*/ 0x00000000, 503 /*02d2*/ 0x00000000, 504 /*02d3*/ 0x00000000, 505 /*02d4*/ 0x00000000, 506 /*02d5*/ 0x00000000, 507 /*02d6*/ 0x00000000, 508 /*02d7*/ 0x00000000, 509 /*02d8*/ 0x00000000, 510 /*02d9*/ 0x00000000, 511 /*02da*/ 0x00000000, 512 /*02db*/ 0x00000000, 513 /*02dc*/ 0x00000000, 514 /*02dd*/ 0x00000000, 515 /*02de*/ 0x00000000, 516 /*02df*/ 0x00000000, 517 /*02e0*/ 0x00000000, 518 /*02e1*/ 0x00000000, 519 /*02e2*/ 0x00000000, 520 /*02e3*/ 0x00000000, 521 /*02e4*/ 0x00000000, 522 /*02e5*/ 0x00000000, 523 /*02e6*/ 0x00000000, 524 /*02e7*/ 0x00000000, 525 /*02e8*/ 0x00000000, 526 /*02e9*/ 0x00000000, 527 /*02ea*/ 0x00000000, 528 /*02eb*/ 0x00000000, 529 /*02ec*/ 0x00000000, 530 /*02ed*/ 0x00000000, 531 /*02ee*/ 0x00000002, 532 /*02ef*/ 0x00000000, 533 /*02f0*/ 0x00000000, 534 /*02f1*/ 0x00000000, 535 /*02f2*/ 0x00000000, 536 /*02f3*/ 0x00000000, 537 /*02f4*/ 0x00000000 538 }; 539