]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
kernel: modules: video: package ov5645 driver
authorLech Perczak <lech.perczak@gmail.com>
Tue, 14 Nov 2023 18:43:43 +0000 (19:43 +0100)
committerRobert Marko <robert.marko@sartura.hr>
Wed, 1 Jul 2026 17:06:28 +0000 (19:06 +0200)
Create a package for ov5645 kernel module, required to support camera on
PICO-PI-IMX7D board.

Currently limit the visibility to imx_cortexa7 subtarget, but this can
be enabled on other platforms if needed.

Signed-off-by: Lech Perczak <lech.perczak@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/17606
Signed-off-by: Robert Marko <robert.marko@sartura.hr>
package/kernel/linux/modules/video.mk

index 4f9a44f53dc9456da36a88e8cd2e06996b4d6310..4eab4336bddaaaf0816b254e1aa1592b7d3245f8 100644 (file)
@@ -1659,6 +1659,25 @@ endef
 
 $(eval $(call KernelPackage,video-mux))
 
+define KernelPackage/video-ov5645
+  TITLE:=OmniVision OV5645 sensor support
+  DEPENDS:=@(TARGET_imx&&TARGET_imx_cortexa7) +kmod-video-fwnode
+  KCONFIG:= \
+       CONFIG_MEDIA_CAMERA_SUPPORT=y \
+       CONFIG_VIDEO_CAMERA_SENSOR=y \
+       CONFIG_VIDEO_OV5645
+  FILES:=$(LINUX_DIR)/drivers/media/i2c/ov5645.ko
+  AUTOLOAD:=$(call AutoProbe,ov5645)
+  $(call AddDepends/video)
+endef
+
+define KernelPackage/video-ov5645/description
+ This is a Video4Linux2 sensor driver for the OmniVision
+ OV5645 camera.
+endef
+
+$(eval $(call KernelPackage,video-ov5645))
+
 define KernelPackage/video-tw686x
   TITLE:=TW686x support
   DEPENDS:=@PCIE_SUPPORT +kmod-video-dma-contig +kmod-video-dma-sg +kmod-sound-core