1 #!/bin/bash
2 # Author:- Venkateswara Rao Mandela
4 # Dump DSS dispc registers on DRA7xx
5 #For any queries, contact http://e2e.ti.com/support/omap/f/885
7 # Modify this string to --force <platname> if platform detection fails
8 FORCE_PLAT=""
10 # Set this variable to 1 when running against an Android Build
11 # The android shell has limited functionality. So this script runs
12 # omapconf via adb and parses the output on the host.
13 USE_ADB=0
15 # Define a function that wraps omapconf calls and removes the usual warning
16 # messages
17 oc_func() {
19 if [ "$USE_ADB" -eq 1 ]; then
20 OMAPCONF1="adb shell omapconf $FORCE_PLAT"
21 else
22 OMAPCONF1="omapconf $FORCE_PLAT"
23 fi
24 out_str=$($OMAPCONF1 "$@" 2>&1 | sed -e '/powerdm_deinit/d' -e '/clockdm_deinit/d' -e 's/[[:space:]]*$//')
25 echo "$out_str"
26 }
27 OMAPCONF=oc_func
29 base=0x58001000
30 end=0x58001700
31 $OMAPCONF dump $base $end
33 base=0x58001700
34 end=0x58001800
35 $OMAPCONF dump $base $end
37 base=0x58001800
38 end=0x58001870
39 $OMAPCONF dump $base $end