]> rtime.felk.cvut.cz Git - zynq/linux.git/commit
dma: xilinx: Get DMA alignment from device tree for Framebuffer
authorVishal Sagar <vishal.sagar@xilinx.com>
Tue, 24 Apr 2018 05:08:04 +0000 (10:38 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 25 Apr 2018 07:24:27 +0000 (09:24 +0200)
commitf805b07cca4c024d4089645cd34aa814e113daf6
tree5ed6f79c40b1a4baba620e8fb565c0e246c27bc9
parent0f1ec1508f5a9e96248c48af58b1aee4a6d322ed
dma: xilinx: Get DMA alignment from device tree for Framebuffer

Patch adds xlnx,pixels-per-clock(ppc) and xlnx,dma-align device tree
property decoding to calculate the required DMA alignment.
xlnx,pixels-per-clock is mandatory property now.
Minimum alignment required is 8 * pixels per clock in bytes.
dma-align property is optional.

In case present, dma-align must be a power of 2 and be >= 8 * ppc.
If absent, alignment is set as ppc * 8.

Added a new compatible string and structure which contains dma direction
and flag. The flag would be a bitmask of properties.
When ever a new IP or device tree property is to be supported, a bitmask
for the same is to be created and added to this flag.

For the new v2.1 compatible string, a new XILINX_PPC_PROP bitmask is
set in the flags. If the flag is set then, pixels-per-clock property
would be checked.

Signed-off-by: Vishal Sagar <vishal.sagar@xilinx.com>
Reviewed-by: Radhey Shyam Pandey <radheys@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