drm/ingenic: Add support for paletted 8bpp
authorPaul Cercueil <paul@crapouillou.net>
Sun, 27 Sep 2020 19:36:45 +0000 (21:36 +0200)
committerPaul Cercueil <paul@crapouillou.net>
Sun, 27 Sep 2020 23:34:53 +0000 (01:34 +0200)
commit686d4b4b99afe791b0ee3f272843048b155fe53f
treea5b8ef2a30914e106a7af85271618c57b2a8ea3c
parentdba09e834f4ee6121346f2a7d40b7ee96d0b4b77
drm/ingenic: Add support for paletted 8bpp

On JZ4725B and newer, the F0 plane supports paletted 8bpp with a
256-entry palette. Add support for it.

v3: Only accept a full 256-entry palette.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200927193645.262612-2-paul@crapouillou.net
drivers/gpu/drm/ingenic/ingenic-drm-drv.c