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 0x00020000, 35 0x06018000, 36 0x06000000, 37 0x00000018, 38 0x00006018, 39 0x00001000, 40 }; 41 42 const unsigned long iocsr_scan_chain1_table[] = { 43 0x000C0300, 44 0x300C0000, 45 0x30000000, 46 0x000000C0, 47 0x000300C0, 48 0x80008000, 49 0x0000007F, 50 0x0001FE00, 51 0x07F80000, 52 0xE0000000, 53 0x0000001F, 54 0x00004000, 55 0x000300C0, 56 0x0C030000, 57 0x0C000000, 58 0x00000030, 59 0x0000C030, 60 0x00002000, 61 0x06018060, 62 0x00007F80, 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 0x00601806, 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 0x00100000, 101 0x300C0000, 102 0x0FF00000, 103 0x00000000, 104 0x00040000, 105 0x00008000, 106 0x00080000, 107 0x00000000, 108 0x18000000, 109 0x00000060, 110 0x06018060, 111 0x00004000, 112 0x0C0300C0, 113 0x0C030000, 114 0x0C000000, 115 0x00000030, 116 0x0000C030, 117 0x00002000, 118 0x06018060, 119 0x06018000, 120 0x06000018, 121 0x00006018, 122 0x01806018, 123 0x00001000, 124 0x0300C030, 125 0x0300C000, 126 0x0300000C, 127 0x0000300C, 128 0x00C0300C, 129 0x00000800, 130 }; 131 132 const unsigned long iocsr_scan_chain3_table[] = { 133 0x0C420D80, 134 0x082000FF, 135 0x08024001, 136 0x00100000, 137 0x08020000, 138 0x00100000, 139 0x0A800000, 140 0x07900000, 141 0x08020000, 142 0x00100000, 143 0x00000000, 144 0x00000010, 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 0xC0680A28, 185 0x41034030, 186 0x02081A00, 187 0x80A280D0, 188 0x34051406, 189 0x01A02490, 190 0x280D0000, 191 0x30C0680A, 192 0x00000340, 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 0xC0680A28, 259 0x49034030, 260 0x12481A02, 261 0x80A280D0, 262 0x34030C06, 263 0x01A00040, 264 0x280D0002, 265 0x30C0680A, 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 0x14864000, 334 0x69A47A05, 335 0xF228A3D5, 336 0xF6D1451E, 337 0x0352D348, 338 0x821A0000, 339 0x0000D000, 340 0x05140680, 341 0xD569A47A, 342 0x1E8A28A3, 343 0x48F6D145, 344 0x00035292, 345 0x00080200, 346 0x00001000, 347 0x00080200, 348 0x00001000, 349 0x000A8000, 350 0x00075000, 351 0x541A8000, 352 0x03875001, 353 0x0000FF00, 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 0xF8482000, 370 0x00000007, 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 0x04864000, 408 0x69A47A01, 409 0x8A28A3D5, 410 0xF4D1451E, 411 0x0352D348, 412 0x821A028A, 413 0x0000D000, 414 0x00000680, 415 0xD559647A, 416 0x1E8A28A3, 417 0x48F6D145, 418 0x00034AD3, 419 0x00080200, 420 0x00001000, 421 0x00080200, 422 0x00001000, 423 0x000A8000, 424 0x00075000, 425 0x541A8000, 426 0x03875001, 427 0x0000FF00, 428 0x00000000, 429 0x0080C000, 430 0x41000000, 431 0x00003FC2, 432 0x00820000, 433 0x00040100, 434 0x00000800, 435 0x00040100, 436 0x00000800, 437 0x00040100, 438 0x00000800, 439 0x00040100, 440 0x00000800, 441 0x08000000, 442 0x00000000, 443 0xF8000020, 444 0x00000007, 445 0x02000000, 446 0x00400000, 447 0x00020080, 448 0x00000400, 449 0x00020080, 450 0x00000400, 451 0x0002A000, 452 0x0001E400, 453 0x00020080, 454 0x00000400, 455 0x04000000, 456 0xC8800000, 457 0x00003001, 458 0x00004000, 459 0x01000000, 460 0x00200000, 461 0x00010040, 462 0x00000200, 463 0x00010040, 464 0x00000200, 465 0x00010040, 466 0x00000200, 467 0x00010040, 468 0x00000200, 469 0x02000000, 470 0x00000000, 471 0xFE000008, 472 0x00000001, 473 0x00800000, 474 0x00100000, 475 0x00000200, 476 0x08283380, 477 0x00000000, 478 0x00122C80, 479 0x1A000008, 480 0x00D00000, 481 0x00068000, 482 0x00003400, 483 0x000001A0, 484 0x6800000D, 485 0x03400000, 486 0x001A0000, 487 0x0000D000, 488 0x00000680, 489 0xA0000034, 490 0x0D000001, 491 0x00680000, 492 0x00034000, 493 0x00080200, 494 0x00001000, 495 0x00080200, 496 0x00001000, 497 0x00080200, 498 0x00001000, 499 0x00080200, 500 0x00001000, 501 0x0000FF00, 502 0x00000000, 503 0x00000040, 504 0x00010000, 505 0x00003FC0, 506 0x00800000, 507 0x00040100, 508 0x00000800, 509 0x00040100, 510 0x00000800, 511 0x00040100, 512 0x00000800, 513 0x00040100, 514 0x00000800, 515 0x08000000, 516 0x00000000, 517 0xF8000020, 518 0x00000007, 519 0x02000000, 520 0x00400000, 521 0x00020080, 522 0x00000400, 523 0x00020080, 524 0x00000400, 525 0x00020080, 526 0x00000400, 527 0x00020080, 528 0x00000400, 529 0x04000000, 530 0x00FF0000, 531 0x00000000, 532 0x00004000, 533 0x01000000, 534 0x00200000, 535 0x00010040, 536 0x00000200, 537 0x00010040, 538 0x00000200, 539 0x00010040, 540 0x00000200, 541 0x00010040, 542 0x00000200, 543 0x02000000, 544 0x00000004, 545 0x00001008, 546 0x00402000, 547 0x00800000, 548 0x00100001, 549 0x00000200, 550 0x08283380, 551 0x00000000, 552 0x00102C80, 553 0x1A000008, 554 0x00D00000, 555 0x00068000, 556 0x00003400, 557 0x000001A0, 558 0x6800000D, 559 0x03400000, 560 0x001A0000, 561 0x0000D000, 562 0x00000680, 563 0xA0000034, 564 0x0D000001, 565 0x00680000, 566 0x00034000, 567 0x00080200, 568 0x00001000, 569 0x00080200, 570 0x00001000, 571 0x00080200, 572 0x00001000, 573 0x00080200, 574 0x00001000, 575 0x0000FF00, 576 0x00000000, 577 0x00000040, 578 0x00010000, 579 0x00003FC0, 580 0x00800000, 581 0x00489800, 582 0x9E1A0000, 583 0x00000200, 584 0x80000004, 585 0x00000200, 586 0x80000004, 587 0x00000200, 588 0x80000004, 589 0x00000200, 590 0xC0000004, 591 0x0000003F, 592 0x0000FF00, 593 0x03FC0000, 594 0xF0000000, 595 0x0000000F, 596 0x40002000, 597 0x00000100, 598 0x40000002, 599 0x00000100, 600 0x40000002, 601 0x00000100, 602 0x40000002, 603 0x00000100, 604 0xE0000002, 605 0x0000001F, 606 0x00007F80, 607 0x01FE0000, 608 0xF8000000, 609 0x00000007, 610 0x20001000, 611 0x00000080, 612 0x20000001, 613 0x00000080, 614 0x20000001, 615 0x00000080, 616 0x20000001, 617 0x00000080, 618 0xF0000001, 619 0x0000000F, 620 0x00003FC0, 621 0x00FF0000, 622 0xFC000000, 623 0x00000003, 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 0x0001FE00, 653 0x07F80000, 654 0xE0000000, 655 0x0000001F, 656 0x00004000, 657 }; 658 659 660 #endif /* __SOCFPGA_IOCSR_CONFIG_H__ */ 661