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

media: mediatek: vcodec: add decoder compatible to support mt8188

1: add mt8188's compatible name: mediatek,mt8188-vcodec-dec.
2: mt8188 is lat single core architecture, using mtk_lat_sig_core_pdata to
initialize private data.
3: Getting mt8188's chip name according to decoder compatible name.

Signed-off-by: Yunfei Dong <yunfei.dong@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>

authored by

Yunfei Dong and committed by
Mauro Carvalho Chehab
b9b9db6a 8fcfa825

+6
+2
drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec.c
··· 227 227 return 8195; 228 228 else if (of_device_is_compatible(dev->of_node, "mediatek,mt8186-vcodec-dec")) 229 229 return 8186; 230 + else if (of_device_is_compatible(dev->of_node, "mediatek,mt8188-vcodec-dec")) 231 + return 8188; 230 232 else 231 233 return 8173; 232 234 }
+4
drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec_drv.c
··· 478 478 .compatible = "mediatek,mt8195-vcodec-dec", 479 479 .data = &mtk_lat_sig_core_pdata, 480 480 }, 481 + { 482 + .compatible = "mediatek,mt8188-vcodec-dec", 483 + .data = &mtk_lat_sig_core_pdata, 484 + }, 481 485 {}, 482 486 }; 483 487