[openwrt/openwrt] kernel: add support for videobuf-dma
LEDE Commits
lede-commits at lists.infradead.org
Thu Jul 6 23:22:17 PDT 2023
xback pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/f1a9240f0b6c3a5e167c7624ab781bca9a1b6010
commit f1a9240f0b6c3a5e167c7624ab781bca9a1b6010
Author: Koen Vandeputte <koen.vandeputte at citymesh.com>
AuthorDate: Wed Feb 8 16:29:19 2023 +0100
kernel: add support for videobuf-dma
This adds support for videobuf2-dma driver.
This module contains following flavors:
- Contiguous
- Scatter/Gather
Drivers using this can enable 1 of the, or both, depending on their needs.
Due to this, a FILES catch-all is required for the videobuf-dma objects
as depending on requirements, only 1 of them could get generated.
Signed-off-by: Koen Vandeputte <koen.vandeputte at citymesh.com>
---
package/kernel/linux/modules/video.mk | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/package/kernel/linux/modules/video.mk b/package/kernel/linux/modules/video.mk
index d6bacbbf12..68a1d32e76 100644
--- a/package/kernel/linux/modules/video.mk
+++ b/package/kernel/linux/modules/video.mk
@@ -1067,3 +1067,21 @@ endef
$(eval $(call KernelPackage,video-mem2mem))
+define KernelPackage/video-dma
+ SUBMENU:=$(VIDEO_MENU)
+ TITLE:=Video DMA support
+ HIDDEN:=1
+ DEPENDS:=+kmod-video-videobuf2
+ KCONFIG:= \
+ CONFIG_VIDEOBUF2_DMA_CONTIG \
+ CONFIG_VIDEOBUF2_DMA_SG
+ FILES:= $(LINUX_DIR)/drivers/media/common/videobuf2/videobuf2-dma-*.ko
+ AUTOLOAD:=$(call AutoLoad,66,videobuf2-dma-contig videobuf2-dma-sg)
+ $(call AddDepends/video)
+endef
+
+define KernelPackage/video-dma/description
+ Video DMA support
+endef
+
+$(eval $(call KernelPackage,video-dma))
More information about the lede-commits
mailing list