Skip to content

Commit ab2fd4a

Browse files
Guoniu.zhouhverkuil
authored andcommitted
media: nxp: imx8-isi: Add i.MX8ULP support
Add ISI support for i.MX8ULP. Signed-off-by: Guoniu.zhou <[email protected]> Reviewed-by: Laurent Pinchart <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Laurent Pinchart <[email protected]> Signed-off-by: Hans Verkuil <[email protected]>
1 parent 288517a commit ab2fd4a

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

drivers/media/platform/nxp/imx8-isi/imx8-isi-core.c

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,19 @@ static const struct mxc_isi_plat_data mxc_imx8mp_data = {
307307
.has_36bit_dma = true,
308308
};
309309

310+
static const struct mxc_isi_plat_data mxc_imx8ulp_data = {
311+
.model = MXC_ISI_IMX8ULP,
312+
.num_ports = 1,
313+
.num_channels = 1,
314+
.reg_offset = 0x0,
315+
.ier_reg = &mxc_imx8_isi_ier_v2,
316+
.set_thd = &mxc_imx8_isi_thd_v1,
317+
.clks = mxc_imx8mn_clks,
318+
.num_clks = ARRAY_SIZE(mxc_imx8mn_clks),
319+
.buf_active_reverse = true,
320+
.has_36bit_dma = false,
321+
};
322+
310323
static const struct mxc_isi_plat_data mxc_imx93_data = {
311324
.model = MXC_ISI_IMX93,
312325
.num_ports = 1,
@@ -528,6 +541,7 @@ static void mxc_isi_remove(struct platform_device *pdev)
528541
static const struct of_device_id mxc_isi_of_match[] = {
529542
{ .compatible = "fsl,imx8mn-isi", .data = &mxc_imx8mn_data },
530543
{ .compatible = "fsl,imx8mp-isi", .data = &mxc_imx8mp_data },
544+
{ .compatible = "fsl,imx8ulp-isi", .data = &mxc_imx8ulp_data },
531545
{ .compatible = "fsl,imx93-isi", .data = &mxc_imx93_data },
532546
{ /* sentinel */ },
533547
};

drivers/media/platform/nxp/imx8-isi/imx8-isi-core.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ struct mxc_gasket_ops {
158158
enum model {
159159
MXC_ISI_IMX8MN,
160160
MXC_ISI_IMX8MP,
161+
MXC_ISI_IMX8ULP,
161162
MXC_ISI_IMX93,
162163
};
163164

0 commit comments

Comments
 (0)