drm/i915: Add HSW CRT output readout support
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 24 Sep 2013 11:24:05 +0000 (14:24 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 28 Oct 2013 16:48:24 +0000 (17:48 +0100)
commit7195a50b5c7e00cc3312934fd022c3006b533d12
tree1e15e1fd244325ab88dae65445b9801c3140e03d
parent4f56d12ebb28fceac4c6e60c8993fbfc122e1399
drm/i915: Add HSW CRT output readout support

Call intel_ddi_get_config() to get the pipe_bpp settings from
DDI.

The sync polarity settings from DDI are irrelevant for CRT
output, so override them with data from the ADPA register.

Note: This is already merged in drm-intel-next-queued as

commit 6801c18c0a43386bb44712cbc028a7e05adb9f0d
Author: Ville Syrjälä <ville.syrjala@linux.intel.com>
Date:   Tue Sep 24 14:24:05 2013 +0300

    drm/i915: Add HSW CRT output readout support

but is required for the following edp bpp bugfix.

v2: Extract intel_crt_get_flags()

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=69691
Tested-by: Qingshuai Tian <qingshuai.tian@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: stable@vger.kernel.org
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_crt.c
drivers/gpu/drm/i915/intel_ddi.c
drivers/gpu/drm/i915/intel_drv.h