]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
media: platform: chips-media: Move Coda to separate folder
authorSebastian Fricke <sebastian.fricke@collabora.com>
Wed, 8 Nov 2023 19:29:22 +0000 (20:29 +0100)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Thu, 16 Nov 2023 12:25:52 +0000 (13:25 +0100)
Prepare the folder structure for a second Chips&Media driver.
Move the Coda driver to a sub-directory.

Signed-off-by: Sebastian Fricke <sebastian.fricke@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
17 files changed:
MAINTAINERS
drivers/media/platform/chips-media/Kconfig
drivers/media/platform/chips-media/Makefile
drivers/media/platform/chips-media/coda/Kconfig [new file with mode: 0644]
drivers/media/platform/chips-media/coda/Makefile [new file with mode: 0644]
drivers/media/platform/chips-media/coda/coda-bit.c [moved from drivers/media/platform/chips-media/coda-bit.c with 100% similarity]
drivers/media/platform/chips-media/coda/coda-common.c [moved from drivers/media/platform/chips-media/coda-common.c with 100% similarity]
drivers/media/platform/chips-media/coda/coda-gdi.c [moved from drivers/media/platform/chips-media/coda-gdi.c with 100% similarity]
drivers/media/platform/chips-media/coda/coda-h264.c [moved from drivers/media/platform/chips-media/coda-h264.c with 100% similarity]
drivers/media/platform/chips-media/coda/coda-jpeg.c [moved from drivers/media/platform/chips-media/coda-jpeg.c with 100% similarity]
drivers/media/platform/chips-media/coda/coda-mpeg2.c [moved from drivers/media/platform/chips-media/coda-mpeg2.c with 100% similarity]
drivers/media/platform/chips-media/coda/coda-mpeg4.c [moved from drivers/media/platform/chips-media/coda-mpeg4.c with 100% similarity]
drivers/media/platform/chips-media/coda/coda.h [moved from drivers/media/platform/chips-media/coda.h with 100% similarity]
drivers/media/platform/chips-media/coda/coda_regs.h [moved from drivers/media/platform/chips-media/coda_regs.h with 100% similarity]
drivers/media/platform/chips-media/coda/imx-vdoa.c [moved from drivers/media/platform/chips-media/imx-vdoa.c with 100% similarity]
drivers/media/platform/chips-media/coda/imx-vdoa.h [moved from drivers/media/platform/chips-media/imx-vdoa.h with 100% similarity]
drivers/media/platform/chips-media/coda/trace.h [moved from drivers/media/platform/chips-media/trace.h with 99% similarity]

index 7d86cef515ba84774e3a0058eccadccac19ab5aa..6ed7462367ce30ae891fcc4c31fd6c17d92f654a 100644 (file)
@@ -5169,7 +5169,7 @@ M:        Philipp Zabel <p.zabel@pengutronix.de>
 L:     linux-media@vger.kernel.org
 S:     Maintained
 F:     Documentation/devicetree/bindings/media/coda.yaml
-F:     drivers/media/platform/chips-media/
+F:     drivers/media/platform/chips-media/coda
 
 CODE OF CONDUCT
 M:     Greg Kroah-Hartman <gregkh@linuxfoundation.org>
index 57f8f8a22df8ca4232f4fba097b75d21db664777..f87a0d693df7145ac95e2487bf6b87b91263d178 100644 (file)
@@ -2,19 +2,4 @@
 
 comment "Chips&Media media platform drivers"
 
-config VIDEO_CODA
-       tristate "Chips&Media Coda multi-standard codec IP"
-       depends on V4L_MEM2MEM_DRIVERS
-       depends on VIDEO_DEV && OF && (ARCH_MXC || COMPILE_TEST)
-       select SRAM
-       select VIDEOBUF2_DMA_CONTIG
-       select VIDEOBUF2_VMALLOC
-       select V4L2_JPEG_HELPER
-       select V4L2_MEM2MEM_DEV
-       select GENERIC_ALLOCATOR
-       help
-          Coda is a range of video codec IPs that supports
-          H.264, MPEG-4, and other video formats.
-
-config VIDEO_IMX_VDOA
-       def_tristate VIDEO_CODA if SOC_IMX6Q || COMPILE_TEST
+source "drivers/media/platform/chips-media/coda/Kconfig"
index bbb16425a875ea874f6e75bbc7f48e843591aa58..5ee693f651c1d04bcaf5b6c3bc7cc719cb08a2ed 100644 (file)
@@ -1,6 +1,3 @@
 # SPDX-License-Identifier: GPL-2.0-only
 
-coda-vpu-objs := coda-common.o coda-bit.o coda-gdi.o coda-h264.o coda-mpeg2.o coda-mpeg4.o coda-jpeg.o
-
-obj-$(CONFIG_VIDEO_CODA) += coda-vpu.o
-obj-$(CONFIG_VIDEO_IMX_VDOA) += imx-vdoa.o
+obj-y += coda/
diff --git a/drivers/media/platform/chips-media/coda/Kconfig b/drivers/media/platform/chips-media/coda/Kconfig
new file mode 100644 (file)
index 0000000..cb7b66c
--- /dev/null
@@ -0,0 +1,18 @@
+# SPDX-License-Identifier: GPL-2.0-only
+
+config VIDEO_CODA
+       tristate "Chips&Media Coda multi-standard codec IP"
+       depends on V4L_MEM2MEM_DRIVERS
+       depends on VIDEO_DEV && OF && (ARCH_MXC || COMPILE_TEST)
+       select SRAM
+       select VIDEOBUF2_DMA_CONTIG
+       select VIDEOBUF2_VMALLOC
+       select V4L2_JPEG_HELPER
+       select V4L2_MEM2MEM_DEV
+       select GENERIC_ALLOCATOR
+       help
+          Coda is a range of video codec IPs that supports
+          H.264, MPEG-4, and other video formats.
+
+config VIDEO_IMX_VDOA
+       def_tristate VIDEO_CODA if SOC_IMX6Q || COMPILE_TEST
diff --git a/drivers/media/platform/chips-media/coda/Makefile b/drivers/media/platform/chips-media/coda/Makefile
new file mode 100644 (file)
index 0000000..bbb1642
--- /dev/null
@@ -0,0 +1,6 @@
+# SPDX-License-Identifier: GPL-2.0-only
+
+coda-vpu-objs := coda-common.o coda-bit.o coda-gdi.o coda-h264.o coda-mpeg2.o coda-mpeg4.o coda-jpeg.o
+
+obj-$(CONFIG_VIDEO_CODA) += coda-vpu.o
+obj-$(CONFIG_VIDEO_IMX_VDOA) += imx-vdoa.o
similarity index 99%
rename from drivers/media/platform/chips-media/trace.h
rename to drivers/media/platform/chips-media/coda/trace.h
index 19f98e6dafb9881e2e2e0d6d7b99cee015a767a6..abc6a01a74e9f776ac9a4668f620ed9532cdea6e 100644 (file)
@@ -167,7 +167,7 @@ DEFINE_EVENT(coda_buf_class, coda_jpeg_done,
 #endif /* __CODA_TRACE_H__ */
 
 #undef TRACE_INCLUDE_PATH
-#define TRACE_INCLUDE_PATH ../../drivers/media/platform/chips-media
+#define TRACE_INCLUDE_PATH ../../drivers/media/platform/chips-media/coda
 #undef TRACE_INCLUDE_FILE
 #define TRACE_INCLUDE_FILE trace