drm/i915: Make sure hardware uses the correct swing margin/deemph bits on chv
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 18 Aug 2014 11:42:45 +0000 (14:42 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 3 Oct 2014 08:20:53 +0000 (10:20 +0200)
commita02ef3c7193c942c286cef815c3dc2b2f03660b4
tree884e5d53f6d5e24d9a21c3da5e69a64cd7644bea
parent1dda5f930451a8b9cbe915182cc64811fd67e186
drm/i915: Make sure hardware uses the correct swing margin/deemph bits on chv

The register can house two different swing marging/deemph settings at
once. However only one gets used based on some other bits. Make sure we
set those bits correctly to make the hardware use the settings we
provided.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/intel_dp.c
drivers/gpu/drm/i915/intel_hdmi.c