]> git.baikalelectronics.ru Git - kernel.git/commit
drm/pl111: Support grayscale
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 5 Aug 2019 08:58:44 +0000 (10:58 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 9 Aug 2019 07:15:05 +0000 (09:15 +0200)
commit944dc72400e6d3c7f91e87e9979a11157c7eaca7
tree255328cc402c1c35f36e2305e98f289ae5d3d265
parent9fbf9ddf49d3c629233541ce03601194e940d4ab
drm/pl111: Support grayscale

Migrating the TI nspire calculators to use the PL111 driver for
framebuffer requires grayscale support for the elder panel
which uses 8bit grayscale only.

DRM does not support 8bit grayscale framebuffers in memory,
but by defining the bus format to be MEDIA_BUS_FMT_Y8_1X8 we
can get the hardware to turn on a grayscaling feature and
convert the RGB framebuffer to grayscale for us.

Cc: Daniel Tang <dt.tangr@gmail.com>
Cc: Fabian Vogt <fabian@ritter-vogt.de>
Tested-by: Fabian Vogt <fabian@ritter-vogt.de>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20190805085847.25554-2-linus.walleij@linaro.org
drivers/gpu/drm/pl111/pl111_display.c
include/linux/amba/clcd-regs.h