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>
Tue, 1 Oct 2013 05:45:15 +0000 (07:45 +0200)
commit6801c18c0a43386bb44712cbc028a7e05adb9f0d
tree4f34799e3b704f8ac4132f18c874bbe32bc3cb52
parentf2335330ec5cd9c4b189b365560c044fe8556ccf
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.

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>
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