dma: xilinx: Add driver for Video Framebuffer IP
Subsystems (2)
PATCH 2/2 dma: xilinx: Add driver for Video Framebuffer IP
The Video Framebuffer IP is available in two forms: read or write. This driver supports either form of the IP.
Each IP is a single channel DMA and is video format aware. It can read/write video data arranged from/to memory as packed or semi-planar way based on the selected video format.
To get list of supported video formats, clients can call certain APIs exposed by the driver. This driver introduces support for these IPs and integrates with the DMA Engine Framework.
--- drivers/dma/Kconfig | 14 +- drivers/dma/xilinx/Makefile | 1 + drivers/dma/xilinx/xilinx_frmbuf.c | 1155 ++++++++++++++++++++++++++++++++++++ include/linux/dma/xilinx_frmbuf.h | 97 +++ 4 files changed, 1266 insertions(+), 1 deletion(-) create mode 100644 drivers/dma/xilinx/xilinx_frmbuf.c create mode 100644 include/linux/dma/xilinx_frmbuf.h
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe dmaengine" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
drivers/dma/Kconfig +13 -1
@@ -342,7 +342,7 @@ config MOXART_DMA select DMA_VIRTUAL_CHANNELS help Enable support for the MOXA ART SoC DMA controller. - + Say Y here if you enabled MMP ADMA, otherwise say N. config MPC512X_DMA
@@ -614,6 +614,18 @@ config XILINX_DMA AXI DMA engine provides high-bandwidth one dimensional direct memory access between memory and AXI4-Stream target peripherals. +config XILINX_FRMBUF + tristate "Xilinx Framebuffer" + select DMA_ENGINE + help + Enable support for Xilinx Video Framebuffer (Read/Write) IP DMA. + + This driver controls the Xilinx Video Framebuffer Read and + Video Framebuffer Write IP. They are single channel DMA engines + which support reading and writing a variety of video formats + (RGB, YUV 4:4:4, YUV 4:2:2, YUV 4:2:0, and Luma only). The data + is packed/unpacked based on the video format. + config XILINX_ZYNQMP_DMA tristate "Xilinx ZynqMP DMA Engine" depends on (ARCH_ZYNQ || MICROBLAZE || ARM64)
drivers/dma/xilinx/Makefile +1 -0
@@ -1,2 +1,3 @@ obj-$(CONFIG_XILINX_DMA) += xilinx_dma.o +obj-$(CONFIG_XILINX_FRMBUF) += xilinx_frmbuf.o obj-$(CONFIG_XILINX_ZYNQMP_DMA) += zynqmp_dma.o
drivers/dma/xilinx/xilinx_frmbuf.c new file +1155 -0
1,155 lines not on this page · raw message
include/linux/dma/xilinx_frmbuf.h new file +97 -0
97 lines not on this page · raw message