From a9a872b9d4ccf0d79381d20e114742439606132f Mon Sep 17 00:00:00 2001 From: Koen Vandeputte Date: Mon, 26 Jun 2023 17:23:07 +0200 Subject: [PATCH] kernel: add support for imx pxp 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 --- package/kernel/linux/modules/video.mk | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/package/kernel/linux/modules/video.mk b/package/kernel/linux/modules/video.mk index 7dfeec9d91..d06ee3926b 100644 --- a/package/kernel/linux/modules/video.mk +++ b/package/kernel/linux/modules/video.mk @@ -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)) -- 2.30.2