summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKoen Vandeputte <koen.vandeputte@citymesh.com>2023-02-08 16:26:36 +0100
committerKoen Vandeputte <koen.vandeputte@citymesh.com>2023-07-07 08:20:59 +0200
commit0295a29f1d2bfcd973261ee69970e109adb60baf (patch)
treea293636bab44fba00b039106ee54a9ba92292137
parent0a0b1fd15907285b6172d7cdcc5196211f43330e (diff)
downloadopenwrt-0295a29f1d2bfcd973261ee69970e109adb60baf.tar.gz
openwrt-0295a29f1d2bfcd973261ee69970e109adb60baf.tar.bz2
openwrt-0295a29f1d2bfcd973261ee69970e109adb60baf.zip
kernel: add support for mem2mem devices
This allows addition of devices which use these kernel modules. This also adds a package for handling dma within video2buf. These are only build when selected by a caller Signed-off-by: Koen Vandeputte <koen.vandeputte@citymesh.com>
-rw-r--r--package/kernel/linux/modules/video.mk23
1 files changed, 23 insertions, 0 deletions
diff --git a/package/kernel/linux/modules/video.mk b/package/kernel/linux/modules/video.mk
index f1e61f33a5..d6bacbbf12 100644
--- a/package/kernel/linux/modules/video.mk
+++ b/package/kernel/linux/modules/video.mk
@@ -10,6 +10,7 @@ VIDEO_MENU:=Video Support
V4L2_DIR=v4l2-core
V4L2_USB_DIR=usb
+V4L2_MEM2MEM_DIR=platform
#
# Video Display
@@ -1044,3 +1045,25 @@ define KernelPackage/video-gspca-konica/description
endef
$(eval $(call KernelPackage,video-gspca-konica))
+
+#
+# Video Processing
+#
+
+define KernelPackage/video-mem2mem
+ SUBMENU:=$(VIDEO_MENU)
+ TITLE:=Memory 2 Memory device support
+ HIDDEN:=1
+ DEPENDS:=+kmod-video-videobuf2
+ KCONFIG:= CONFIG_V4L_MEM2MEM_DRIVERS=y
+ FILES:= $(LINUX_DIR)/drivers/media/$(V4L2_DIR)/v4l2-mem2mem.ko
+ AUTOLOAD:=$(call AutoLoad,66,v4l2-mem2mem)
+ $(call AddDepends/video)
+endef
+
+define KernelPackage/video-mem2mem/description
+ Memory 2 memory device support
+endef
+
+$(eval $(call KernelPackage,video-mem2mem))
+