bcm27xx/bcm2712: add RP1 camera front-end
authorJohn Audia <therealgraysky@proton.me>
Sat, 28 Dec 2024 16:59:51 +0000 (11:59 -0500)
committerHauke Mehrtens <hauke@hauke-m.de>
Wed, 1 Jan 2025 19:32:16 +0000 (20:32 +0100)
Add kmod for RP1 camera front-end for RPi5B

Build system: x86/64
Build-tested: bcm2712/RPi5B
Run-tested: bcm2712/RPi5B

Signed-off-by: John Audia <therealgraysky@proton.me>
Link: https://github.com/openwrt/openwrt/pull/17412
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/bcm27xx/modules/video.mk

index 8e2b19bd871165e9e3e650e276bd905e5e40a33c..dddf13e0f4a80f2dc10e4cd1cd118919a109856b 100644 (file)
@@ -20,6 +20,25 @@ endef
 $(eval $(call KernelPackage,camera-bcm2835))
 
 
+define KernelPackage/rp1-cfe
+  TITLE:=RP1 Camera Front-End
+  SUBMENU:=$(VIDEO_MENU)
+  KCONFIG:= \
+     CONFIG_VIDEO_RP1_CFE \
+     CONFIG_VIDEO_BCM2835
+  FILES:=$(LINUX_DIR)/drivers/media/platform/raspberrypi/rp1_cfe/rp1-cfe.ko
+  AUTOLOAD:=$(call AutoLoad,67,rp1-cfe)
+  DEPENDS:=@TARGET_bcm27xx_bcm2712 +kmod-video-core +kmod-video-fwnode +kmod-video-dma-contig +kmod-video-async
+endef
+
+define KernelPackage/rp1-cfe/description
+  Driver for the Camera Serial Interface (CSI) to capture video
+  streams from connected cameras.
+endef
+
+$(eval $(call KernelPackage,rp1-cfe))
+
+
 define KernelPackage/codec-bcm2835
   TITLE:=BCM2835 Video Codec
   KCONFIG:= \