[PATCH 3/3] video: simplefb: Add 30bpp support
Simon Glass
sjg at chromium.org
Sat Sep 25 15:41:00 CEST 2021
On Thu, 16 Sept 2021 at 07:02, Mark Kettenis <kettenis at openbsd.org> wrote:
>
> Recognize the canonical format strings for framebuffers in
> 30bpp mode.
>
> Signed-off-by: Mark Kettenis <kettenis at openbsd.org>
> ---
> drivers/video/simplefb.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/drivers/video/simplefb.c b/drivers/video/simplefb.c
> index fd58426cf5..7e1cc4560f 100644
> --- a/drivers/video/simplefb.c
> +++ b/drivers/video/simplefb.c
> @@ -52,6 +52,9 @@ static int simple_video_probe(struct udevice *dev)
> uc_priv->bpix = VIDEO_BPP16;
> } else if (strcmp(format, "a8b8g8r8") == 0) {
> uc_priv->bpix = VIDEO_BPP32;
> + } else if (strcmp(format, "a2r10g10b10") == 0 ||
> + strcmp(format, "x2r10g10b10") == 0) {
> + uc_priv->bpix = VIDEO_BPP30;
> } else {
> printf("%s: invalid format: %s\n", __func__, format);
> return -EINVAL;
> --
> 2.33.0
>
Reviewed-by: Simon Glass <sjg at chromium.org>
Tested on: Macbook Air M1
Tested-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list