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