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_H3 0x0400 9 #define DDR_PHY_ADR_V_REGSET_OFS_H3 0x0600 10 #define DDR_PHY_ADR_I_REGSET_OFS_H3 0x0680 11 #define DDR_PHY_ADR_G_REGSET_OFS_H3 0x0700 12 #define DDR_PI_REGSET_OFS_H3 0x0200 13 14 #define DDR_PHY_SLICE_REGSET_SIZE_H3 0x80 15 #define DDR_PHY_ADR_V_REGSET_SIZE_H3 0x80 16 #define DDR_PHY_ADR_I_REGSET_SIZE_H3 0x80 17 #define DDR_PHY_ADR_G_REGSET_SIZE_H3 0x80 18 #define DDR_PI_REGSET_SIZE_H3 0x100 19 20 #define DDR_PHY_SLICE_REGSET_NUM_H3 88 21 #define DDR_PHY_ADR_V_REGSET_NUM_H3 37 22 #define DDR_PHY_ADR_I_REGSET_NUM_H3 37 23 #define DDR_PHY_ADR_G_REGSET_NUM_H3 59 24 #define DDR_PI_REGSET_NUM_H3 181 25 26 static const uint32_t DDR_PHY_SLICE_REGSET_H3[DDR_PHY_SLICE_REGSET_NUM_H3] = { 27 /*0400*/ 0x000004f0, 28 /*0401*/ 0x00000000, 29 /*0402*/ 0x00000000, 30 /*0403*/ 0x00000100, 31 /*0404*/ 0x01003c0c, 32 /*0405*/ 0x02003c0c, 33 /*0406*/ 0x00010300, 34 /*0407*/ 0x04000100, 35 /*0408*/ 0x00000300, 36 /*0409*/ 0x000700c0, 37 /*040a*/ 0x00b00201, 38 /*040b*/ 0x00000020, 39 /*040c*/ 0x00000000, 40 /*040d*/ 0x00000000, 41 /*040e*/ 0x00000000, 42 /*040f*/ 0x00000000, 43 /*0410*/ 0x00000000, 44 /*0411*/ 0x00000000, 45 /*0412*/ 0x00000000, 46 /*0413*/ 0x09000000, 47 /*0414*/ 0x04080000, 48 /*0415*/ 0x04080400, 49 /*0416*/ 0x00000000, 50 /*0417*/ 0x32103210, 51 /*0418*/ 0x00800708, 52 /*0419*/ 0x000f000c, 53 /*041a*/ 0x00000100, 54 /*041b*/ 0x55aa55aa, 55 /*041c*/ 0x33cc33cc, 56 /*041d*/ 0x0ff00ff0, 57 /*041e*/ 0x0f0ff0f0, 58 /*041f*/ 0x00008e38, 59 /*0420*/ 0x76543210, 60 /*0421*/ 0x00000001, 61 /*0422*/ 0x00000000, 62 /*0423*/ 0x00000000, 63 /*0424*/ 0x00000000, 64 /*0425*/ 0x00000000, 65 /*0426*/ 0x00000000, 66 /*0427*/ 0x00000000, 67 /*0428*/ 0x00000000, 68 /*0429*/ 0x00000000, 69 /*042a*/ 0x00000000, 70 /*042b*/ 0x00000000, 71 /*042c*/ 0x00000000, 72 /*042d*/ 0x00000000, 73 /*042e*/ 0x00000000, 74 /*042f*/ 0x00000000, 75 /*0430*/ 0x00000000, 76 /*0431*/ 0x00000000, 77 /*0432*/ 0x00000000, 78 /*0433*/ 0x00200000, 79 /*0434*/ 0x08200820, 80 /*0435*/ 0x08200820, 81 /*0436*/ 0x08200820, 82 /*0437*/ 0x08200820, 83 /*0438*/ 0x08200820, 84 /*0439*/ 0x00000820, 85 /*043a*/ 0x03000300, 86 /*043b*/ 0x03000300, 87 /*043c*/ 0x03000300, 88 /*043d*/ 0x03000300, 89 /*043e*/ 0x00000300, 90 /*043f*/ 0x00000000, 91 /*0440*/ 0x00000000, 92 /*0441*/ 0x00000000, 93 /*0442*/ 0x00000000, 94 /*0443*/ 0x00a000a0, 95 /*0444*/ 0x00a000a0, 96 /*0445*/ 0x00a000a0, 97 /*0446*/ 0x00a000a0, 98 /*0447*/ 0x00a000a0, 99 /*0448*/ 0x00a000a0, 100 /*0449*/ 0x00a000a0, 101 /*044a*/ 0x00a000a0, 102 /*044b*/ 0x00a000a0, 103 /*044c*/ 0x01040109, 104 /*044d*/ 0x00000200, 105 /*044e*/ 0x01000000, 106 /*044f*/ 0x00000200, 107 /*0450*/ 0x4041a151, 108 /*0451*/ 0xc00141a0, 109 /*0452*/ 0x0e0100c0, 110 /*0453*/ 0x0010000c, 111 /*0454*/ 0x0c064208, 112 /*0455*/ 0x000f0c18, 113 /*0456*/ 0x00e00140, 114 /*0457*/ 0x00000c20 115 }; 116 117 static const uint32_t DDR_PHY_ADR_V_REGSET_H3[DDR_PHY_ADR_V_REGSET_NUM_H3] = { 118 /*0600*/ 0x00000000, 119 /*0601*/ 0x00000000, 120 /*0602*/ 0x00000000, 121 /*0603*/ 0x00000000, 122 /*0604*/ 0x00000000, 123 /*0605*/ 0x00000000, 124 /*0606*/ 0x00000002, 125 /*0607*/ 0x00000000, 126 /*0608*/ 0x00000000, 127 /*0609*/ 0x00000000, 128 /*060a*/ 0x00400320, 129 /*060b*/ 0x00000040, 130 /*060c*/ 0x00dcba98, 131 /*060d*/ 0x00000000, 132 /*060e*/ 0x00dcba98, 133 /*060f*/ 0x01000000, 134 /*0610*/ 0x00020003, 135 /*0611*/ 0x00000000, 136 /*0612*/ 0x00000000, 137 /*0613*/ 0x00000000, 138 /*0614*/ 0x00002a01, 139 /*0615*/ 0x00000015, 140 /*0616*/ 0x00000015, 141 /*0617*/ 0x0000002a, 142 /*0618*/ 0x00000033, 143 /*0619*/ 0x0000000c, 144 /*061a*/ 0x0000000c, 145 /*061b*/ 0x00000033, 146 /*061c*/ 0x00418820, 147 /*061d*/ 0x003f0000, 148 /*061e*/ 0x0000003f, 149 /*061f*/ 0x0002006e, 150 /*0620*/ 0x02000200, 151 /*0621*/ 0x02000200, 152 /*0622*/ 0x00000200, 153 /*0623*/ 0x42080010, 154 /*0624*/ 0x00000003 155 }; 156 157 static const uint32_t DDR_PHY_ADR_I_REGSET_H3[DDR_PHY_ADR_I_REGSET_NUM_H3] = { 158 /*0680*/ 0x04040404, 159 /*0681*/ 0x00000404, 160 /*0682*/ 0x00000000, 161 /*0683*/ 0x00000000, 162 /*0684*/ 0x00000000, 163 /*0685*/ 0x00000000, 164 /*0686*/ 0x00000002, 165 /*0687*/ 0x00000000, 166 /*0688*/ 0x00000000, 167 /*0689*/ 0x00000000, 168 /*068a*/ 0x00400320, 169 /*068b*/ 0x00000040, 170 /*068c*/ 0x00000000, 171 /*068d*/ 0x00000000, 172 /*068e*/ 0x00000000, 173 /*068f*/ 0x01000000, 174 /*0690*/ 0x00020003, 175 /*0691*/ 0x00000000, 176 /*0692*/ 0x00000000, 177 /*0693*/ 0x00000000, 178 /*0694*/ 0x00002a01, 179 /*0695*/ 0x00000015, 180 /*0696*/ 0x00000015, 181 /*0697*/ 0x0000002a, 182 /*0698*/ 0x00000033, 183 /*0699*/ 0x0000000c, 184 /*069a*/ 0x0000000c, 185 /*069b*/ 0x00000033, 186 /*069c*/ 0x00000000, 187 /*069d*/ 0x00000000, 188 /*069e*/ 0x00000000, 189 /*069f*/ 0x0002006e, 190 /*06a0*/ 0x02000200, 191 /*06a1*/ 0x02000200, 192 /*06a2*/ 0x00000200, 193 /*06a3*/ 0x42080010, 194 /*06a4*/ 0x00000003 195 }; 196 197 static const uint32_t DDR_PHY_ADR_G_REGSET_H3[DDR_PHY_ADR_G_REGSET_NUM_H3] = { 198 /*0700*/ 0x00000001, 199 /*0701*/ 0x00000000, 200 /*0702*/ 0x00000005, 201 /*0703*/ 0x04000f00, 202 /*0704*/ 0x00020080, 203 /*0705*/ 0x00020055, 204 /*0706*/ 0x00000000, 205 /*0707*/ 0x00000000, 206 /*0708*/ 0x00000000, 207 /*0709*/ 0x00000050, 208 /*070a*/ 0x00000000, 209 /*070b*/ 0x01010100, 210 /*070c*/ 0x00000200, 211 /*070d*/ 0x00001102, 212 /*070e*/ 0x00000000, 213 /*070f*/ 0x000f1f00, 214 /*0710*/ 0x0f1f0f1f, 215 /*0711*/ 0x0f1f0f1f, 216 /*0712*/ 0x00020003, 217 /*0713*/ 0x02000200, 218 /*0714*/ 0x00000200, 219 /*0715*/ 0x00001102, 220 /*0716*/ 0x00000064, 221 /*0717*/ 0x00000000, 222 /*0718*/ 0x00000000, 223 /*0719*/ 0x00000502, 224 /*071a*/ 0x027f6e00, 225 /*071b*/ 0x007f007f, 226 /*071c*/ 0x00007f3c, 227 /*071d*/ 0x00047f6e, 228 /*071e*/ 0x0003154f, 229 /*071f*/ 0x0001154f, 230 /*0720*/ 0x0001154f, 231 /*0721*/ 0x0001154f, 232 /*0722*/ 0x0001154f, 233 /*0723*/ 0x00003fee, 234 /*0724*/ 0x0001154f, 235 /*0725*/ 0x00003fee, 236 /*0726*/ 0x0001154f, 237 /*0727*/ 0x00007f3c, 238 /*0728*/ 0x0001154f, 239 /*0729*/ 0x00000000, 240 /*072a*/ 0x00000000, 241 /*072b*/ 0x00000000, 242 /*072c*/ 0x65000000, 243 /*072d*/ 0x00000000, 244 /*072e*/ 0x00000000, 245 /*072f*/ 0x00000201, 246 /*0730*/ 0x00000000, 247 /*0731*/ 0x00000000, 248 /*0732*/ 0x00000000, 249 /*0733*/ 0x00000000, 250 /*0734*/ 0x00000000, 251 /*0735*/ 0x00000000, 252 /*0736*/ 0x00000000, 253 /*0737*/ 0x00000000, 254 /*0738*/ 0x00000000, 255 /*0739*/ 0x00000000, 256 /*073a*/ 0x00000000 257 }; 258 259 static const uint32_t DDR_PI_REGSET_H3[DDR_PI_REGSET_NUM_H3] = { 260 /*0200*/ 0x00000b00, 261 /*0201*/ 0x00000100, 262 /*0202*/ 0x00000000, 263 /*0203*/ 0x0000ffff, 264 /*0204*/ 0x00000000, 265 /*0205*/ 0x0000ffff, 266 /*0206*/ 0x00000000, 267 /*0207*/ 0x304cffff, 268 /*0208*/ 0x00000200, 269 /*0209*/ 0x00000200, 270 /*020a*/ 0x00000200, 271 /*020b*/ 0x00000200, 272 /*020c*/ 0x0000304c, 273 /*020d*/ 0x00000200, 274 /*020e*/ 0x00000200, 275 /*020f*/ 0x00000200, 276 /*0210*/ 0x00000200, 277 /*0211*/ 0x0000304c, 278 /*0212*/ 0x00000200, 279 /*0213*/ 0x00000200, 280 /*0214*/ 0x00000200, 281 /*0215*/ 0x00000200, 282 /*0216*/ 0x00010000, 283 /*0217*/ 0x00000003, 284 /*0218*/ 0x01000001, 285 /*0219*/ 0x00000000, 286 /*021a*/ 0x00000000, 287 /*021b*/ 0x00000000, 288 /*021c*/ 0x00000000, 289 /*021d*/ 0x00000000, 290 /*021e*/ 0x00000000, 291 /*021f*/ 0x00000000, 292 /*0220*/ 0x00000000, 293 /*0221*/ 0x00000000, 294 /*0222*/ 0x00000000, 295 /*0223*/ 0x00000000, 296 /*0224*/ 0x00000000, 297 /*0225*/ 0x00000000, 298 /*0226*/ 0x00000000, 299 /*0227*/ 0x00000000, 300 /*0228*/ 0x00000000, 301 /*0229*/ 0x0f000101, 302 /*022a*/ 0x08492d25, 303 /*022b*/ 0x500e0c04, 304 /*022c*/ 0x0002500e, 305 /*022d*/ 0x00460003, 306 /*022e*/ 0x182600cf, 307 /*022f*/ 0x182600cf, 308 /*0230*/ 0x00000005, 309 /*0231*/ 0x00000000, 310 /*0232*/ 0x00000000, 311 /*0233*/ 0x00000000, 312 /*0234*/ 0x00000000, 313 /*0235*/ 0x00000000, 314 /*0236*/ 0x00000000, 315 /*0237*/ 0x00000000, 316 /*0238*/ 0x01000000, 317 /*0239*/ 0x00040404, 318 /*023a*/ 0x01280a00, 319 /*023b*/ 0x00000000, 320 /*023c*/ 0x000f0000, 321 /*023d*/ 0x00001803, 322 /*023e*/ 0x00000000, 323 /*023f*/ 0x00000000, 324 /*0240*/ 0x00060002, 325 /*0241*/ 0x00010001, 326 /*0242*/ 0x01000101, 327 /*0243*/ 0x04020201, 328 /*0244*/ 0x00080804, 329 /*0245*/ 0x00000000, 330 /*0246*/ 0x08030000, 331 /*0247*/ 0x15150408, 332 /*0248*/ 0x00000000, 333 /*0249*/ 0x00000000, 334 /*024a*/ 0x00000000, 335 /*024b*/ 0x001e0f0f, 336 /*024c*/ 0x00000000, 337 /*024d*/ 0x01000300, 338 /*024e*/ 0x00000000, 339 /*024f*/ 0x00000000, 340 /*0250*/ 0x01000000, 341 /*0251*/ 0x00010101, 342 /*0252*/ 0x000e0e0e, 343 /*0253*/ 0x000c0c0c, 344 /*0254*/ 0x02060601, 345 /*0255*/ 0x00000000, 346 /*0256*/ 0x00000003, 347 /*0257*/ 0x00181703, 348 /*0258*/ 0x00280006, 349 /*0259*/ 0x00280016, 350 /*025a*/ 0x00000016, 351 /*025b*/ 0x00000000, 352 /*025c*/ 0x00000000, 353 /*025d*/ 0x00000000, 354 /*025e*/ 0x140a0000, 355 /*025f*/ 0x0005010a, 356 /*0260*/ 0x03018d03, 357 /*0261*/ 0x000a018d, 358 /*0262*/ 0x00060100, 359 /*0263*/ 0x01000006, 360 /*0264*/ 0x018e018e, 361 /*0265*/ 0x018e0100, 362 /*0266*/ 0x1111018e, 363 /*0267*/ 0x10010204, 364 /*0268*/ 0x09090650, 365 /*0269*/ 0x20110202, 366 /*026a*/ 0x00201000, 367 /*026b*/ 0x00201000, 368 /*026c*/ 0x04041000, 369 /*026d*/ 0x18020100, 370 /*026e*/ 0x00010118, 371 /*026f*/ 0x004b004a, 372 /*0270*/ 0x050f0000, 373 /*0271*/ 0x0c01021e, 374 /*0272*/ 0x34000000, 375 /*0273*/ 0x00000000, 376 /*0274*/ 0x00000000, 377 /*0275*/ 0x00000000, 378 /*0276*/ 0x312ed400, 379 /*0277*/ 0xd4111132, 380 /*0278*/ 0x1132312e, 381 /*0279*/ 0x312ed411, 382 /*027a*/ 0x00111132, 383 /*027b*/ 0x32312ed4, 384 /*027c*/ 0x2ed41111, 385 /*027d*/ 0x11113231, 386 /*027e*/ 0x32312ed4, 387 /*027f*/ 0xd4001111, 388 /*0280*/ 0x1132312e, 389 /*0281*/ 0x312ed411, 390 /*0282*/ 0xd4111132, 391 /*0283*/ 0x1132312e, 392 /*0284*/ 0x2ed40011, 393 /*0285*/ 0x11113231, 394 /*0286*/ 0x32312ed4, 395 /*0287*/ 0x2ed41111, 396 /*0288*/ 0x11113231, 397 /*0289*/ 0x00020000, 398 /*028a*/ 0x018d018d, 399 /*028b*/ 0x0c08018d, 400 /*028c*/ 0x1f121d22, 401 /*028d*/ 0x4301b344, 402 /*028e*/ 0x10172006, 403 /*028f*/ 0x121d220c, 404 /*0290*/ 0x01b3441f, 405 /*0291*/ 0x17200643, 406 /*0292*/ 0x1d220c10, 407 /*0293*/ 0x00001f12, 408 /*0294*/ 0x4301b344, 409 /*0295*/ 0x10172006, 410 /*0296*/ 0x00020002, 411 /*0297*/ 0x00020002, 412 /*0298*/ 0x00020002, 413 /*0299*/ 0x00020002, 414 /*029a*/ 0x00020002, 415 /*029b*/ 0x00000000, 416 /*029c*/ 0x00000000, 417 /*029d*/ 0x00000000, 418 /*029e*/ 0x00000000, 419 /*029f*/ 0x00000000, 420 /*02a0*/ 0x00000000, 421 /*02a1*/ 0x00000000, 422 /*02a2*/ 0x00000000, 423 /*02a3*/ 0x00000000, 424 /*02a4*/ 0x00000000, 425 /*02a5*/ 0x00000000, 426 /*02a6*/ 0x00000000, 427 /*02a7*/ 0x01000400, 428 /*02a8*/ 0x00304c00, 429 /*02a9*/ 0x0001e2f8, 430 /*02aa*/ 0x0000304c, 431 /*02ab*/ 0x0001e2f8, 432 /*02ac*/ 0x0000304c, 433 /*02ad*/ 0x0001e2f8, 434 /*02ae*/ 0x08000000, 435 /*02af*/ 0x00000100, 436 /*02b0*/ 0x00000000, 437 /*02b1*/ 0x00000000, 438 /*02b2*/ 0x00000000, 439 /*02b3*/ 0x00000000, 440 /*02b4*/ 0x00000002 441 }; 442