media: platform: re-structure TI drivers
authorPratyush Yadav <p.yadav@ti.com>
Fri, 21 Jan 2022 14:29:00 +0000 (19:59 +0530)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 18 Mar 2022 04:58:35 +0000 (05:58 +0100)
The ti-vpe/ sub-directory does not only contain the VPE-specific things.
It also contains the CAL driver, which is a completely different
subsystem. This is also not a good place to add new drivers for other TI
platforms since they will all get mixed up.

Separate the VPE and CAL parts into different sub-directories and rename
the ti-vpe/ sub-directory to ti/. This is now the place where new TI
platform drivers can be added.

[mchehab: rebased to apple on the top of media/platform/Kconfig series]
Signed-off-by: Pratyush Yadav <p.yadav@ti.com>
Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
20 files changed:
MAINTAINERS
drivers/media/platform/Makefile
drivers/media/platform/ti/Makefile [new file with mode: 0644]
drivers/media/platform/ti/cal/Makefile [new file with mode: 0644]
drivers/media/platform/ti/cal/cal-camerarx.c [moved from drivers/media/platform/ti-vpe/cal-camerarx.c with 100% similarity]
drivers/media/platform/ti/cal/cal-video.c [moved from drivers/media/platform/ti-vpe/cal-video.c with 100% similarity]
drivers/media/platform/ti/cal/cal.c [moved from drivers/media/platform/ti-vpe/cal.c with 100% similarity]
drivers/media/platform/ti/cal/cal.h [moved from drivers/media/platform/ti-vpe/cal.h with 100% similarity]
drivers/media/platform/ti/cal/cal_regs.h [moved from drivers/media/platform/ti-vpe/cal_regs.h with 100% similarity]
drivers/media/platform/ti/vpe/Makefile [moved from drivers/media/platform/ti-vpe/Makefile with 78% similarity]
drivers/media/platform/ti/vpe/csc.c [moved from drivers/media/platform/ti-vpe/csc.c with 100% similarity]
drivers/media/platform/ti/vpe/csc.h [moved from drivers/media/platform/ti-vpe/csc.h with 100% similarity]
drivers/media/platform/ti/vpe/sc.c [moved from drivers/media/platform/ti-vpe/sc.c with 100% similarity]
drivers/media/platform/ti/vpe/sc.h [moved from drivers/media/platform/ti-vpe/sc.h with 100% similarity]
drivers/media/platform/ti/vpe/sc_coeff.h [moved from drivers/media/platform/ti-vpe/sc_coeff.h with 100% similarity]
drivers/media/platform/ti/vpe/vpdma.c [moved from drivers/media/platform/ti-vpe/vpdma.c with 100% similarity]
drivers/media/platform/ti/vpe/vpdma.h [moved from drivers/media/platform/ti-vpe/vpdma.h with 100% similarity]
drivers/media/platform/ti/vpe/vpdma_priv.h [moved from drivers/media/platform/ti-vpe/vpdma_priv.h with 100% similarity]
drivers/media/platform/ti/vpe/vpe.c [moved from drivers/media/platform/ti-vpe/vpe.c with 100% similarity]
drivers/media/platform/ti/vpe/vpe_regs.h [moved from drivers/media/platform/ti-vpe/vpe_regs.h with 100% similarity]

index c367b0d..9eea2c5 100644 (file)
@@ -19407,7 +19407,8 @@ W:      http://linuxtv.org/
 Q:     http://patchwork.linuxtv.org/project/linux-media/list/
 F:     Documentation/devicetree/bindings/media/ti,cal.yaml
 F:     Documentation/devicetree/bindings/media/ti,vpe.yaml
-F:     drivers/media/platform/ti-vpe/
+F:     drivers/media/platform/ti/cal/
+F:     drivers/media/platform/ti/vpe/
 
 TI WILINK WIRELESS DRIVERS
 L:     linux-wireless@vger.kernel.org
index 9c532bd..8d109ae 100644 (file)
@@ -38,11 +38,7 @@ obj-y += st/sti/c8sectpfe/
 obj-y += st/sti/delta/
 obj-y += st/sti/hva/
 obj-y += st/stm32/
-obj-y += ti-vpe/
-obj-y += ti/am437x/
-obj-y += ti/davinci/
-obj-y += ti/omap/
-obj-y += ti/omap3isp/
+obj-y += ti/
 obj-y += via/
 obj-y += xilinx/
 
diff --git a/drivers/media/platform/ti/Makefile b/drivers/media/platform/ti/Makefile
new file mode 100644 (file)
index 0000000..bbc737c
--- /dev/null
@@ -0,0 +1,3 @@
+# SPDX-License-Identifier: GPL-2.0
+obj-y += cal/
+obj-y += vpe/
diff --git a/drivers/media/platform/ti/cal/Makefile b/drivers/media/platform/ti/cal/Makefile
new file mode 100644 (file)
index 0000000..45ac355
--- /dev/null
@@ -0,0 +1,3 @@
+# SPDX-License-Identifier: GPL-2.0
+obj-$(CONFIG_VIDEO_TI_CAL) += ti-cal.o
+ti-cal-y := cal.o cal-camerarx.o cal-video.o
similarity index 78%
rename from drivers/media/platform/ti-vpe/Makefile
rename to drivers/media/platform/ti/vpe/Makefile
index ad62405..3fadfe0 100644 (file)
@@ -10,7 +10,3 @@ ti-sc-y := sc.o
 ti-csc-y := csc.o
 
 ccflags-$(CONFIG_VIDEO_TI_VPE_DEBUG) += -DDEBUG
-
-obj-$(CONFIG_VIDEO_TI_CAL) += ti-cal.o
-
-ti-cal-y := cal.o cal-camerarx.o cal-video.o