drm/i915: move dp_m_n computation to dp_encoder->compute_config
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 2 Apr 2013 21:42:31 +0000 (23:42 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 3 Apr 2013 09:29:26 +0000 (11:29 +0200)
commit03afc4a2618e579eab402d0b4e8b035bd873286a
tree8f93b54602b716c2174fa257b93528449be8160d
parent6cf86a5e7acd8731fa90ce24e777f684335218dc
drm/i915: move dp_m_n computation to dp_encoder->compute_config

We need a flag to designate dp encoders and the dp link m_n parameters
in the pipe config for that. And now that the pipe bpp computations
have been moved up and stored in the pipe config, too, we can do this
without losing our sanity.

v2: Rebased on top of Takashi Iwai's fix to (again) fix the target
clock handling for eDP. Luckily the new code is sane enough and just
does the right thing!

v3: Move ->has_dp_encoder to this patch (Jesse).

Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_dp.c
drivers/gpu/drm/i915/intel_drv.h