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 0x00060180, 23 0x18060000, 24 0x18000000, 25 0x00018060, 26 0x00000000, 27 0x00004000, 28 0x000300C0, 29 0x0C030000, 30 0x0C000000, 31 0x00000030, 32 0x0000C030, 33 0x00002000, 34 0x00018060, 35 0x06018000, 36 0x06000000, 37 0x00000018, 38 0x00006018, 39 0x00001000, 40 }; 41 42 const unsigned long iocsr_scan_chain1_table[] = { 43 0x00100000, 44 0x300C0000, 45 0x300000C0, 46 0x000000C0, 47 0x000300C0, 48 0x00008000, 49 0x00080000, 50 0x20000000, 51 0x00000000, 52 0x00000080, 53 0x00020000, 54 0x00004000, 55 0x000300C0, 56 0x10000000, 57 0x0C000000, 58 0x00000030, 59 0x0000C030, 60 0x00002000, 61 0x06018060, 62 0x06018000, 63 0x01FE0000, 64 0xF8000000, 65 0x00000007, 66 0x00001000, 67 0x0000C030, 68 0x0300C000, 69 0x03000000, 70 0x0000300C, 71 0x0000300C, 72 0x00000800, 73 0x00000000, 74 0x00000000, 75 0x01800000, 76 0x00000006, 77 0x00002000, 78 0x00000400, 79 0x00000000, 80 0x00C03000, 81 0x00000003, 82 0x00000000, 83 0x00000000, 84 0x00000200, 85 0x00601806, 86 0x00000000, 87 0x80600000, 88 0x80000601, 89 0x00000601, 90 0x00000100, 91 0x00300C03, 92 0xC0300C00, 93 0xC0300000, 94 0xC0000300, 95 0x000C0300, 96 0x00000080, 97 }; 98 99 const unsigned long iocsr_scan_chain2_table[] = { 100 0x300C0300, 101 0x00000000, 102 0x0FF00000, 103 0x00000000, 104 0x0C0300C0, 105 0x00008000, 106 0x18060180, 107 0x18060000, 108 0x18000000, 109 0x00018060, 110 0x00018060, 111 0x00004000, 112 0x000300C0, 113 0x0C030000, 114 0x00000030, 115 0x00000000, 116 0x0300C030, 117 0x00002000, 118 0x00018060, 119 0x06018000, 120 0x06000000, 121 0x00000018, 122 0x00006018, 123 0x00001000, 124 0x0000C030, 125 0x00000000, 126 0x03000000, 127 0x0000000C, 128 0x00C0300C, 129 0x00000800, 130 }; 131 132 const unsigned long iocsr_scan_chain3_table[] = { 133 0x0C420D80, 134 0x082000FF, 135 0x0A804001, 136 0x07900000, 137 0x08020000, 138 0x00100000, 139 0x0A800000, 140 0x07900000, 141 0x08020000, 142 0x00100000, 143 0xC8800000, 144 0x00003001, 145 0x00C00722, 146 0x00000000, 147 0x00000021, 148 0x82000004, 149 0x05400000, 150 0x03C80000, 151 0x04010000, 152 0x00080000, 153 0x05400000, 154 0x03C80000, 155 0x05400000, 156 0x03C80000, 157 0xE4400000, 158 0x00001800, 159 0x00600391, 160 0x800E4400, 161 0x00000001, 162 0x40000002, 163 0x02A00000, 164 0x01E40000, 165 0x02A00000, 166 0x01E40000, 167 0x02A00000, 168 0x01E40000, 169 0x02A00000, 170 0x01E40000, 171 0x72200000, 172 0x80000C00, 173 0x003001C8, 174 0xC0072200, 175 0x1C880000, 176 0x20000300, 177 0x00040000, 178 0x50670000, 179 0x00000010, 180 0x24590000, 181 0x00001000, 182 0xA0000034, 183 0x0D000001, 184 0x40680208, 185 0x41034051, 186 0x12481A00, 187 0x802080D0, 188 0x34051406, 189 0x01A02490, 190 0x080D0000, 191 0x51406802, 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 0x00000000, 205 0x01800E44, 206 0x00391000, 207 0x007F8006, 208 0x00000000, 209 0x0A800001, 210 0x07900000, 211 0x0A800000, 212 0x07900000, 213 0x0A800000, 214 0x07900000, 215 0x08020000, 216 0x00100000, 217 0xC8800000, 218 0x00003001, 219 0x00C00722, 220 0x00000FF0, 221 0x72200000, 222 0x80000C00, 223 0x05400000, 224 0x02480000, 225 0x04000000, 226 0x00080000, 227 0x05400000, 228 0x03C80000, 229 0x05400000, 230 0x03C80000, 231 0x6A1C0000, 232 0x00001800, 233 0x00600391, 234 0x800E4400, 235 0x1A870001, 236 0x40000600, 237 0x02A00040, 238 0x01E40000, 239 0x02A00000, 240 0x01E40000, 241 0x02A00000, 242 0x01E40000, 243 0x02A00000, 244 0x01E40000, 245 0x72200000, 246 0x80000C00, 247 0x003001C8, 248 0xC0072200, 249 0x1C880000, 250 0x20000300, 251 0x00040000, 252 0x50670000, 253 0x00000010, 254 0x24590000, 255 0x00001000, 256 0xA0000034, 257 0x0D000001, 258 0x40680208, 259 0x49034051, 260 0x12481A02, 261 0x80A280D0, 262 0x34030C06, 263 0x01A00040, 264 0x280D0002, 265 0x5140680A, 266 0x02490340, 267 0xD012481A, 268 0x0680A280, 269 0x10040000, 270 0x00200000, 271 0x10040000, 272 0x00200000, 273 0x15000000, 274 0x0F200000, 275 0x15000000, 276 0x0F200000, 277 0x01FE0000, 278 0x00000000, 279 0x01800E44, 280 0x00391000, 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 0xC880090C, 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 0x04864000, 334 0x59647A01, 335 0xD32CA3DE, 336 0xF551451E, 337 0x034CD348, 338 0x821A0000, 339 0x0000D000, 340 0x05140680, 341 0xD669A47A, 342 0x1ED32CA3, 343 0x48F55E79, 344 0x00034C92, 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 0x00120800, 398 0x00600391, 399 0x80000000, 400 0x00104120, 401 0x00000200, 402 0xAC0D5F80, 403 0xFFFFFFFF, 404 0x14F3690D, 405 0x1A041414, 406 0x00D00000, 407 0x14864000, 408 0x59647A05, 409 0x9228A3DE, 410 0xF65E791E, 411 0x034CD348, 412 0x821A0186, 413 0x0000D000, 414 0x00000680, 415 0xD669A47A, 416 0x1E9228A3, 417 0x48F65E79, 418 0x00034CD3, 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 0xC880090C, 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 0x0C864000, 482 0x79E47A03, 483 0xB2AAA3D1, 484 0xF551451E, 485 0x035CD348, 486 0x821A0000, 487 0x0000D000, 488 0x00000680, 489 0xD159647A, 490 0x1ED32CA3, 491 0x48F55145, 492 0x00035CD3, 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 0x04864000, 556 0x69A47A01, 557 0x9228A3D6, 558 0xF65E791E, 559 0x034C9248, 560 0x821A0000, 561 0x0000D000, 562 0x00000680, 563 0xDE59647A, 564 0x1ED32CA3, 565 0x48F55E79, 566 0x00034CD3, 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