[2/2] mtk-vcodec: Support encoder for MT8186
Rex-BC Chen
rex-bc.chen at mediatek.com
Wed Feb 23 04:37:35 PST 2022
Hello Kyrie,
Why not just use compatible of mt8183?
The data of 8186 is the same with 8183.
In this case, I think we just need to add dt-binding of 8186 and no
need for this patch.
BRs,
Rex
On Wed, 2022-02-23 at 19:51 +0800, kyrie.wu wrote:
> From: kyrie wu <kyrie.wu at mediatek.com>
>
> Adds MT8186's compatible "mediatek,mt8186-vcodec-enc".
> Adds MT8186's device private data.
>
> Signed-off-by: kyrie wu <kyrie.wu at mediatek.com>
> ---
> drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c
> b/drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c
> index 65207f5b6c1c..e1b91ae9a164 100644
> --- a/drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c
> +++ b/drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c
> @@ -437,6 +437,7 @@ static const struct of_device_id
> mtk_vcodec_enc_match[] = {
> {.compatible = "mediatek,mt8183-vcodec-enc", .data =
> &mt8183_pdata},
> {.compatible = "mediatek,mt8192-vcodec-enc", .data =
> &mt8192_pdata},
> {.compatible = "mediatek,mt8195-vcodec-enc", .data =
> &mt8195_pdata},
> + {.compatible = "mediatek,mt8186-vcodec-enc", .data =
> &mt8183_pdata},
> {},
> };
> MODULE_DEVICE_TABLE(of, mtk_vcodec_enc_match);
More information about the linux-arm-kernel
mailing list