[igt-dev] [PATCH i-g-t] tools/intel_vbt_decode: decode VBT MIPI sequence v4 native flag

Jani Nikula jani.nikula at intel.com
Tue Nov 29 08:47:10 UTC 2022


MIPI sequence v4 has a flag for native/non-native GPIO.

Signed-off-by: Jani Nikula <jani.nikula at intel.com>
---
 tools/intel_vbt_decode.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/tools/intel_vbt_decode.c b/tools/intel_vbt_decode.c
index a63bfdda142a..94a910b5c107 100644
--- a/tools/intel_vbt_decode.c
+++ b/tools/intel_vbt_decode.c
@@ -2049,8 +2049,12 @@ static const uint8_t *mipi_dump_gpio(const uint8_t *data, uint8_t seq_version)
 		number = *data++;
 		flags = *data++;
 
-		printf("\t\t\tGPIO index %u, number %u, set %d (0x%02x)\n",
-		       index, number, flags & 1, flags);
+		if (seq_version >= 4)
+			printf("\t\t\tGPIO index %u, number %u, native %d, set %d (0x%02x)\n",
+			       index, number, !(flags & 2), flags & 1, flags);
+		else
+			printf("\t\t\tGPIO index %u, number %u, set %d (0x%02x)\n",
+			       index, number, flags & 1, flags);
 	} else {
 		index = *data++;
 		flags = *data++;
-- 
2.34.1



More information about the igt-dev mailing list