]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Add state readout and checking for has_dp_encoder and dp_m_n
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 10 Sep 2013 14:02:54 +0000 (17:02 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 13 Sep 2013 12:53:21 +0000 (14:53 +0200)
commit76ed6ba37ac8e59322c2f5f481f85c860276e510
treed1ce3127fa293a68d798f4d206924dbeb2183b8a
parenta97a234a891e90f5a7b5230af9403feaaec2f127
drm/i915: Add state readout and checking for has_dp_encoder and dp_m_n

Add functions to read out the CPU and PCH transcoder M/N values,
and use them to fill out the pipe config dp_m_n information. And
while at it populate has_dp_encoder too.

Also refactor ironlake_get_fdi_m_n_config() to simply call the new
intel_cpu_transcoder_get_m_n() function.

v2: Remember the DDI

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_ddi.c
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_dp.c
drivers/gpu/drm/i915/intel_drv.h