]> git.sur5r.net Git - u-boot/blobdiff - drivers/serial/sandbox.c
net: phy: marvell: Add a missing errno.h header
[u-boot] / drivers / serial / sandbox.c
index cd2f91e28e8f96b0d651cac208cbbe1c4fb12303..bcc3465312e8819c71ff3667b3847b09e6de84bd 100644 (file)
@@ -16,6 +16,7 @@
 #include <lcd.h>
 #include <os.h>
 #include <serial.h>
+#include <video.h>
 #include <linux/compiler.h>
 #include <asm/state.h>
 
@@ -24,7 +25,7 @@ DECLARE_GLOBAL_DATA_PTR;
 /*
  *
  *   serial_buf: A buffer that holds keyboard characters for the
- *              Sandbox U-boot.
+ *              Sandbox U-Boot.
  *
  * invariants:
  *   serial_buf_write           == serial_buf_read -> empty buffer
@@ -114,8 +115,8 @@ static int sandbox_serial_pending(struct udevice *dev, bool input)
                return 0;
 
        os_usleep(100);
-#ifdef CONFIG_LCD
-       lcd_sync();
+#ifndef CONFIG_SPL_BUILD
+       video_sync_all();
 #endif
        if (next_index == serial_buf_read)
                return 1;       /* buffer full */