diff options
author | Dong Aisheng <aisheng.dong@nxp.com> | 2019-12-02 18:01:07 +0800 |
---|---|---|
committer | Dong Aisheng <aisheng.dong@nxp.com> | 2019-12-02 18:01:07 +0800 |
commit | 4b8a6afa4362a1c47510a7dafe4467d7a447bdf3 (patch) | |
tree | cd4e0c1913fd0f7b5519680171d0fbdd88e82362 /include/video | |
parent | 97fae6c25b6db80a14d39c8a5187834cc14fb739 (diff) | |
parent | 577013da7212d770cd9bf5db4184ec9e0f2608d9 (diff) |
Merge remote-tracking branch 'origin/display/lcdif' into display/next
* origin/display/lcdif: (32 commits)
gpu: imx: lcdif: add imx8mn compatible support
drm/imx: Replace reset flow for LCDIF
gpu: imx: lcdif: fix build warnings if CONFIG_PM_SLEEP off
drm/imx: lcdif: change DISPMIX reset for IMX8MN
MLK-21876-10 gpu: drm: lcdif: fix headfile reference issue
...
Diffstat (limited to 'include/video')
-rw-r--r-- | include/video/imx-lcdif.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/include/video/imx-lcdif.h b/include/video/imx-lcdif.h new file mode 100644 index 000000000000..96b124852dd1 --- /dev/null +++ b/include/video/imx-lcdif.h @@ -0,0 +1,42 @@ +/* + * Copyright 2018 NXP + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +#ifndef __IMX_LCDIF_H__ +#define __IMX_LCDIF_H__ + +struct lcdif_soc; +struct videomode; + +struct lcdif_client_platformdata { + struct device_node *of_node; +}; + +int lcdif_vblank_irq_get(struct lcdif_soc *lcdif); +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_bus_fmt(struct lcdif_soc *lcdif, u32 bus_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); + +#endif |