drm/i915: Parse max HDMI TMDS clock from VBT
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 30 Oct 2017 14:57:02 +0000 (16:57 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 30 Oct 2017 17:48:11 +0000 (19:48 +0200)
commitd6038611aa3d7d8080a8ae7f3122779fb4779a13
tree1544894356d80361c620fce7e3a1d579afc13cdd
parent6e8fbf8d19e48ca3b451233c8939b493a51d030d
drm/i915: Parse max HDMI TMDS clock from VBT

Starting from version 204 VBT can specify the max TMDS clock we are
allowed to use with HDMI ports. Parse that information and take it
into account when filtering modes and computing a crtc state.

Also take the opportunity to sort the platform check if ladder
from new to old.

v2: Add defines for the values into intel_vbt_defs.h (Jani)
    Don't fall back to 0 silently for unknown values (Jani)
    Skip the debug print for the 0 case (Jani)

Cc: Jani Nikula <jani.nikula@intel.com>
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/20171030145702.23662-1-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_bios.c
drivers/gpu/drm/i915/intel_hdmi.c
drivers/gpu/drm/i915/intel_vbt_defs.h