Skip to content
Snippets Groups Projects
Commit 70dbc54c authored by Haavard Skinnemoen's avatar Haavard Skinnemoen Committed by Anatolij Gustschin
Browse files

atmel_lcdfb: Straighten out funky vl_sync logic


If the board _didn't_ request INVLINE_INVERTED, we set INVLINE_INVERTED,
otherwise we don't. WTF?

Signed-off-by: default avatarHaavard Skinnemoen <haavard.skinnemoen@atmel.com>
Signed-off-by: default avatarAnatolij Gustschin <agust@denx.de>
parent 23bb28f0
No related branches found
No related tags found
No related merge requests found
...@@ -107,10 +107,7 @@ void lcd_ctrl_init(void *lcdbase) ...@@ -107,10 +107,7 @@ void lcd_ctrl_init(void *lcdbase)
if (panel_info.vl_tft) if (panel_info.vl_tft)
value |= ATMEL_LCDC_DISTYPE_TFT; value |= ATMEL_LCDC_DISTYPE_TFT;
if (!(panel_info.vl_sync & ATMEL_LCDC_INVLINE_INVERTED)) value |= panel_info.vl_sync;
value |= ATMEL_LCDC_INVLINE_INVERTED;
if (!(panel_info.vl_sync & ATMEL_LCDC_INVFRAME_INVERTED))
value |= ATMEL_LCDC_INVFRAME_INVERTED;
value |= (panel_info.vl_bpix << 5); value |= (panel_info.vl_bpix << 5);
lcdc_writel(panel_info.mmio, ATMEL_LCDC_LCDCON2, value); lcdc_writel(panel_info.mmio, ATMEL_LCDC_LCDCON2, value);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment