diff options
author | Radhey Shyam Pandey <radhey.shyam.pandey@xilinx.com> | 2018-09-29 11:17:59 -0600 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2018-11-11 16:03:30 +0530 |
commit | 4e47d24a908c882b94c3f60cec56f02ac4e9bcea (patch) | |
tree | 8b39a4a9f1936623708fe96e40793d5fa8c7003b /drivers/dma/xilinx/xilinx_dma.c | |
parent | 91b438286ef227b5a9148156896175c8e386c6b2 (diff) | |
download | blackbird-op-linux-4e47d24a908c882b94c3f60cec56f02ac4e9bcea.tar.gz blackbird-op-linux-4e47d24a908c882b94c3f60cec56f02ac4e9bcea.zip |
dmaengine: xilinx_dma: Introduce helper macro for preparing dma address
This patch introduces the xilinx_prep_dma_addr_t macro which prepares
dma_addr_t from hardware buffer descriptor LSB and MSB fields. It will
be used in simple dma 64-bit programming sequence.
Signed-off-by: Radhey Shyam Pandey <radhey.shyam.pandey@xilinx.com>
Reviewed-by: Appana Durga Kedareswara Rao <appana.durga.rao@xilinx.com>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/dma/xilinx/xilinx_dma.c')
-rw-r--r-- | drivers/dma/xilinx/xilinx_dma.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/dma/xilinx/xilinx_dma.c b/drivers/dma/xilinx/xilinx_dma.c index 06d1632ff1a2..153ca584eba5 100644 --- a/drivers/dma/xilinx/xilinx_dma.c +++ b/drivers/dma/xilinx/xilinx_dma.c @@ -190,6 +190,8 @@ /* AXI CDMA Specific Masks */ #define XILINX_CDMA_CR_SGMODE BIT(3) +#define xilinx_prep_dma_addr_t(addr) \ + ((dma_addr_t)((u64)addr##_##msb << 32 | (addr))) /** * struct xilinx_vdma_desc_hw - Hardware Descriptor * @next_desc: Next Descriptor Pointer @0x00 |