[PATCH i-g-t 22/27] tools/intel_vbt_decode: Decode block 51 (Fixed Set Mode Table)
Ville Syrjala
ville.syrjala at linux.intel.com
Fri Jun 7 13:57:53 UTC 2024
From: Ville Syrjälä <ville.syrjala at linux.intel.com>
Decode VBT block block 51 (Fixed Set Mode Table). Seems useless.
Example output from ADL:
BDB block 51 (9 bytes, min 9 bytes) - Fixed set mode:
0000: 33 09 00 00 00 00 00 00 00 00 00 00
Enable: no (0x00)
X Res: 0
Y Res: 0
Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
---
tools/intel_vbt_decode.c | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/tools/intel_vbt_decode.c b/tools/intel_vbt_decode.c
index cc763d25f08b..c42585e4ab18 100644
--- a/tools/intel_vbt_decode.c
+++ b/tools/intel_vbt_decode.c
@@ -387,6 +387,8 @@ static size_t block_min_size(const struct context *context, int section_id)
return sizeof(struct bdb_edp_bfi);
case BDB_CHROMATICITY:
return sizeof(struct bdb_chromaticity);
+ case BDB_FIXED_SET_MODE:
+ return sizeof(struct bdb_fixed_set_mode);
case BDB_MIPI_CONFIG:
return sizeof(struct bdb_mipi_config);
case BDB_MIPI_SEQUENCE:
@@ -2787,6 +2789,16 @@ static void dump_chromaticity(struct context *context,
}
}
+static void dump_fixed_set_mode(struct context *context,
+ const struct bdb_block *block)
+{
+ const struct bdb_fixed_set_mode *f = block_data(block);
+
+ printf("\tEnable: %s (0x%02x)\n", YESNO(f->enable), f->enable);
+ printf("\tX Res: %d\n", f->x_res);
+ printf("\tY Res: %d\n", f->y_res);
+}
+
static void dump_mipi_config(struct context *context,
const struct bdb_block *block)
{
@@ -3686,6 +3698,11 @@ struct dumper dumpers[] = {
.name = "Chromaticity for narrow gamut panel",
.dump = dump_chromaticity,
},
+ {
+ .id = BDB_FIXED_SET_MODE,
+ .name = "Fixed set mode",
+ .dump = dump_fixed_set_mode,
+ },
{
.id = BDB_MIPI_CONFIG,
.name = "MIPI configuration block",
--
2.44.2
More information about the igt-dev
mailing list