浏览代码

video: sandbox: Allow selection of font size and console name

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>
Simon Glass 9 年之前
父节点
当前提交
8de536c27c
共有 2 个文件被更改,包括 4 次插入0 次删除
  1. 2 0
      drivers/video/sandbox_sdl.c
  2. 2 0
      include/dm/test.h

+ 2 - 0
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;
 }

+ 2 - 0
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 */