Skip to content

Commit 51abcf7

Browse files
pH5mchehab
authored andcommitted
media: imx-pxp: add i.MX Pixel Pipeline driver
Add a V4L2 mem-to-mem scaler/CSC driver for the Pixel Pipeline (PXP) version found on i.MX6ULL SoCs. A similar variant is used on i.MX7D. Since this driver only uses the legacy pipeline, it should be reasonably easy to extend it to work with the older PXP versions found on i.MX6UL, i.MX6SX, i.MX6SL, i.MX28, and i.MX23. The driver supports scaling and colorspace conversion. There is currently no support for rotation, alpha-blending, and the LUTs. Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
1 parent b0c351b commit 51abcf7

4 files changed

Lines changed: 3448 additions & 0 deletions

File tree

‎drivers/media/platform/Kconfig‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,15 @@ config VIDEO_CODA
181181
config VIDEO_IMX_VDOA
182182
def_tristate VIDEO_CODA if SOC_IMX6Q || COMPILE_TEST
183183

184+
config VIDEO_IMX_PXP
185+
tristate "i.MX Pixel Pipeline (PXP)"
186+
depends on VIDEO_DEV && VIDEO_V4L2 && (ARCH_MXC || COMPILE_TEST)
187+
select VIDEOBUF2_DMA_CONTIG
188+
select V4L2_MEM2MEM_DEV
189+
help
190+
The i.MX Pixel Pipeline is a memory-to-memory engine for scaling,
191+
color space conversion, and rotation.
192+
184193
config VIDEO_MEDIATEK_JPEG
185194
tristate "Mediatek JPEG Codec driver"
186195
depends on MTK_IOMMU_V1 || COMPILE_TEST

‎drivers/media/platform/Makefile‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ obj-$(CONFIG_VIDEO_TI_CAL) += ti-vpe/
2525
obj-$(CONFIG_VIDEO_MX2_EMMAPRP) += mx2_emmaprp.o
2626
obj-$(CONFIG_VIDEO_CODA) += coda/
2727

28+
obj-$(CONFIG_VIDEO_IMX_PXP) += imx-pxp.o
29+
2830
obj-$(CONFIG_VIDEO_SH_VEU) += sh_veu.o
2931

3032
obj-$(CONFIG_CEC_GPIO) += cec-gpio/

0 commit comments

Comments
 (0)