diff options
author | Liu Ying <victor.liu@nxp.com> | 2019-04-03 14:48:39 +0800 |
---|---|---|
committer | Dong Aisheng <aisheng.dong@nxp.com> | 2019-11-25 15:58:39 +0800 |
commit | 97a558deb12b1fec496d76315af9a88668c2787e (patch) | |
tree | bcd12b790e90bbc56fa7d7e7a9a011635fa60ba5 /include/video | |
parent | 7724e0e0599b07daf9e54ce7de2a74d4acabc851 (diff) |
MLK-21378-2 gpu: imx: Add imx8_dprc support
Fast-forward imx8_dprc driver from imx_4.14.y.
Signed-off-by: Liu Ying <victor.liu@nxp.com>
[ Liu Ying: scfw call updates and other small tweaks for upgrade]
Diffstat (limited to 'include/video')
-rw-r--r-- | include/video/imx8-prefetch.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/include/video/imx8-prefetch.h b/include/video/imx8-prefetch.h index 7bbb57499df4..c6952369f954 100644 --- a/include/video/imx8-prefetch.h +++ b/include/video/imx8-prefetch.h @@ -47,4 +47,28 @@ void prg_set_auxiliary(struct prg *prg); void prg_set_primary(struct prg *prg); void prg_set_blit(struct prg *prg); +struct dprc; +struct dprc * +dprc_lookup_by_phandle(struct device *dev, const char *name, int index); +void dprc_enable(struct dprc *dprc); +void dprc_disable(struct dprc *dprc); +void dprc_configure(struct dprc *dprc, unsigned int stream_id, + unsigned int width, unsigned int height, + unsigned int x_offset, unsigned int y_offset, + unsigned int stride, u32 format, u64 modifier, + unsigned long baddr, unsigned long uv_baddr, + bool start, bool aux_start, bool interlace_frame); +void dprc_reg_update(struct dprc *dprc); +void dprc_first_frame_handle(struct dprc *dprc); +void dprc_irq_handle(struct dprc *dprc); +void dprc_enable_ctrl_done_irq(struct dprc *dprc); +bool dprc_format_supported(struct dprc *dprc, u32 format, u64 modifier); +bool dprc_stride_supported(struct dprc *dprc, + unsigned int stride, unsigned int uv_stride, + unsigned int width, u32 format); +bool dprc_stride_double_check(struct dprc *dprc, + unsigned int width, unsigned int x_offset, + u32 format, u64 modifier, + dma_addr_t baddr, dma_addr_t uv_baddr); + #endif |