Re: [PATCH v2 08/14] media: mediatek: vcodec: support vcp architecture

From: Nicolas Dufresne

Date: Fri Nov 28 2025 - 15:14:10 EST


Le vendredi 15 août 2025 à 16:52 +0800, Yunfei Dong a écrit :
> Some platforms expose the video codec through the VCP coprocessor.
> Use the VCP architecture when the VCP coprocessor is found.
>
> Signed-off-by: Yunfei Dong <yunfei.dong@xxxxxxxxxxxx>

Reviewed-by: Nicolas Dufresne <nicolas.dufresne@xxxxxxxxxxxxx>

> ---
>  .../platform/mediatek/vcodec/decoder/mtk_vcodec_dec_drv.c      | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git
> a/drivers/media/platform/mediatek/vcodec/decoder/mtk_vcodec_dec_drv.c
> b/drivers/media/platform/mediatek/vcodec/decoder/mtk_vcodec_dec_drv.c
> index fa609343c168..5e312f86e652 100644
> --- a/drivers/media/platform/mediatek/vcodec/decoder/mtk_vcodec_dec_drv.c
> +++ b/drivers/media/platform/mediatek/vcodec/decoder/mtk_vcodec_dec_drv.c
> @@ -380,6 +380,9 @@ static int mtk_vcodec_probe(struct platform_device *pdev)
>   } else if (!of_property_read_u32(pdev->dev.of_node, "mediatek,scp",
>   &rproc_phandle)) {
>   fw_type = SCP;
> + } else if (!of_property_read_u32(pdev->dev.of_node, "mediatek,vcp",
> + &rproc_phandle)) {
> + fw_type = VCP;
>   } else {
>   dev_dbg(&pdev->dev, "Could not get vdec IPI device");
>   return -ENODEV;

Attachment: signature.asc
Description: This is a digitally signed message part