diff options
author | Fancy Fang <chen.fang@nxp.com> | 2018-08-07 18:04:54 +0800 |
---|---|---|
committer | Dong Aisheng <aisheng.dong@nxp.com> | 2019-11-25 15:59:22 +0800 |
commit | 5757e468fcee4a499d57e9fcb83075f15ae5fa26 (patch) | |
tree | 535815276eb1566584b540affca8db81c93aa251 /include/video | |
parent | e662645ff44fc640ed0354702873975428a0fffa (diff) |
MLK-19152-1 gpu: imx: lcdif: realize fb horizontal crop via Pigeon Mode
According to the LCDIF specification, the Legacy Mode does not
support cropping function in the horizontal direction, so add
Pigeon Mode which can support this kind of function. And when
enable this mode, the legacy horizontal timings configuration
should use stride value but not the active width, and related
pigeon configuration should use the active width but not the
stride value.
Signed-off-by: Fancy Fang <chen.fang@nxp.com>
(cherry picked from commit e6da9542693dd585972897f62748a101f5726a74)
Diffstat (limited to 'include/video')
-rw-r--r-- | include/video/imx-lcdif.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/video/imx-lcdif.h b/include/video/imx-lcdif.h index ed43e80bdd2b..6597e46d5ca1 100644 --- a/include/video/imx-lcdif.h +++ b/include/video/imx-lcdif.h @@ -32,6 +32,8 @@ int lcdif_get_bus_fmt_from_pix_fmt(struct lcdif_soc *lcdif, 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); +void lcdif_set_fb_hcrop(struct lcdif_soc *lcdif, u32 src_w, + u32 fb_w, bool crop); void lcdif_enable_controller(struct lcdif_soc *lcdif); void lcdif_disable_controller(struct lcdif_soc *lcdif); void lcdif_dump_registers(struct lcdif_soc *lcdif); |