drm/imx: move IPUv3 driver into separate subdirectory
authorLucas Stach <l.stach@pengutronix.de>
Fri, 25 Nov 2022 11:25:19 +0000 (12:25 +0100)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Fri, 16 Dec 2022 17:40:29 +0000 (18:40 +0100)
The IPUv3 and DCSS driver are two totally separate DRM drivers. Having
one of them live in the drivers/gpu/drm/imx toplevel directory and the
other one in the dcss/ subdirectory is confusing. Move the IPUv3 driver
into its own subdirectory to make the separation more clear.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Link: https://lore.kernel.org/r/20221125112519.3849636-1-l.stach@pengutronix.de
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20221125112519.3849636-1-l.stach@pengutronix.de
14 files changed:
MAINTAINERS
drivers/gpu/drm/imx/Kconfig
drivers/gpu/drm/imx/Makefile
drivers/gpu/drm/imx/ipuv3/Kconfig [new file with mode: 0644]
drivers/gpu/drm/imx/ipuv3/Makefile [new file with mode: 0644]
drivers/gpu/drm/imx/ipuv3/dw_hdmi-imx.c [moved from drivers/gpu/drm/imx/dw_hdmi-imx.c with 100% similarity]
drivers/gpu/drm/imx/ipuv3/imx-drm-core.c [moved from drivers/gpu/drm/imx/imx-drm-core.c with 100% similarity]
drivers/gpu/drm/imx/ipuv3/imx-drm.h [moved from drivers/gpu/drm/imx/imx-drm.h with 100% similarity]
drivers/gpu/drm/imx/ipuv3/imx-ldb.c [moved from drivers/gpu/drm/imx/imx-ldb.c with 100% similarity]
drivers/gpu/drm/imx/ipuv3/imx-tve.c [moved from drivers/gpu/drm/imx/imx-tve.c with 100% similarity]
drivers/gpu/drm/imx/ipuv3/ipuv3-crtc.c [moved from drivers/gpu/drm/imx/ipuv3-crtc.c with 100% similarity]
drivers/gpu/drm/imx/ipuv3/ipuv3-plane.c [moved from drivers/gpu/drm/imx/ipuv3-plane.c with 100% similarity]
drivers/gpu/drm/imx/ipuv3/ipuv3-plane.h [moved from drivers/gpu/drm/imx/ipuv3-plane.h with 100% similarity]
drivers/gpu/drm/imx/ipuv3/parallel-display.c [moved from drivers/gpu/drm/imx/parallel-display.c with 100% similarity]

index f3edff6..2e832cf 100644 (file)
@@ -6905,7 +6905,7 @@ M:        Philipp Zabel <p.zabel@pengutronix.de>
 L:     dri-devel@lists.freedesktop.org
 S:     Maintained
 F:     Documentation/devicetree/bindings/display/imx/
-F:     drivers/gpu/drm/imx/
+F:     drivers/gpu/drm/imx/ipuv3/
 F:     drivers/gpu/ipu-v3/
 
 DRM DRIVERS FOR FREESCALE IMX BRIDGE
index fd5b247..e574992 100644 (file)
@@ -1,43 +1,4 @@
 # SPDX-License-Identifier: GPL-2.0-only
-config DRM_IMX
-       tristate "DRM Support for Freescale i.MX"
-       select DRM_KMS_HELPER
-       select VIDEOMODE_HELPERS
-       select DRM_GEM_DMA_HELPER
-       depends on DRM && (ARCH_MXC || ARCH_MULTIPLATFORM || COMPILE_TEST)
-       depends on IMX_IPUV3_CORE
-       help
-         enable i.MX graphics support
-
-config DRM_IMX_PARALLEL_DISPLAY
-       tristate "Support for parallel displays"
-       select DRM_PANEL
-       depends on DRM_IMX
-       select VIDEOMODE_HELPERS
-
-config DRM_IMX_TVE
-       tristate "Support for TV and VGA displays"
-       depends on DRM_IMX
-       depends on COMMON_CLK
-       select REGMAP_MMIO
-       help
-         Choose this to enable the internal Television Encoder (TVe)
-         found on i.MX53 processors.
-
-config DRM_IMX_LDB
-       tristate "Support for LVDS displays"
-       depends on DRM_IMX && MFD_SYSCON
-       depends on COMMON_CLK
-       select DRM_PANEL
-       help
-         Choose this to enable the internal LVDS Display Bridge (LDB)
-         found on i.MX53 and i.MX6 processors.
-
-config DRM_IMX_HDMI
-       tristate "Freescale i.MX DRM HDMI"
-       select DRM_DW_HDMI
-       depends on DRM_IMX && OF
-       help
-         Choose this if you want to use HDMI on i.MX6.
 
 source "drivers/gpu/drm/imx/dcss/Kconfig"
+source "drivers/gpu/drm/imx/ipuv3/Kconfig"
index b644def..9096228 100644 (file)
@@ -1,12 +1,4 @@
 # SPDX-License-Identifier: GPL-2.0
 
-imxdrm-objs := imx-drm-core.o ipuv3-crtc.o ipuv3-plane.o
-
-obj-$(CONFIG_DRM_IMX) += imxdrm.o
-
-obj-$(CONFIG_DRM_IMX_PARALLEL_DISPLAY) += parallel-display.o
-obj-$(CONFIG_DRM_IMX_TVE) += imx-tve.o
-obj-$(CONFIG_DRM_IMX_LDB) += imx-ldb.o
-
-obj-$(CONFIG_DRM_IMX_HDMI) += dw_hdmi-imx.o
 obj-$(CONFIG_DRM_IMX_DCSS) += dcss/
+obj-$(CONFIG_DRM_IMX) += ipuv3/
diff --git a/drivers/gpu/drm/imx/ipuv3/Kconfig b/drivers/gpu/drm/imx/ipuv3/Kconfig
new file mode 100644 (file)
index 0000000..bb278a3
--- /dev/null
@@ -0,0 +1,41 @@
+# SPDX-License-Identifier: GPL-2.0-only
+config DRM_IMX
+       tristate "DRM Support for Freescale i.MX"
+       select DRM_KMS_HELPER
+       select VIDEOMODE_HELPERS
+       select DRM_GEM_DMA_HELPER
+       depends on DRM && (ARCH_MXC || ARCH_MULTIPLATFORM || COMPILE_TEST)
+       depends on IMX_IPUV3_CORE
+       help
+         enable i.MX graphics support
+
+config DRM_IMX_PARALLEL_DISPLAY
+       tristate "Support for parallel displays"
+       select DRM_PANEL
+       depends on DRM_IMX
+       select VIDEOMODE_HELPERS
+
+config DRM_IMX_TVE
+       tristate "Support for TV and VGA displays"
+       depends on DRM_IMX
+       depends on COMMON_CLK
+       select REGMAP_MMIO
+       help
+         Choose this to enable the internal Television Encoder (TVe)
+         found on i.MX53 processors.
+
+config DRM_IMX_LDB
+       tristate "Support for LVDS displays"
+       depends on DRM_IMX && MFD_SYSCON
+       depends on COMMON_CLK
+       select DRM_PANEL
+       help
+         Choose this to enable the internal LVDS Display Bridge (LDB)
+         found on i.MX53 and i.MX6 processors.
+
+config DRM_IMX_HDMI
+       tristate "Freescale i.MX DRM HDMI"
+       select DRM_DW_HDMI
+       depends on DRM_IMX && OF
+       help
+         Choose this if you want to use HDMI on i.MX6.
diff --git a/drivers/gpu/drm/imx/ipuv3/Makefile b/drivers/gpu/drm/imx/ipuv3/Makefile
new file mode 100644 (file)
index 0000000..21cdcc2
--- /dev/null
@@ -0,0 +1,11 @@
+# SPDX-License-Identifier: GPL-2.0
+
+imxdrm-objs := imx-drm-core.o ipuv3-crtc.o ipuv3-plane.o
+
+obj-$(CONFIG_DRM_IMX) += imxdrm.o
+
+obj-$(CONFIG_DRM_IMX_PARALLEL_DISPLAY) += parallel-display.o
+obj-$(CONFIG_DRM_IMX_TVE) += imx-tve.o
+obj-$(CONFIG_DRM_IMX_LDB) += imx-ldb.o
+
+obj-$(CONFIG_DRM_IMX_HDMI) += dw_hdmi-imx.o