diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2014-09-12 15:46:29 +0300 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2014-09-18 14:52:14 +0300 |
commit | 8c875fca1a8d76665c60fa141c220cee65f44f5e (patch) | |
tree | 91da5458a26495d4e9a354f8fe1e584b45feb72a /drivers/gpu/drm/i915/intel_dp.c | |
parent | 611a7a4fd8b5fb6b25ab1f8bdcde61800a7feacf (diff) | |
download | talos-obmc-linux-8c875fca1a8d76665c60fa141c220cee65f44f5e.tar.gz talos-obmc-linux-8c875fca1a8d76665c60fa141c220cee65f44f5e.zip |
drm/i915: Add limited color range readout for HDMI/DP ports on g4x/vlv/chv
The limited color range knob is in the port registers on
g4x and vlv/chv for HDMI, and on g4x for DP. Add the relevant code
to read out the hardware state into pipe config. On vlv/chv the
DP port limited color range knob is in PIPECONF for which we
already have readout code.
Cc: Chris Clayton <chris2553@googlemail.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Tested-by: Chris Clayton <chris2553@googlemail.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_dp.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_dp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c index 81d7681faa63..fdff1d420c14 100644 --- a/drivers/gpu/drm/i915/intel_dp.c +++ b/drivers/gpu/drm/i915/intel_dp.c @@ -1631,6 +1631,10 @@ static void intel_dp_get_config(struct intel_encoder *encoder, pipe_config->adjusted_mode.flags |= flags; + if (!HAS_PCH_SPLIT(dev) && !IS_VALLEYVIEW(dev) && + tmp & DP_COLOR_RANGE_16_235) + pipe_config->limited_color_range = true; + pipe_config->has_dp_encoder = true; intel_dp_get_m_n(crtc, pipe_config); |