video: move ipuv3 files to subdirectory
authorAnatolij Gustschin <agust@denx.de>
Mon, 18 Mar 2019 22:29:32 +0000 (23:29 +0100)
committerStefano Babic <sbabic@denx.de>
Sat, 13 Apr 2019 18:30:09 +0000 (20:30 +0200)
Place ipuv3 files and headers in custom driver subdirectory.

Signed-off-by: Anatolij Gustschin <agust@denx.de>
drivers/video/Kconfig
drivers/video/Makefile
drivers/video/imx/Kconfig [new file with mode: 0644]
drivers/video/imx/Makefile [new file with mode: 0644]
drivers/video/imx/ipu.h [moved from drivers/video/ipu.h with 100% similarity]
drivers/video/imx/ipu_common.c [moved from drivers/video/ipu_common.c with 100% similarity]
drivers/video/imx/ipu_disp.c [moved from drivers/video/ipu_disp.c with 100% similarity]
drivers/video/imx/ipu_regs.h [moved from drivers/video/ipu_regs.h with 100% similarity]
drivers/video/imx/mxc_ipuv3_fb.c [moved from drivers/video/mxc_ipuv3_fb.c with 99% similarity]
drivers/video/imx/mxcfb.h [moved from drivers/video/mxcfb.h with 100% similarity]

index 73a2402..53871f8 100644 (file)
@@ -538,12 +538,7 @@ config VIDEO_TEGRA124
 
 source "drivers/video/bridge/Kconfig"
 
-config VIDEO_IPUV3
-       bool "i.MX IPUv3 Core video support"
-       depends on (VIDEO || DM_VIDEO) && (MX5 || MX6)
-       help
-         This enables framebuffer driver for i.MX processors working
-         on the IPUv3(Image Processing Unit) internal graphic processor.
+source "drivers/video/imx/Kconfig"
 
 config VIDEO
        bool "Enable legacy video support"
index 671f037..349a207 100644 (file)
@@ -46,7 +46,7 @@ obj-$(CONFIG_VIDEO_DA8XX) += da8xx-fb.o videomodes.o
 obj-$(CONFIG_VIDEO_DW_HDMI) += dw_hdmi.o
 obj-$(CONFIG_VIDEO_EFI) += efi.o
 obj-$(CONFIG_VIDEO_FSL_DCU_FB) += fsl_dcu_fb.o videomodes.o
-obj-$(CONFIG_VIDEO_IPUV3) += mxc_ipuv3_fb.o ipu_common.o ipu_disp.o
+obj-$(CONFIG_VIDEO_IPUV3) += imx/
 obj-$(CONFIG_VIDEO_IVYBRIDGE_IGD) += ivybridge_igd.o
 obj-$(CONFIG_VIDEO_LCD_ANX9804) += anx9804.o
 obj-$(CONFIG_VIDEO_LCD_HITACHI_TX18D42VM) += hitachi_tx18d42vm_lcd.o
diff --git a/drivers/video/imx/Kconfig b/drivers/video/imx/Kconfig
new file mode 100644 (file)
index 0000000..c33620e
--- /dev/null
@@ -0,0 +1,8 @@
+
+config VIDEO_IPUV3
+       bool "i.MX IPUv3 Core video support"
+       depends on (VIDEO || DM_VIDEO) && (MX5 || MX6)
+       help
+         This enables framebuffer driver for i.MX processors working
+         on the IPUv3(Image Processing Unit) internal graphic processor.
+
diff --git a/drivers/video/imx/Makefile b/drivers/video/imx/Makefile
new file mode 100644 (file)
index 0000000..179ea65
--- /dev/null
@@ -0,0 +1,6 @@
+# SPDX-License-Identifier: GPL-2.0+
+#
+# (C) Copyright 2000-2007
+# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
+
+obj-y += mxc_ipuv3_fb.o ipu_common.o ipu_disp.o
similarity index 100%
rename from drivers/video/ipu.h
rename to drivers/video/imx/ipu.h
similarity index 99%
rename from drivers/video/mxc_ipuv3_fb.c
rename to drivers/video/imx/mxc_ipuv3_fb.c
index 5b3ba7b..3e38d4b 100644 (file)
@@ -20,7 +20,7 @@
 #include <asm/mach-imx/video.h>
 #include <malloc.h>
 #include <video_fb.h>
-#include "videomodes.h"
+#include "../videomodes.h"
 #include "ipu.h"
 #include "mxcfb.h"
 #include "ipu_regs.h"