Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Paul Elder and committed by
Laurent Pinchart
9f9cd26a 6c144351

+24
+24
drivers/media/platform/rockchip/rkisp1/rkisp1-dev.c
··· 511 511 | RKISP1_FEATURE_DUAL_CROP, 512 512 }; 513 513 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 + 514 534 static const struct of_device_id rkisp1_of_match[] = { 515 535 { 516 536 .compatible = "rockchip,px30-cif-isp", ··· 539 519 { 540 520 .compatible = "rockchip,rk3399-cif-isp", 541 521 .data = &rk3399_isp_info, 522 + }, 523 + { 524 + .compatible = "fsl,imx8mp-isp", 525 + .data = &imx8mp_isp_info, 542 526 }, 543 527 {}, 544 528 };