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@xxxxxxxxxx> --- drivers/staging/media/imx/imx-media-dev.c | 5 +++++ 1 file changed, 5 insertions(+) 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); -- 2.17.0