remove redundant registers
[sitara-dss-files/am57xx-dss-files.git] / padconf / am57xx-padconf-rd1.sh
1 #!/bin/bash
2 today=`date '+%Y-%m-%d_%H%M%S'`;
3 OUTPUT_FILE=am57xx-padconf_$today.rd1
5 id_code=`devmem2 0x4AE0C204 | sed '1d2ds/.*: 0x[0-9a-fA-F]\([0-9a-fA-F]\{3\}\)[0-9a-fA-F]\{4\}/\1/'`
7 if [ $id_code = "B9B" ]
8 then
9         echo "PadConf AM571x" > $OUTPUT_FILE
11 # Append to file
12 while IFS='' read -r line || [[ -n "$line" ]]; do
13     devmem2 $line | sed '1d2ds/.*\s\(0x[0-9a-fA-F]*\)\s.*: \(0x[0-9a-fA-F]*\)*/\1 \2/' >> $OUTPUT_FILE
14 done << EOM
15 0x4A003400
16 0x4A003404
17 0x4A003408
18 0x4A00340C
19 0x4A003410
20 0x4A003414
21 0x4A003418
22 0x4A00341C
23 0x4A003420
24 0x4A003424
25 0x4A003428
26 0x4A00342C
27 0x4A003430
28 0x4A003434
29 0x4A003438
30 0x4A00343C
31 0x4A003440
32 0x4A003444
33 0x4A003448
34 0x4A00344C
35 0x4A003450
36 0x4A003454
37 0x4A003458
38 0x4A00345C
39 0x4A003460
40 0x4A003464
41 0x4A003468
42 0x4A00346C
43 0x4A003470
44 0x4A003474
45 0x4A003478
46 0x4A00347C
47 0x4A003480
48 0x4A003484
49 0x4A003488
50 0x4A00348C
51 0x4A003490
52 0x4A003494
53 0x4A003498
54 0x4A00349C
55 0x4A0034A0
56 0x4A0034A4
57 0x4A0034A8
58 0x4A0034AC
59 0x4A0034B0
60 0x4A0034B4
61 0x4A0034B8
62 0x4A0034BC
63 0x4A0034C0
64 0x4A0034C4
65 0x4A0034C8
66 0x4A0034CC
67 0x4A0034D0
68 0x4A0034D4
69 0x4A0034D8
70 0x4A003554
71 0x4A003558
72 0x4A00355C
73 0x4A003560
74 0x4A003564
75 0x4A003568
76 0x4A00356C
77 0x4A003570
78 0x4A003574
79 0x4A003578
80 0x4A00357C
81 0x4A003580
82 0x4A003584
83 0x4A003588
84 0x4A00358C
85 0x4A003590
86 0x4A003594
87 0x4A003598
88 0x4A00359C
89 0x4A0035A0
90 0x4A0035A4
91 0x4A0035A8
92 0x4A0035AC
93 0x4A0035B0
94 0x4A0035B4
95 0x4A0035B8
96 0x4A0035BC
97 0x4A0035C0
98 0x4A0035C4
99 0x4A0035C8
100 0x4A0035CC
101 0x4A0035D0
102 0x4A0035D4
103 0x4A0035D8
104 0x4A0035DC
105 0x4A0035E0
106 0x4A0035E4
107 0x4A0035E8
108 0x4A0035EC
109 0x4A0035F0
110 0x4A0035F4
111 0x4A0035F8
112 0x4A0035FC
113 0x4A003600
114 0x4A003604
115 0x4A003608
116 0x4A00360C
117 0x4A003610
118 0x4A003614
119 0x4A003618
120 0x4A00361C
121 0x4A003620
122 0x4A003624
123 0x4A003628
124 0x4A00362C
125 0x4A003630
126 0x4A003634
127 0x4A003638
128 0x4A00363C
129 0x4A003640
130 0x4A003644
131 0x4A003648
132 0x4A00364C
133 0x4A003650
134 0x4A003654
135 0x4A003658
136 0x4A00365C
137 0x4A003660
138 0x4A003664
139 0x4A003668
140 0x4A00366C
141 0x4A003670
142 0x4A003674
143 0x4A003678
144 0x4A00367C
145 0x4A003680
146 0x4A003684
147 0x4A003688
148 0x4A00368C
149 0x4A003690
150 0x4A003694
151 0x4A003698
152 0x4A00369C
153 0x4A0036A0
154 0x4A0036A4
155 0x4A0036A8
156 0x4A0036AC
157 0x4A0036B0
158 0x4A0036B4
159 0x4A0036B8
160 0x4A0036BC
161 0x4A0036C0
162 0x4A0036C4
163 0x4A0036C8
164 0x4A0036CC
165 0x4A0036D0
166 0x4A0036D4
167 0x4A0036D8
168 0x4A0036DC
169 0x4A0036E0
170 0x4A0036E4
171 0x4A0036E8
172 0x4A0036EC
173 0x4A0036F0
174 0x4A0036F4
175 0x4A0036F8
176 0x4A0036FC
177 0x4A003700
178 0x4A003704
179 0x4A003708
180 0x4A00370C
181 0x4A003710
182 0x4A003714
183 0x4A003718
184 0x4A00371C
185 0x4A003720
186 0x4A003724
187 0x4A003728
188 0x4A00372C
189 0x4A003730
190 0x4A003734
191 0x4A003738
192 0x4A00373C
193 0x4A003740
194 0x4A003744
195 0x4A003748
196 0x4A00374C
197 0x4A003750
198 0x4A003754
199 0x4A003758
200 0x4A00375C
201 0x4A003760
202 0x4A003764
203 0x4A003768
204 0x4A00376C
205 0x4A003770
206 0x4A003774
207 0x4A003778
208 0x4A00377C
209 0x4A003780
210 0x4A003784
211 0x4A003788
212 0x4A00378C
213 0x4A003790
214 0x4A003794
215 0x4A003798
216 0x4A00379C
217 0x4A0037A0
218 0x4A0037A4
219 0x4A0037A8
220 0x4A0037AC
221 0x4A0037B0
222 0x4A0037B4
223 0x4A0037B8
224 0x4A0037BC
225 0x4A0037C0
226 0x4A0037C4
227 0x4A0037C8
228 0x4A0037CC
229 0x4A0037D0
230 0x4A0037D4
231 0x4A0037E0
232 0x4A0037E4
233 0x4A0037E8
234 0x4A0037EC
235 0x4A0037F0
236 0x4A0037F4
237 0x4A0037F8
238 0x4A0037FC
239 0x4A003800
240 0x4A003804
241 0x4A003808
242 0x4A00380C
243 0x4A003818
244 0x4A003824
245 0x4A003828
246 0x4A00382C
247 0x4A003830
248 0x4A003834
249 0x4A003838
250 0x4A00383C
251 0x4A003840
252 0x4A003844
253 0x4A003848
254 0x4A00384C
255 0x4A00385C
256 0x4A003860
257 0x4A003864
258 EOM
259 fi
261 if [ $id_code = "B99" ]
262 then
263         echo "PadConf AM572x" > $OUTPUT_FILE
264 # Append to file
265 while IFS='' read -r line || [[ -n "$line" ]]; do
266     devmem2 $line | sed '1d2ds/.*\s\(0x[0-9a-fA-F]*\)\s.*: \(0x[0-9a-fA-F]*\)*/\1 \2/' >> $OUTPUT_FILE
267 done << EOM
268 0x4A003400
269 0x4A003404
270 0x4A003408
271 0x4A00340C
272 0x4A003410
273 0x4A003414
274 0x4A003418
275 0x4A00341C
276 0x4A003420
277 0x4A003424
278 0x4A003428
279 0x4A00342C
280 0x4A003430
281 0x4A003434
282 0x4A003438
283 0x4A00343C
284 0x4A003440
285 0x4A003444
286 0x4A003448
287 0x4A00344C
288 0x4A003450
289 0x4A003454
290 0x4A003458
291 0x4A00345C
292 0x4A003460
293 0x4A003464
294 0x4A003468
295 0x4A00346C
296 0x4A003470
297 0x4A003474
298 0x4A003478
299 0x4A00347C
300 0x4A003480
301 0x4A003484
302 0x4A003488
303 0x4A00348C
304 0x4A003490
305 0x4A003494
306 0x4A003498
307 0x4A00349C
308 0x4A0034A0
309 0x4A0034A4
310 0x4A0034A8
311 0x4A0034AC
312 0x4A0034B0
313 0x4A0034B4
314 0x4A0034B8
315 0x4A0034BC
316 0x4A0034C0
317 0x4A0034C4
318 0x4A0034C8
319 0x4A0034CC
320 0x4A0034D0
321 0x4A0034D4
322 0x4A0034D8
323 0x4A0034DC
324 0x4A0034E0
325 0x4A0034E4
326 0x4A0034E8
327 0x4A0034EC
328 0x4A0034F0
329 0x4A0034F4
330 0x4A0034F8
331 0x4A0034FC
332 0x4A003500
333 0x4A003504
334 0x4A003508
335 0x4A00350C
336 0x4A003510
337 0x4A003514
338 0x4A003518
339 0x4A00351C
340 0x4A003520
341 0x4A003524
342 0x4A003528
343 0x4A00352C
344 0x4A003530
345 0x4A003534
346 0x4A003538
347 0x4A00353C
348 0x4A003540
349 0x4A003544
350 0x4A003548
351 0x4A00354C
352 0x4A003550
353 0x4A003554
354 0x4A003558
355 0x4A00355C
356 0x4A003560
357 0x4A003564
358 0x4A003568
359 0x4A00356C
360 0x4A003570
361 0x4A003574
362 0x4A003578
363 0x4A00357C
364 0x4A003580
365 0x4A003584
366 0x4A003588
367 0x4A00358C
368 0x4A003590
369 0x4A003594
370 0x4A003598
371 0x4A00359C
372 0x4A0035A0
373 0x4A0035A4
374 0x4A0035A8
375 0x4A0035AC
376 0x4A0035B0
377 0x4A0035B4
378 0x4A0035B8
379 0x4A0035BC
380 0x4A0035C0
381 0x4A0035C4
382 0x4A0035C8
383 0x4A0035CC
384 0x4A0035D0
385 0x4A0035D4
386 0x4A0035D8
387 0x4A0035DC
388 0x4A0035E0
389 0x4A0035E4
390 0x4A0035E8
391 0x4A0035EC
392 0x4A0035F0
393 0x4A0035F4
394 0x4A0035F8
395 0x4A0035FC
396 0x4A003600
397 0x4A003604
398 0x4A003608
399 0x4A00360C
400 0x4A003610
401 0x4A003614
402 0x4A003618
403 0x4A00361C
404 0x4A003620
405 0x4A003624
406 0x4A003628
407 0x4A00362C
408 0x4A003630
409 0x4A003634
410 0x4A003638
411 0x4A00363C
412 0x4A003640
413 0x4A003644
414 0x4A003648
415 0x4A00364C
416 0x4A003650
417 0x4A003654
418 0x4A003658
419 0x4A00365C
420 0x4A003660
421 0x4A003664
422 0x4A003668
423 0x4A00366C
424 0x4A003670
425 0x4A003674
426 0x4A003678
427 0x4A00367C
428 0x4A003680
429 0x4A003684
430 0x4A003688
431 0x4A00368C
432 0x4A003690
433 0x4A003694
434 0x4A003698
435 0x4A00369C
436 0x4A0036A0
437 0x4A0036A4
438 0x4A0036A8
439 0x4A0036AC
440 0x4A0036B0
441 0x4A0036B4
442 0x4A0036B8
443 0x4A0036BC
444 0x4A0036C0
445 0x4A0036C4
446 0x4A0036C8
447 0x4A0036CC
448 0x4A0036D0
449 0x4A0036D4
450 0x4A0036D8
451 0x4A0036DC
452 0x4A0036E0
453 0x4A0036E4
454 0x4A0036E8
455 0x4A0036EC
456 0x4A0036F0
457 0x4A0036F4
458 0x4A0036F8
459 0x4A0036FC
460 0x4A003700
461 0x4A003704
462 0x4A003708
463 0x4A00370C
464 0x4A003710
465 0x4A003714
466 0x4A003718
467 0x4A00371C
468 0x4A003720
469 0x4A003724
470 0x4A003728
471 0x4A00372C
472 0x4A003730
473 0x4A003734
474 0x4A003738
475 0x4A00373C
476 0x4A003740
477 0x4A003744
478 0x4A003748
479 0x4A00374C
480 0x4A003750
481 0x4A003754
482 0x4A003758
483 0x4A00375C
484 0x4A003760
485 0x4A003764
486 0x4A003768
487 0x4A00376C
488 0x4A003770
489 0x4A003774
490 0x4A003778
491 0x4A00377C
492 0x4A003780
493 0x4A003784
494 0x4A003788
495 0x4A00378C
496 0x4A003790
497 0x4A003794
498 0x4A003798
499 0x4A00379C
500 0x4A0037A0
501 0x4A0037A4
502 0x4A0037A8
503 0x4A0037AC
504 0x4A0037B0
505 0x4A0037B4
506 0x4A0037B8
507 0x4A0037BC
508 0x4A0037C0
509 0x4A0037C4
510 0x4A0037C8
511 0x4A0037CC
512 0x4A0037D0
513 0x4A0037D4
514 0x4A0037E0
515 0x4A0037E4
516 0x4A0037E8
517 0x4A0037EC
518 0x4A0037F0
519 0x4A0037F4
520 0x4A0037F8
521 0x4A0037FC
522 0x4A003800
523 0x4A003804
524 0x4A003808
525 0x4A00380C
526 0x4A003818
527 0x4A00381C
528 0x4A003820
529 0x4A003824
530 0x4A003828
531 0x4A00382C
532 0x4A003830
533 0x4A003834
534 0x4A003838
535 0x4A00383C
536 0x4A003840
537 0x4A003844
538 0x4A003848
539 0x4A00384C
540 0x4A00385C
541 0x4A003860
542 0x4A003864
543 EOM
544 fi
546 if [ $id_code = "BB5" ]
547 then
548         echo "PadConf AM574x" > $OUTPUT_FILE
550 # Append to file
551 while IFS='' read -r line || [[ -n "$line" ]]; do
552     devmem2 $line | sed '1d2ds/.*\s\(0x[0-9a-fA-F]*\)\s.*: \(0x[0-9a-fA-F]*\)*/\1 \2/' >> $OUTPUT_FILE
553 done << EOM
554 0x4A003400
555 0x4A003404
556 0x4A003408
557 0x4A00340C
558 0x4A003410
559 0x4A003414
560 0x4A003418
561 0x4A00341C
562 0x4A003420
563 0x4A003424
564 0x4A003428
565 0x4A00342C
566 0x4A003430
567 0x4A003434
568 0x4A003438
569 0x4A00343C
570 0x4A003440
571 0x4A003444
572 0x4A003448
573 0x4A00344C
574 0x4A003450
575 0x4A003454
576 0x4A003458
577 0x4A00345C
578 0x4A003460
579 0x4A003464
580 0x4A003468
581 0x4A00346C
582 0x4A003470
583 0x4A003474
584 0x4A003478
585 0x4A00347C
586 0x4A003480
587 0x4A003484
588 0x4A003488
589 0x4A00348C
590 0x4A003490
591 0x4A003494
592 0x4A003498
593 0x4A00349C
594 0x4A0034A0
595 0x4A0034A4
596 0x4A0034A8
597 0x4A0034AC
598 0x4A0034B0
599 0x4A0034B4
600 0x4A0034B8
601 0x4A0034BC
602 0x4A0034C0
603 0x4A0034C4
604 0x4A0034C8
605 0x4A0034CC
606 0x4A0034D0
607 0x4A0034D4
608 0x4A0034D8
609 0x4A0034DC
610 0x4A0034E0
611 0x4A0034E4
612 0x4A0034E8
613 0x4A0034EC
614 0x4A0034F0
615 0x4A0034F4
616 0x4A0034F8
617 0x4A0034FC
618 0x4A003500
619 0x4A003504
620 0x4A003508
621 0x4A00350C
622 0x4A003510
623 0x4A003514
624 0x4A003518
625 0x4A00351C
626 0x4A003520
627 0x4A003524
628 0x4A003528
629 0x4A00352C
630 0x4A003530
631 0x4A003534
632 0x4A003538
633 0x4A00353C
634 0x4A003540
635 0x4A003544
636 0x4A003548
637 0x4A00354C
638 0x4A003550
639 0x4A003554
640 0x4A003558
641 0x4A00355C
642 0x4A003560
643 0x4A003564
644 0x4A003568
645 0x4A00356C
646 0x4A003570
647 0x4A003574
648 0x4A003578
649 0x4A00357C
650 0x4A003580
651 0x4A003584
652 0x4A003588
653 0x4A00358C
654 0x4A003590
655 0x4A003594
656 0x4A003598
657 0x4A00359C
658 0x4A0035A0
659 0x4A0035A4
660 0x4A0035A8
661 0x4A0035AC
662 0x4A0035B0
663 0x4A0035B4
664 0x4A0035B8
665 0x4A0035BC
666 0x4A0035C0
667 0x4A0035C4
668 0x4A0035C8
669 0x4A0035CC
670 0x4A0035D0
671 0x4A0035D4
672 0x4A0035D8
673 0x4A0035DC
674 0x4A0035E0
675 0x4A0035E4
676 0x4A0035E8
677 0x4A0035EC
678 0x4A0035F0
679 0x4A0035F4
680 0x4A0035F8
681 0x4A0035FC
682 0x4A003600
683 0x4A003604
684 0x4A003608
685 0x4A00360C
686 0x4A003610
687 0x4A003614
688 0x4A003618
689 0x4A00361C
690 0x4A003620
691 0x4A003624
692 0x4A003628
693 0x4A00362C
694 0x4A003630
695 0x4A003634
696 0x4A003638
697 0x4A00363C
698 0x4A003640
699 0x4A003644
700 0x4A003648
701 0x4A00364C
702 0x4A003650
703 0x4A003654
704 0x4A003658
705 0x4A00365C
706 0x4A003660
707 0x4A003664
708 0x4A003668
709 0x4A00366C
710 0x4A003670
711 0x4A003674
712 0x4A003678
713 0x4A00367C
714 0x4A003680
715 0x4A003684
716 0x4A003688
717 0x4A00368C
718 0x4A003690
719 0x4A003694
720 0x4A003698
721 0x4A00369C
722 0x4A0036A0
723 0x4A0036A4
724 0x4A0036A8
725 0x4A0036AC
726 0x4A0036B0
727 0x4A0036B4
728 0x4A0036B8
729 0x4A0036BC
730 0x4A0036C0
731 0x4A0036C4
732 0x4A0036C8
733 0x4A0036CC
734 0x4A0036D0
735 0x4A0036D4
736 0x4A0036D8
737 0x4A0036DC
738 0x4A0036E0
739 0x4A0036E4
740 0x4A0036E8
741 0x4A0036EC
742 0x4A0036F0
743 0x4A0036F4
744 0x4A0036F8
745 0x4A0036FC
746 0x4A003700
747 0x4A003704
748 0x4A003708
749 0x4A00370C
750 0x4A003710
751 0x4A003714
752 0x4A003718
753 0x4A00371C
754 0x4A003720
755 0x4A003724
756 0x4A003728
757 0x4A00372C
758 0x4A003730
759 0x4A003734
760 0x4A003738
761 0x4A00373C
762 0x4A003740
763 0x4A003744
764 0x4A003748
765 0x4A00374C
766 0x4A003750
767 0x4A003754
768 0x4A003758
769 0x4A00375C
770 0x4A003760
771 0x4A003764
772 0x4A003768
773 0x4A00376C
774 0x4A003770
775 0x4A003774
776 0x4A003778
777 0x4A00377C
778 0x4A003780
779 0x4A003784
780 0x4A003788
781 0x4A00378C
782 0x4A003790
783 0x4A003794
784 0x4A003798
785 0x4A00379C
786 0x4A0037A0
787 0x4A0037A4
788 0x4A0037A8
789 0x4A0037AC
790 0x4A0037B0
791 0x4A0037B4
792 0x4A0037B8
793 0x4A0037BC
794 0x4A0037C0
795 0x4A0037C4
796 0x4A0037C8
797 0x4A0037CC
798 0x4A0037D0
799 0x4A0037D4
800 0x4A0037E0
801 0x4A0037E4
802 0x4A0037E8
803 0x4A0037EC
804 0x4A0037F0
805 0x4A0037F4
806 0x4A0037F8
807 0x4A0037FC
808 0x4A003800
809 0x4A003804
810 0x4A003808
811 0x4A00380C
812 0x4A003818
813 0x4A00381C
814 0x4A003820
815 0x4A003824
816 0x4A003828
817 0x4A00382C
818 0x4A003830
819 0x4A003834
820 0x4A003838
821 0x4A00383C
822 0x4A003840
823 0x4A003844
824 0x4A003848
825 0x4A00384C
826 0x4A00385C
827 0x4A003860
828 0x4A003864
829 EOM
830 fi