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>
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('')