From: Ville Syrjälä <ville.syrjala@xxxxxxxxxxxxxxx> Quick attempt at unifying the VBT DDI parsing to all g4x+ platforms. Note that we'll still use the hardware straps as the primary source of port presence information on old platforms since the device type bits in VBT tend to be often a bit wrong (for DP++ ports at least). Hopefully the rest of the information (mainly aux_ch/ddc_pin) are correct. Only very slightly smoke tested on SNB so far. Ville Syrjälä (6): drm/i915/bios: Introduce has_ddi_port_info() drm/i915/bios: Use i915->vbt.ports[] on CHV drm/i915/bios: Use i915->vbt.ports[] for all g4x+ drm/i915/bios: Throw out the !has_ddi_port_info() codepaths drm/i915/bios: Nuke DEVICE_TYPE_DP_DUAL_MODE_BITS drm/i915/hdmi: Ignore DP++ TMDS clock limit for native HDMI ports drivers/gpu/drm/i915/display/intel_bios.c | 117 +++--------------- drivers/gpu/drm/i915/display/intel_hdmi.c | 8 ++ drivers/gpu/drm/i915/display/intel_vbt_defs.h | 26 ---- 3 files changed, 28 insertions(+), 123 deletions(-) -- 2.32.0