]> git.karo-electronics.de Git - karo-tx-uboot.git/commitdiff
Fix bug in Lime video driver
authorAnatolij Gustschin <agust@denx.de>
Sat, 12 Jul 2008 15:31:36 +0000 (17:31 +0200)
committerWolfgang Denk <wd@denx.de>
Sun, 13 Jul 2008 14:55:59 +0000 (16:55 +0200)
We need to wait while drawing engine clears frame
buffer before any further software accesses to frame
buffer will be initiated. Otherwise software drawn
parts could be partially destroyed by the drawing
engine or even GDC chip freeze could occur (as
observed on socrates board).

Signed-off-by: Anatolij Gustschin <agust@denx.de>
drivers/video/mb862xx.c

index 9684cf3b7c0a690d3b765cc0fbe3a06dd3b9ea45..733d9a2accd56436289645fa299822146c1649f5 100644 (file)
@@ -173,6 +173,8 @@ static void de_init (void)
        DE_WR_FIFO (0x09410000);
        DE_WR_FIFO (0x00000000);
        DE_WR_FIFO (pGD->winSizeY<<16 | pGD->winSizeX);
+       /* sync with SW access to framebuffer */
+       de_wait ();
 }
 
 #if defined(CONFIG_VIDEO_CORALP)