X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=drivers%2Fserial%2Fsandbox.c;h=58f882b22a607b4b698e8c0d5e89642e56b208f5;hb=40d500212f74c92ef014ae8df697416e160ee743;hp=cd2f91e28e8f96b0d651cac208cbbe1c4fb12303;hpb=64f41212d880f3d00c6994d973aadeec5bda1b65;p=u-boot diff --git a/drivers/serial/sandbox.c b/drivers/serial/sandbox.c index cd2f91e28e..58f882b22a 100644 --- a/drivers/serial/sandbox.c +++ b/drivers/serial/sandbox.c @@ -16,6 +16,7 @@ #include #include #include +#include #include #include @@ -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,9 +115,7 @@ static int sandbox_serial_pending(struct udevice *dev, bool input) return 0; os_usleep(100); -#ifdef CONFIG_LCD - lcd_sync(); -#endif + video_sync_all(); if (next_index == serial_buf_read) return 1; /* buffer full */