drm/ingenic: Support handling different pixel formats in F0/F1 planes
authorPaul Cercueil <paul@crapouillou.net>
Sat, 26 Sep 2020 17:04:58 +0000 (19:04 +0200)
committerPaul Cercueil <paul@crapouillou.net>
Sat, 26 Sep 2020 19:54:53 +0000 (21:54 +0200)
commit3d705fb0dc43a91095de3ebc30914e50b0e20b2f
tree319977058660cff4c4b41066b39db378ef20647f
parent174d8e52a60f196cfbdec299688cf14f124c8b67
drm/ingenic: Support handling different pixel formats in F0/F1 planes

Until now the ingenic-drm driver supported the same pixel formats on the
F0 and F1 planes, and across all SoCs. However, the F0 plane does support
paletted 8bpp, while the F1 plane doesn't.

Furthermore, the three SoCs currently supported all have different pixel
formats available; 24bpp was added in JZ4725B, 30bpp was added in
JZ4770.

Prepare the inclusion of paletted 8bpp, 24bpp and 30bpp support by
having separate pixel format lists for F0 and F1 planes.

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