Say Y when you want to be able so see such devices.
 
+config MEDIA_TEST_SUPPORT
+       bool "Test drivers support"
+       help
+         Those drivers should not be used on production Kernels, but
+         can be useful on debug ones. It enables several dummy drivers
+         that simulate a real hardware. Very useful to test userspace
+         applications and to validate if the subsystem core is doesn't
+         have regressions.
+
+         Say Y if you want to use some virtual test driver.
+
+         In case of doubts, say N.
+
 source "drivers/media/cec/Kconfig"
 
 source "drivers/media/mc/Kconfig"
 
 if MEDIA_PLATFORM_SUPPORT
 source "drivers/media/platform/Kconfig"
+source "drivers/media/test_drivers/Kconfig"
 source "drivers/media/mmc/Kconfig"
 endif
 
 
 config VIDEO_TI_CSC
        tristate
 
-menuconfig V4L_TEST_DRIVERS
-       bool "Media test drivers"
-       depends on MEDIA_CAMERA_SUPPORT
-
-if V4L_TEST_DRIVERS
-
-source "drivers/media/platform/vimc/Kconfig"
-
-source "drivers/media/platform/vivid/Kconfig"
-
-config VIDEO_VIM2M
-       tristate "Virtual Memory-to-Memory Driver"
-       depends on VIDEO_DEV && VIDEO_V4L2
-       select VIDEOBUF2_VMALLOC
-       select V4L2_MEM2MEM_DEV
-       help
-         This is a virtual test device for the memory-to-memory driver
-         framework.
-
-source "drivers/media/platform/vicodec/Kconfig"
-
-endif #V4L_TEST_DRIVERS
-
 menuconfig DVB_PLATFORM_DRIVERS
        bool "DVB platform devices"
        depends on MEDIA_DIGITAL_TV_SUPPORT
 
 
 obj-$(CONFIG_VIDEO_VIU) += fsl-viu.o
 
-obj-$(CONFIG_VIDEO_VIMC)               += vimc/
-obj-$(CONFIG_VIDEO_VIVID)              += vivid/
-obj-$(CONFIG_VIDEO_VIM2M)              += vim2m.o
-obj-$(CONFIG_VIDEO_VICODEC)            += vicodec/
-
 obj-y  += ti-vpe/
 
 obj-$(CONFIG_VIDEO_MX2_EMMAPRP)                += mx2_emmaprp.o
 
--- /dev/null
+# SPDX-License-Identifier: GPL-2.0-only
+
+if MEDIA_TEST_SUPPORT
+
+menuconfig V4L_TEST_DRIVERS
+       bool "V4L test drivers"
+       depends on MEDIA_CAMERA_SUPPORT
+
+if V4L_TEST_DRIVERS
+
+source "drivers/media/test_drivers/vimc/Kconfig"
+
+source "drivers/media/test_drivers/vivid/Kconfig"
+
+config VIDEO_VIM2M
+       tristate "Virtual Memory-to-Memory Driver"
+       depends on VIDEO_DEV && VIDEO_V4L2
+       select VIDEOBUF2_VMALLOC
+       select V4L2_MEM2MEM_DEV
+       help
+         This is a virtual test device for the memory-to-memory driver
+         framework.
+
+source "drivers/media/test_drivers/vicodec/Kconfig"
+
+endif #V4L_TEST_DRIVERS
+
+endif #MEDIA_TEST_SUPPORT
 
--- /dev/null
+# SPDX-License-Identifier: GPL-2.0
+#
+# Makefile for the test drivers.
+#
+
+obj-$(CONFIG_VIDEO_VIMC)               += vimc/
+obj-$(CONFIG_VIDEO_VIVID)              += vivid/
+obj-$(CONFIG_VIDEO_VIM2M)              += vim2m.o
+obj-$(CONFIG_VIDEO_VICODEC)            += vicodec/