]> 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)
commitb52079f3c9da214d64442ae60de744b7d1921f79
treed1ce3127fa293a68d798f4d206924dbeb2183b8a
parent72145560e4248c331259dd0a9f2f3feff734e92e
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