MLK-18560 drm/imx: lcdif: refine bus format sanity check for plane
authorFancy Fang <chen.fang@nxp.com>
Mon, 11 Jun 2018 07:57:48 +0000 (15:57 +0800)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commitf518bd69dc53b109b21c7a1edb0afecc90818db3
tree763644e5b7fe485320791dac1f3374c936fa7baf
parentfa1cbfbf4183267f754e7fd05fc3011e95a006b6
MLK-18560 drm/imx: lcdif: refine bus format sanity check for plane

Add an function to get the LCDIF controller supported bus
formats according to the pixel format bpp. And change the
bus format sanity check in the plane's atomic check to see
if the bus format required by the peripheral attached to
LCDIF can be supported by LCDIF.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
(cherry picked from commit f1d0c89ec48e6b76ddde9c55744ebb341f74ab3a)
drivers/gpu/drm/imx/lcdif/lcdif-plane.c
drivers/gpu/imx/lcdif/lcdif-common.c
include/video/imx-lcdif.h