media: platform: allegro-dvt: move config to its own file
authorMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 11 Mar 2022 11:22:38 +0000 (12:22 +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
allegro-dvt-specific config stuff on a separate Kconfig file.

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

index b6650caecf45f16bd124b12502a6b6dd9cfd4ae6..25e5ae27210de9d0c5a0e7688907ed7342c67ccc 100644 (file)
@@ -29,6 +29,7 @@ config V4L_MEM2MEM_DRIVERS
          to capture and output drivers, which use memory buffers for just
          one of those.
 
+source "drivers/media/platform/allegro-dvt/Kconfig"
 source "drivers/media/platform/nxp/Kconfig"
 
 source "drivers/media/platform/renesas/Kconfig"
@@ -176,22 +177,6 @@ config VIDEO_TI_CAL_MC
 
 # Mem2mem drivers
 
-config VIDEO_ALLEGRO_DVT
-       tristate "Allegro DVT Video IP Core"
-       depends on V4L_MEM2MEM_DRIVERS
-       depends on VIDEO_DEV && VIDEO_V4L2
-       depends on ARCH_ZYNQMP || COMPILE_TEST
-       select V4L2_MEM2MEM_DEV
-       select VIDEOBUF2_DMA_CONTIG
-       select REGMAP_MMIO
-       help
-         Support for the encoder video IP core by Allegro DVT. This core is
-         found for example on the Xilinx ZynqMP SoC in the EV family and is
-         called VCU in the reference manual.
-
-         To compile this driver as a module, choose M here: the module
-         will be called allegro.
-
 config VIDEO_CODA
        tristate "Chips&Media Coda multi-standard codec IP"
        depends on V4L_MEM2MEM_DRIVERS
diff --git a/drivers/media/platform/allegro-dvt/Kconfig b/drivers/media/platform/allegro-dvt/Kconfig
new file mode 100644 (file)
index 0000000..dd528e9
--- /dev/null
@@ -0,0 +1,16 @@
+# SPDX-License-Identifier: GPL-2.0-only
+config VIDEO_ALLEGRO_DVT
+       tristate "Allegro DVT Video IP Core"
+       depends on V4L_MEM2MEM_DRIVERS
+       depends on VIDEO_DEV && VIDEO_V4L2
+       depends on ARCH_ZYNQMP || COMPILE_TEST
+       select V4L2_MEM2MEM_DEV
+       select VIDEOBUF2_DMA_CONTIG
+       select REGMAP_MMIO
+       help
+         Support for the encoder video IP core by Allegro DVT. This core is
+         found for example on the Xilinx ZynqMP SoC in the EV family and is
+         called VCU in the reference manual.
+
+         To compile this driver as a module, choose M here: the module
+         will be called allegro.