diff options
author | Liu Ying <victor.liu@nxp.com> | 2019-12-02 18:26:55 +0800 |
---|---|---|
committer | Jason Liu <jason.hui.liu@nxp.com> | 2020-02-26 04:17:40 +0800 |
commit | 9de96e60ce8f47f169d37c1091810d51d6b2080f (patch) | |
tree | 72e12e4cf8e0e569e66ce8ea599a438b670f160b | |
parent | 4fc7a44373ed8fe366dcdb458517f1b0295e6dab (diff) |
MLK-23107-1 gpu: imx: imx8_dprc: Add helper dprc_disable_repeat_en()
This patch adds helper dprc_disable_repeat_en() so that callers
may disable DPRC repeat_en.
Reviewed-by: Sandor Yu <Sandor.yu@nxp.com>
Signed-off-by: Liu Ying <victor.liu@nxp.com>
(cherry picked from commit 37b68e353a2dc8e3370fb27a4aebf42f5da63047)
-rw-r--r-- | drivers/gpu/imx/imx8_dprc.c | 9 | ||||
-rw-r--r-- | include/video/imx8-prefetch.h | 1 |
2 files changed, 10 insertions, 0 deletions
diff --git a/drivers/gpu/imx/imx8_dprc.c b/drivers/gpu/imx/imx8_dprc.c index a7113446f56b..bba7e19ab1e5 100644 --- a/drivers/gpu/imx/imx8_dprc.c +++ b/drivers/gpu/imx/imx8_dprc.c @@ -543,6 +543,15 @@ void dprc_configure(struct dprc *dprc, unsigned int stream_id, } EXPORT_SYMBOL_GPL(dprc_configure); +void dprc_disable_repeat_en(struct dprc *dprc) +{ + if (WARN_ON(!dprc)) + return; + + dprc_write(dprc, REPEAT_EN, SYSTEM_CTRL0 + CLR); +} +EXPORT_SYMBOL_GPL(dprc_disable_repeat_en); + void dprc_reg_update(struct dprc *dprc) { if (WARN_ON(!dprc)) diff --git a/include/video/imx8-prefetch.h b/include/video/imx8-prefetch.h index c6952369f954..56073c4af5e7 100644 --- a/include/video/imx8-prefetch.h +++ b/include/video/imx8-prefetch.h @@ -58,6 +58,7 @@ void dprc_configure(struct dprc *dprc, unsigned int stream_id, unsigned int stride, u32 format, u64 modifier, unsigned long baddr, unsigned long uv_baddr, bool start, bool aux_start, bool interlace_frame); +void dprc_disable_repeat_en(struct dprc *dprc); void dprc_reg_update(struct dprc *dprc); void dprc_first_frame_handle(struct dprc *dprc); void dprc_irq_handle(struct dprc *dprc); |