12023a998SMauro Carvalho Chehab# SPDX-License-Identifier: GPL-2.0-only 22023a998SMauro Carvalho Chehabconfig VIDEO_MEDIATEK_VCODEC_SCP 32023a998SMauro Carvalho Chehab bool 42023a998SMauro Carvalho Chehab 52023a998SMauro Carvalho Chehabconfig VIDEO_MEDIATEK_VCODEC_VPU 62023a998SMauro Carvalho Chehab bool 72023a998SMauro Carvalho Chehab 82023a998SMauro Carvalho Chehabconfig VIDEO_MEDIATEK_VCODEC 92023a998SMauro Carvalho Chehab tristate "Mediatek Video Codec driver" 102023a998SMauro Carvalho Chehab depends on V4L_MEM2MEM_DRIVERS 112023a998SMauro Carvalho Chehab depends on MTK_IOMMU || COMPILE_TEST 122023a998SMauro Carvalho Chehab depends on VIDEO_DEV 132023a998SMauro Carvalho Chehab depends on ARCH_MEDIATEK || COMPILE_TEST 142023a998SMauro Carvalho Chehab depends on VIDEO_MEDIATEK_VPU || MTK_SCP 152023a998SMauro Carvalho Chehab # The two following lines ensure we have the same state ("m" or "y") as 162023a998SMauro Carvalho Chehab # our dependencies, to avoid missing symbols during link. 172023a998SMauro Carvalho Chehab depends on VIDEO_MEDIATEK_VPU || !VIDEO_MEDIATEK_VPU 182023a998SMauro Carvalho Chehab depends on MTK_SCP || !MTK_SCP 192023a998SMauro Carvalho Chehab depends on MTK_SMI || (COMPILE_TEST && MTK_SMI=n) 202023a998SMauro Carvalho Chehab select VIDEOBUF2_DMA_CONTIG 212023a998SMauro Carvalho Chehab select V4L2_MEM2MEM_DEV 222023a998SMauro Carvalho Chehab select VIDEO_MEDIATEK_VCODEC_VPU if VIDEO_MEDIATEK_VPU 232023a998SMauro Carvalho Chehab select VIDEO_MEDIATEK_VCODEC_SCP if MTK_SCP 242023a998SMauro Carvalho Chehab select V4L2_H264 25*5d418351SYunfei Dong select V4L2_VP9 262023a998SMauro Carvalho Chehab select MEDIA_CONTROLLER 272023a998SMauro Carvalho Chehab select MEDIA_CONTROLLER_REQUEST_API 282023a998SMauro Carvalho Chehab help 292023a998SMauro Carvalho Chehab Mediatek video codec driver provides HW capability to 302023a998SMauro Carvalho Chehab encode and decode in a range of video formats on MT8173 312023a998SMauro Carvalho Chehab and MT8183. 322023a998SMauro Carvalho Chehab 332023a998SMauro Carvalho Chehab Note that support for MT8173 requires VIDEO_MEDIATEK_VPU to 342023a998SMauro Carvalho Chehab also be selected. Support for MT8183 depends on MTK_SCP. 352023a998SMauro Carvalho Chehab 362023a998SMauro Carvalho Chehab To compile this driver as modules, choose M here: the 372023a998SMauro Carvalho Chehab modules will be called mtk-vcodec-dec and mtk-vcodec-enc. 38