Commit 8de536c27c10bbbd7bd974b68718f3c788e4e8af

Authored by Simon Glass
Committed by Anatolij Gustschin
1 parent 826f35f9b5

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>

Showing 2 changed files with 4 additions and 0 deletions Side-by-side Diff

drivers/video/sandbox_sdl.c
... ... @@ -35,6 +35,8 @@
35 35 uc_priv->ysize = plat->yres;
36 36 uc_priv->bpix = plat->bpix;
37 37 uc_priv->rot = plat->rot;
  38 + uc_priv->vidconsole_drv_name = plat->vidconsole_drv_name;
  39 + uc_priv->font_size = plat->font_size;
38 40  
39 41 return 0;
40 42 }
... ... @@ -161,6 +161,8 @@
161 161 int yres;
162 162 int bpix;
163 163 int rot;
  164 + const char *vidconsole_drv_name;
  165 + int font_size;
164 166 };
165 167  
166 168 /* Declare ping methods for the drivers */