diff --git a/drivers/serial/sandbox.c b/drivers/serial/sandbox.c
index 58f882b22a607b4b698e8c0d5e89642e56b208f5..bcc3465312e8819c71ff3667b3847b09e6de84bd 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 */