blob: 7640c56db16665f488f0d7af4b06653029377e38 [file] [log] [blame]
Holger Brunckddef8892020-02-19 19:55:14 +01001/* 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
14const unsigned long iocsr_scan_chain0_table[] = {
15 0x00100000,
16 0x40000000,
17 0x00000000,
18 0x00000100,
19 0x00040000,
20 0x00008000,
21 0x00080000,
22 0x20000000,
23 0x00000000,
24 0x00000080,
25 0x00020000,
26 0x00004000,
27 0x00040000,
28 0x10000000,
29 0x00000000,
30 0x00000040,
31 0x00010000,
32 0x00002000,
33 0x00000000,
34 0x00000000,
35 0x00000000,
36 0x00000020,
37 0x00008000,
38 0x00001000,
39 0x00000000,
40 0x0300C000,
41 0x0000000C,
42 0x00000000,
43 0x00000000,
44 0x00000800,
45 0x01806018,
46 0x00000000,
47 0x01800000,
48 0x00001806,
49 0x00001806,
50 0x00000400,
51 0x00C0300C,
52 0x00C03000,
53 0x00C00003,
54 0x00000C03,
55 0x00300C03,
56 0x00000200,
57};
58
59const unsigned long iocsr_scan_chain1_table[] = {
60 0x00100000,
61 0x40000000,
62 0x00000000,
63 0x00000100,
64 0x00040000,
65 0x00008000,
66 0x00060180,
67 0x18060000,
68 0x00000000,
69 0x00000080,
70 0x00020000,
71 0x00004000,
72 0x00040000,
73 0x10000000,
74 0x00000000,
75 0x00000040,
76 0x00010000,
77 0x00002000,
78 0x00020000,
79 0x08000000,
80 0x01FE0000,
81 0xF8000000,
82 0x00000007,
83 0x00001000,
84 0x00010000,
85 0x04000000,
86 0x00000000,
87 0x00000010,
88 0x00004000,
89 0x00000800,
90 0x00006018,
91 0x01806000,
92 0x00000006,
93 0x00000008,
94 0x00601806,
95 0x00000400,
96 0x0000300C,
97 0x00C03000,
98 0x00C00000,
99 0x00000003,
100 0x00000C03,
101 0x00000200,
102 0x00000000,
103 0x00601800,
104 0x80600000,
105 0x80000001,
106 0x00000601,
107 0x00000100,
108 0x00300C03,
109 0xC0300C00,
110 0xC0300000,
111 0xC0000300,
112 0x000C0300,
113 0x00000080,
114};
115
116const unsigned long iocsr_scan_chain2_table[] = {
117 0x00100000,
118 0x40000000,
119 0x00000000,
120 0x00000100,
121 0x00040000,
122 0x00008000,
123 0x00080000,
124 0x20000000,
125 0x00000000,
126 0x00000080,
127 0x00020000,
128 0x00004000,
129 0x00040000,
130 0x10000000,
131 0x00000000,
132 0x00000040,
133 0x00010000,
134 0x00002000,
135 0x00018060,
136 0x08000000,
137 0x00000000,
138 0x00000020,
139 0x00008000,
140 0x00001000,
141 0x0300C030,
142 0x00000000,
143 0x03000000,
144 0x0000000C,
145 0x00C0300C,
146 0x00000800,
147 0x01806018,
148 0x01806000,
149 0x00000006,
150 0x00000000,
151 0x00601806,
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
167const unsigned long iocsr_scan_chain3_table[] = {
168 0x2CC20D80,
169 0x082000FF,
170 0x08028001,
171 0x00100000,
172 0x08020000,
173 0x00100000,
174 0x0A800000,
175 0x07900000,
176 0x08020000,
177 0x00100000,
178 0x00000000,
179 0xC0000010,
180 0x00C00512,
181 0x00000000,
182 0x00000021,
183 0x82000004,
184 0x05400000,
185 0x03C80000,
186 0x04010000,
187 0x00080000,
188 0x05400000,
189 0x03C80000,
190 0x05400000,
191 0x03C80000,
192 0xA2580000,
193 0x60001800,
194 0x00600289,
195 0x800A2580,
196 0x00000001,
197 0x40000002,
198 0x02A00000,
199 0x01E40000,
200 0x02A00000,
201 0x01E40000,
202 0x02A00000,
203 0x01E40000,
204 0x02A00000,
205 0x01E40000,
206 0x512C0000,
207 0xB0000C00,
208 0x00300144,
209 0xC00512C0,
210 0x144B0000,
211 0x20000300,
212 0x00040000,
213 0x50670000,
214 0x00000050,
215 0x24590000,
216 0x00001000,
217 0xA0000034,
218 0x0D000001,
219 0xA0680514,
220 0xC3034028,
221 0x06181A00,
222 0x805140D0,
223 0x34069A06,
224 0x01A034D0,
225 0x240D0000,
226 0x28A06809,
227 0x00000340,
228 0xD000001A,
229 0x06809240,
230 0x10040000,
231 0x00200000,
232 0x10040000,
233 0x00200000,
234 0x15000000,
235 0x0F200000,
236 0x15000000,
237 0x0F200000,
238 0x01FE0000,
239 0x80000000,
240 0x01800A25,
241 0x00289600,
242 0x007F8006,
243 0x00000000,
244 0x0A800001,
245 0x07900000,
246 0x0A800000,
247 0x07900000,
248 0x0A800000,
249 0x07900000,
250 0x08020000,
251 0x00100000,
252 0x44B00000,
253 0xC0003001,
254 0x00C00512,
255 0x00000FF0,
256 0x512C0000,
257 0x80000C00,
258 0x05400000,
259 0x02480000,
260 0x04000000,
261 0x00080000,
262 0x05400000,
263 0x03C80000,
264 0x05400000,
265 0x03C80000,
266 0x581D8000,
267 0x60001800,
268 0x00600289,
269 0x800A2580,
270 0x16076001,
271 0x40000600,
272 0x02A00040,
273 0x01E40000,
274 0x02A00000,
275 0x01E40000,
276 0x02A00000,
277 0x01E40000,
278 0x02A00000,
279 0x01E40000,
280 0x512C0000,
281 0xB0000C00,
282 0x00300144,
283 0xC00512C0,
284 0x144B0000,
285 0x20000300,
286 0x00040000,
287 0x50670000,
288 0x00000050,
289 0x24590000,
290 0x00001000,
291 0xA0000034,
292 0x0D000001,
293 0xA0680514,
294 0x4D034028,
295 0x1A681A03,
296 0x805140D0,
297 0x34069A06,
298 0x01A00020,
299 0x240D0001,
300 0x49206809,
301 0x034D0340,
302 0xD01A681A,
303 0x06805140,
304 0x10040000,
305 0x00200000,
306 0x10040000,
307 0x00200000,
308 0x15000000,
309 0x0F200000,
310 0x15000000,
311 0x0F200000,
312 0x01FE0000,
313 0x80000000,
314 0x01800A25,
315 0x00289600,
316 0x007F8006,
317 0x00000000,
318 0x99300001,
319 0x34343400,
320 0xAA0D4000,
321 0x01C3A800,
322 0xAA0D4000,
323 0x01C3A800,
324 0xAA0D4000,
325 0x01C3A800,
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 0x00E1D400,
342 0x00000000,
343 0x44B0090C,
344 0x00003001,
345 0x90400000,
346 0x00000000,
347 0x2020C243,
348 0x2A835000,
349 0x0070EA00,
350 0x2A835000,
351 0x0070EA00,
352 0x2A835000,
353 0x0070EA00,
354 0x00010040,
355 0x00000200,
356 0x00000000,
357 0x00000482,
358 0x00120800,
359 0x00002000,
360 0x80000000,
361 0x00104120,
362 0x00000200,
363 0xAC0D5F80,
364 0xFFFFFFFF,
365 0x14F3690D,
366 0x1A041414,
367 0x00D00000,
368 0x1C864000,
369 0x45147A07,
370 0xA228A3DA,
371 0xF491451E,
372 0x0358D348,
373 0x821A0000,
374 0x0000D000,
375 0x028A0680,
376 0xDA79E47A,
377 0x1EA228A3,
378 0xC8F49965,
379 0x000344B2,
380 0x00080000,
381 0x00001000,
382 0x00080200,
383 0x00001000,
384 0x000A8000,
385 0x00075000,
386 0x541A8000,
387 0x03875001,
388 0x00000000,
389 0x00000020,
390 0x0080C000,
391 0x41000000,
392 0x00003FC2,
393 0x00820000,
394 0xAA0D4000,
395 0x01C3A800,
396 0xAA0D4000,
397 0x01C3A800,
398 0xAA0D4000,
399 0x01C3A800,
400 0x00040000,
401 0x00000800,
402 0x00000000,
403 0x00001208,
404 0x00482000,
405 0x01000000,
406 0x00000000,
407 0x00410482,
408 0x0006A000,
409 0x0001B400,
410 0x00020000,
411 0x00000400,
412 0x00020080,
413 0x00000400,
414 0x5506A000,
415 0x00E1D400,
416 0x00000000,
417 0x0000090C,
418 0x00000010,
419 0x90400000,
420 0x00000000,
421 0x2020C243,
422 0x2A835000,
423 0x0070EA00,
424 0x2A835000,
425 0x0070EA00,
426 0x2A835000,
427 0x0070EA00,
428 0x00015000,
429 0x0000F200,
430 0x00000000,
431 0x00000482,
432 0x60120800,
433 0x00600289,
434 0x80000000,
435 0x00104120,
436 0x00000200,
437 0xAC0D5F80,
438 0xFFFFFFFF,
439 0x14F3690D,
440 0x1A041414,
441 0x00D00000,
442 0x14864000,
443 0x59647A05,
444 0xC228A3DC,
445 0xF491451E,
446 0x0344B2C8,
447 0x821A034D,
448 0x0000D000,
449 0x00000680,
450 0xD469A47A,
451 0x1E83CF23,
452 0xC8F71E79,
453 0x000344B2,
454 0x00080000,
455 0x00001000,
456 0x00080000,
457 0x00001000,
458 0x000A8000,
459 0x00075000,
460 0x541A8000,
461 0x03875001,
462 0x00000000,
463 0x00000020,
464 0x0080C000,
465 0x41000000,
466 0x00000002,
467 0x00820008,
468 0xAA0D4000,
469 0x01C3A800,
470 0xAA0D4000,
471 0x01C3A800,
472 0xAA0D4000,
473 0x01C3A800,
474 0x00040000,
475 0x00000800,
476 0x00000000,
477 0x00001208,
478 0x00482000,
479 0x01000000,
480 0x00000000,
481 0x00410482,
482 0x0006A000,
483 0x0001B400,
484 0x00020000,
485 0x00000400,
486 0x00020080,
487 0x00000400,
488 0x5506A000,
489 0x00E1D400,
490 0x00000000,
491 0x0000090C,
492 0x00000010,
493 0x90400000,
494 0x00000000,
495 0x2020C243,
496 0x2A835000,
497 0x0070EA00,
498 0x2A835000,
499 0x0070EA00,
500 0x2A835000,
501 0x0070EA00,
502 0x00010000,
503 0x00000200,
504 0x00000000,
505 0x00000482,
506 0x00120800,
507 0x00400000,
508 0x80000000,
509 0x00104120,
510 0x00000200,
511 0xAC0D5F80,
512 0xFFFFFFFF,
513 0x14F1690D,
514 0x1A041414,
515 0x00D00000,
516 0x0C864000,
517 0x79E47A03,
518 0x92AAA3D2,
519 0xF595551E,
520 0x034CF3C8,
521 0x821A0000,
522 0x0000D000,
523 0x00000680,
524 0xDA79E47A,
525 0x1EA32CA3,
526 0xC8F69965,
527 0x000354F3,
528 0x00080000,
529 0x00001000,
530 0x00080000,
531 0x00001000,
532 0x000A8000,
533 0x00075000,
534 0x541A8000,
535 0x03875001,
536 0x00000000,
537 0x00000020,
538 0x0080C000,
539 0x41000000,
540 0x00000002,
541 0x00820008,
542 0xAA0D4000,
543 0x01C3A800,
544 0xAA0D4000,
545 0x01C3A800,
546 0xAA0D4000,
547 0x01C3A800,
548 0x00040000,
549 0x00000800,
550 0x00000000,
551 0x00001208,
552 0x00482000,
553 0x01000000,
554 0x00000000,
555 0x00410482,
556 0x0006A000,
557 0x0001B400,
558 0x00020000,
559 0x00000400,
560 0x00020000,
561 0x00000400,
562 0x5506A000,
563 0x00E1D400,
564 0x00000000,
565 0x0000090C,
566 0x00002000,
567 0x90400000,
568 0x00000000,
569 0x2020C243,
570 0x2A835000,
571 0x0070EA00,
572 0x2A835000,
573 0x0070EA00,
574 0x2A835000,
575 0x0070EA00,
576 0x00010040,
577 0x00000200,
578 0x00000000,
579 0x00000482,
580 0x00120800,
581 0x00400000,
582 0x80000000,
583 0x00104120,
584 0x00000200,
585 0xAC0D5F80,
586 0xFFFFFFFF,
587 0x14F1690D,
588 0x1A041414,
589 0x00D00000,
590 0x0C864000,
591 0x59647A03,
592 0xC3CF23DC,
593 0xF711451E,
594 0x0358D348,
595 0x821A0000,
596 0x0000D000,
597 0x00000680,
598 0xD459647A,
599 0x1E83CF23,
600 0x48F51E79,
601 0x000348D3,
602 0x00080000,
603 0x00001000,
604 0x00080000,
605 0x00001000,
606 0x000A8000,
607 0x00075000,
608 0x541A8000,
609 0x03875001,
610 0x00000000,
611 0x00000020,
612 0x0080C000,
613 0x41000000,
614 0x00000002,
615 0x00820008,
616 0x00489800,
617 0x801A1A1A,
618 0x00000200,
619 0x80000004,
620 0x00000200,
621 0x80000004,
622 0x00000200,
623 0x00000004,
624 0x00000200,
625 0x00000004,
626 0x00040000,
627 0x10000000,
628 0x00000000,
629 0x00008000,
630 0x00010000,
631 0x40002000,
632 0x00000100,
633 0x40000002,
634 0x00000100,
635 0x00000002,
636 0x00000100,
637 0x40000002,
638 0x00000100,
639 0x00000002,
640 0x00020000,
641 0x00000000,
642 0x00000010,
643 0x00000020,
644 0x00008000,
645 0x20001000,
646 0x00000080,
647 0x20000001,
648 0x00000080,
649 0x20000001,
650 0x00000080,
651 0x20000001,
652 0x00000080,
653 0x00000001,
654 0x00010000,
655 0x04000000,
656 0x00FF0000,
657 0x00000000,
658 0x00004000,
659 0x00000800,
660 0xC0000001,
661 0x00141419,
662 0x40000000,
663 0x04000816,
664 0x000D0000,
665 0x00006800,
666 0x00000340,
667 0xD000001A,
668 0x06800000,
669 0x00340000,
670 0x0001A000,
671 0x00000D00,
672 0x40000068,
673 0x1A000003,
674 0x00D00000,
675 0x00068000,
676 0x00003400,
677 0x000001A0,
678 0x00000401,
679 0x00000008,
680 0x00000401,
681 0x00000008,
682 0x00000401,
683 0x00000008,
684 0x00000401,
685 0x80000008,
686 0x0000007F,
687 0x20000000,
688 0x00000000,
689 0xE0000080,
690 0x0000001F,
691 0x00004000,
692};
693
694#endif /* __SOCFPGA_IOCSR_CONFIG_H__ */