From: Koen Vandeputte Date: Mon, 26 Jun 2023 15:23:07 +0000 (+0200) Subject: kernel: add support for imx pxp X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=a9a872b9d4ccf0d79381d20e114742439606132f;p=openwrt%2Fstaging%2Fnbd.git 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 --- 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))