summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorImre Deak <imre.deak@intel.com>2014-06-02 15:48:27 +0300
committerImre Deak <imre.deak@intel.com>2014-06-03 22:19:42 +0300
commit82fcb90619491af13675d8c08e5d1b6bf07a781b (patch)
tree4a653abb1b3e6e1278fa9fdcdde950be17d4e8ad /tools
parent4e696ff8c9567051467c922f5abb4f8b64196b5c (diff)
quick_dump: allow passing display base as the third argument
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Reviewed-by: Imre Deak <imre.deak@intel.com>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/quick_dump/quick_dump.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/quick_dump/quick_dump.py b/tools/quick_dump/quick_dump.py
index a3bd8427..41bdc0a2 100755
--- a/tools/quick_dump/quick_dump.py
+++ b/tools/quick_dump/quick_dump.py
@@ -42,6 +42,8 @@ def parse_file(file):
elif register[2] == 'DPIO':
val = reg.dpio_read(intreg, 0)
else:
+ if register[2] != '':
+ intreg = intreg + int(register[2], 16)
val = reg.read(intreg)
print('{0:#010x} | {1:<28} | {2:#010x}'.format(intreg, register[0], val))
print('')