diff options
author | Shengjiu Wang <shengjiu.wang@nxp.com> | 2018-01-23 13:27:39 +0800 |
---|---|---|
committer | Jason Liu <jason.hui.liu@nxp.com> | 2019-02-12 10:30:18 +0800 |
commit | 0d0a13551d75adaf8572de14dba384efe51b9f93 (patch) | |
tree | 32ccc56c647ae9b0398698ce4cd0d9c9015e6e96 /include/linux/dmaengine.h | |
parent | 4f8ccb20153018105b13c77cae4cb3f40afad3e0 (diff) |
MLK-16224-1: dmaengine: add src_fifo_num and dst_fifo_num in dma_slave_config
In order to support multi-fifo sdma script, the audio driver need to send
the fifo number to dma driver through dma_slave_config, so add src_fifo_num
and dst_fifo_num two new variable for struct dma_slave_config.
src_fifo_num: bit 0-7 is the fifo number, bit:8-11 is the fifo offset;
dst_fifo_num: same as src_fifo_num
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: Robin Gong<yibin.gong@nxp.com>
Diffstat (limited to 'include/linux/dmaengine.h')
-rw-r--r-- | include/linux/dmaengine.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/dmaengine.h b/include/linux/dmaengine.h index 8319101170fc..8dc150f27dcf 100644 --- a/include/linux/dmaengine.h +++ b/include/linux/dmaengine.h @@ -345,6 +345,8 @@ enum dma_slave_buswidth { * loops in this area in order to transfer the data. * @dst_port_window_size: same as src_port_window_size but for the destination * port. + * @src_fifo_num: bit 0-7 is the fifo number, bit:8-11 is the fifo offset; + * @dst_fifo_num: same as src_fifo_num * @device_fc: Flow Controller Settings. Only valid for slave channels. Fill * with 'true' if peripheral should be flow controller. Direction will be * selected at Runtime. @@ -374,6 +376,8 @@ struct dma_slave_config { u32 dst_maxburst; u32 src_port_window_size; u32 dst_port_window_size; + u32 src_fifo_num; + u32 dst_fifo_num; bool device_fc; unsigned int slave_id; }; |