diff options
| author | Simon Glass <sjg@chromium.org> | 2014-02-27 13:26:19 -0700 | 
|---|---|---|
| committer | Simon Glass <sjg@chromium.org> | 2014-03-17 20:05:49 -0600 | 
| commit | 7d95f2a329c964b54cf505503a61e8fd4f12e2a3 (patch) | |
| tree | 7ecc983e7c875edf0a9c5cdc7a12138bfa621fe4 /arch/sandbox/cpu/start.c | |
| parent | c34c0246a3600dc4712247b267f71576234e403b (diff) | |
| download | olio-uboot-2014.01-7d95f2a329c964b54cf505503a61e8fd4f12e2a3.tar.xz olio-uboot-2014.01-7d95f2a329c964b54cf505503a61e8fd4f12e2a3.zip | |
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 'arch/sandbox/cpu/start.c')
| -rw-r--r-- | arch/sandbox/cpu/start.c | 9 | 
1 files changed, 9 insertions, 0 deletions
| diff --git a/arch/sandbox/cpu/start.c b/arch/sandbox/cpu/start.c index 2d19fe795..4d5569e64 100644 --- a/arch/sandbox/cpu/start.c +++ b/arch/sandbox/cpu/start.c @@ -175,6 +175,15 @@ static int sandbox_cmdline_cb_ignore_missing(struct sandbox_state *state,  SANDBOX_CMDLINE_OPT_SHORT(ignore_missing, 'n', 0,  			  "Ignore missing state on read"); +static int sandbox_cmdline_cb_show_lcd(struct sandbox_state *state, +				       const char *arg) +{ +	state->show_lcd = true; +	return 0; +} +SANDBOX_CMDLINE_OPT_SHORT(show_lcd, 'l', 0, +			  "Show the sandbox LCD display"); +  int main(int argc, char *argv[])  {  	struct sandbox_state *state; |