aboutsummaryrefslogtreecommitdiff
path: root/include/video.h
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2021-10-09 17:47:27 -0400
committerTom Rini <trini@konsulko.com>2021-10-09 17:47:27 -0400
commitf331497d3ad4166f9826e7674793ae04094b29c1 (patch)
tree09c8df48a0b48eee7780e7594ddc33fc2c8f59d4 /include/video.h
parent2a2d8e94ddc75c2c8d456e9163aa5dac510badcf (diff)
parent79c05335a9c101f0b54f2f378d0b08c9b765e1a3 (diff)
downloadu-boot-WIP/09Oct2021.zip
u-boot-WIP/09Oct2021.tar.gz
u-boot-WIP/09Oct2021.tar.bz2
Merge tag 'video-20211009' of https://source.denx.de/u-boot/custodians/u-boot-videoWIP/09Oct2021
- add 30bpp support (EFI, simplefb, vidconsole) - fix video console name in CONSOLE_MUX Kconfig help - move mxsfb driver config option to Kconfig - remove unused mx3fb driver # gpg verification failed.
Diffstat (limited to 'include/video.h')
-rw-r--r--include/video.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/video.h b/include/video.h
index 8277333..f14fb15 100644
--- a/include/video.h
+++ b/include/video.h
@@ -64,6 +64,13 @@ enum video_log2_bpp {
#define VNBITS(bpix) (1 << (bpix))
+enum video_format {
+ VIDEO_UNKNOWN,
+ VIDEO_X8B8G8R8,
+ VIDEO_X8R8G8B8,
+ VIDEO_X2R10G10B10,
+};
+
/**
* struct video_priv - Device information used by the video uclass
*
@@ -71,6 +78,7 @@ enum video_log2_bpp {
* @ysize: Number of pixels rows (e.g.. 768)
* @rot: Display rotation (0=none, 1=90 degrees clockwise, etc.)
* @bpix: Encoded bits per pixel (enum video_log2_bpp)
+ * @format: Pixel format (enum video_format)
* @vidconsole_drv_name: Driver to use for the text console, NULL to
* select automatically
* @font_size: Font size in pixels (0 to use a default value)
@@ -95,6 +103,7 @@ struct video_priv {
ushort ysize;
ushort rot;
enum video_log2_bpp bpix;
+ enum video_format format;
const char *vidconsole_drv_name;
int font_size;