]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
sandbox: serial: Don't sync video in SPL
authorSimon Glass <sjg@chromium.org>
Mon, 4 Jul 2016 17:57:53 +0000 (11:57 -0600)
committerSimon Glass <sjg@chromium.org>
Fri, 15 Jul 2016 02:40:24 +0000 (20:40 -0600)
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>
drivers/serial/sandbox.c

index 58f882b22a607b4b698e8c0d5e89642e56b208f5..bcc3465312e8819c71ff3667b3847b09e6de84bd 100644 (file)
@@ -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 */