media: imx-pxp: make data_path_ctrl0 platform dependent
authorMichael Tretter <m.tretter@pengutronix.de>
Fri, 13 Jan 2023 09:54:12 +0000 (10:54 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Wed, 8 Feb 2023 08:18:10 +0000 (09:18 +0100)
commit76985f4e8d34e0c20f2cde6017914ab9ce49aa17
tree345ac70390b1bdabfaff84a5d30cc2b5f5473e69
parentfb2e9aa84243db9f2707e4cf257d95a13f9fce23
media: imx-pxp: make data_path_ctrl0 platform dependent

Unfortunately, the PXP_HW_VERSION register reports the PXP on the i.MX7D
and on the i.MX6ULL as version 3.0, although the PXP versions on these
SoCs have significant differences.

Use the compatible to configure the ctrl0 register as required dependent
on the platform.

Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/nxp/imx-pxp.c