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 <paul.elder@ideasonboard.com> Reviewed-by: Rob Herring <robh@kernel.org> Tested-by: Alexander Stein <alexander.stein@ew.tq-group.com> Tested-by: Adam Ford <aford173@gmail.com> Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
1 parent 6c14435 commit 9f9cd26

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

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)