]> git.karo-electronics.de Git - karo-tx-linux.git/commit
gpu: ipu-v3: Fix CSI selection for VDIC
authorMarek Vasut <marex@denx.de>
Sat, 3 Jun 2017 18:57:21 +0000 (11:57 -0700)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Tue, 6 Jun 2017 08:21:34 +0000 (10:21 +0200)
commitb7dfee2433576f1f030cb84cdb04b70f36554992
treeb95efacea933e6d7bebc14757e66cffbbfb88420
parente36aecba54bf24387271f2d7b989cc686a389931
gpu: ipu-v3: Fix CSI selection for VDIC

The description of the CSI_SEL bit in the i.MX6 reference manual is
incorrect. It states "This bit defines which CSI is the input to the
IC. This bit is effective only if IC_INPUT is bit cleared".

From experiment it was found this is in fact not correct. The CSI_SEL
bit selects which CSI is input to _both_ the VDIC _and_ the IC. If the
IC_INPUT bit is set so that the IC is receiving from the VDIC, the IC
ignores the CSI_SEL bit, but CSI_SEL still selects which CSI the VDIC
receives from in that case.

Signed-off-by: Marek Vasut <marex@denx.de>
Signed-off-by: Steve Longerbeam <steve_longerbeam@mentor.com>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/gpu/ipu-v3/ipu-common.c