]> rtime.felk.cvut.cz Git - zynq/linux.git/commit
dma: xilinx: Add private API to permit retrieval of supported mem formats
authorJeffrey Mouroux <jeff.mouroux@xilinx.com>
Wed, 6 Sep 2017 23:32:59 +0000 (16:32 -0700)
committerMichal Simek <michal.simek@xilinx.com>
Fri, 8 Sep 2017 06:40:45 +0000 (08:40 +0200)
commitf618d3b9e121d8036139419b139f7011903c77dc
tree40fc29e312f0032fd21440e3d4be3287689e61f5
parent5e0a3d2513bda07ae712209225d33ebe5b81ea93
dma: xilinx: Add private API to permit retrieval of supported mem formats

The video Framebuffer DMA IP requires clients to send a fourcc code
to indicate the memory format layout.  The IP can be configured to support
a variety of memory formats ranging from YUYV, RGB and in either 8 bit
or 10 bit formats.  There has been no method for clients to obtain
this list of supported formats.  This patch adds private APIs that
can be called from clients to retrieve this list so that user space
applications can choose from any of the available memory formats.

Depends on patch 13fd162 (dma: xilinx: Bug fix to ensure only video formats
enabled in IP are in driver)

Signed-off-by: Jeffrey Mouroux <jmouroux@xilinx.com>
Reviewed-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/dma/xilinx/xilinx_frmbuf.c
include/linux/dma/xilinx_frmbuf.h