dmaengine: qcom: bam_dma: wrapper functions for command descriptor
authorAbhishek Sahu <absahu@codeaurora.org>
Tue, 1 Aug 2017 14:11:43 +0000 (19:41 +0530)
committerVinod Koul <vinod.koul@intel.com>
Mon, 28 Aug 2017 11:10:18 +0000 (16:40 +0530)
commitdfebb055f73a24e2c8756b837d9ce1a06457f5d7
tree4c87fd3817e19901214578ba3425856f27f08674
parent3e00ab4ac51c2ed47c28fd5000c47399f1a11cf5
dmaengine: qcom: bam_dma: wrapper functions for command descriptor

QCOM BAM also supports command descriptor which allows the SW to
create descriptors of type command which does not generate any
data transmissions but configures registers in the peripheral.
In command descriptor the 32bit address point to the start of
the command block which holds the command elements and the
16bit size define the size of the command block.

Each Command Element is structured by 4 words:
    Write command: address + cmd
                   register data
                   register mask
                   reserved

    Read command: address + cmd
                  read data result address,
                  reserved
                  reserved

This patch creates a new header file for BAM driver which contains the
structures and wrapper functions for command descriptor. This file will
be used by different QCOM peripheral drivers for forming the command
descriptor

Signed-off-by: Abhishek Sahu <absahu@codeaurora.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
include/linux/dma/qcom_bam_dma.h [new file with mode: 0644]