kernel: add support for videobuf-dma
authorKoen Vandeputte <koen.vandeputte@citymesh.com>
Wed, 8 Feb 2023 15:29:19 +0000 (16:29 +0100)
committerKoen Vandeputte <koen.vandeputte@citymesh.com>
Fri, 7 Jul 2023 06:20:59 +0000 (08:20 +0200)
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@citymesh.com>
package/kernel/linux/modules/video.mk

index d6bacbbf12ea2d93288a8c00597b677f0264698f..68a1d32e76e39beba6b50e5638068e48649facd8 100644 (file)
@@ -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))