video: ipu_disp: Fix clock polarity logic
authorFabio Estevam <fabio.estevam@freescale.com>
Tue, 29 Oct 2013 17:46:21 +0000 (15:46 -0200)
committerAnatolij Gustschin <agust@denx.de>
Wed, 30 Oct 2013 09:37:59 +0000 (10:37 +0100)
commit2740e5de4f3cd0aa36efcfe1a995fb6e3858cc97
tree8ee1b01aabb73629d931048b736a06d3e557b35e
parent7e575c46c34b5f1316eab39025fdced197629ccb
video: ipu_disp: Fix clock polarity logic

Currently the HDMI splash screen image quality on mx6solo does not show a
very stable image.

By comparing the IPU driver from U-boot with the one from FSL 4.1.0 BSP,
we can see that there is an inverted logic for setting the DI_GEN_POL_CLK bit.

>From FSL BSP [1] we have:

if (!sig.clk_pol)
di_gen |= DI_GEN_POLARITY_DISP_CLK;

Applying the same logic into U-boot fixes the HDMI image stability.

[1] git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/tree/drivers/mxc/ipu3/ipu_disp.c?h=imx_3.0.35_4.1.0

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Tested-by: Eric Nelson <eric.nelson@boundarydevices.com>
Acked-by: Eric Nelson <eric.nelson@boundarydevices.com>
Acked-by: Stefano Babic <sbabic@denx.de>
drivers/video/ipu_disp.c