]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
media: atmel: move microchip_csi2dc to dedicated microchip platform
authorEugen Hristev <eugen.hristev@microchip.com>
Mon, 7 Nov 2022 14:18:13 +0000 (14:18 +0000)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 25 Nov 2022 07:43:17 +0000 (07:43 +0000)
The Atmel ISC will be moved to staging thus the atmel platform will only
have the ISI driver.
The new media-controller converted ISC driver will be placed inside a
dedicated microchip platform directory.
It is then natural to have the microchip-csi2dc moved to this new platform
directory.
The next step is to add the Microchip ISC driver to the new platform
directory and reside together with the Microchip CSI2DC driver.

Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
MAINTAINERS
drivers/media/platform/Kconfig
drivers/media/platform/Makefile
drivers/media/platform/atmel/Kconfig
drivers/media/platform/atmel/Makefile
drivers/media/platform/microchip/Kconfig [new file with mode: 0644]
drivers/media/platform/microchip/Makefile [new file with mode: 0644]
drivers/media/platform/microchip/microchip-csi2dc.c [moved from drivers/media/platform/atmel/microchip-csi2dc.c with 100% similarity]

index 338b8c3aa30e7db18734bcd39b6ae8b9cfb3f312..6d6d55ea61e41607d216b644b1e11ed780ffdbd8 100644 (file)
@@ -13476,7 +13476,7 @@ M:      Eugen Hristev <eugen.hristev@microchip.com>
 L:     linux-media@vger.kernel.org
 S:     Supported
 F:     Documentation/devicetree/bindings/media/microchip,csi2dc.yaml
-F:     drivers/media/platform/atmel/microchip-csi2dc.c
+F:     drivers/media/platform/microchip/microchip-csi2dc.c
 
 MICROCHIP ECC DRIVER
 M:     Tudor Ambarus <tudor.ambarus@microchip.com>
index a9334263fa9baea627bbea19664886b3ee60e53b..ee579916f8744a5df7c8f805c6605dd3a67b4497 100644 (file)
@@ -72,6 +72,7 @@ source "drivers/media/platform/chips-media/Kconfig"
 source "drivers/media/platform/intel/Kconfig"
 source "drivers/media/platform/marvell/Kconfig"
 source "drivers/media/platform/mediatek/Kconfig"
+source "drivers/media/platform/microchip/Kconfig"
 source "drivers/media/platform/nvidia/Kconfig"
 source "drivers/media/platform/nxp/Kconfig"
 source "drivers/media/platform/qcom/Kconfig"
index a91f42024273d7d6044fd0599c5a5f08c7e5113e..5453bb868e6794d634fa3c32ee1b6a3de35c4880 100644 (file)
@@ -15,6 +15,7 @@ obj-y += chips-media/
 obj-y += intel/
 obj-y += marvell/
 obj-y += mediatek/
+obj-y += microchip/
 obj-y += nvidia/
 obj-y += nxp/
 obj-y += qcom/
index f399dba62e1785904daad1e453e465180e513e18..6d07a31d4c0e7f59f092acd1406080fa1d62f2b4 100644 (file)
@@ -49,18 +49,3 @@ config VIDEO_ATMEL_ISI
          This module makes the ATMEL Image Sensor Interface available
          as a v4l2 device.
 
-config VIDEO_MICROCHIP_CSI2DC
-       tristate "Microchip CSI2 Demux Controller"
-       depends on V4L_PLATFORM_DRIVERS
-       depends on VIDEO_DEV && COMMON_CLK && OF
-       depends on ARCH_AT91 || COMPILE_TEST
-       select MEDIA_CONTROLLER
-       select VIDEO_V4L2_SUBDEV_API
-       select V4L2_FWNODE
-       help
-         CSI2 Demux Controller driver. CSI2DC is a helper chip
-         that converts IDI interface byte stream to a parallel pixel stream.
-         It supports various RAW formats as input.
-
-         To compile this driver as a module, choose M here: the
-         module will be called microchip-csi2dc.
index 794e8f7392878fb7b01c1d4746d3fd254ccc241b..ab3890f957763520eaa96171abd687d8074a7dac 100644 (file)
@@ -7,4 +7,3 @@ obj-$(CONFIG_VIDEO_ATMEL_ISI) += atmel-isi.o
 obj-$(CONFIG_VIDEO_ATMEL_ISC_BASE) += atmel-isc-common.o
 obj-$(CONFIG_VIDEO_ATMEL_ISC) += atmel-isc.o
 obj-$(CONFIG_VIDEO_ATMEL_XISC) += atmel-xisc.o
-obj-$(CONFIG_VIDEO_MICROCHIP_CSI2DC) += microchip-csi2dc.o
diff --git a/drivers/media/platform/microchip/Kconfig b/drivers/media/platform/microchip/Kconfig
new file mode 100644 (file)
index 0000000..aa9e902
--- /dev/null
@@ -0,0 +1,19 @@
+# SPDX-License-Identifier: GPL-2.0-only
+
+comment "Microchip Technology, Inc. media platform drivers"
+
+config VIDEO_MICROCHIP_CSI2DC
+       tristate "Microchip CSI2 Demux Controller"
+       depends on V4L_PLATFORM_DRIVERS
+       depends on VIDEO_DEV && COMMON_CLK && OF
+       depends on ARCH_AT91 || COMPILE_TEST
+       select MEDIA_CONTROLLER
+       select VIDEO_V4L2_SUBDEV_API
+       select V4L2_FWNODE
+       help
+         CSI2 Demux Controller driver. CSI2DC is a helper chip
+         that converts IDI interface byte stream to a parallel pixel stream.
+         It supports various RAW formats as input.
+
+         To compile this driver as a module, choose M here: the
+         module will be called microchip-csi2dc.
diff --git a/drivers/media/platform/microchip/Makefile b/drivers/media/platform/microchip/Makefile
new file mode 100644 (file)
index 0000000..cbcde4a
--- /dev/null
@@ -0,0 +1,3 @@
+# SPDX-License-Identifier: GPL-2.0-only
+
+obj-$(CONFIG_VIDEO_MICROCHIP_CSI2DC) += microchip-csi2dc.o