drm/i915: implement workaround for VTOTAL when using TRANSCODER_EDP
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Wed, 24 Oct 2012 13:34:43 +0000 (11:34 -0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 26 Oct 2012 08:24:49 +0000 (10:24 +0200)
commitb5e508d4c01b4aab6abb90488603f9bcfbb64b52
tree3b08f5ba3c548a42e8d234c445051883b5fbded1
parentfe2b8f9dfb05f78d525bf6668549271af1860ee5
drm/i915: implement workaround for VTOTAL when using TRANSCODER_EDP

See the documentation for the DDI_FUNC_CTL register, EDP Input Select
bits: when the EDP input selection is B, the VTOTAL_B must be
programmed with the VTOTAL_EDP value, same thing for selection C.

V2: Use I915_READ as suggested by Daniel Vetter.

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c