projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dm: x86: video: Add a driver-model driver for ivybridge graphics
[oweals/u-boot.git]
/
drivers
/
video
/
sandbox_sdl.c
diff --git
a/drivers/video/sandbox_sdl.c
b/drivers/video/sandbox_sdl.c
index 450628e07c4a7f846aef7d6e526cb38e10a17e96..dc5a220d512448efc009cba06b2092056b216e39 100644
(file)
--- a/
drivers/video/sandbox_sdl.c
+++ b/
drivers/video/sandbox_sdl.c
@@
-20,15
+20,6
@@
enum {
LCD_MAX_HEIGHT = 768,
};
LCD_MAX_HEIGHT = 768,
};
-
-/* This platform data is needed in tests, so declare it here */
-struct sandbox_sdl_plat {
- int xres;
- int yres;
- int bpix;
- int rot;
-};
-
static int sandbox_sdl_probe(struct udevice *dev)
{
struct sandbox_sdl_plat *plat = dev_get_platdata(dev);
static int sandbox_sdl_probe(struct udevice *dev)
{
struct sandbox_sdl_plat *plat = dev_get_platdata(dev);
@@
-44,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->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;
}
return 0;
}