]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: create pipe_config->dpll for clock state
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 28 Mar 2013 09:42:02 +0000 (10:42 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 3 Apr 2013 09:37:23 +0000 (11:37 +0200)
commit8b8b2e1fa10c88ae62779cf344abe30e485123ae
tree16f0eb36e9cbca872077fd106f00cdd746b7c5cc
parentf9ad58b6443c9f90318d74efa9a9033b7411c6ad
drm/i915: create pipe_config->dpll for clock state

Clock computations and handling are highly encoder specific, both in
the optimal clock selection and also in which clocks to use and when
sharing of clocks is possible.

So the best place to do this is somewhere in the encoders, with a
generic fallback for those encoders without special needs. To facility
this, add a pipe_config->clocks_set boolean.

This patch here is only prep work, it simply sets the computed clock
values in pipe_config->dpll, and uses that data in the hw clock
setting functions.

Haswell code isn't touched, simply because Haswell clocks work much
different and need their own infrastructure (with probably a
Haswell-specific config->ddi_clock substruct).

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_drv.h