]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
video: da8xx-fb: enable sync lost intr for v2 ip
authorAfzal Mohammed <afzal@ti.com>
Mon, 5 Aug 2013 22:02:32 +0000 (17:02 -0500)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 9 Aug 2013 11:02:42 +0000 (14:02 +0300)
The interrupt handler explicitly has code that handles the sync lost
interrupt.  However the sync lost interrupt is never actually being
enabled in the LCD controller, therefore this interrupt code path is not
being exercised.  This fix simply enables the generation of the sync
lost interrupt by the LCD controller so it can be dealt with
appropriately by the interrupt handler.

Signed-off-by: Afzal Mohammed <afzal@ti.com>
Signed-off-by: Darren Etheridge <detheridge@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/da8xx-fb.c

index 893aefe2547899f6c65690565d17e073737aa80a..8384455164d7b7664aeb9c6638c753c05f9fea26 100644 (file)
@@ -320,7 +320,7 @@ static void lcd_blit(int load_mode, struct da8xx_fb_par *par)
                        reg_int = lcdc_read(LCD_INT_ENABLE_SET_REG) |
                                LCD_V2_END_OF_FRAME0_INT_ENA |
                                LCD_V2_END_OF_FRAME1_INT_ENA |
-                               LCD_FRAME_DONE;
+                               LCD_FRAME_DONE | LCD_SYNC_LOST;
                        lcdc_write(reg_int, LCD_INT_ENABLE_SET_REG);
                }
                reg_dma |= LCD_DUAL_FRAME_BUFFER_ENABLE;