summaryrefslogtreecommitdiffstats
path: root/drivers/serial/sandbox.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-01-18 19:52:25 -0700
committerSimon Glass <sjg@chromium.org>2016-01-20 19:10:16 -0700
commit3ade5bc4dc24edf5e1f13f3c43a9e8b7f8c2d853 (patch)
treee276da8f4b751ea7feecf32fa750e71671bfa7f2 /drivers/serial/sandbox.c
parent1e69ad014c68bf375ba2113486c5c0095d3292d0 (diff)
downloadblackbird-obmc-uboot-3ade5bc4dc24edf5e1f13f3c43a9e8b7f8c2d853.tar.gz
blackbird-obmc-uboot-3ade5bc4dc24edf5e1f13f3c43a9e8b7f8c2d853.zip
dm: video: sandbox: Convert sandbox to use driver model for video
Now that driver model support is available, convert sandbox over to use it. We can remove a few of the special hooks that sandbox currently has. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Anatolij Gustschin <agust@denx.de>
Diffstat (limited to 'drivers/serial/sandbox.c')
-rw-r--r--drivers/serial/sandbox.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/serial/sandbox.c b/drivers/serial/sandbox.c
index cd2f91e28e..45dff98d9d 100644
--- a/drivers/serial/sandbox.c
+++ b/drivers/serial/sandbox.c
@@ -16,6 +16,7 @@
#include <lcd.h>
#include <os.h>
#include <serial.h>
+#include <video.h>
#include <linux/compiler.h>
#include <asm/state.h>
@@ -114,9 +115,7 @@ static int sandbox_serial_pending(struct udevice *dev, bool input)
return 0;
os_usleep(100);
-#ifdef CONFIG_LCD
- lcd_sync();
-#endif
+ video_sync_all();
if (next_index == serial_buf_read)
return 1; /* buffer full */
OpenPOWER on IntegriCloud