summaryrefslogtreecommitdiff
path: root/board/sandbox
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-02-27 20:26:19 (GMT)
committerSimon Glass <sjg@chromium.org>2014-03-18 02:05:49 (GMT)
commit7d95f2a329c964b54cf505503a61e8fd4f12e2a3 (patch)
tree7ecc983e7c875edf0a9c5cdc7a12138bfa621fe4 /board/sandbox
parentc34c0246a3600dc4712247b267f71576234e403b (diff)
downloadu-boot-fsl-qoriq-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 'board/sandbox')
-rw-r--r--board/sandbox/sandbox/sandbox.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/board/sandbox/sandbox/sandbox.c b/board/sandbox/sandbox/sandbox.c
index 402afea..e4d4e02 100644
--- a/board/sandbox/sandbox/sandbox.c
+++ b/board/sandbox/sandbox/sandbox.c
@@ -7,6 +7,7 @@
#include <cros_ec.h>
#include <dm.h>
#include <os.h>
+#include <asm/u-boot-sandbox.h>
/*
* Pointer to initial global data area
@@ -35,6 +36,23 @@ int dram_init(void)
return 0;
}
+#ifdef CONFIG_BOARD_EARLY_INIT_F
+int board_early_init_f(void)
+{
+#ifdef CONFIG_VIDEO_SANDBOX_SDL
+ int ret;
+
+ ret = sandbox_lcd_sdl_early_init();
+ if (ret) {
+ puts("Could not init sandbox LCD emulation\n");
+ return ret;
+ }
+#endif
+
+ return 0;
+}
+#endif
+
int arch_early_init_r(void)
{
#ifdef CONFIG_CROS_EC