]> git.baikalelectronics.ru Git - kernel.git/commit
imx-drm: core: handling of DI clock flags to ipu_crtc_mode_set()
authorRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 21 Dec 2014 15:58:19 +0000 (15:58 +0000)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Wed, 7 Jan 2015 20:32:07 +0000 (21:32 +0100)
commit87896e2019f6e6f00a54e3d46d31ce3de9929451
treee03bdbda1b0727dbba0035c6749d2a5c9d0768b8
parentc4ff18721d736aa56941fb74ae1c910ef13fc3e6
imx-drm: core: handling of DI clock flags to ipu_crtc_mode_set()

We do not need to track the state of the IPU DI's clock flags by having
each display bridge calling back into imx-drm-core, and then back out
into ipuv3-crtc.c.

ipuv3-crtc can instead just scan the list of encoders to retrieve their
type, and build up a picture of which types of encoders are attached.
We can then use this information to configure the IPU DI clocking mode
without any uncertainty - if we have multiple bridges connected to the
same DI, if one of them requires a synchronous DI clock, that's what we
must use.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/gpu/drm/imx/imx-drm-core.c
drivers/gpu/drm/imx/imx-drm.h
drivers/gpu/drm/imx/ipuv3-crtc.c