[Intel-gfx] [PATCH i-g-t 1/4] tools/intel_bios_reader: Dump the DSI video transfer mode and pixel overlap

ville.syrjala at linux.intel.com ville.syrjala at linux.intel.com
Thu Dec 15 15:24:57 UTC 2016


From: Ville Syrjälä <ville.syrjala at linux.intel.com>

Knowing how were trasmitting the data is pretty important, so let's
dump out the video transfer mode and pixel overlap for DSI.

Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
---
 tools/intel_bios.h        | 3 ++-
 tools/intel_bios_reader.c | 8 ++++++--
 2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/tools/intel_bios.h b/tools/intel_bios.h
index 324ef4a759b4..ca0d2c587120 100644
--- a/tools/intel_bios.h
+++ b/tools/intel_bios.h
@@ -743,7 +743,8 @@ struct mipi_config {
 	/* 2 byte Port Description */
 	uint16_t dual_link:2;
 	uint16_t lane_cnt:2;
-	uint16_t rsvd3:12;
+	uint16_t pixel_overlap:3;
+	uint16_t rsvd3:9;
 
 	/* 2 byte DSI COntroller params */
 	/* 0 - Using DSI PHY, 1 - TE usage */
diff --git a/tools/intel_bios_reader.c b/tools/intel_bios_reader.c
index d5297e27c3e7..3455296bc008 100644
--- a/tools/intel_bios_reader.c
+++ b/tools/intel_bios_reader.c
@@ -1046,12 +1046,16 @@ static void dump_mipi_config(struct context *context,
 		printf("RGB888\n");
 	printf("\t\t PPS GPIO Pins: %s \n", config->pwm_blc ? "Using SOC" : "Using PMIC");
 	printf("\t\t CABC Support: %s\n", config->cabc ? "supported" : "not supported");
-	//insert video mode type
 	printf("\t\t Mode: %s\n", config->cmd_mode ? "COMMAND" : "VIDEO");
+	printf("\t\t Video transfer mode: %s (0x%x)\n",
+	       config->vtm == 1 ? "non-burst with sync pulse" :
+	       config->vtm == 2 ? "non-burst with sync events" :
+	       config->vtm == 3 ? "burst" : "<unknown>",
+	       config->vtm);
 	printf("\t\t Dithering: %s\n", config->dithering ? "done in Display Controller" : "done in Panel Controller");
 
 	printf("\tPort Desc\n");
-	//insert pixel overlap count
+	printf("\t\t Pixel overlap: %d\n", config->pixel_overlap);
 	printf("\t\t Lane Count: %d\n", config->lane_cnt + 1);
 	printf("\t\t Dual Link Support: ");
 	if (config->dual_link == 0)
-- 
2.10.2



More information about the Intel-gfx mailing list