OSDN Git Service

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)
commit43f847d0b9540dd1de4cfd626448fb4294422874
tree255328cc402c1c35f36e2305e98f289ae5d3d265
parent013b6510131568ce4e01856d5360bfdfe9c3632f
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