kernel: add support for imx pxp
authorKoen Vandeputte <koen.vandeputte@citymesh.com>
Mon, 26 Jun 2023 15:23:07 +0000 (17:23 +0200)
committerKoen Vandeputte <koen.vandeputte@citymesh.com>
Fri, 7 Jul 2023 06:20:59 +0000 (08:20 +0200)
This adds support for the i.MX Pixel Pipeline IP block
which is available on some imx6 flavours [1]

This allows to use hardware offloading for operations like:
- Colour conversion
- Scaling
- Rotation

[1] https://en.wikipedia.org/wiki/I.MX#i.MX_6_series

Signed-off-by: Koen Vandeputte <koen.vandeputte@citymesh.com>
package/kernel/linux/modules/video.mk

index 7dfeec9d9138718c90c00ed6ffb8491778b7e3eb..d06ee3926bd8f91dab2696d3d6fb29900ebbbf64 100644 (file)
@@ -1105,3 +1105,20 @@ define KernelPackage/video-coda/description
 endef
 
 $(eval $(call KernelPackage,video-coda))
+
+define KernelPackage/video-pxp
+  TITLE:=i.MX PXP support
+  DEPENDS:=@TARGET_imx +kmod-video-mem2mem +kmod-video-dma
+  KCONFIG:= CONFIG_VIDEO_IMX_PXP
+  FILES:= $(LINUX_DIR)/drivers/media/$(V4L2_MEM2MEM_DIR)/imx-pxp.ko
+  AUTOLOAD:=$(call AutoProbe,imx-pxp)
+  $(call AddDepends/video)
+endef
+
+define KernelPackage/video-pxp/description
+ The i.MX Pixel Pipeline (PXP) kernel module
+ This enables hardware accelerated support for image
+ Colour Conversion, Scaling and Rotation
+endef
+
+$(eval $(call KernelPackage,video-pxp))