From: Lech Perczak Date: Tue, 14 Nov 2023 18:43:43 +0000 (+0100) Subject: kernel: modules: video: package ov5645 driver X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=37bbeb1af4cef75550215c1917f950ad88a619a0;p=thirdparty%2Fopenwrt.git kernel: modules: video: package ov5645 driver 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 Link: https://github.com/openwrt/openwrt/pull/17606 Signed-off-by: Robert Marko --- diff --git a/package/kernel/linux/modules/video.mk b/package/kernel/linux/modules/video.mk index 4f9a44f53dc..4eab4336bdd 100644 --- a/package/kernel/linux/modules/video.mk +++ b/package/kernel/linux/modules/video.mk @@ -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