blob: 49a4feef31c9509469a1bcfc584d54162b94eb7d [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 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
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 0x0FF00000,
19 0xC0000000,
20 0x0000003F,
21 0x00008000,
22 0x00020080,
23 0x08020000,
24 0x08000000,
25 0x00018020,
26 0x00000000,
27 0x00004000,
28 0x00010040,
29 0x04010000,
30 0x04000000,
31 0x00000010,
32 0x00004010,
33 0x00002000,
34 0x00020000,
35 0x02008000,
36 0x02000000,
37 0x00000008,
38 0x00002008,
39 0x00001000,
40};
41
42const unsigned long iocsr_scan_chain1_table[] = {
43 0x000C0300,
44 0x10040000,
45 0x100000C0,
46 0x00000040,
47 0x00010040,
48 0x00008000,
49 0x00080000,
50 0x18060000,
51 0x18000000,
52 0x00000060,
53 0x00018060,
54 0x00004000,
55 0x00010040,
56 0x10000000,
57 0x04000000,
58 0x00000010,
59 0x00004010,
60 0x00002000,
61 0x06008020,
62 0x02008000,
63 0x01FE0000,
64 0xF8000000,
65 0x00000007,
66 0x00001000,
67 0x00004010,
68 0x01004000,
69 0x01000000,
70 0x00003004,
71 0x00001004,
72 0x00000800,
73 0x00000000,
74 0x00000000,
75 0x00800000,
76 0x00000002,
77 0x00002000,
78 0x00000400,
79 0x00000000,
80 0x00401000,
81 0x00000003,
82 0x00000000,
83 0x00000000,
84 0x00000200,
85 0x00600802,
86 0x00000000,
87 0x80200000,
88 0x80000600,
89 0x00000200,
90 0x00000100,
91 0x00300401,
92 0xC0100400,
93 0x40100000,
94 0x40000300,
95 0x000C0100,
96 0x00000080,
97};
98
99const unsigned long iocsr_scan_chain2_table[] = {
100 0x80040100,
101 0x00000000,
102 0x0FF00000,
103 0x00000000,
104 0x0C010040,
105 0x00008000,
106 0x18020080,
107 0x00000000,
108 0x08000000,
109 0x00040020,
110 0x06018060,
111 0x00004000,
112 0x0C010040,
113 0x04010000,
114 0x00000030,
115 0x00000000,
116 0x03004010,
117 0x00002000,
118 0x06008020,
119 0x02008000,
120 0x02000018,
121 0x00006008,
122 0x01802008,
123 0x00001000,
124 0x03004010,
125 0x01004000,
126 0x0100000C,
127 0x00003004,
128 0x00C01004,
129 0x00000800,
130};
131
132const unsigned long iocsr_scan_chain3_table[] = {
133 0x2C420D80,
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 0x00000070,
180 0x24590000,
181 0x00001000,
182 0xA0000034,
183 0x0D000001,
184 0x906808A2,
185 0xA2834024,
186 0x05141A00,
187 0x808A20D0,
188 0x34024906,
189 0x01A00A28,
190 0xA20D0000,
191 0x24906808,
192 0x00A28340,
193 0xD000001A,
194 0x06808A20,
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 0x00000070,
254 0x24590000,
255 0x00001000,
256 0xA0000034,
257 0x0D000001,
258 0x906808A2,
259 0xA2834024,
260 0x05141A00,
261 0x808A20D0,
262 0x34024906,
263 0x01A00040,
264 0xA20D0002,
265 0x24906808,
266 0x00A28340,
267 0xD005141A,
268 0x06808A20,
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 0x01C3A810,
287 0xAA0D4000,
288 0x01C3A808,
289 0xAA0D4000,
290 0x01C3A810,
291 0x00040100,
292 0x00000800,
293 0x00000000,
294 0x00001208,
295 0x00482000,
296 0x000001C1,
297 0x00000000,
298 0x00410482,
299 0x0006A000,
300 0x0001B400,
301 0x00020000,
302 0x00000400,
303 0x0002A000,
304 0x0001E400,
305 0x5506A000,
306 0x00E1D404,
307 0x00000000,
308 0xC880090C,
309 0x00003001,
310 0x90400000,
311 0x00000000,
312 0x2020C243,
313 0x2A835000,
314 0x0070EA04,
315 0x2A835000,
316 0x0070EA02,
317 0x2A835000,
318 0x0070EA04,
319 0x00010040,
320 0x00000200,
321 0x00000000,
322 0x00000482,
323 0x00120800,
324 0x00002000,
325 0x80000000,
326 0x00104120,
327 0x00000200,
328 0xAC255F80,
329 0xF1C71C71,
330 0x14F3690D,
331 0x1A041414,
332 0x00D00000,
333 0x14864000,
334 0x59647A05,
335 0xBA28A3D8,
336 0xF511451E,
337 0x0341D348,
338 0x821A0000,
339 0x0000D000,
340 0x04510680,
341 0xD859647A,
342 0x1EBA28A3,
343 0x48F51145,
344 0x000341D3,
345 0x00080200,
346 0x00001000,
347 0x00080200,
348 0x00001000,
349 0x000A8000,
350 0x00075000,
351 0x541A8000,
352 0x03875011,
353 0x10000000,
354 0x00000000,
355 0x0080C000,
356 0x41000000,
357 0x00003FC2,
358 0x00820000,
359 0xAA0D4000,
360 0x01C3A810,
361 0xAA0D4000,
362 0x01C3A808,
363 0xAA0D4000,
364 0x01C3A810,
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 0x00E1D404,
381 0x00000000,
382 0x0000090C,
383 0x00000010,
384 0x90400000,
385 0x00000000,
386 0x2020C243,
387 0x2A835000,
388 0x0070EA04,
389 0x2A835000,
390 0x0070EA02,
391 0x2A835000,
392 0x0070EA04,
393 0x00015000,
394 0x0000F200,
395 0x00000000,
396 0x00000482,
397 0x00120800,
398 0x00600391,
399 0x80000000,
400 0x00104120,
401 0x00000200,
402 0xAC255F80,
403 0xF1C71C71,
404 0x14F3690D,
405 0x1A041414,
406 0x00D00000,
407 0x14864000,
408 0x59647A05,
409 0xBA28A3D8,
410 0xF511451E,
411 0x8341D348,
412 0x821A0124,
413 0x0000D000,
414 0x00000680,
415 0xD859647A,
416 0x1EBA28A3,
417 0x48F51145,
418 0x000341D3,
419 0x00080200,
420 0x00001000,
421 0x00080200,
422 0x00001000,
423 0x000A8000,
424 0x00075000,
425 0x541A8000,
426 0x03875011,
427 0x10000000,
428 0x00000000,
429 0x0080C000,
430 0x41000000,
431 0x04000002,
432 0x00820000,
433 0xAA0D4000,
434 0x01C3A810,
435 0xAA0D4000,
436 0x01C3A808,
437 0xAA0D4000,
438 0x01C3A810,
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 0x00E1D404,
455 0x00000000,
456 0xC880090C,
457 0x00003001,
458 0x90400000,
459 0x00000000,
460 0x2020C243,
461 0x2A835000,
462 0x0070EA04,
463 0x2A835000,
464 0x0070EA02,
465 0x2A835000,
466 0x0070EA04,
467 0x00010040,
468 0x00000200,
469 0x00000000,
470 0x00000482,
471 0x00120800,
472 0x00002000,
473 0x80000000,
474 0x00104120,
475 0x00000200,
476 0xAC255F80,
477 0xF1C71C71,
478 0x14F3690D,
479 0x1A041414,
480 0x00D00000,
481 0x14864000,
482 0x59647A05,
483 0xBA28A3D8,
484 0xF511451E,
485 0x0341D348,
486 0x821A0000,
487 0x0000D000,
488 0x00000680,
489 0xD859647A,
490 0x1EBA28A3,
491 0x48F51145,
492 0x000341D3,
493 0x00080200,
494 0x00001000,
495 0x00080200,
496 0x00001000,
497 0x000A8000,
498 0x00075000,
499 0x541A8000,
500 0x03875011,
501 0x10000000,
502 0x00000000,
503 0x0080C000,
504 0x41000000,
505 0x04000002,
506 0x00820000,
507 0xAA0D4000,
508 0x01C3A810,
509 0xAA0D4000,
510 0x01C3A808,
511 0xAA0D4000,
512 0x01C3A810,
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 0x00E1D404,
529 0x00000000,
530 0x0000090C,
531 0x00000010,
532 0x90400000,
533 0x00000000,
534 0x2020C243,
535 0x2A835000,
536 0x0070EA04,
537 0x2A835000,
538 0x0070EA02,
539 0x2A835000,
540 0x0070EA04,
541 0x00010040,
542 0x00000200,
543 0x00000000,
544 0x00000482,
545 0x40120800,
546 0x00000070,
547 0x80000000,
548 0x00104120,
549 0x00000200,
550 0xAC255F80,
551 0xF1C71C71,
552 0x14F1690D,
553 0x1A041414,
554 0x00D00000,
555 0x14864000,
556 0x59647A05,
557 0xBA28A3D8,
558 0xF511451E,
559 0x0341D348,
560 0x821A0000,
561 0x0000D000,
562 0x00000680,
563 0xD859647A,
564 0x1EBA28A3,
565 0x48F51145,
566 0x000341D3,
567 0x00080200,
568 0x00001000,
569 0x00080200,
570 0x00001000,
571 0x000A8000,
572 0x00075000,
573 0x541A8000,
574 0x03875011,
575 0x10000000,
576 0x00000000,
577 0x0080C000,
578 0x41000000,
579 0x04000002,
580 0x00820000,
581 0x00489800,
582 0x001A1A1A,
583 0x085506A0,
584 0x0000E1D4,
585 0x045506A0,
586 0x0000E1D4,
587 0x085506A0,
588 0x8000E1D4,
589 0x00000200,
590 0x00000004,
591 0x04000000,
592 0x00000009,
593 0x00002410,
594 0x00000040,
595 0x41000000,
596 0x00002082,
597 0x00000350,
598 0x000000DA,
599 0x00000100,
600 0x40000002,
601 0x00000100,
602 0x00000002,
603 0x022A8350,
604 0x000070EA,
605 0x86000000,
606 0x08000004,
607 0x00000000,
608 0x00482000,
609 0x21800000,
610 0x00101061,
611 0x021541A8,
612 0x00003875,
613 0x011541A8,
614 0x00003875,
615 0x021541A8,
616 0x20003875,
617 0x00000080,
618 0x00000001,
619 0x41000000,
620 0x00000002,
621 0x00FF0904,
622 0x00000000,
623 0x90400000,
624 0x00000820,
625 0xC0000001,
626 0x38D612AF,
627 0x86F8E38E,
628 0x0A0A78B4,
629 0x000D020A,
630 0x00006800,
631 0x028A4320,
632 0xEC2CB23D,
633 0x8F5D1451,
634 0xA47A88A2,
635 0x0001A0E9,
636 0x00410D00,
637 0x40000068,
638 0x3D000003,
639 0x51EC2CB2,
640 0xA28F5D14,
641 0xE9A47A88,
642 0x000001A0,
643 0x00000401,
644 0x00000008,
645 0x00000401,
646 0x00000008,
647 0x00000540,
648 0x000003A8,
649 0x08AA0D40,
650 0x8001C3A8,
651 0x0000007F,
652 0x00000000,
653 0x00004060,
654 0xE1208000,
655 0x0000001F,
656 0x00004100,
657};
658
Chin Liang See63550242014-06-10 01:17:42 -0500659
Marek Vasut372f70d2015-08-10 21:21:07 +0200660#endif /* __SOCFPGA_IOCSR_CONFIG_H__ */