1 /* 2 * Altera SoCFPGA IOCSR configuration 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 7 #ifndef __SOCFPGA_IOCSR_CONFIG_H__ 8 #define __SOCFPGA_IOCSR_CONFIG_H__ 9 10 #define CONFIG_HPS_IOCSR_SCANCHAIN0_LENGTH 764 11 #define CONFIG_HPS_IOCSR_SCANCHAIN1_LENGTH 1719 12 #define CONFIG_HPS_IOCSR_SCANCHAIN2_LENGTH 955 13 #define CONFIG_HPS_IOCSR_SCANCHAIN3_LENGTH 16766 14 15 const unsigned long iocsr_scan_chain0_table[] = { 16 0x00000000, 17 0x00000000, 18 0x0FF00000, 19 0xC0000000, 20 0x0000003F, 21 0x00008000, 22 0x00004824, 23 0x01209000, 24 0x82400000, 25 0x00018004, 26 0x00000000, 27 0x00004000, 28 0x00002412, 29 0x00904800, 30 0x41200000, 31 0x80000002, 32 0x00000904, 33 0x00002000, 34 0x00001209, 35 0x00482400, 36 0x20900000, 37 0x40000001, 38 0x00000482, 39 0x00001000, 40 }; 41 42 const unsigned long iocsr_scan_chain1_table[] = { 43 0x00009048, 44 0x02412000, 45 0x048000C0, 46 0x00000009, 47 0x00002412, 48 0x00008000, 49 0x00004824, 50 0x01209000, 51 0x82400000, 52 0x00000004, 53 0x00001209, 54 0x00004000, 55 0x00002412, 56 0x00904800, 57 0x41200000, 58 0x80000002, 59 0x00000904, 60 0x00002000, 61 0x06001209, 62 0x00482400, 63 0x01FE0000, 64 0xF8000000, 65 0x00000007, 66 0x80001000, 67 0x00000904, 68 0x00241200, 69 0x90480000, 70 0x20003000, 71 0x00000241, 72 0x00000800, 73 0x00000000, 74 0x00000000, 75 0x48240000, 76 0x90000000, 77 0x00000120, 78 0x00000400, 79 0x00000000, 80 0x00090480, 81 0x00000003, 82 0x00000000, 83 0x00000000, 84 0x90000200, 85 0x00600120, 86 0x00000000, 87 0x12090000, 88 0x24000600, 89 0x00000048, 90 0x48000100, 91 0x00300090, 92 0xC0024120, 93 0x09048000, 94 0x12000300, 95 0x000C0024, 96 0x00000080, 97 }; 98 99 const unsigned long iocsr_scan_chain2_table[] = { 100 0x30009048, 101 0x00000000, 102 0x0FF00000, 103 0x00000000, 104 0x0C002412, 105 0x00008000, 106 0x18004824, 107 0x00000000, 108 0x82400000, 109 0x00018004, 110 0x06001209, 111 0x00004000, 112 0x20002412, 113 0x00904800, 114 0x00000030, 115 0x80000000, 116 0x03000904, 117 0x00002000, 118 0x10001209, 119 0x00482400, 120 0x20900000, 121 0x40010001, 122 0x00000482, 123 0x80001000, 124 0x00000904, 125 0x00000000, 126 0x90480000, 127 0x20008000, 128 0x00C00241, 129 0x00000800, 130 }; 131 132 const unsigned long iocsr_scan_chain3_table[] = { 133 0x0CC20D80, 134 0x0C3000FF, 135 0x0A804001, 136 0x07900000, 137 0x08020000, 138 0x00100000, 139 0x0A800000, 140 0x07900000, 141 0x08020000, 142 0x00100000, 143 0x20430000, 144 0x0C003001, 145 0x00C00481, 146 0x00000000, 147 0x00000021, 148 0x82000004, 149 0x05400000, 150 0x03C80000, 151 0x04010000, 152 0x00080000, 153 0x05400000, 154 0x03C80000, 155 0x05400000, 156 0x03C80000, 157 0x90218000, 158 0x86001800, 159 0x00600240, 160 0x80090218, 161 0x00000001, 162 0x40000002, 163 0x02A00000, 164 0x01E40000, 165 0x02A00000, 166 0x01E40000, 167 0x02A00000, 168 0x01E40000, 169 0x02A00000, 170 0x01E40000, 171 0x4810C000, 172 0x43000C00, 173 0x00300120, 174 0xC004810C, 175 0x12043000, 176 0x20000300, 177 0x00040000, 178 0x50670000, 179 0x00000010, 180 0x24590000, 181 0x00001000, 182 0xA0000034, 183 0x0D000001, 184 0xC0680A28, 185 0x45034030, 186 0x12481A01, 187 0x80A280D0, 188 0x34030C06, 189 0x01A01450, 190 0x280D0000, 191 0x30C0680A, 192 0x02490340, 193 0xD000001A, 194 0x0680A280, 195 0x10040000, 196 0x00200000, 197 0x10040000, 198 0x00200000, 199 0x15000000, 200 0x0F200000, 201 0x15000000, 202 0x0F200000, 203 0x01FE0000, 204 0x18000000, 205 0x01800902, 206 0x00240860, 207 0x007F8006, 208 0x00000000, 209 0x0A800001, 210 0x07900000, 211 0x0A800000, 212 0x07900000, 213 0x0A800000, 214 0x07900000, 215 0x08020000, 216 0x00100000, 217 0x20430000, 218 0x0C003001, 219 0x00C00481, 220 0x00000FF0, 221 0x4810C000, 222 0x80000C00, 223 0x05400000, 224 0x02480000, 225 0x04000000, 226 0x00080000, 227 0x05400000, 228 0x03C80000, 229 0x05400000, 230 0x03C80000, 231 0x90218000, 232 0x86001800, 233 0x00600240, 234 0x80090218, 235 0x24086001, 236 0x40000600, 237 0x02A00040, 238 0x01E40000, 239 0x02A00000, 240 0x01E40000, 241 0x02A00000, 242 0x01E40000, 243 0x02A00000, 244 0x01E40000, 245 0x4810C000, 246 0x43000C00, 247 0x00300120, 248 0xC004810C, 249 0x12043000, 250 0x20000300, 251 0x00040000, 252 0x50670000, 253 0x00000010, 254 0x24590000, 255 0x00001000, 256 0xA0000034, 257 0x0D000001, 258 0xC0680A28, 259 0x49034030, 260 0x12481A02, 261 0x80A280D0, 262 0x34030C06, 263 0x01A00040, 264 0x280D0002, 265 0x30C0680A, 266 0x02490340, 267 0xD00A281A, 268 0x0680A280, 269 0x10040000, 270 0x00200000, 271 0x10040000, 272 0x00200000, 273 0x15000000, 274 0x0F200000, 275 0x15000000, 276 0x0F200000, 277 0x01FE0000, 278 0x18000000, 279 0x01800902, 280 0x00240860, 281 0x007F8006, 282 0x00000000, 283 0x99300001, 284 0x34343400, 285 0xAA0D4000, 286 0x01C3A800, 287 0xAA0D4000, 288 0x01C3A800, 289 0xAA0D4000, 290 0x01C3A800, 291 0x00040100, 292 0x00000800, 293 0x00000000, 294 0x00001208, 295 0x00482000, 296 0x01000000, 297 0x00000000, 298 0x00410482, 299 0x0006A000, 300 0x0001B400, 301 0x00020000, 302 0x00000400, 303 0x0002A000, 304 0x0001E400, 305 0x5506A000, 306 0x00E1D400, 307 0x00000000, 308 0x2043090C, 309 0x00003001, 310 0x90400000, 311 0x00000000, 312 0x2020C243, 313 0x2A835000, 314 0x0070EA00, 315 0x2A835000, 316 0x0070EA00, 317 0x2A835000, 318 0x0070EA00, 319 0x00010040, 320 0x00000200, 321 0x00000000, 322 0x00000482, 323 0x00120800, 324 0x00002000, 325 0x80000000, 326 0x00104120, 327 0x00000200, 328 0xAC0D5F80, 329 0xFFFFFFFF, 330 0x14F3690D, 331 0x1A041414, 332 0x00D00000, 333 0x18864000, 334 0x49247A06, 335 0xF228A3D5, 336 0xF6D1451E, 337 0x0342E388, 338 0x821A0000, 339 0x0000D000, 340 0x05140680, 341 0xD949247A, 342 0x1EF228A3, 343 0x88F6D145, 344 0x000352E3, 345 0x00080200, 346 0x00001000, 347 0x00080200, 348 0x00001000, 349 0x000A8000, 350 0x00075000, 351 0x541A8000, 352 0x03875001, 353 0x10000000, 354 0x00000000, 355 0x0080C000, 356 0x41000000, 357 0x00003FC2, 358 0x00820000, 359 0xAA0D4000, 360 0x01C3A800, 361 0xAA0D4000, 362 0x01C3A800, 363 0xAA0D4000, 364 0x01C3A800, 365 0x00040100, 366 0x00000800, 367 0x00000000, 368 0x00001208, 369 0x00482000, 370 0x00008000, 371 0x00000000, 372 0x00410482, 373 0x0006A000, 374 0x0001B400, 375 0x00020000, 376 0x00000400, 377 0x00020080, 378 0x00000400, 379 0x5506A000, 380 0x00E1D400, 381 0x00000000, 382 0x0000090C, 383 0x00000010, 384 0x90400000, 385 0x00000000, 386 0x2020C243, 387 0x2A835000, 388 0x0070EA00, 389 0x2A835000, 390 0x0070EA00, 391 0x2A835000, 392 0x0070EA00, 393 0x00015000, 394 0x0000F200, 395 0x00000000, 396 0x00000482, 397 0x86120800, 398 0x00600240, 399 0x80000000, 400 0x00104120, 401 0x00000200, 402 0xAC0D5F80, 403 0xFFFFFFFF, 404 0x14F3690D, 405 0x1A041414, 406 0x00D00000, 407 0x18864000, 408 0x49247A06, 409 0xF3CF23D5, 410 0xF4D1451E, 411 0x034A9248, 412 0x821A038E, 413 0x0000D000, 414 0x00000680, 415 0xD949247A, 416 0x1EF3CF23, 417 0x88F4D145, 418 0x000352E3, 419 0x00080200, 420 0x00001000, 421 0x00080200, 422 0x00001000, 423 0x000A8000, 424 0x00075000, 425 0x541A8000, 426 0x03875001, 427 0x10000000, 428 0x00000000, 429 0x0080C000, 430 0x41000000, 431 0x04000002, 432 0x00820000, 433 0xAA0D4000, 434 0x01C3A800, 435 0xAA0D4000, 436 0x01C3A800, 437 0xAA0D4000, 438 0x01C3A800, 439 0x00040100, 440 0x00000800, 441 0x00000000, 442 0x00001208, 443 0x00482000, 444 0x00008000, 445 0x00000000, 446 0x00410482, 447 0x0006A000, 448 0x0001B400, 449 0x00020000, 450 0x00000400, 451 0x0002A000, 452 0x0001E400, 453 0x5506A000, 454 0x00E1D400, 455 0x00000000, 456 0x2043090C, 457 0x00003001, 458 0x90400000, 459 0x00000000, 460 0x2020C243, 461 0x2A835000, 462 0x0070EA00, 463 0x2A835000, 464 0x0070EA00, 465 0x2A835000, 466 0x0070EA00, 467 0x00010040, 468 0x00000200, 469 0x00000000, 470 0x00000482, 471 0x00120800, 472 0x00002000, 473 0x80000000, 474 0x00104120, 475 0x00000200, 476 0xAC0D5F80, 477 0xFFFFFFFF, 478 0x14F3690D, 479 0x1A041414, 480 0x00D00000, 481 0x18864000, 482 0x49247A06, 483 0xF228A3D9, 484 0xF4D1451E, 485 0x034A9248, 486 0x821A0000, 487 0x0000D000, 488 0x00000680, 489 0xD949247A, 490 0x1EF228A3, 491 0x88F4D145, 492 0x000352E3, 493 0x00080200, 494 0x00001000, 495 0x00080200, 496 0x00001000, 497 0x000A8000, 498 0x00075000, 499 0x541A8000, 500 0x03875001, 501 0x10000000, 502 0x00000000, 503 0x0080C000, 504 0x41000000, 505 0x04000002, 506 0x00820000, 507 0xAA0D4000, 508 0x01C3A800, 509 0xAA0D4000, 510 0x01C3A800, 511 0xAA0D4000, 512 0x01C3A800, 513 0x00040100, 514 0x00000800, 515 0x00000000, 516 0x00001208, 517 0x00482000, 518 0x00008000, 519 0x00000000, 520 0x00410482, 521 0x0006A000, 522 0x0001B400, 523 0x00020000, 524 0x00000400, 525 0x00020080, 526 0x00000400, 527 0x5506A000, 528 0x00E1D400, 529 0x00000000, 530 0x0000090C, 531 0x00000010, 532 0x90400000, 533 0x00000000, 534 0x2020C243, 535 0x2A835000, 536 0x0070EA00, 537 0x2A835000, 538 0x0070EA00, 539 0x2A835000, 540 0x0070EA00, 541 0x00010040, 542 0x00000200, 543 0x00000000, 544 0x00000482, 545 0x00120800, 546 0x00400000, 547 0x80000000, 548 0x00104120, 549 0x00000200, 550 0xAC0D5F80, 551 0xFFFFFFFF, 552 0x14F1690D, 553 0x1A041414, 554 0x00D00000, 555 0x08864000, 556 0x49247A02, 557 0xF3CF23D9, 558 0xF4D1451E, 559 0x0342E388, 560 0x821A0000, 561 0x0000D000, 562 0x00000680, 563 0xD949247A, 564 0x1EF3CF23, 565 0x88F4DE79, 566 0x000342A2, 567 0x00080200, 568 0x00001000, 569 0x00080200, 570 0x00001000, 571 0x000A8000, 572 0x00075000, 573 0x541A8000, 574 0x03875001, 575 0x10000000, 576 0x00000000, 577 0x0080C000, 578 0x41000000, 579 0x04000002, 580 0x00820000, 581 0x00489800, 582 0x801A1A1A, 583 0x00000200, 584 0x80000004, 585 0x00000200, 586 0x80000004, 587 0x00000200, 588 0x80000004, 589 0x00000200, 590 0x00000004, 591 0x00040000, 592 0x10000000, 593 0x00000000, 594 0x00000040, 595 0x00010000, 596 0x40002000, 597 0x00000100, 598 0x40000002, 599 0x00000100, 600 0x40000002, 601 0x00000100, 602 0x40000002, 603 0x00000100, 604 0x00000002, 605 0x00020000, 606 0x08000000, 607 0x00000000, 608 0x00000020, 609 0x00008000, 610 0x20001000, 611 0x00000080, 612 0x20000001, 613 0x00000080, 614 0x20000001, 615 0x00000080, 616 0x20000001, 617 0x00000080, 618 0x00000001, 619 0x00010000, 620 0x04000000, 621 0x00FF0000, 622 0x00000000, 623 0x00004000, 624 0x00000800, 625 0xC0000001, 626 0x00041419, 627 0x40000000, 628 0x04000816, 629 0x000D0000, 630 0x00006800, 631 0x00000340, 632 0xD000001A, 633 0x06800000, 634 0x00340000, 635 0x0001A000, 636 0x00000D00, 637 0x40000068, 638 0x1A000003, 639 0x00D00000, 640 0x00068000, 641 0x00003400, 642 0x000001A0, 643 0x00000401, 644 0x00000008, 645 0x00000401, 646 0x00000008, 647 0x00000401, 648 0x00000008, 649 0x00000401, 650 0x80000008, 651 0x0000007F, 652 0x20000000, 653 0x00000000, 654 0xE0000080, 655 0x0000001F, 656 0x00004000, 657 }; 658 659 660 #endif /* __SOCFPGA_IOCSR_CONFIG_H__ */ 661