1
0
Fork 0

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)
5.4-rM2-2.2.x-imx-squashed
Liu Ying 2019-12-02 18:26:55 +08:00 committed by Jason Liu
parent 4fc7a44373
commit 9de96e60ce
2 changed files with 10 additions and 0 deletions

View File

@ -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))

View File

@ -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);