MLK-11316-1 mxc IPUv3: PRE: Export a function to set PRE_CTRL register
authorLiu Ying <Ying.Liu@freescale.com>
Fri, 11 Sep 2015 06:58:02 +0000 (14:58 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:48:48 +0000 (14:48 -0500)
commitdcc05d9c24bb299d7b15e3bc1e100d79e32fa627
treef00740e23b43d81658f2e241f8dccec252839a05
parent11c496c177d80896ca4df3d231ffc8282f71e262
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)
drivers/mxc/ipu3/pre.c
drivers/video/fbdev/mxc/mxc_ipuv3_fb.c
include/linux/ipu-v3-pre.h