]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
video: sandbox: Allow selection of font size and console name
authorSimon Glass <sjg@chromium.org>
Fri, 15 Jan 2016 01:10:49 +0000 (18:10 -0700)
committerAnatolij Gustschin <agust@denx.de>
Sat, 30 Jan 2016 09:57:30 +0000 (10:57 +0100)
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
include/dm/test.h

index 21448a14115bd65dfab8c3985b94abcf736c2129..dc5a220d512448efc009cba06b2092056b216e39 100644 (file)
@@ -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;
 }
index ca924d9237b586f9072917d980c42b1b1311d99a..cba504909acae50f337989c0ab2743952f86050a 100644 (file)
@@ -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 */