1 /* SPDX-License-Identifier: BSD-3-Clause */ 2 /* 3 * Altera SoCFPGA IOCSR configuration 4 */ 5 6 #ifndef __SOCFPGA_IOCSR_CONFIG_H__ 7 #define __SOCFPGA_IOCSR_CONFIG_H__ 8 9 #define CONFIG_HPS_IOCSR_SCANCHAIN0_LENGTH 1337 10 #define CONFIG_HPS_IOCSR_SCANCHAIN1_LENGTH 1719 11 #define CONFIG_HPS_IOCSR_SCANCHAIN2_LENGTH 1528 12 #define CONFIG_HPS_IOCSR_SCANCHAIN3_LENGTH 16766 13 14 const unsigned long iocsr_scan_chain0_table[] = { 15 0x00000000, 16 0x00000000, 17 0x00000000, 18 0x00000000, 19 0x00000000, 20 0x00008000, 21 0x00060180, 22 0x18060000, 23 0x18000060, 24 0x00018060, 25 0x06018060, 26 0x00004000, 27 0x0C0300C0, 28 0x0C030000, 29 0x00000030, 30 0x00000000, 31 0x00000000, 32 0x00002000, 33 0x00000000, 34 0x00000000, 35 0x06000000, 36 0x00006018, 37 0x01806018, 38 0x00001000, 39 0x0000C030, 40 0x04000000, 41 0x03000000, 42 0x0000300C, 43 0x00000000, 44 0x00000800, 45 0x00006018, 46 0x01806000, 47 0x01800000, 48 0x00000006, 49 0x00001806, 50 0x00000400, 51 0x0000300C, 52 0x00C03000, 53 0x00C00000, 54 0x00000003, 55 0x00000C03, 56 0x00000200, 57 }; 58 59 const unsigned long iocsr_scan_chain1_table[] = { 60 0x00100000, 61 0x300C0000, 62 0x300000C0, 63 0x000000C0, 64 0x000300C0, 65 0x00008000, 66 0x00060180, 67 0x18060000, 68 0x18000000, 69 0x00000060, 70 0x00018060, 71 0x00004000, 72 0x000300C0, 73 0x10000000, 74 0x0C000000, 75 0x00000030, 76 0x0000C030, 77 0x00002000, 78 0x06018060, 79 0x06018000, 80 0x01FE0000, 81 0xF8000000, 82 0x00000007, 83 0x00001000, 84 0x0000C030, 85 0x0300C000, 86 0x03000000, 87 0x0000300C, 88 0x0000300C, 89 0x00000800, 90 0x00006018, 91 0x01806000, 92 0x01800000, 93 0x00000006, 94 0x00002000, 95 0x00000400, 96 0x0000300C, 97 0x01000000, 98 0x00000000, 99 0x00000004, 100 0x00000C03, 101 0x00000200, 102 0x00001806, 103 0x00800000, 104 0x00000000, 105 0x00000002, 106 0x00000800, 107 0x00000100, 108 0x00001000, 109 0x00400000, 110 0xC0300000, 111 0x00000000, 112 0x00000400, 113 0x00000080, 114 }; 115 116 const unsigned long iocsr_scan_chain2_table[] = { 117 0x00100000, 118 0x40000000, 119 0x00000000, 120 0x00000100, 121 0x00040000, 122 0x00008000, 123 0x18060180, 124 0x20000000, 125 0x00000000, 126 0x00000080, 127 0x00020000, 128 0x00004000, 129 0x00040000, 130 0x10000000, 131 0x00000000, 132 0x00000000, 133 0x00010000, 134 0x00002000, 135 0x10038060, 136 0x00000000, 137 0x00000000, 138 0x00000020, 139 0x01806018, 140 0x00001000, 141 0x00010000, 142 0x04000000, 143 0x03000000, 144 0x0000801C, 145 0x00004000, 146 0x00000800, 147 0x01806018, 148 0x02000000, 149 0x00000000, 150 0x00000008, 151 0x00002000, 152 0x00000400, 153 0x00C0300C, 154 0x00C03000, 155 0x00C00003, 156 0x00000C03, 157 0x00300C03, 158 0x00000200, 159 0x00601806, 160 0x80601800, 161 0x80600001, 162 0x80000601, 163 0x00180601, 164 0x00000100, 165 }; 166 167 const unsigned long iocsr_scan_chain3_table[] = { 168 0x2C820D80, 169 0x082000FF, 170 0x0A804001, 171 0x07900000, 172 0x08020000, 173 0x00100000, 174 0x0A800000, 175 0x07900000, 176 0x08020000, 177 0x00100000, 178 0xC8800000, 179 0x00003001, 180 0x00C00722, 181 0x00000000, 182 0x00000021, 183 0x82000004, 184 0x05400000, 185 0x03C80000, 186 0x04010000, 187 0x00080000, 188 0x05400000, 189 0x03C80000, 190 0x05400000, 191 0x03C80000, 192 0xE4400000, 193 0x00001800, 194 0x00600391, 195 0x800E4400, 196 0x00000001, 197 0x40000002, 198 0x02A00000, 199 0x01E40000, 200 0x02A00000, 201 0x01E40000, 202 0x02A00000, 203 0x01E40000, 204 0x02A00000, 205 0x01E40000, 206 0x72200000, 207 0x80000C00, 208 0x003001C8, 209 0xC0072200, 210 0x1C880000, 211 0x20000300, 212 0x00040000, 213 0x50670000, 214 0x00000050, 215 0x24590000, 216 0x00001000, 217 0xA0000034, 218 0x0D000001, 219 0x906808A2, 220 0xA2834024, 221 0x05141A00, 222 0x808A20D0, 223 0x34024906, 224 0x01A00A28, 225 0xA20D0000, 226 0x24906808, 227 0x00A28340, 228 0xD000001A, 229 0x06808A20, 230 0x10040000, 231 0x00200000, 232 0x10040000, 233 0x00200000, 234 0x15000000, 235 0x0F200000, 236 0x15000000, 237 0x0F200000, 238 0x01FE0000, 239 0x00000000, 240 0x01800E44, 241 0x00391000, 242 0x007F8006, 243 0x00000000, 244 0x0A800001, 245 0x07900000, 246 0x0A800000, 247 0x07900000, 248 0x0A800000, 249 0x07900000, 250 0x08020000, 251 0x00100000, 252 0xC8800000, 253 0x00003001, 254 0x00C00722, 255 0x00000FF0, 256 0x72200000, 257 0x80000C00, 258 0x05400000, 259 0x02480000, 260 0x04000000, 261 0x00080000, 262 0x05400000, 263 0x03C80000, 264 0x05400000, 265 0x03C80000, 266 0x6A1C0000, 267 0x00001800, 268 0x00600391, 269 0x800E4400, 270 0x1A870001, 271 0x40000600, 272 0x02A00040, 273 0x01E40000, 274 0x02A00000, 275 0x01E40000, 276 0x02A00000, 277 0x01E40000, 278 0x02A00000, 279 0x01E40000, 280 0x72200000, 281 0x80000C00, 282 0x003001C8, 283 0xC0072200, 284 0x1C880000, 285 0x20000300, 286 0x00040000, 287 0x50670000, 288 0x00000050, 289 0x24590000, 290 0x00001000, 291 0xA0000034, 292 0x0D000001, 293 0x906808A2, 294 0xA2834024, 295 0x05141A00, 296 0x808A20D0, 297 0x34024906, 298 0x01A00040, 299 0xA20D0002, 300 0x24906808, 301 0x00A28340, 302 0xD005141A, 303 0x06808A20, 304 0x10040000, 305 0x00200000, 306 0x10040000, 307 0x00200000, 308 0x15000000, 309 0x0F200000, 310 0x15000000, 311 0x0F200000, 312 0x01FE0000, 313 0x00000000, 314 0x01800E44, 315 0x00391000, 316 0x007F8006, 317 0x00000000, 318 0x99300001, 319 0x34343400, 320 0xAA0D4000, 321 0x01C3A810, 322 0xAA0D4000, 323 0x01C3A808, 324 0xAA0D4000, 325 0x01C3A810, 326 0x00040100, 327 0x00000800, 328 0x00000000, 329 0x00001208, 330 0x00482000, 331 0x01000000, 332 0x00000000, 333 0x00410482, 334 0x0006A000, 335 0x0001B400, 336 0x00020000, 337 0x00000400, 338 0x0002A000, 339 0x0001E400, 340 0x5506A000, 341 0x00E1D404, 342 0x00000000, 343 0xC880090C, 344 0x00003001, 345 0x90400000, 346 0x00000000, 347 0x2020C243, 348 0x2A835000, 349 0x0070EA04, 350 0x2A835000, 351 0x0070EA02, 352 0x2A835000, 353 0x0070EA04, 354 0x00010040, 355 0x00000200, 356 0x00000000, 357 0x00000482, 358 0x00120800, 359 0x00002000, 360 0x80000000, 361 0x00104120, 362 0x00000200, 363 0xAC055F80, 364 0xFFFFFFFF, 365 0x14F3690D, 366 0x1A041414, 367 0x00D00000, 368 0x14864000, 369 0x59647A05, 370 0xBA28A3D8, 371 0xF511451E, 372 0x0341D348, 373 0x821A0000, 374 0x0000D000, 375 0x04510680, 376 0xD859647A, 377 0x1EBA28A3, 378 0x48F51145, 379 0x000341D3, 380 0x00080200, 381 0x00001000, 382 0x00080200, 383 0x00001000, 384 0x000A8000, 385 0x00075000, 386 0x541A8000, 387 0x03875011, 388 0x10000000, 389 0x00000000, 390 0x0080C000, 391 0x41000000, 392 0x00003FC2, 393 0x00820000, 394 0xAA0D4000, 395 0x01C3A810, 396 0xAA0D4000, 397 0x01C3A808, 398 0xAA0D4000, 399 0x01C3A810, 400 0x00040100, 401 0x00000800, 402 0x00000000, 403 0x00001208, 404 0x00482000, 405 0x00008000, 406 0x00000000, 407 0x00410482, 408 0x0006A000, 409 0x0001B400, 410 0x00020000, 411 0x00000400, 412 0x00020080, 413 0x00000400, 414 0x5506A000, 415 0x00E1D404, 416 0x00000000, 417 0x0000090C, 418 0x00000010, 419 0x90400000, 420 0x00000000, 421 0x2020C243, 422 0x2A835000, 423 0x0070EA04, 424 0x2A835000, 425 0x0070EA02, 426 0x2A835000, 427 0x0070EA04, 428 0x00015000, 429 0x0000F200, 430 0x00000000, 431 0x00000482, 432 0x00120800, 433 0x00600391, 434 0x80000000, 435 0x00104120, 436 0x00000200, 437 0xAC055F80, 438 0xFFFFFFFF, 439 0x14F3690D, 440 0x1A041414, 441 0x00D00000, 442 0x14864000, 443 0x59647A05, 444 0xBA28A3D8, 445 0xF511451E, 446 0x8341D348, 447 0x821A0124, 448 0x0000D000, 449 0x00000680, 450 0xD859647A, 451 0x1EBA28A3, 452 0x48F51145, 453 0x000341D3, 454 0x00080200, 455 0x00001000, 456 0x00080200, 457 0x00001000, 458 0x000A8000, 459 0x00075000, 460 0x541A8000, 461 0x03875011, 462 0x10000000, 463 0x00000000, 464 0x0080C000, 465 0x41000000, 466 0x04000002, 467 0x00820000, 468 0xAA0D4000, 469 0x01C3A810, 470 0xAA0D4000, 471 0x01C3A808, 472 0xAA0D4000, 473 0x01C3A810, 474 0x00040100, 475 0x00000800, 476 0x00000000, 477 0x00001208, 478 0x00482000, 479 0x00008000, 480 0x00000000, 481 0x00410482, 482 0x0006A000, 483 0x0001B400, 484 0x00020000, 485 0x00000400, 486 0x0002A000, 487 0x0001E400, 488 0x5506A000, 489 0x00E1D404, 490 0x00000000, 491 0xC880090C, 492 0x00003001, 493 0x90400000, 494 0x00000000, 495 0x2020C243, 496 0x2A835000, 497 0x0070EA04, 498 0x2A835000, 499 0x0070EA02, 500 0x2A835000, 501 0x0070EA04, 502 0x00010040, 503 0x00000200, 504 0x00000000, 505 0x00000482, 506 0x00120800, 507 0x00002000, 508 0x80000000, 509 0x00104120, 510 0x00000200, 511 0xAC055F80, 512 0xFFFFFFFF, 513 0x14F3690D, 514 0x1A041414, 515 0x00D00000, 516 0x14864000, 517 0x59647A05, 518 0xBA28A3D8, 519 0xF511451E, 520 0x0341D348, 521 0x821A0000, 522 0x0000D000, 523 0x00000680, 524 0xD859647A, 525 0x1EBA28A3, 526 0x48F51145, 527 0x000341D3, 528 0x00080200, 529 0x00001000, 530 0x00080200, 531 0x00001000, 532 0x000A8000, 533 0x00075000, 534 0x541A8000, 535 0x03875011, 536 0x10000000, 537 0x00000000, 538 0x0080C000, 539 0x41000000, 540 0x04000002, 541 0x00820000, 542 0xAA0D4000, 543 0x01C3A810, 544 0xAA0D4000, 545 0x01C3A808, 546 0xAA0D4000, 547 0x01C3A810, 548 0x00040100, 549 0x00000800, 550 0x00000000, 551 0x00001208, 552 0x00482000, 553 0x00008000, 554 0x00000000, 555 0x00410482, 556 0x0006A000, 557 0x0001B400, 558 0x00020000, 559 0x00000400, 560 0x00020080, 561 0x00000400, 562 0x5506A000, 563 0x00E1D404, 564 0x00000000, 565 0x0000090C, 566 0x00000010, 567 0x90400000, 568 0x00000000, 569 0x2020C243, 570 0x2A835000, 571 0x0070EA04, 572 0x2A835000, 573 0x0070EA02, 574 0x2A835000, 575 0x0070EA04, 576 0x00010040, 577 0x00000200, 578 0x00000000, 579 0x00000482, 580 0x00120800, 581 0x00400000, 582 0x80000000, 583 0x00104120, 584 0x00000200, 585 0xAC055F80, 586 0xFFFFFFFF, 587 0x14F1690D, 588 0x1A041414, 589 0x00D00000, 590 0x14864000, 591 0x59647A05, 592 0xBA28A3D8, 593 0xF511451E, 594 0x0341D348, 595 0x821A0000, 596 0x0000D000, 597 0x00000680, 598 0xD859647A, 599 0x1EBA28A3, 600 0x48F51145, 601 0x000341D3, 602 0x00080200, 603 0x00001000, 604 0x00080200, 605 0x00001000, 606 0x000A8000, 607 0x00075000, 608 0x541A8000, 609 0x03875011, 610 0x10000000, 611 0x00000000, 612 0x0080C000, 613 0x41000000, 614 0x04000002, 615 0x00820000, 616 0x00481800, 617 0x001A1A1A, 618 0x085506A0, 619 0x0000E1D4, 620 0x045506A0, 621 0x0000E1D4, 622 0x085506A0, 623 0x8000E1D4, 624 0x00000200, 625 0x00000004, 626 0x04000000, 627 0x00000009, 628 0x00002410, 629 0x00000040, 630 0x41000000, 631 0x00002082, 632 0x00000350, 633 0x000000DA, 634 0x00000100, 635 0x40000002, 636 0x00000100, 637 0x00000002, 638 0x022A8350, 639 0x000070EA, 640 0x86000000, 641 0x08000004, 642 0x00000000, 643 0x00482000, 644 0x21800000, 645 0x00101061, 646 0x021541A8, 647 0x00003875, 648 0x011541A8, 649 0x00003875, 650 0x021541A8, 651 0x20003875, 652 0x00000080, 653 0x00000001, 654 0x41000000, 655 0x00000002, 656 0x00FF0904, 657 0x00000000, 658 0x90400000, 659 0x00000820, 660 0xC0000001, 661 0xFFD602AF, 662 0x86FFFFFF, 663 0x0A0A78B4, 664 0x000D020A, 665 0x00006800, 666 0x028A4320, 667 0xEC2CB23D, 668 0x8F5D1451, 669 0xA47A88A2, 670 0x0001A0E9, 671 0x00410D00, 672 0x40000068, 673 0x3D000003, 674 0x51EC2CB2, 675 0xA28F5D14, 676 0xE9A47A88, 677 0x000001A0, 678 0x00000401, 679 0x00000008, 680 0x00000401, 681 0x00000008, 682 0x00000540, 683 0x000003A8, 684 0x08AA0D40, 685 0x8001C3A8, 686 0x0000007F, 687 0x00000000, 688 0x00004060, 689 0xE1208000, 690 0x0000001F, 691 0x00004100, 692 }; 693 694 695 #endif /* __SOCFPGA_IOCSR_CONFIG_H__ */ 696