drm/pl111: Handle the Versatile RGB/BGR565 mode
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 6 Feb 2018 09:35:37 +0000 (10:35 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 7 Feb 2018 08:08:34 +0000 (09:08 +0100)
commit6470b7ddec69dc2edd4bcb01eab3cf71ead5f794
tree45ef74df0ff4b2afc486ce24e0e1f17ba1ffa3e4
parent3d95f76a11afdcbc9aa6d09a9eaac70e057e7be3
drm/pl111: Handle the Versatile RGB/BGR565 mode

The ARM Versatile series can do RGB/BGR565 with an external
"PLD" (Programmable Logical Device). However the CLCD does not
have control bits for this, so it needs to be set into the
ordinary 16BPP mode, then the RGB/BGR565 handling of the pixel
data is handled by configuring the PLD through the external
register.

Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20180206093540.8147-2-linus.walleij@linaro.org
drivers/gpu/drm/pl111/pl111_display.c