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