diff mbox

[U-Boot,16/19] video: sandbox: Allow selection of font size and console name

Message ID 1452820252-2126-17-git-send-email-sjg@chromium.org
State Accepted
Commit 8de536c27c10bbbd7bd974b68718f3c788e4e8af
Delegated to: Anatolij Gustschin
Headers show

Commit Message

Simon Glass Jan. 15, 2016, 1:10 a.m. UTC
For testing it is useful to be able to select the font size and the console
driver for sandbox. Add this information to platform data and copy it to
the video device when needed.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 drivers/video/sandbox_sdl.c | 2 ++
 include/dm/test.h           | 2 ++
 2 files changed, 4 insertions(+)
diff mbox

Patch

diff --git a/drivers/video/sandbox_sdl.c b/drivers/video/sandbox_sdl.c
index 21448a1..dc5a220 100644
--- a/drivers/video/sandbox_sdl.c
+++ b/drivers/video/sandbox_sdl.c
@@ -35,6 +35,8 @@  static int sandbox_sdl_probe(struct udevice *dev)
 	uc_priv->ysize = plat->yres;
 	uc_priv->bpix = plat->bpix;
 	uc_priv->rot = plat->rot;
+	uc_priv->vidconsole_drv_name = plat->vidconsole_drv_name;
+	uc_priv->font_size = plat->font_size;
 
 	return 0;
 }
diff --git a/include/dm/test.h b/include/dm/test.h
index ca924d9..cba5049 100644
--- a/include/dm/test.h
+++ b/include/dm/test.h
@@ -161,6 +161,8 @@  struct sandbox_sdl_plat {
 	int yres;
 	int bpix;
 	int rot;
+	const char *vidconsole_drv_name;
+	int font_size;
 };
 
 /* Declare ping methods for the drivers */