media: platform: mtk-vpu: move config to its own file
authorMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 11 Mar 2022 11:31:51 +0000 (12:31 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Tue, 15 Mar 2022 05:45:39 +0000 (06:45 +0100)
In order to better organize the platform/Kconfig, place
mtk-vpu-specific config stuff on a separate Kconfig file.

Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/Kconfig
drivers/media/platform/mtk-vpu/Kconfig [new file with mode: 0644]

index ab7c856..39bf4c5 100644 (file)
@@ -51,6 +51,7 @@ source "drivers/media/platform/meson/ge2d/Kconfig"
 source "drivers/media/platform/mtk-jpeg/Kconfig"
 source "drivers/media/platform/mtk-mdp/Kconfig"
 source "drivers/media/platform/mtk-vcodec/Kconfig"
+source "drivers/media/platform/mtk-vpu/Kconfig"
 source "drivers/media/platform/omap/Kconfig"
 
 source "drivers/media/platform/aspeed/Kconfig"
@@ -184,20 +185,6 @@ config VIDEO_TI_CAL_MC
 
 # Mem2mem drivers
 
-config VIDEO_MEDIATEK_VPU
-       tristate "Mediatek Video Processor Unit"
-       depends on V4L_MEM2MEM_DRIVERS
-       depends on VIDEO_DEV && VIDEO_V4L2
-       depends on ARCH_MEDIATEK || COMPILE_TEST
-       help
-           This driver provides downloading VPU firmware and
-           communicating with VPU. This driver for hw video
-           codec embedded in Mediatek's MT8173 SOCs. It is able
-           to handle video decoding/encoding in a range of formats.
-
-           To compile this driver as a module, choose M here: the
-           module will be called mtk-vpu.
-
 config VIDEO_MEM2MEM_DEINTERLACE
        tristate "Deinterlace support"
        depends on V4L_MEM2MEM_DRIVERS
diff --git a/drivers/media/platform/mtk-vpu/Kconfig b/drivers/media/platform/mtk-vpu/Kconfig
new file mode 100644 (file)
index 0000000..df679ea
--- /dev/null
@@ -0,0 +1,15 @@
+# SPDX-License-Identifier: GPL-2.0-only
+
+config VIDEO_MEDIATEK_VPU
+       tristate "Mediatek Video Processor Unit"
+       depends on V4L_MEM2MEM_DRIVERS
+       depends on VIDEO_DEV && VIDEO_V4L2
+       depends on ARCH_MEDIATEK || COMPILE_TEST
+       help
+           This driver provides downloading VPU firmware and
+           communicating with VPU. This driver for hw video
+           codec embedded in Mediatek's MT8173 SOCs. It is able
+           to handle video decoding/encoding in a range of formats.
+
+           To compile this driver as a module, choose M here: the
+           module will be called mtk-vpu.