[PATCH 08/10] media: platform: broadcom: Move unicam driver to subdir
Jai Luthra
jai.luthra at ideasonboard.com
Tue Jan 13 01:05:28 PST 2026
The BCM283x/BCM2711x SoCs capture camera frames using CSI-2, and
optionally processes the raw frames using a VC4 firmware based ISP
block.
As the driver for the ISP will be added subsequently, to ease
distinction between the two drivers' files, move the files related to
the unicam driver to a separate subdirectory.
Signed-off-by: Jai Luthra <jai.luthra at ideasonboard.com>
---
MAINTAINERS | 2 +-
drivers/media/platform/broadcom/Kconfig | 22 ++-------------------
drivers/media/platform/broadcom/Makefile | 2 +-
.../media/platform/broadcom/bcm2835-unicam/Kconfig | 23 ++++++++++++++++++++++
.../platform/broadcom/bcm2835-unicam/Makefile | 3 +++
.../{ => bcm2835-unicam}/bcm2835-unicam-regs.h | 0
.../broadcom/{ => bcm2835-unicam}/bcm2835-unicam.c | 0
7 files changed, 30 insertions(+), 22 deletions(-)
diff --git a/MAINTAINERS b/MAINTAINERS
index 16002c21fe06913ed57f495265b0b1ad14772c55..adf1408873f7022f3b08639129c106fb95f8d559 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -4952,7 +4952,7 @@ M: Raspberry Pi Kernel Maintenance <kernel-list at raspberrypi.com>
L: linux-media at vger.kernel.org
S: Maintained
F: Documentation/devicetree/bindings/media/brcm,bcm2835-unicam.yaml
-F: drivers/media/platform/broadcom/bcm2835-unicam*
+F: drivers/media/platform/broadcom/bcm2835-unicam/*
BROADCOM BCM47XX MIPS ARCHITECTURE
M: Hauke Mehrtens <hauke at hauke-m.de>
diff --git a/drivers/media/platform/broadcom/Kconfig b/drivers/media/platform/broadcom/Kconfig
index 32b76ebfcd9a194e285381fc4f1d0fbac7d62b4d..cab44885182ce658fa136e31485913b1f0547968 100644
--- a/drivers/media/platform/broadcom/Kconfig
+++ b/drivers/media/platform/broadcom/Kconfig
@@ -1,23 +1,5 @@
# SPDX-License-Identifier: GPL-2.0
-config VIDEO_BCM2835_UNICAM
- tristate "Broadcom BCM283x/BCM271x Unicam video capture driver"
- depends on ARCH_BCM2835 || COMPILE_TEST
- depends on COMMON_CLK && PM
- depends on VIDEO_DEV
- select MEDIA_CONTROLLER
- select V4L2_FWNODE
- select VIDEO_V4L2_SUBDEV_API
- select VIDEOBUF2_DMA_CONTIG
- help
- Say Y here to enable support for the BCM283x/BCM271x CSI-2 receiver.
- This is a V4L2 driver that controls the CSI-2 receiver directly,
- independently from the VC4 firmware.
+comment "Broadcom BCM283x/BCM271x media platform drivers"
- This driver is mutually exclusive with the use of bcm2835-camera. The
- firmware will disable all access to the peripheral from within the
- firmware if it finds a DT node using it, and bcm2835-camera will
- therefore fail to probe.
-
- To compile this driver as a module, choose M here. The module will be
- called bcm2835-unicam.
+source "drivers/media/platform/broadcom/bcm2835-unicam/Kconfig"
diff --git a/drivers/media/platform/broadcom/Makefile b/drivers/media/platform/broadcom/Makefile
index 03d2045aba2e4dd8989ca35a23e1be4ea1811787..33a89bdb0029bc67d90d16bc0910a681b7675ad7 100644
--- a/drivers/media/platform/broadcom/Makefile
+++ b/drivers/media/platform/broadcom/Makefile
@@ -1,3 +1,3 @@
# SPDX-License-Identifier: GPL-2.0
-obj-$(CONFIG_VIDEO_BCM2835_UNICAM) += bcm2835-unicam.o
+obj-y += bcm2835-unicam/
diff --git a/drivers/media/platform/broadcom/bcm2835-unicam/Kconfig b/drivers/media/platform/broadcom/bcm2835-unicam/Kconfig
new file mode 100644
index 0000000000000000000000000000000000000000..32b76ebfcd9a194e285381fc4f1d0fbac7d62b4d
--- /dev/null
+++ b/drivers/media/platform/broadcom/bcm2835-unicam/Kconfig
@@ -0,0 +1,23 @@
+# SPDX-License-Identifier: GPL-2.0
+
+config VIDEO_BCM2835_UNICAM
+ tristate "Broadcom BCM283x/BCM271x Unicam video capture driver"
+ depends on ARCH_BCM2835 || COMPILE_TEST
+ depends on COMMON_CLK && PM
+ depends on VIDEO_DEV
+ select MEDIA_CONTROLLER
+ select V4L2_FWNODE
+ select VIDEO_V4L2_SUBDEV_API
+ select VIDEOBUF2_DMA_CONTIG
+ help
+ Say Y here to enable support for the BCM283x/BCM271x CSI-2 receiver.
+ This is a V4L2 driver that controls the CSI-2 receiver directly,
+ independently from the VC4 firmware.
+
+ This driver is mutually exclusive with the use of bcm2835-camera. The
+ firmware will disable all access to the peripheral from within the
+ firmware if it finds a DT node using it, and bcm2835-camera will
+ therefore fail to probe.
+
+ To compile this driver as a module, choose M here. The module will be
+ called bcm2835-unicam.
diff --git a/drivers/media/platform/broadcom/bcm2835-unicam/Makefile b/drivers/media/platform/broadcom/bcm2835-unicam/Makefile
new file mode 100644
index 0000000000000000000000000000000000000000..03d2045aba2e4dd8989ca35a23e1be4ea1811787
--- /dev/null
+++ b/drivers/media/platform/broadcom/bcm2835-unicam/Makefile
@@ -0,0 +1,3 @@
+# SPDX-License-Identifier: GPL-2.0
+
+obj-$(CONFIG_VIDEO_BCM2835_UNICAM) += bcm2835-unicam.o
diff --git a/drivers/media/platform/broadcom/bcm2835-unicam-regs.h b/drivers/media/platform/broadcom/bcm2835-unicam/bcm2835-unicam-regs.h
similarity index 100%
rename from drivers/media/platform/broadcom/bcm2835-unicam-regs.h
rename to drivers/media/platform/broadcom/bcm2835-unicam/bcm2835-unicam-regs.h
diff --git a/drivers/media/platform/broadcom/bcm2835-unicam.c b/drivers/media/platform/broadcom/bcm2835-unicam/bcm2835-unicam.c
similarity index 100%
rename from drivers/media/platform/broadcom/bcm2835-unicam.c
rename to drivers/media/platform/broadcom/bcm2835-unicam/bcm2835-unicam.c
--
2.52.0
More information about the linux-arm-kernel
mailing list