]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: track dp target_clock in pipe_config
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 28 Mar 2013 09:41:58 +0000 (10:41 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 3 Apr 2013 09:29:44 +0000 (11:29 +0200)
commit3b3394e4237ab7a1d83025ca6044d6a8072bbc83
tree32960ed91a415d2b16153067f7f1f31249a0ed44
parent30194f3f94d42344a53f1198a312cb8e19b26ebb
drm/i915: track dp target_clock in pipe_config

We need it in the fdi m_n computation, which nicely kills almost
all ugly special cases in there.

It looks like we also need this to handle 12bpc hdmi correctly.

Eventually it might be better to switch things around and put the
target clock into adjusted_mode->clock and create a new pipe_config
parameter for the port link clock.

v2: Add a massive comment in the code to explain this mess.

v3: s/dp_target_clock/pixel_target_clock in anticipation of the hdmi
use-case.

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