]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
video: mxsfb: enable setting PIXDATA on negative edge
authorGiulio Benetti <giulio.benetti@benettiengineering.com>
Wed, 8 Apr 2020 15:10:18 +0000 (17:10 +0200)
committerStefano Babic <sbabic@denx.de>
Sat, 18 Apr 2020 10:54:43 +0000 (12:54 +0200)
DOTCLK signal can now be flipped by writing its bitmask on vdctrl0
register.

Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
Reviewed-by: Anatolij Gustschin <agust@denx.de>
drivers/video/mxsfb.c

index 4d33e24e1ae890e88311e7ea554b88a3173dd562..648e1c22fefd2fac01317c6a211e2633f231935e 100644 (file)
@@ -129,6 +129,8 @@ static void mxs_lcd_init(struct udevice *dev, u32 fb_addr,
                vdctrl0 |= LCDIF_VDCTRL0_HSYNC_POL;
        if(flags & DISPLAY_FLAGS_VSYNC_HIGH)
                vdctrl0 |= LCDIF_VDCTRL0_VSYNC_POL;
+       if(flags & DISPLAY_FLAGS_PIXDATA_NEGEDGE)
+               vdctrl0 |= LCDIF_VDCTRL0_DOTCLK_POL;
        writel(vdctrl0, &regs->hw_lcdif_vdctrl0);
        writel(timings->vback_porch.typ + timings->vfront_porch.typ +
                timings->vsync_len.typ + timings->vactive.typ,