diff options
author | Liu Ying <victor.liu@nxp.com> | 2019-11-12 13:56:45 +0800 |
---|---|---|
committer | Dong Aisheng <aisheng.dong@nxp.com> | 2019-11-25 15:58:23 +0800 |
commit | a1ab21d2fc621a8b6ee4691cbc9c909b8ce7d383 (patch) | |
tree | 2d5643255c2ccf70cf0c9d3d85a62c01256fbd54 /include/video | |
parent | 15952eb997ea126b615878f9ceae359597f4fdff (diff) |
gpu: imx: dpu: Add pixel combiner support
This patch adds pixel combiner support in the DPU core driver.
Users may get and enable/disable/control a pixel combiner instant
via tcon functions and may tell if it is needed in a specific usecase
via the dpu_get_syncmode_min_prate() and dpu_get_singlemode_max_width()
helpers.
Signed-off-by: Liu Ying <victor.liu@nxp.com>
Diffstat (limited to 'include/video')
-rw-r--r-- | include/video/dpu.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/video/dpu.h b/include/video/dpu.h index ed9b65cacde7..1cc5c8c5ccaf 100644 --- a/include/video/dpu.h +++ b/include/video/dpu.h @@ -557,6 +557,10 @@ void tcon_cfg_videomode(struct dpu_tcon *tcon, struct drm_display_mode *m, bool side_by_side); bool tcon_is_master(struct dpu_tcon *tcon); bool tcon_is_slave(struct dpu_tcon *tcon); +void tcon_configure_pc(struct dpu_tcon *tcon, unsigned int di, + unsigned int frame_width, u32 mode, u32 format); +void tcon_enable_pc(struct dpu_tcon *tcon); +void tcon_disable_pc(struct dpu_tcon *tcon); struct dpu_tcon *dpu_tcon_get(struct dpu_soc *dpu, int id); void dpu_tcon_put(struct dpu_tcon *tcon); struct dpu_tcon *dpu_aux_tcon_peek(struct dpu_tcon *tcon); @@ -587,6 +591,8 @@ struct dpu_fetchunit *fetchdecode_get_fetcheco(struct dpu_fetchunit *fu); struct dpu_hscaler *fetchdecode_get_hscaler(struct dpu_fetchunit *fu); struct dpu_vscaler *fetchdecode_get_vscaler(struct dpu_fetchunit *fu); +unsigned int dpu_get_syncmode_min_prate(struct dpu_soc *dpu); +unsigned int dpu_get_singlemode_max_width(struct dpu_soc *dpu); unsigned int dpu_get_master_stream_id(struct dpu_soc *dpu); bool dpu_vproc_has_fetcheco_cap(u32 cap_mask); |