summaryrefslogtreecommitdiffstats
path: root/Documentation/dmaengine
diff options
context:
space:
mode:
authorAbhishek Sahu <absahu@codeaurora.org>2017-08-01 19:41:42 +0530
committerVinod Koul <vinod.koul@intel.com>2017-08-28 16:40:18 +0530
commit3e00ab4ac51c2ed47c28fd5000c47399f1a11cf5 (patch)
tree67ced0d4b885d8a2c976545b249b014d8e4ad0eb /Documentation/dmaengine
parenta63efead7f8eeefcf08e4e7d0b033ac552f7da23 (diff)
downloadlinux-3e00ab4ac51c2ed47c28fd5000c47399f1a11cf5.tar.gz
linux-3e00ab4ac51c2ed47c28fd5000c47399f1a11cf5.tar.bz2
linux-3e00ab4ac51c2ed47c28fd5000c47399f1a11cf5.zip
dmaengine: add DMA_PREP_CMD for non-Data descriptors.
Some of the DMA controllers are capable of issuing the commands to peripheral by the DMA. These commands can be list of register reads/writes and its different from normal data reads/writes. This patch adds new flag DMA_PREP_CMD in DMA API which tells the driver that the data passed to DMA API is command data and DMA controller driver will form descriptor in the required format. This flag can be used by any DMA controller driver which requires the descriptor in different format for non-Data descriptors. Signed-off-by: Abhishek Sahu <absahu@codeaurora.org> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'Documentation/dmaengine')
-rw-r--r--Documentation/dmaengine/provider.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/Documentation/dmaengine/provider.txt b/Documentation/dmaengine/provider.txt
index e33bc1c8ed2c..bfadbfdf13ed 100644
--- a/Documentation/dmaengine/provider.txt
+++ b/Documentation/dmaengine/provider.txt
@@ -395,6 +395,13 @@ where to put them)
when DMA_CTRL_REUSE is already set
- Terminating the channel
+ * DMA_PREP_CMD
+ - If set, the client driver tells DMA controller that passed data in DMA
+ API is command data.
+ - Interpretation of command data is DMA controller specific. It can be
+ used for issuing commands to other peripherals/register reads/register
+ writes for which the descriptor should be in different format from
+ normal data descriptors.
General Design Notes
--------------------