drm/pl111: Properly detect the ARM PL110 variants
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 6 Feb 2018 09:35:36 +0000 (10:35 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 7 Feb 2018 08:08:23 +0000 (09:08 +0100)
commit3d95f76a11afdcbc9aa6d09a9eaac70e057e7be3
treef25815253d84b92509a6b8b04d98faf73fcd4a1f
parentf40f5b87d974655984ce545515e5c9e57b371b3c
drm/pl111: Properly detect the ARM PL110 variants

With a bit of refactoring we can contain the variant data for
the strange PL110 versions that is feature-incomplete PL110 for
the ARM Integrator/CP and somewhere inbetween PL110 and PL111
for the ARM Versatile AB and Versatile PB.

We also accomodate for the custom duct-taped RGB565/BGR565 support
in the Versatile variant.

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-1-linus.walleij@linaro.org
drivers/gpu/drm/pl111/pl111_drm.h
drivers/gpu/drm/pl111/pl111_drv.c
drivers/gpu/drm/pl111/pl111_versatile.c