mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-19 21:51:31 +00:00
sandbox: video: Allow selection of rotated console
Add a devicetree property to select a rotated console. This uses the same encoding as vidconsole itself: 0=normal; 1=90 degrees clockwise, 2=upside down, 3=90 degrees anticlockwise. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Anatolij Gustschin <agust@denx.de>
This commit is contained in:
parent
8b763dfdee
commit
6a2ea434ea
1 changed files with 1 additions and 0 deletions
|
@ -53,6 +53,7 @@ static int sandbox_sdl_bind(struct udevice *dev)
|
|||
plat->xres = dev_read_u32_default(dev, "xres", LCD_MAX_WIDTH);
|
||||
plat->yres = dev_read_u32_default(dev, "yres", LCD_MAX_HEIGHT);
|
||||
plat->bpix = dev_read_u32_default(dev, "log2-depth", VIDEO_BPP16);
|
||||
plat->rot = dev_read_u32_default(dev, "rotate", 0);
|
||||
uc_plat->size = plat->xres * plat->yres * (1 << plat->bpix) / 8;
|
||||
debug("%s: Frame buffer size %x\n", __func__, uc_plat->size);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue