summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorÁlvaro Fernández Rojas2024-01-27 23:04:42 +0000
committerÁlvaro Fernández Rojas2024-02-05 17:25:16 +0000
commitf1364da7a3f5a72ab44c23bdf1f71f5ba38a55e3 (patch)
treee5a6f8592fd2a19f64f136e21a1b9b188f842131
parentb76fcf1bbe1d622ad3bf369deb4f904d78df6aa3 (diff)
bcm27xx: add codec-bcm2835 kernel module
kmod-codec-bcm2835 enables HW accelerated video decoding/encoding on the Raspberry Pi. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
-rw-r--r--target/linux/bcm27xx/modules/video.mk18
1 files changed, 18 insertions, 0 deletions
diff --git a/target/linux/bcm27xx/modules/video.mk b/target/linux/bcm27xx/modules/video.mk
index c7314201d7..5846616f83 100644
--- a/target/linux/bcm27xx/modules/video.mk
+++ b/target/linux/bcm27xx/modules/video.mk
@@ -20,6 +20,24 @@ endef
$(eval $(call KernelPackage,camera-bcm2835))
+define KernelPackage/codec-bcm2835
+ TITLE:=BCM2835 Video Codec
+ KCONFIG:= \
+ CONFIG_VIDEO_CODEC_BCM2835
+ FILES:= \
+ $(LINUX_DIR)/drivers/staging/vc04_services/bcm2835-codec/bcm2835-codec.ko
+ AUTOLOAD:=$(call AutoLoad,67,bcm2835-codec)
+ $(call AddDepends/video,@TARGET_bcm27xx +kmod-vchiq-mmal-bcm2835 +kmod-video-dma +kmod-video-mem2mem)
+endef
+
+define KernelPackage/codec-bcm2835/description
+ V4L2 video codecs for Broadcom BCM2835 SoC.
+ This operates over the VCHIQ interface to a service running on VideoCore.
+endef
+
+$(eval $(call KernelPackage,codec-bcm2835))
+
+
define KernelPackage/drm-vc4
SUBMENU:=$(VIDEO_MENU)
TITLE:=Broadcom VC4 Graphics