summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/imx/imx8_dprc.c9
-rw-r--r--include/video/imx8-prefetch.h1
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);