projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7209272
)
video: simplefb: add rotation support
author
Takumi Sueda
<puhitaku@gmail.com>
Tue, 13 Sep 2022 09:32:42 +0000
(18:32 +0900)
committer
Anatolij Gustschin
<agust@denx.de>
Sun, 30 Oct 2022 07:28:40 +0000
(08:28 +0100)
It introduces the way to rotate the screen for boards with rotated screen.
Signed-off-by: Takumi Sueda <puhitaku@gmail.com>
drivers/video/simplefb.c
patch
|
blob
|
history
diff --git
a/drivers/video/simplefb.c
b/drivers/video/simplefb.c
index
2b0d883
..
235ec76
100644
(file)
--- a/
drivers/video/simplefb.c
+++ b/
drivers/video/simplefb.c
@@
-43,7
+43,11
@@
static int simple_video_probe(struct udevice *dev)
uc_priv->xsize = fdtdec_get_uint(blob, node, "width", 0);
uc_priv->ysize = fdtdec_get_uint(blob, node, "height", 0);
- uc_priv->rot = 0;
+ uc_priv->rot = fdtdec_get_uint(blob, node, "rot", 0);
+ if (uc_priv->rot > 3) {
+ log_debug("%s: invalid rot\n", __func__);
+ return log_msg_ret("rot", -EINVAL);
+ }
format = fdt_getprop(blob, node, "format", NULL);
debug("%s: %dx%d@%s\n", __func__, uc_priv->xsize, uc_priv->ysize, format);