]> git.baikalelectronics.ru Git - kernel.git/commit
media: mtk-vcodec: Add to support multi hardware decode
authorYunfei Dong <yunfei.dong@mediatek.com>
Thu, 13 Jan 2022 04:10:44 +0000 (05:10 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sun, 23 Jan 2022 20:18:45 +0000 (21:18 +0100)
commit62cf9a34fca8ed578c919cef44c9ce57ebceb572
treea89202292524be9b50a09b271cbd93c2c63f4bbf
parenta8c417c6241102aeff02e84d5d7653330fe8f99a
media: mtk-vcodec: Add to support multi hardware decode

There are more than two hardwares for decoder: LAT0, LAT1 and CORE. In
order to manage these hardwares, register each hardware as independent
platform device for the larbs are different.

Each hardware module controls its own information which includes
interrupt/power/clocks/registers.

Calling of_platform_populate in parent device, and use subdev_bitmap to
record whether the hardwares are registered.

Signed-off-by: Yunfei Dong <yunfei.dong@mediatek.com>
Reviewed-by: Steve Cho <stevecho@chromium.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/mtk-vcodec/Makefile
drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_drv.c
drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_hw.c [new file with mode: 0644]
drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_hw.h [new file with mode: 0644]
drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_stateful.c
drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_stateless.c
drivers/media/platform/mtk-vcodec/mtk_vcodec_drv.h