]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
drm/i915/bios: Define VBT block 50 (MIPI) contents
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 3 May 2024 12:24:46 +0000 (15:24 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 8 May 2024 13:46:39 +0000 (16:46 +0300)
Define the contents of VBT block 50 (MIPI).

This was some easly attempt at a MIPI DSI stuff. I'm not sure
this was ever actually used (I certainly don't have any VBTs
with this block), but here's some kind of definition for it
anyway.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240503122449.27266-33-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/display/intel_vbt_defs.h

index 2e900e42de3138a46fbda27b4b1c0baed30997b5..19c2341931b37106cdec6717a82f161614396464 100644 (file)
@@ -179,6 +179,7 @@ enum bdb_block_id {
        BDB_LFP_POWER                   = 44,
        BDB_EDP_BFI                     = 45, /* 160+ */
        BDB_CHROMATICITY                = 46, /* 169+ */
+       BDB_MIPI                        = 50, /* 170-172 */
        BDB_FIXED_SET_MODE              = 51, /* 172+ */
        BDB_MIPI_CONFIG                 = 52, /* 175+ */
        BDB_MIPI_SEQUENCE               = 53, /* 177+ */
@@ -1388,6 +1389,52 @@ struct bdb_chromaticity {
        struct chromaticity chromaticity[16];
 } __packed;
 
+/*
+ * Block 50 - MIPI Block
+ */
+
+struct mipi_data {
+       u16 panel_identifier;
+       u16 bridge_revision;
+
+       u32 dithering:1;
+       u32 pixel_format_18bpp:1;
+       u32 reserved1:1;
+       u32 dphy_params_valid:1;
+       u32 reserved2:28;
+
+       u16 port_info;
+
+       u16 reserved3:2;
+       u16 num_lanes:2;
+       u16 reserved4:12;
+
+       u16 virtual_channel_num:2;
+       u16 video_transfer_mode:2;
+       u16 reserved5:12;
+
+       u32 dsi_ddr_clock;
+       u32 renesas_bridge_ref_clock;
+       u16 power_conservation;
+
+       u32 prepare_count:5;
+       u32 reserved6:3;
+       u32 clk_zero_count:8;
+       u32 trail_count:5;
+       u32 reserved7:3;
+       u32 exit_zero_count:6;
+       u32 reserved8:2;
+
+       u32 high_low_switch_count;
+       u32 lp_byte_clock;
+       u32 clock_lane_switch_time_counter;
+       u32 panel_color_depth;
+} __packed;
+
+struct bdb_mipi {
+       struct mipi_data mipi[16];
+} __packed;
+
 /*
  * Block 51 - Fixed Set Mode Table
  */