From: Anatolij Gustschin Date: Sat, 12 Jul 2008 15:31:36 +0000 (+0200) Subject: Fix bug in Lime video driver X-Git-Tag: v1.3.4-rc1~25 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=322716a1d1eb33a71067ba0eb1c5346fb2dd6b34;p=u-boot 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 --- diff --git a/drivers/video/mb862xx.c b/drivers/video/mb862xx.c index 9684cf3b7c..733d9a2acc 100644 --- a/drivers/video/mb862xx.c +++ b/drivers/video/mb862xx.c @@ -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)