]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
media: imx: imx7-media-csi: Set TWO_8BIT_SENSOR for >= 10-bit formats
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Wed, 3 Feb 2021 03:08:19 +0000 (04:08 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 4 Aug 2021 12:43:51 +0000 (14:43 +0200)
commita581c87c681c6202403d74e8e816968841afe2f7
tree07c0bade1a696fee910396668450495e88c95c0f
parente8713c31f8adab67155e245a217d0c7cad05fcf5
media: imx: imx7-media-csi: Set TWO_8BIT_SENSOR for >= 10-bit formats

Sample code from NXP, as well as experiments on i.MX8MM with RAW10
capture with an OV5640 sensor connected over CSI-2, showed that the
TWO_8BIT_SENSOR field of the CSICR3 register needs to be set for formats
larger than 8 bits. Do so, even if the reference manual doesn't clearly
describe the effect of the field.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Tested-by: Martin Kepplinger <martin.kepplinger@puri.sm>
Reviewed-by: Rui Miguel Silva <rmfrfs@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/imx/imx7-media-csi.c