media: platform: amphion: move config to its own file
authorMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 11 Mar 2022 11:24:34 +0000 (12:24 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Mon, 14 Mar 2022 08:43:00 +0000 (09:43 +0100)
In order to better organize the platform/Kconfig, place
amphion-specific config stuff on a separate Kconfig file.

Reviewed-by: Shijie Qin <shijie.qin@nxp.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/Kconfig
drivers/media/platform/amphion/Kconfig [new file with mode: 0644]

index 25e5ae27210de9d0c5a0e7688907ed7342c67ccc..060d6264dea48271c01c20e08b1fa9fc28d4952d 100644 (file)
@@ -40,6 +40,7 @@ source "drivers/media/platform/marvell-ccic/Kconfig"
 
 source "drivers/media/platform/via/Kconfig"
 
+source "drivers/media/platform/amphion/Kconfig"
 source "drivers/media/platform/cadence/Kconfig"
 
 source "drivers/media/platform/davinci/Kconfig"
@@ -524,26 +525,6 @@ config VIDEO_TEGRA_VDE
           Support for the NVIDIA Tegra video decoder unit.
           To compile this driver as a module choose m here.
 
-config VIDEO_AMPHION_VPU
-       tristate "Amphion VPU (Video Processing Unit) Codec IP"
-       depends on V4L_MEM2MEM_DRIVERS
-       depends on ARCH_MXC || COMPILE_TEST
-       depends on MEDIA_SUPPORT
-       depends on VIDEO_DEV
-       depends on VIDEO_V4L2
-       select MEDIA_CONTROLLER
-       select V4L2_MEM2MEM_DEV
-       select VIDEOBUF2_DMA_CONTIG
-       select VIDEOBUF2_VMALLOC
-       help
-         Amphion VPU Codec IP contains two parts: Windsor and Malone.
-         Windsor is encoder that supports H.264, and Malone is decoder
-         that supports H.264, HEVC, and other video formats.
-         This is a V4L2 driver for NXP MXC 8Q video accelerator hardware.
-         It accelerates encoding and decoding operations on
-         various NXP SoCs.
-         To compile this driver as a module choose m here.
-
 # TI VIDEO PORT Helper Modules
 # These will be selected by VPE and VIP
 config VIDEO_TI_VPDMA
diff --git a/drivers/media/platform/amphion/Kconfig b/drivers/media/platform/amphion/Kconfig
new file mode 100644 (file)
index 0000000..1389964
--- /dev/null
@@ -0,0 +1,20 @@
+# SPDX-License-Identifier: GPL-2.0-only
+config VIDEO_AMPHION_VPU
+       tristate "Amphion VPU (Video Processing Unit) Codec IP"
+       depends on V4L_MEM2MEM_DRIVERS
+       depends on ARCH_MXC || COMPILE_TEST
+       depends on MEDIA_SUPPORT
+       depends on VIDEO_DEV
+       depends on VIDEO_V4L2
+       select MEDIA_CONTROLLER
+       select V4L2_MEM2MEM_DEV
+       select VIDEOBUF2_DMA_CONTIG
+       select VIDEOBUF2_VMALLOC
+       help
+         Amphion VPU Codec IP contains two parts: Windsor and Malone.
+         Windsor is encoder that supports H.264, and Malone is decoder
+         that supports H.264, HEVC, and other video formats.
+         This is a V4L2 driver for NXP MXC 8Q video accelerator hardware.
+         It accelerates encoding and decoding operations on
+         various NXP SoCs.
+         To compile this driver as a module choose m here.