drm/pl111: Support Nomadik LCDC variant
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 21 Jun 2018 18:44:50 +0000 (20:44 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Sun, 1 Jul 2018 19:36:47 +0000 (21:36 +0200)
commite08015e7d6a4b5395e75cc286ab6400667c63dc0
tree9061c97394dedd4c9bf7ee361dcad3ff07060581
parent491657a915601febfb9d0c253d843124438ae35d
drm/pl111: Support Nomadik LCDC variant

The Nomadik has a variant of the PL110 known as "Color LCD
Controller" LCDC. This variant has the same bit ordering as
the DRM subsystem (in difference from the other variants)
and adds a few bits for the control of 5551, 565 etc in the
control register. Notably it also adds a packed RGB888
24BPP mode.

We add support by detecting this variant and also adding a
small plug-in that will mux the LCDC out if the ASIC happens
to be muxed to the other graphics controller (they are
mutually exclusive).

Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20180621184450.25377-1-linus.walleij@linaro.org
drivers/gpu/drm/pl111/Makefile
drivers/gpu/drm/pl111/pl111_display.c
drivers/gpu/drm/pl111/pl111_drm.h
drivers/gpu/drm/pl111/pl111_drv.c
drivers/gpu/drm/pl111/pl111_nomadik.c [new file with mode: 0644]
drivers/gpu/drm/pl111/pl111_nomadik.h [new file with mode: 0644]