OSDN Git Service

drm/imx: imx-ldb: disable LDB on driver bind
authorLucas Stach <l.stach@pengutronix.de>
Wed, 11 Apr 2018 15:31:35 +0000 (17:31 +0200)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Mon, 16 Jul 2018 14:56:34 +0000 (16:56 +0200)
commitb58262396fabd43dc869b576e3defdd23b32fe94
tree11b26258e408c85b9d464fc823ae7ec6b18b083c
parentce397d215ccd07b8ae3f71db689aedb85d56ab40
drm/imx: imx-ldb: disable LDB on driver bind

The LVDS signal integrity is only guaranteed when the correct enable
sequence (first IPU DI, then LDB) is used. If the LDB display output was
active before the imx-drm driver is loaded (like when a bootsplash was
active) the DI will be disabled by the full IPU reset we do when loading
the driver. The LDB control registers are not part of the IPU range and
thus will remain unchanged.

This leads to the LDB still being active when the DI is getting enabled,
effectively reversing the required enable sequence. Fix this by also
disabling the LDB on driver bind.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/gpu/drm/imx/imx-ldb.c