On Fri, 03 May 2024, Ville Syrjala <ville.syrj...@linux.intel.com> wrote:
> From: Ville Syrjälä <ville.syrj...@linux.intel.com>
>
> 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.syrj...@linux.intel.com>

Reviewed-by: Jani Nikula <jani.nik...@intel.com>

> ---
>  drivers/gpu/drm/i915/display/intel_vbt_defs.h | 47 +++++++++++++++++++
>  1 file changed, 47 insertions(+)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_vbt_defs.h 
> b/drivers/gpu/drm/i915/display/intel_vbt_defs.h
> index 0e5a2bf429f4..3bcb9fb5b706 100644
> --- a/drivers/gpu/drm/i915/display/intel_vbt_defs.h
> +++ b/drivers/gpu/drm/i915/display/intel_vbt_defs.h
> @@ -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+ */
> @@ -1393,6 +1394,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
>   */

-- 
Jani Nikula, Intel

Reply via email to