1# SPDX-License-Identifier: GPL-2.0-only 2config VIDEO_MEDIATEK_VCODEC_SCP 3 bool 4 5config VIDEO_MEDIATEK_VCODEC_VPU 6 bool 7 8config VIDEO_MEDIATEK_VCODEC 9 tristate "Mediatek Video Codec driver" 10 depends on V4L_MEM2MEM_DRIVERS 11 depends on MTK_IOMMU || COMPILE_TEST 12 depends on VIDEO_DEV 13 depends on ARCH_MEDIATEK || COMPILE_TEST 14 depends on VIDEO_MEDIATEK_VPU || MTK_SCP 15 # The two following lines ensure we have the same state ("m" or "y") as 16 # our dependencies, to avoid missing symbols during link. 17 depends on VIDEO_MEDIATEK_VPU || !VIDEO_MEDIATEK_VPU 18 depends on MTK_SCP || !MTK_SCP 19 depends on MTK_SMI || (COMPILE_TEST && MTK_SMI=n) 20 select VIDEOBUF2_DMA_CONTIG 21 select V4L2_MEM2MEM_DEV 22 select VIDEO_MEDIATEK_VCODEC_VPU if VIDEO_MEDIATEK_VPU 23 select VIDEO_MEDIATEK_VCODEC_SCP if MTK_SCP 24 select V4L2_H264 25 select MEDIA_CONTROLLER 26 select MEDIA_CONTROLLER_REQUEST_API 27 help 28 Mediatek video codec driver provides HW capability to 29 encode and decode in a range of video formats on MT8173 30 and MT8183. 31 32 Note that support for MT8173 requires VIDEO_MEDIATEK_VPU to 33 also be selected. Support for MT8183 depends on MTK_SCP. 34 35 To compile this driver as modules, choose M here: the 36 modules will be called mtk-vcodec-dec and mtk-vcodec-enc. 37