media: platform: place NXP drivers on a separate dir
authorMauro Carvalho Chehab <mchehab@kernel.org>
Thu, 10 Mar 2022 15:40:21 +0000 (16:40 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Mon, 14 Mar 2022 08:42:59 +0000 (09:42 +0100)
In order to cleanup the main platform media directory, move NXP
drivers to their own directory.

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
18 files changed:
MAINTAINERS
drivers/media/platform/Kconfig
drivers/media/platform/Makefile
drivers/media/platform/imx/Kconfig [deleted file]
drivers/media/platform/imx/Makefile [deleted file]
drivers/media/platform/nxp/Kconfig [new file with mode: 0644]
drivers/media/platform/nxp/Makefile [new file with mode: 0644]
drivers/media/platform/nxp/fsl-viu.c [moved from drivers/media/platform/fsl-viu.c with 100% similarity]
drivers/media/platform/nxp/imx-jpeg/Kconfig [moved from drivers/media/platform/imx-jpeg/Kconfig with 100% similarity]
drivers/media/platform/nxp/imx-jpeg/Makefile [moved from drivers/media/platform/imx-jpeg/Makefile with 100% similarity]
drivers/media/platform/nxp/imx-jpeg/mxc-jpeg-hw.c [moved from drivers/media/platform/imx-jpeg/mxc-jpeg-hw.c with 100% similarity]
drivers/media/platform/nxp/imx-jpeg/mxc-jpeg-hw.h [moved from drivers/media/platform/imx-jpeg/mxc-jpeg-hw.h with 100% similarity]
drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c [moved from drivers/media/platform/imx-jpeg/mxc-jpeg.c with 100% similarity]
drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.h [moved from drivers/media/platform/imx-jpeg/mxc-jpeg.h with 100% similarity]
drivers/media/platform/nxp/imx-mipi-csis.c [moved from drivers/media/platform/imx/imx-mipi-csis.c with 100% similarity]
drivers/media/platform/nxp/imx-pxp.c [moved from drivers/media/platform/imx-pxp.c with 100% similarity]
drivers/media/platform/nxp/imx-pxp.h [moved from drivers/media/platform/imx-pxp.h with 100% similarity]
drivers/media/platform/nxp/mx2_emmaprp.c [moved from drivers/media/platform/mx2_emmaprp.c with 100% similarity]

index 1b6f48a660de3d0005cc96d59e17bd70dfdd4726..780ef2ef3362b5a42debeff6ae0e4723632a2011 100644 (file)
@@ -11841,7 +11841,7 @@ M:      Philipp Zabel <p.zabel@pengutronix.de>
 L:     linux-media@vger.kernel.org
 S:     Maintained
 T:     git git://linuxtv.org/media_tree.git
-F:     drivers/media/platform/imx-pxp.[ch]
+F:     drivers/media/platform/nxp/imx-pxp.[ch]
 
 MEDIA DRIVERS FOR ASCOT2E
 M:     Sergey Kozlov <serjk@netup.ru>
index 10f453ff2717c99080af296294d3995687c828a4..711b6ab9370b4f57f2c345b94dd6271f5eee4b05 100644 (file)
@@ -29,6 +29,8 @@ config V4L_MEM2MEM_DRIVERS
          to capture and output drivers, which use memory buffers for just
          one of those.
 
+source "drivers/media/platform/nxp/Kconfig"
+
 # V4L platform drivers
 
 source "drivers/media/platform/marvell-ccic/Kconfig"
@@ -61,19 +63,6 @@ config VIDEO_SH_VOU
        help
          Support for the Video Output Unit (VOU) on SuperH SoCs.
 
-config VIDEO_VIU
-       tristate "Freescale VIU Video Driver"
-       depends on V4L_PLATFORM_DRIVERS
-       depends on VIDEO_V4L2 && (PPC_MPC512x || COMPILE_TEST) && I2C
-       select VIDEOBUF_DMA_CONTIG
-       default y
-       help
-         Support for Freescale VIU video driver. This device captures
-         video data, or overlays video on DIU frame buffer.
-
-         Say Y here if you want to enable VIU device on MPC5121e Rev2+.
-         In doubt, say N.
-
 config VIDEO_MUX
        tristate "Video Multiplexer"
        depends on V4L_PLATFORM_DRIVERS
@@ -193,7 +182,6 @@ source "drivers/media/platform/xilinx/Kconfig"
 source "drivers/media/platform/rcar-vin/Kconfig"
 source "drivers/media/platform/atmel/Kconfig"
 source "drivers/media/platform/sunxi/Kconfig"
-source "drivers/media/platform/imx/Kconfig"
 
 config VIDEO_TI_CAL
        tristate "TI CAL (Camera Adaptation Layer) driver"
@@ -273,18 +261,6 @@ config VIDEO_CODA
 config VIDEO_IMX_VDOA
        def_tristate VIDEO_CODA if SOC_IMX6Q || COMPILE_TEST
 
-config VIDEO_IMX_PXP
-       tristate "i.MX Pixel Pipeline (PXP)"
-       depends on V4L_MEM2MEM_DRIVERS
-       depends on VIDEO_DEV && VIDEO_V4L2 && (ARCH_MXC || COMPILE_TEST)
-       select VIDEOBUF2_DMA_CONTIG
-       select V4L2_MEM2MEM_DEV
-       help
-         The i.MX Pixel Pipeline is a memory-to-memory engine for scaling,
-         color space conversion, and rotation.
-
-source "drivers/media/platform/imx-jpeg/Kconfig"
-
 config VIDEO_MEDIATEK_JPEG
        tristate "Mediatek JPEG Codec driver"
        depends on V4L_MEM2MEM_DRIVERS
@@ -423,18 +399,6 @@ config VIDEO_SAMSUNG_S5P_MFC
        help
            MFC 5.1 and 6.x driver for V4L2
 
-config VIDEO_MX2_EMMAPRP
-       tristate "MX2 eMMa-PrP support"
-       depends on V4L_MEM2MEM_DRIVERS
-       depends on VIDEO_DEV && VIDEO_V4L2
-       depends on SOC_IMX27 || COMPILE_TEST
-       select VIDEOBUF2_DMA_CONTIG
-       select V4L2_MEM2MEM_DEV
-       help
-           MX2X chips have a PrP that can be used to process buffers from
-           memory to memory. Operations include resizing and format
-           conversion.
-
 config VIDEO_SAMSUNG_EXYNOS_GSC
        tristate "Samsung Exynos G-Scaler driver"
        depends on V4L_MEM2MEM_DRIVERS
index 18ec3d2084836c6a77fd816ce96174c02bb0a2b8..4458690c196515ce4baf0482d728a78d4835eb52 100644 (file)
@@ -15,14 +15,13 @@ obj-y += coda/
 obj-y += davinci/
 obj-y += exynos-gsc/
 obj-y += exynos4-is/
-obj-y += imx/
-obj-y += imx-jpeg/
 obj-y += marvell-ccic/
 obj-y += meson/ge2d/
 obj-y += mtk-jpeg/
 obj-y += mtk-mdp/
 obj-y += mtk-vcodec/
 obj-y += mtk-vpu/
+obj-y += nxp/
 obj-y += omap/
 obj-y += omap3isp/
 obj-y += qcom/camss/
@@ -48,10 +47,8 @@ obj-y += xilinx/
 # Please place here only ancillary drivers that aren't SoC-specific
 # Please keep it alphabetically sorted by Kconfig name
 # (e. g. LC_ALL=C sort Makefile)
-obj-$(CONFIG_VIDEO_IMX_PXP)            += imx-pxp.o
 obj-$(CONFIG_VIDEO_MEM2MEM_DEINTERLACE)        += m2m-deinterlace.o
 obj-$(CONFIG_VIDEO_MUX)                        += video-mux.o
-obj-$(CONFIG_VIDEO_MX2_EMMAPRP)                += mx2_emmaprp.o
 obj-$(CONFIG_VIDEO_PXA27x)             += pxa_camera.o
 obj-$(CONFIG_VIDEO_RCAR_DRIF)          += rcar_drif.o
 obj-$(CONFIG_VIDEO_RCAR_ISP)           += rcar-isp.o
@@ -61,4 +58,3 @@ obj-$(CONFIG_VIDEO_RENESAS_FDP1)      += rcar_fdp1.o
 obj-$(CONFIG_VIDEO_RENESAS_JPU)                += rcar_jpu.o
 obj-$(CONFIG_VIDEO_SH_VOU)             += sh_vou.o
 obj-$(CONFIG_VIDEO_VIA_CAMERA)         += via-camera.o
-obj-$(CONFIG_VIDEO_VIU)                        += fsl-viu.o
diff --git a/drivers/media/platform/imx/Kconfig b/drivers/media/platform/imx/Kconfig
deleted file mode 100644 (file)
index 7cd0617..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0-only
-
-menuconfig VIDEO_IMX
-       bool "V4L2 capture drivers for NXP i.MX devices"
-       depends on V4L_PLATFORM_DRIVERS
-       depends on ARCH_MXC || COMPILE_TEST
-       depends on VIDEO_DEV && VIDEO_V4L2
-       help
-         Say yes here to enable support for capture drivers on i.MX SoCs.
-         Support for the single SoC features are selectable in the sub-menu
-         options.
-
-if VIDEO_IMX
-
-config VIDEO_IMX_MIPI_CSIS
-       tristate "MIPI CSI-2 CSIS receiver found on i.MX7 and i.MX8 models"
-       select MEDIA_CONTROLLER
-       select V4L2_FWNODE
-       select VIDEO_V4L2_SUBDEV_API
-       default n
-       help
-         Video4Linux2 sub-device driver for the MIPI CSI-2 CSIS receiver
-         v3.3/v3.6.3 found on some i.MX7 and i.MX8 SoCs.
-
-endif # VIDEO_IMX
diff --git a/drivers/media/platform/imx/Makefile b/drivers/media/platform/imx/Makefile
deleted file mode 100644 (file)
index f72bdbe..0000000
+++ /dev/null
@@ -1 +0,0 @@
-obj-$(CONFIG_VIDEO_IMX_MIPI_CSIS) += imx-mipi-csis.o
diff --git a/drivers/media/platform/nxp/Kconfig b/drivers/media/platform/nxp/Kconfig
new file mode 100644 (file)
index 0000000..df52d32
--- /dev/null
@@ -0,0 +1,66 @@
+# SPDX-License-Identifier: GPL-2.0-only
+
+# V4L drivers
+
+menuconfig VIDEO_IMX
+       bool "V4L2 capture drivers for NXP i.MX devices"
+       depends on V4L_PLATFORM_DRIVERS
+       depends on ARCH_MXC || COMPILE_TEST
+       depends on VIDEO_DEV && VIDEO_V4L2
+       help
+         Say yes here to enable support for capture drivers on i.MX SoCs.
+         Support for the single SoC features are selectable in the sub-menu
+         options.
+
+if VIDEO_IMX
+
+config VIDEO_IMX_MIPI_CSIS
+       tristate "MIPI CSI-2 CSIS receiver found on i.MX7 and i.MX8 models"
+       select MEDIA_CONTROLLER
+       select V4L2_FWNODE
+       select VIDEO_V4L2_SUBDEV_API
+       default n
+       help
+         Video4Linux2 sub-device driver for the MIPI CSI-2 CSIS receiver
+         v3.3/v3.6.3 found on some i.MX7 and i.MX8 SoCs.
+
+endif # VIDEO_IMX
+
+config VIDEO_VIU
+       tristate "Freescale/NXP VIU Video Driver"
+       depends on V4L_PLATFORM_DRIVERS
+       depends on VIDEO_V4L2 && (PPC_MPC512x || COMPILE_TEST) && I2C
+       select VIDEOBUF_DMA_CONTIG
+       default y
+       help
+         Support for Freescale VIU video driver. This device captures
+         video data, or overlays video on DIU frame buffer.
+
+         Say Y here if you want to enable VIU device on MPC5121e Rev2+.
+         In doubt, say N.
+
+# mem2mem drivers
+
+config VIDEO_IMX_PXP
+       tristate "i.MX Pixel Pipeline (PXP)"
+       depends on V4L_MEM2MEM_DRIVERS
+       depends on VIDEO_DEV && VIDEO_V4L2 && (ARCH_MXC || COMPILE_TEST)
+       select VIDEOBUF2_DMA_CONTIG
+       select V4L2_MEM2MEM_DEV
+       help
+         The i.MX Pixel Pipeline is a memory-to-memory engine for scaling,
+         color space conversion, and rotation.
+
+config VIDEO_MX2_EMMAPRP
+       tristate "Freescale/NXP MX2 eMMa-PrP support"
+       depends on V4L_MEM2MEM_DRIVERS
+       depends on VIDEO_DEV && VIDEO_V4L2
+       depends on SOC_IMX27 || COMPILE_TEST
+       select VIDEOBUF2_DMA_CONTIG
+       select V4L2_MEM2MEM_DEV
+       help
+           MX2X chips have a PrP that can be used to process buffers from
+           memory to memory. Operations include resizing and format
+           conversion.
+
+source "drivers/media/platform/nxp/imx-jpeg/Kconfig"
diff --git a/drivers/media/platform/nxp/Makefile b/drivers/media/platform/nxp/Makefile
new file mode 100644 (file)
index 0000000..efc38c6
--- /dev/null
@@ -0,0 +1,8 @@
+# SPDX-License-Identifier: GPL-2.0-only
+
+obj-y += imx-jpeg/
+
+obj-$(CONFIG_VIDEO_IMX_MIPI_CSIS) += imx-mipi-csis.o
+obj-$(CONFIG_VIDEO_IMX_PXP) += imx-pxp.o
+obj-$(CONFIG_VIDEO_MX2_EMMAPRP) += mx2_emmaprp.o
+obj-$(CONFIG_VIDEO_VIU) += fsl-viu.o