]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
dm: video: Flush the cache after a puts()
authorSimon Glass <sjg@chromium.org>
Sat, 30 Jan 2016 23:37:41 +0000 (16:37 -0700)
committerTom Warren <twarren@nvidia.com>
Tue, 16 Feb 2016 16:17:50 +0000 (09:17 -0700)
This helps keep the display consistent. puts() is used when printing the
prompt, so is a useful way to make sure the current display contents is
visible.

Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Anatolij Gustschin <agust@denx.de>
Signed-off-by: Tom Warren <twarren@nvidia.com>
drivers/video/vidconsole-uclass.c

index f6326b6e0720d734a40fb9bb1f2c63c6ebb6f291..832e90aea2bc9a4ae7ee5b1d99fcf1d01cd7dc6c 100644 (file)
@@ -170,6 +170,7 @@ static void vidconsole_puts(struct stdio_dev *sdev, const char *s)
 
        while (*s)
                vidconsole_put_char(dev, *s++);
+       video_sync(dev->parent);
 }
 
 /* Set up the number of rows and colours (rotated drivers override this) */