diff options
author | Liu Ying <Ying.Liu@freescale.com> | 2015-09-11 14:58:02 +0800 |
---|---|---|
committer | Leonard Crestez <leonard.crestez@nxp.com> | 2018-08-24 12:20:42 +0300 |
commit | 3dea672fe12964ba788a49afc271b1555420c23c (patch) | |
tree | dcfdabe43e872736a5dc067942845ed36e887d11 /include | |
parent | 0fc3b53249e9e3fede46e962c683b9ed95f17591 (diff) |
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 <Ying.Liu@freescale.com>
(cherry picked from commit e64bbcd9243a17f9eba9cb3abb6f2c1939eae110)
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/ipu-v3-pre.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/ipu-v3-pre.h b/include/linux/ipu-v3-pre.h index 4447c4084592..2b36d34d25fc 100644 --- a/include/linux/ipu-v3-pre.h +++ b/include/linux/ipu-v3-pre.h @@ -72,6 +72,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, @@ -104,6 +105,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; |