浏览代码

Fix bug in Lime video driver

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>
Anatolij Gustschin 17 年之前
父节点
当前提交
322716a1d1
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      drivers/video/mb862xx.c

+ 2 - 0
drivers/video/mb862xx.c

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