diff mbox series

[v3,06/14] media: staging/imx: add imx7 capture subsystem

Message ID 20180507162152.2545-7-rui.silva@linaro.org
State New
Headers show
Series None | expand

Commit Message

Rui Miguel Silva May 7, 2018, 4:21 p.m. UTC
Add imx7 capture subsystem to imx-media core to allow the use some of the
existing modules for i.MX5/6 with i.MX7 SoC.

Since i.MX7 does not have an IPU, add driver data with unset ipu_present flag
that change some runtime behaviors.

Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org>

---
 drivers/staging/media/imx/imx-media-dev.c | 5 +++++
 1 file changed, 5 insertions(+)

-- 
2.17.0

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox series

Patch

diff --git a/drivers/staging/media/imx/imx-media-dev.c b/drivers/staging/media/imx/imx-media-dev.c
index b019dcefccd6..55fe0321edc0 100644
--- a/drivers/staging/media/imx/imx-media-dev.c
+++ b/drivers/staging/media/imx/imx-media-dev.c
@@ -561,8 +561,13 @@  static const struct imx_media_driver_data imx6_drvdata = {
 	.ipu_present = true,
 };
 
+static const struct imx_media_driver_data imx7_drvdata = {
+	.ipu_present = false,
+};
+
 static const struct of_device_id imx_media_dt_ids[] = {
 	{ .compatible = "fsl,imx-capture-subsystem", .data = &imx6_drvdata },
+	{ .compatible = "fsl,imx7-capture-subsystem", .data = &imx7_drvdata },
 	{ /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(of, imx_media_dt_ids);