]> git.karo-electronics.de Git - linux-beck.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)
commiteb14cb747bc53465cbc93e54d9f19f49eed2c0c7
treed1ce3127fa293a68d798f4d206924dbeb2183b8a
parent42571aefafb1d330ef84eb29418832f72e7dfb4c
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