Commit 6ac67ccf authored by Ville Syrjälä's avatar Ville Syrjälä

drm/i915/bios: Get rid of "LVDS" from all LFP data stuff

The LFP data applies to all kinds of display interfaces, so
stop calling things by the "LVDS" name.
Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240503122449.27266-5-ville.syrjala@linux.intel.comReviewed-by: default avatarJani Nikula <jani.nikula@intel.com>
parent 7234f948
This diff is collapsed.
...@@ -305,7 +305,7 @@ enum drrs_type { ...@@ -305,7 +305,7 @@ enum drrs_type {
}; };
struct intel_vbt_panel_data { struct intel_vbt_panel_data {
struct drm_display_mode *lfp_lvds_vbt_mode; /* if any */ struct drm_display_mode *lfp_vbt_mode; /* if any */
struct drm_display_mode *sdvo_lvds_vbt_mode; /* if any */ struct drm_display_mode *sdvo_lvds_vbt_mode; /* if any */
/* Feature bits */ /* Feature bits */
......
...@@ -751,7 +751,7 @@ bool intel_dsi_vbt_init(struct intel_dsi *intel_dsi, u16 panel_id) ...@@ -751,7 +751,7 @@ bool intel_dsi_vbt_init(struct intel_dsi *intel_dsi, u16 panel_id)
struct intel_connector *connector = intel_dsi->attached_connector; struct intel_connector *connector = intel_dsi->attached_connector;
struct mipi_config *mipi_config = connector->panel.vbt.dsi.config; struct mipi_config *mipi_config = connector->panel.vbt.dsi.config;
struct mipi_pps_data *pps = connector->panel.vbt.dsi.pps; struct mipi_pps_data *pps = connector->panel.vbt.dsi.pps;
struct drm_display_mode *mode = connector->panel.vbt.lfp_lvds_vbt_mode; struct drm_display_mode *mode = connector->panel.vbt.lfp_vbt_mode;
u16 burst_mode_ratio; u16 burst_mode_ratio;
enum port port; enum port port;
......
...@@ -352,7 +352,7 @@ void intel_panel_add_vbt_lfp_fixed_mode(struct intel_connector *connector) ...@@ -352,7 +352,7 @@ void intel_panel_add_vbt_lfp_fixed_mode(struct intel_connector *connector)
struct drm_i915_private *i915 = to_i915(connector->base.dev); struct drm_i915_private *i915 = to_i915(connector->base.dev);
const struct drm_display_mode *mode; const struct drm_display_mode *mode;
mode = connector->panel.vbt.lfp_lvds_vbt_mode; mode = connector->panel.vbt.lfp_vbt_mode;
if (!mode) if (!mode)
return; return;
......
...@@ -165,10 +165,10 @@ enum bdb_block_id { ...@@ -165,10 +165,10 @@ enum bdb_block_id {
BDB_SDVO_LVDS_POWER_SEQ = 25, BDB_SDVO_LVDS_POWER_SEQ = 25,
BDB_TV_OPTIONS = 26, BDB_TV_OPTIONS = 26,
BDB_EDP = 27, BDB_EDP = 27,
BDB_LVDS_OPTIONS = 40, BDB_LFP_OPTIONS = 40,
BDB_LVDS_LFP_DATA_PTRS = 41, BDB_LFP_DATA_PTRS = 41,
BDB_LVDS_LFP_DATA = 42, BDB_LFP_DATA = 42,
BDB_LVDS_BACKLIGHT = 43, BDB_LFP_BACKLIGHT = 43,
BDB_LFP_POWER = 44, BDB_LFP_POWER = 44,
BDB_MIPI_CONFIG = 52, BDB_MIPI_CONFIG = 52,
BDB_MIPI_SEQUENCE = 53, BDB_MIPI_SEQUENCE = 53,
...@@ -769,7 +769,7 @@ struct bdb_edp { ...@@ -769,7 +769,7 @@ struct bdb_edp {
* Block 40 - LFP Data Block * Block 40 - LFP Data Block
*/ */
struct bdb_lvds_options { struct bdb_lfp_options {
u8 panel_type; u8 panel_type;
u8 panel_type2; /* 212+ */ u8 panel_type2; /* 212+ */
/* LVDS capabilities, stored in a dword */ /* LVDS capabilities, stored in a dword */
...@@ -802,22 +802,22 @@ struct bdb_lvds_options { ...@@ -802,22 +802,22 @@ struct bdb_lvds_options {
/* /*
* Block 41 - LFP Data Table Pointers * Block 41 - LFP Data Table Pointers
*/ */
struct lvds_lfp_data_ptr_table { struct lfp_data_ptr_table {
u16 offset; /* offsets are from start of bdb */ u16 offset; /* offsets are from start of bdb */
u8 table_size; u8 table_size;
} __packed; } __packed;
/* LFP pointer table contains entries to the struct below */ /* LFP pointer table contains entries to the struct below */
struct lvds_lfp_data_ptr { struct lfp_data_ptr {
struct lvds_lfp_data_ptr_table fp_timing; struct lfp_data_ptr_table fp_timing;
struct lvds_lfp_data_ptr_table dvo_timing; struct lfp_data_ptr_table dvo_timing;
struct lvds_lfp_data_ptr_table panel_pnp_id; struct lfp_data_ptr_table panel_pnp_id;
} __packed; } __packed;
struct bdb_lvds_lfp_data_ptrs { struct bdb_lfp_data_ptrs {
u8 lvds_entries; u8 num_entries;
struct lvds_lfp_data_ptr ptr[16]; struct lfp_data_ptr ptr[16];
struct lvds_lfp_data_ptr_table panel_name; /* (156-163?)+ */ struct lfp_data_ptr_table panel_name; /* (156-163?)+ */
} __packed; } __packed;
/* /*
...@@ -825,7 +825,7 @@ struct bdb_lvds_lfp_data_ptrs { ...@@ -825,7 +825,7 @@ struct bdb_lvds_lfp_data_ptrs {
*/ */
/* LFP data has 3 blocks per entry */ /* LFP data has 3 blocks per entry */
struct lvds_fp_timing { struct fp_timing {
u16 x_res; u16 x_res;
u16 y_res; u16 y_res;
u32 lvds_reg; u32 lvds_reg;
...@@ -846,29 +846,29 @@ struct lvds_fp_timing { ...@@ -846,29 +846,29 @@ struct lvds_fp_timing {
* the data must be accessed using the data table pointers. * the data must be accessed using the data table pointers.
* Do not use this directly! * Do not use this directly!
*/ */
struct lvds_lfp_data_entry { struct lfp_data_entry {
struct lvds_fp_timing fp_timing; struct fp_timing fp_timing;
struct bdb_edid_dtd dvo_timing; struct bdb_edid_dtd dvo_timing;
struct bdb_edid_pnp_id pnp_id; struct bdb_edid_pnp_id pnp_id;
} __packed; } __packed;
struct bdb_lvds_lfp_data { struct bdb_lfp_data {
struct lvds_lfp_data_entry data[16]; struct lfp_data_entry data[16];
} __packed; } __packed;
struct lvds_lfp_black_border { struct lfp_black_border {
u8 top; /* 227+ */ u8 top; /* 227+ */
u8 bottom; /* 227+ */ u8 bottom; /* 227+ */
u8 left; /* 238+ */ u8 left; /* 238+ */
u8 right; /* 238+ */ u8 right; /* 238+ */
} __packed; } __packed;
struct bdb_lvds_lfp_data_tail { struct bdb_lfp_data_tail {
struct bdb_edid_product_name panel_name[16]; /* (156-163?)+ */ struct bdb_edid_product_name panel_name[16]; /* (156-163?)+ */
u16 scaling_enable; /* 187+ */ u16 scaling_enable; /* 187+ */
u8 seamless_drrs_min_refresh_rate[16]; /* 188+ */ u8 seamless_drrs_min_refresh_rate[16]; /* 188+ */
u8 pixel_overlap_count[16]; /* 208+ */ u8 pixel_overlap_count[16]; /* 208+ */
struct lvds_lfp_black_border black_border[16]; /* 227+ */ struct lfp_black_border black_border[16]; /* 227+ */
u16 dual_lfp_port_sync_enable; /* 231+ */ u16 dual_lfp_port_sync_enable; /* 231+ */
u16 gpu_dithering_for_banding_artifacts; /* 245+ */ u16 gpu_dithering_for_banding_artifacts; /* 245+ */
} __packed; } __packed;
...@@ -901,7 +901,7 @@ struct lfp_brightness_level { ...@@ -901,7 +901,7 @@ struct lfp_brightness_level {
u16 reserved; u16 reserved;
} __packed; } __packed;
struct bdb_lfp_backlight_data { struct bdb_lfp_backlight {
u8 entry_size; u8 entry_size;
struct lfp_backlight_data_entry data[16]; struct lfp_backlight_data_entry data[16];
u8 level[16]; /* 162-233 */ u8 level[16]; /* 162-233 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment