drm/i915: set CPT FDI RX polarity bits based on VBT
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Mon, 8 Apr 2013 18:48:07 +0000 (15:48 -0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 18 Apr 2013 07:43:31 +0000 (09:43 +0200)
commit3f704fa2778d3fe45e6529825a5c7a8bcbc686f4
treee89e97b4f8718d02260ef7a0c7613a55c7ee41f9
parentac4c16c56cd41f320af064fc7bf28a1ec82c2278
drm/i915: set CPT FDI RX polarity bits based on VBT

Check the VBT to see if the machine has inverted FDI RX polarity on
CPT. Based on this bit, set the appropriate bit on the TRANS_CHICKEN2
registers.

This should fix some machines that were showing black screens on all
outputs.

Cc: stable@vger.kernel.org
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=60029
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Reviewed-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/intel_bios.c
drivers/gpu/drm/i915/intel_bios.h
drivers/gpu/drm/i915/intel_pm.c