diff options
author | Fancy Fang <chen.fang@nxp.com> | 2020-11-16 15:27:55 +0800 |
---|---|---|
committer | Fancy Fang <chen.fang@nxp.com> | 2020-11-19 13:51:02 +0800 |
commit | d7e6489482b8342d593d1158cbd06419aa7b4b1b (patch) | |
tree | 04ba9b7da3e3dafa4828e02dd1fb1920c283d058 /include/video | |
parent | 76bc28934e53a86ec13875674893a85d7dcac87f (diff) |
MLK-24998-7 drm/imx: lcdifv3: implement mode_valid() for CRTC
Add mode_valid() implementation for CRTC to filter out any
mode which cannot be supported by LCDIFv3. Only check the
CEA and DMT modes for pixel clock round rate is same with
the value from mode.
Signed-off-by: Fancy Fang <chen.fang@nxp.com>
Reviewed-by: Liu Ying <victor.liu@nxp.com>
(cherry picked from commit f252a44da9f90951614c0bf513df6bd4d145e76e)
Diffstat (limited to 'include/video')
-rw-r--r-- | include/video/imx-lcdifv3.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/video/imx-lcdifv3.h b/include/video/imx-lcdifv3.h index e8556bea7aed..f201edfe46f9 100644 --- a/include/video/imx-lcdifv3.h +++ b/include/video/imx-lcdifv3.h @@ -30,5 +30,7 @@ void lcdifv3_en_shadow_load(struct lcdifv3_soc *lcdifv3); void lcdifv3_enable_controller(struct lcdifv3_soc *lcdifv3); void lcdifv3_disable_controller(struct lcdifv3_soc *lcdifv3); void lcdifv3_dump_registers(struct lcdifv3_soc *lcdifv3); +long lcdifv3_pix_clk_round_rate(struct lcdifv3_soc *lcdifv3, + unsigned long rate); #endif |