diff mbox

[U-Boot,v3,13/62] sandbox: serial: Don't sync video in SPL

Message ID 1467655123-29441-14-git-send-email-sjg@chromium.org
State Accepted
Delegated to: Simon Glass
Headers show

Commit Message

Simon Glass July 4, 2016, 5:57 p.m. UTC
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>
---

Changes in v3: None
Changes in v2: None

 drivers/serial/sandbox.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Simon Glass July 15, 2016, 3:58 a.m. UTC | #1
On 4 July 2016 at 11:57, Simon Glass <sjg@chromium.org> wrote:
> 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>
> ---
>
> Changes in v3: None
> Changes in v2: None
>
>  drivers/serial/sandbox.c | 2 ++
>  1 file changed, 2 insertions(+)

Applied to u-boot-dm
diff mbox

Patch

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 */