summaryrefslogtreecommitdiff
path: root/drivers/serial
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-07-04 11:57:53 -0600
committerSimon Glass <sjg@chromium.org>2016-07-14 20:40:24 -0600
commit0110f509c85de1e4bc7fff301a1194fdee4bdc5f (patch)
tree5d5cba7ab6b40e17d81a7e69dc807d45cc52403c /drivers/serial
parent1c12bcee70d99fa4f4124a87ea965526ee164d3c (diff)
downloadu-boot-imx-0110f509c85de1e4bc7fff301a1194fdee4bdc5f.zip
u-boot-imx-0110f509c85de1e4bc7fff301a1194fdee4bdc5f.tar.gz
u-boot-imx-0110f509c85de1e4bc7fff301a1194fdee4bdc5f.tar.bz2
sandbox: serial: Don't sync video in SPL
SPL does not support an LCD display so there is no need to sync the video when there is serial output. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/serial')
-rw-r--r--drivers/serial/sandbox.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/serial/sandbox.c b/drivers/serial/sandbox.c
index 58f882b..bcc3465 100644
--- a/drivers/serial/sandbox.c
+++ b/drivers/serial/sandbox.c
@@ -115,7 +115,9 @@ static int sandbox_serial_pending(struct udevice *dev, bool input)
return 0;
os_usleep(100);
+#ifndef CONFIG_SPL_BUILD
video_sync_all();
+#endif
if (next_index == serial_buf_read)
return 1; /* buffer full */