MLK-17023 drm/imx: ldb: Align HSYNC and VSYNC polarities with PHY in DE mode
authorLiu Ying <victor.liu@nxp.com>
Wed, 29 Nov 2017 06:19:46 +0000 (14:19 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Tue, 20 Mar 2018 19:49:44 +0000 (14:49 -0500)
commitb774e22b498c066b3c00e13749591f1ea36a35d1
treeaaa6ae4aac3841bb574ab9544dc7c6156a64bebf
parentc7720e8e863c0678962f0309247d6d524a2144c8
MLK-17023 drm/imx: ldb: Align HSYNC and VSYNC polarities with PHY in DE mode

When an external display device works in data enable(DE) mode,
it usually provides video mode(s) without HSYNC and VSYNC
polarities via display flags.  In this case, the controller(LDB)
and the LVDS PHY still need to align the two signal polarities
with each other respectively.  Otherwise, polarities generated
by default register values may cause mismatch polarities and
display artifacts.  With the DE mode JDI TX26D202VM0BWA panel,
we see vertical lines(very likely, only one) at the left boundary
are missing sometimes, which is caused by this mismatch.  This
patch replaces the default polarity status with explicit active
high in DE mode to fix the issue.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
drivers/gpu/drm/imx/imx-ldb.c