From e64bbcd9243a17f9eba9cb3abb6f2c1939eae110 Mon Sep 17 00:00:00 2001 From: Liu Ying Date: Fri, 11 Sep 2015 14:58:02 +0800 Subject: MLK-11316-1 mxc IPUv3: PRE: Export a function to set PRE_CTRL register In order to workaround the PRE SoC bug recorded by errata ERR009624, the software cannot write the PRE_CTRL register when the PRE writes the PRE_CTRL register automatically to set the ENABLE bit(bit0) to 1 in the PRE repeat mode. This patch exports a function to set the PRE_CTRL register so that it could be used by the software when the PRE automatic writing doesn't happen for sure. Signed-off-by: Liu Ying --- include/linux/ipu-v3-pre.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include') diff --git a/include/linux/ipu-v3-pre.h b/include/linux/ipu-v3-pre.h index c3fd1fccd802..44fff478da15 100644 --- a/include/linux/ipu-v3-pre.h +++ b/include/linux/ipu-v3-pre.h @@ -79,6 +79,7 @@ void ipu_pre_free(unsigned int *id); unsigned long ipu_pre_alloc_double_buffer(unsigned int id, unsigned int size); void ipu_pre_free_double_buffer(unsigned int id); int ipu_pre_config(int id, struct ipu_pre_context *config); +int ipu_pre_set_ctrl(unsigned int id, struct ipu_pre_context *config); int ipu_pre_enable(int id); void ipu_pre_disable(int id); int ipu_pre_set_fb_buffer(int id, unsigned long fb_paddr, @@ -111,6 +112,11 @@ int ipu_pre_config(int id, struct ipu_pre_context *config) return -ENODEV; } +int ipu_pre_set_ctrl(unsigned int id, struct ipu_pre_context *config) +{ + return -ENODEV; +} + int ipu_pre_enable(int id) { return -ENODEV; -- cgit v1.2.3