Commit 8a7dc406 authored by Ville Syrjälä's avatar Ville Syrjälä Committed by Jani Nikula

tools/intel_vbt_decode: Dump the GPIO value/config/flag as a raw hex byte

The spec is totally confused when it comes to the GPIO flags byte.
To allow us to inspect that the decoded result at least seems
sensible let's also dump the raw byte. Should at least show if
some bits are set which we're not expecting.
Reviewed-by: Jani Nikula's avatarJani Nikula <jani.nikula@intel.com>
Signed-off-by: Ville Syrjälä's avatarVille Syrjälä <ville.syrjala@linux.intel.com>
parent d51cbd37
......@@ -1190,14 +1190,14 @@ static const uint8_t *mipi_dump_gpio(const uint8_t *data, uint8_t seq_version)
number = *data++;
flags = *data++;
printf("\t\tGPIO index %u, number %u, set %d\n",
index, number, flags & 1);
printf("\t\tGPIO index %u, number %u, set %d (0x%02x)\n",
index, number, flags & 1, flags);
} else {
index = *data++;
flags = *data++;
printf("\t\tGPIO index %u, source %d, set %d\n",
index, (flags >> 1) & 3, flags & 1);
printf("\t\tGPIO index %u, source %d, set %d (0x%02x)\n",
index, (flags >> 1) & 3, flags & 1, flags);
}
return data;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment