drm/i915/bios: Split parse_driver_features() into two parts
We use the "driver features" block for two different kinds of data: global data, and per panel data. Split the function into two parts along that line so that we can start doing the parsing in two different locations. Reviewed-by: Jani Nikula <jani.nikula@intel.com> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20220510104242.6099-11-ville.syrjala@linux.intel.com
This commit is contained in:
@@ -1180,6 +1180,16 @@ parse_driver_features(struct drm_i915_private *i915)
|
||||
driver->lvds_config != BDB_DRIVER_FEATURE_INT_SDVO_LVDS)
|
||||
i915->vbt.int_lvds_support = 0;
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
parse_panel_driver_features(struct drm_i915_private *i915)
|
||||
{
|
||||
const struct bdb_driver_features *driver;
|
||||
|
||||
driver = find_section(i915, BDB_DRIVER_FEATURES);
|
||||
if (!driver)
|
||||
return;
|
||||
|
||||
if (i915->vbt.version < 228) {
|
||||
drm_dbg_kms(&i915->drm, "DRRS State Enabled:%d\n",
|
||||
@@ -2957,6 +2967,7 @@ void intel_bios_init(struct drm_i915_private *i915)
|
||||
parse_lfp_backlight(i915);
|
||||
parse_sdvo_panel_data(i915);
|
||||
parse_driver_features(i915);
|
||||
parse_panel_driver_features(i915);
|
||||
parse_power_conservation_features(i915);
|
||||
parse_edp(i915);
|
||||
parse_psr(i915);
|
||||
|
||||
Reference in New Issue
Block a user