1 # SPDX-License-Identifier: GPL-2.0-only
2 config VIDEO_MEDIATEK_VCODEC_SCP
5 config VIDEO_MEDIATEK_VCODEC_VPU
8 config VIDEO_MEDIATEK_VCODEC
9 tristate "Mediatek Video Codec driver"
10 depends on V4L_MEM2MEM_DRIVERS
11 depends on MTK_IOMMU || COMPILE_TEST
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
26 select MEDIA_CONTROLLER
27 select MEDIA_CONTROLLER_REQUEST_API
29 Mediatek video codec driver provides HW capability to
30 encode and decode in a range of video formats on MT8173
33 Note that support for MT8173 requires VIDEO_MEDIATEK_VPU to
34 also be selected. Support for MT8183 depends on MTK_SCP.
36 To compile this driver as modules, choose M here: the
37 modules will be called mtk-vcodec-dec and mtk-vcodec-enc.