media: platform: chips-media: Move Coda to separate folder 87/299587/2
authorSebastian Fricke <sebastian.fricke@collabora.com>
Wed, 7 Dec 2022 12:13:45 +0000 (13:13 +0100)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Thu, 5 Oct 2023 09:18:21 +0000 (18:18 +0900)
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>
[sw0312.kim: cherry-pick the commit b98dc9cf7754 from https://github.com/starfive-tech/linux/tree/JH7110_VisionFive2_6.1.y_devel]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: I27c82d2154c69aae68c423cc2d2a152ca6efa8b6

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 100% similarity]

index 7e879b6..825091a 100644 (file)
@@ -5141,7 +5141,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 57f8f8a..f87a0d6 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 bbb1642..5ee693f 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