]> git.baikalelectronics.ru Git - kernel.git/commit
media: imx: imx-mipi-csis: Add version register
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Wed, 7 Apr 2021 22:54:07 +0000 (23:54 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sat, 16 Jul 2022 07:42:56 +0000 (08:42 +0100)
commit0c1ce1ae55b3378512c1ce1531f385fd6bb4fe25
tree0f1b3bd2708ba7f752dd41ae3debe2282ff1b8cf
parent9a0f1da64554817ddef4944a43dbdf97c5b0083f
media: imx: imx-mipi-csis: Add version register

Register at offset 0x00 isn't documented, but the NXP BSP
imx8-mipi-csi2-sam driver defines it as a version register. Tests on
i.MX7D and i.MX8MP have confirmed this, with values matching the version
of the IP core specified in the respective reference manuals.

This commit doesn't make use of the version register at runtime as the
compatible strings are enough to identify the IP core version.
Nonetheless, capturing the information in register definitions that
don't affect the code negatively is useful for future development.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Rui Miguel Silva <rmfrfs@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/nxp/imx-mipi-csis.c