summaryrefslogtreecommitdiff
path: root/include/video
diff options
context:
space:
mode:
authorFancy Fang <chen.fang@nxp.com>2018-06-11 15:57:48 +0800
committerDong Aisheng <aisheng.dong@nxp.com>2019-11-25 15:59:17 +0800
commit51c5292731042b952f0eddb43b37751364028bac (patch)
tree109bcf50f0eb85103692b26f0b7c95a919fbd746 /include/video
parent5bddd8f0b00eac7d5196ecfd14ad01efa299fe03 (diff)
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>
Diffstat (limited to 'include/video')
-rw-r--r--include/video/imx-lcdif.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/video/imx-lcdif.h b/include/video/imx-lcdif.h
index 634a61e9e059..ed43e80bdd2b 100644
--- a/include/video/imx-lcdif.h
+++ b/include/video/imx-lcdif.h
@@ -27,6 +27,8 @@ void lcdif_vblank_irq_enable(struct lcdif_soc *lcdif);
void lcdif_vblank_irq_disable(struct lcdif_soc *lcdif);
void lcdif_vblank_irq_clear(struct lcdif_soc *lcdif);
+int lcdif_get_bus_fmt_from_pix_fmt(struct lcdif_soc *lcdif,
+ uint32_t format);
int lcdif_set_pix_fmt(struct lcdif_soc *lcdif, u32 format);
void lcdif_set_fb_addr(struct lcdif_soc *lcdif, int id, u32 addr);
void lcdif_set_mode(struct lcdif_soc *lcdif, struct videomode *vmode);