remove redundant registers
[sitara-dss-files/am57xx-dss-files.git] / am57xx-avs-abb-rd1.sh
1 #!/bin/bash
2 today=`date '+%Y-%m-%d_%H%M%S'`;
3 OUTPUT_FILE=am57xx-avs-abb_$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 echo "AVS-ABB AM57xx" > $OUTPUT_FILE
9 # Append to file
10 while IFS='' read -r line || [[ -n "$line" ]]; do
11     devmem2 $line | sed '1d2ds/.*\s\(0x[0-9a-fA-F]*\)\s.*: \(0x[0-9a-fA-F]*\)*/\1 \2/' >> $OUTPUT_FILE
12 done << EOM
13 0x4AE0C200
14 0x4AE0C204
15 0x4AE0C208
16 0x4AE0C20C
17 0x4AE0C210
18 0x4A0025CC
19 0x4A0025D0
20 0x4A0025D4
21 0x4A0025C4
22 0x4A0025E0
23 0x4A0025E4
24 0x4A0025E8
25 0x4A0025D8
26 0x4A0025F4
27 0x4A003B08
28 0x4A003B0C
29 0x4A003B10
30 0x4A003B14
31 0x4A003B1C
32 0x4A003B20
33 0x4A003B24
34 0x4A003B28
35 0x4A003B2C
36 0x4A002470
37 0x4A00246C
38 0x4AE0C154
39 0x4AE0C158
40 0x4AE07DDC
41 0x4AE07DE0
42 0x4AE07DE4
43 0x4AE07DE8
44 0x4AE07E20
45 0x4AE07E24
46 0x4AE07E30
47 0x4AE07E34
48 EOM