diff options
author | Simon Glass <sjg@chromium.org> | 2014-02-27 20:26:19 (GMT) |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2014-03-18 02:05:49 (GMT) |
commit | 7d95f2a329c964b54cf505503a61e8fd4f12e2a3 (patch) | |
tree | 7ecc983e7c875edf0a9c5cdc7a12138bfa621fe4 /drivers/serial | |
parent | c34c0246a3600dc4712247b267f71576234e403b (diff) | |
download | u-boot-7d95f2a329c964b54cf505503a61e8fd4f12e2a3.tar.xz |
sandbox: Add LCD driver
Add a simple LCD driver which uses SDL to display the image. We update the
image regularly, while still providing for reasonable performance.
Adjust the common lcd code to support sandbox.
For command-line runs we do not want the LCD to be displayed, so add a
--show_lcd option to enable it.
Tested-by: Che-Liang Chiou <clchiou@chromium.org>
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/serial')
-rw-r--r-- | drivers/serial/sandbox.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/serial/sandbox.c b/drivers/serial/sandbox.c index ffff5e1..c27b5b8 100644 --- a/drivers/serial/sandbox.c +++ b/drivers/serial/sandbox.c @@ -11,6 +11,7 @@ */ #include <common.h> +#include <lcd.h> #include <os.h> #include <serial.h> #include <linux/compiler.h> @@ -60,6 +61,9 @@ static int sandbox_serial_tstc(void) ssize_t count; os_usleep(100); +#ifdef CONFIG_LCD + lcd_sync(); +#endif if (next_index == serial_buf_read) return 1; /* buffer full */ |