diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2013-06-26 20:57:32 +0300 |
---|---|---|
committer | Ben Widawsky <ben@bwidawsk.net> | 2013-06-30 22:06:35 -0700 |
commit | de92969a402da1ae070ca76efd8721138f46f376 (patch) | |
tree | e9a6cbf91a0585783ef88fc7b28424d22d281cea /tools/quick_dump | |
parent | 26af13f84fe2e1244b91760870d3763f978d3c30 (diff) |
quick_dump: Add automagic DPIO register support
Repurpose the (currently unused) third element in the register
definition tuple to indicate the type of the register. 'DPIO'
is the only special register type for now.
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Diffstat (limited to 'tools/quick_dump')
-rwxr-xr-x | tools/quick_dump/quick_dump.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/quick_dump/quick_dump.py b/tools/quick_dump/quick_dump.py index 6111b5d8..390cafa4 100755 --- a/tools/quick_dump/quick_dump.py +++ b/tools/quick_dump/quick_dump.py @@ -13,7 +13,10 @@ def parse_file(file): print('-' * 54) for line in file: register = ast.literal_eval(line) - val = reg.read(register[1]) + if register[2] == 'DPIO': + val = reg.dpio_read(register[1]) + else: + val = reg.read(register[1]) intreg = int(register[1], 16) print('{0:#010x} | {1:<28} | {2:#010x}'.format(intreg, register[0], val)) print('') |