Skip to content

Commit 9f9cd26

Browse files
Rahi374pinchartl
authored andcommitted
media: rkisp1: Add match data for i.MX8MP ISP
Add match data to the rkisp1 driver to match the i.MX8MP ISP. Signed-off-by: Paul Elder <[email protected]> Reviewed-by: Rob Herring <[email protected]> Tested-by: Alexander Stein <[email protected]> Tested-by: Adam Ford <[email protected]> Reviewed-by: Tomi Valkeinen <[email protected]> Reviewed-by: Laurent Pinchart <[email protected]> Signed-off-by: Laurent Pinchart <[email protected]>
1 parent 6c14435 commit 9f9cd26

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

drivers/media/platform/rockchip/rkisp1/rkisp1-dev.c

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,26 @@ static const struct rkisp1_info rk3399_isp_info = {
511511
| RKISP1_FEATURE_DUAL_CROP,
512512
};
513513

514+
static const char * const imx8mp_isp_clks[] = {
515+
"isp",
516+
"hclk",
517+
"aclk",
518+
};
519+
520+
static const struct rkisp1_isr_data imx8mp_isp_isrs[] = {
521+
{ NULL, rkisp1_isr, BIT(RKISP1_IRQ_ISP) | BIT(RKISP1_IRQ_MI) },
522+
};
523+
524+
static const struct rkisp1_info imx8mp_isp_info = {
525+
.clks = imx8mp_isp_clks,
526+
.clk_size = ARRAY_SIZE(imx8mp_isp_clks),
527+
.isrs = imx8mp_isp_isrs,
528+
.isr_size = ARRAY_SIZE(imx8mp_isp_isrs),
529+
.isp_ver = RKISP1_V_IMX8MP,
530+
.features = RKISP1_FEATURE_MAIN_STRIDE
531+
| RKISP1_FEATURE_DMA_34BIT,
532+
};
533+
514534
static const struct of_device_id rkisp1_of_match[] = {
515535
{
516536
.compatible = "rockchip,px30-cif-isp",
@@ -520,6 +540,10 @@ static const struct of_device_id rkisp1_of_match[] = {
520540
.compatible = "rockchip,rk3399-cif-isp",
521541
.data = &rk3399_isp_info,
522542
},
543+
{
544+
.compatible = "fsl,imx8mp-isp",
545+
.data = &imx8mp_isp_info,
546+
},
523547
{},
524548
};
525549
MODULE_DEVICE_TABLE(of, rkisp1_of_match);

0 commit comments

Comments
 (0)