]> git.sur5r.net Git - u-boot/commitdiff
atmel_lcdfb: Straighten out funky vl_sync logic
authorHaavard Skinnemoen <haavard.skinnemoen@atmel.com>
Mon, 1 Sep 2008 14:21:19 +0000 (16:21 +0200)
committerAnatolij Gustschin <agust@denx.de>
Sat, 25 Oct 2008 18:33:32 +0000 (20:33 +0200)
If the board _didn't_ request INVLINE_INVERTED, we set INVLINE_INVERTED,
otherwise we don't. WTF?

Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
Signed-off-by: Anatolij Gustschin <agust@denx.de>
drivers/video/atmel_lcdfb.c

index 7f0dceb35f69c5c4e1de5fbe33d6993708a90c5e..3a51cc7c560becba966855d9692d63ed8a82433e 100644 (file)
@@ -107,10 +107,7 @@ void lcd_ctrl_init(void *lcdbase)
        if (panel_info.vl_tft)
                value |= ATMEL_LCDC_DISTYPE_TFT;
 
-       if (!(panel_info.vl_sync & ATMEL_LCDC_INVLINE_INVERTED))
-               value |= ATMEL_LCDC_INVLINE_INVERTED;
-       if (!(panel_info.vl_sync & ATMEL_LCDC_INVFRAME_INVERTED))
-               value |= ATMEL_LCDC_INVFRAME_INVERTED;
+       value |= panel_info.vl_sync;
        value |= (panel_info.vl_bpix << 5);
        lcdc_writel(panel_info.mmio, ATMEL_LCDC_LCDCON2, value);