diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-12-12 17:59:53 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-12-12 17:59:53 -0500 |
| commit | 87c779baabff157f09db6fce417a7544220f9f00 (patch) | |
| tree | 3a11ac4b554a3fe52d331f1f4f72997582e87cac /include | |
| parent | eea0cf3fcd3243666e0bb792c560ec128b1f06a1 (diff) | |
| parent | a9507ca3fb90987db5c6cc385885782cb05d4967 (diff) | |
Merge branch 'for-linus' of git://git.infradead.org/users/vkoul/slave-dma
Pull dmaengine updates from Vinod Koul:
"Main features this time are:
- BAM v1.3.0 support form qcom bam dma
- support for Allwinner sun8i dma
- atmels eXtended DMA Controller driver
- chancnt cleanup by Maxime
- fixes spread over drivers"
* 'for-linus' of git://git.infradead.org/users/vkoul/slave-dma: (56 commits)
dmaenegine: Delete a check before free_percpu()
dmaengine: ioatdma: fix dma mapping errors
dma: cppi41: add a delay while setting the TD bit
dma: cppi41: wait longer for the HW to return the descriptor
dmaengine: fsl-edma: fixup reg offset and hw S/G support in big-endian model
dmaengine: fsl-edma: fix calculation of remaining bytes
drivers/dma/pch_dma: declare pch_dma_id_table as static
dmaengine: ste_dma40: fix error return code
dma: imx-sdma: clarify about firmware not found error
Documentation: devicetree: Fix Xilinx VDMA specification
dmaengine: pl330: update author info
dmaengine: clarify the issue_pending expectations
dmaengine: at_xdmac: Add DMA_PRIVATE
ARM: dts: at_xdmac: fix bad value of dma-cells in documentation
dmaengine: at_xdmac: fix missing spin_unlock
dmaengine: at_xdmac: fix a bug in transfer residue computation
dmaengine: at_xdmac: fix software lockup at_xdmac_tx_status()
dmaengine: at_xdmac: remove chancnt affectation
dmaengine: at_xdmac: prefer usage of readl/writel_relaxed
dmaengine: xdmac: fix print warning on dma_addr_t variable
...
Diffstat (limited to 'include')
| -rw-r--r-- | include/dt-bindings/dma/at91.h | 25 | ||||
| -rw-r--r-- | include/linux/dmaengine.h | 3 | ||||
| -rw-r--r-- | include/linux/platform_data/dma-imx.h | 1 |
3 files changed, 28 insertions, 1 deletions
diff --git a/include/dt-bindings/dma/at91.h b/include/dt-bindings/dma/at91.h index e835037a77b4..ab6cbba45401 100644 --- a/include/dt-bindings/dma/at91.h +++ b/include/dt-bindings/dma/at91.h | |||
| @@ -9,6 +9,8 @@ | |||
| 9 | #ifndef __DT_BINDINGS_AT91_DMA_H__ | 9 | #ifndef __DT_BINDINGS_AT91_DMA_H__ |
| 10 | #define __DT_BINDINGS_AT91_DMA_H__ | 10 | #define __DT_BINDINGS_AT91_DMA_H__ |
| 11 | 11 | ||
| 12 | /* ---------- HDMAC ---------- */ | ||
| 13 | |||
| 12 | /* | 14 | /* |
| 13 | * Source and/or destination peripheral ID | 15 | * Source and/or destination peripheral ID |
| 14 | */ | 16 | */ |
| @@ -24,4 +26,27 @@ | |||
| 24 | #define AT91_DMA_CFG_FIFOCFG_ALAP (0x1 << AT91_DMA_CFG_FIFOCFG_OFFSET) /* largest defined AHB burst */ | 26 | #define AT91_DMA_CFG_FIFOCFG_ALAP (0x1 << AT91_DMA_CFG_FIFOCFG_OFFSET) /* largest defined AHB burst */ |
| 25 | #define AT91_DMA_CFG_FIFOCFG_ASAP (0x2 << AT91_DMA_CFG_FIFOCFG_OFFSET) /* single AHB access */ | 27 | #define AT91_DMA_CFG_FIFOCFG_ASAP (0x2 << AT91_DMA_CFG_FIFOCFG_OFFSET) /* single AHB access */ |
| 26 | 28 | ||
| 29 | |||
| 30 | /* ---------- XDMAC ---------- */ | ||
| 31 | #define AT91_XDMAC_DT_MEM_IF_MASK (0x1) | ||
| 32 | #define AT91_XDMAC_DT_MEM_IF_OFFSET (13) | ||
| 33 | #define AT91_XDMAC_DT_MEM_IF(mem_if) (((mem_if) & AT91_XDMAC_DT_MEM_IF_MASK) \ | ||
| 34 | << AT91_XDMAC_DT_MEM_IF_OFFSET) | ||
| 35 | #define AT91_XDMAC_DT_GET_MEM_IF(cfg) (((cfg) >> AT91_XDMAC_DT_MEM_IF_OFFSET) \ | ||
| 36 | & AT91_XDMAC_DT_MEM_IF_MASK) | ||
| 37 | |||
| 38 | #define AT91_XDMAC_DT_PER_IF_MASK (0x1) | ||
| 39 | #define AT91_XDMAC_DT_PER_IF_OFFSET (14) | ||
| 40 | #define AT91_XDMAC_DT_PER_IF(per_if) (((per_if) & AT91_XDMAC_DT_PER_IF_MASK) \ | ||
| 41 | << AT91_XDMAC_DT_PER_IF_OFFSET) | ||
| 42 | #define AT91_XDMAC_DT_GET_PER_IF(cfg) (((cfg) >> AT91_XDMAC_DT_PER_IF_OFFSET) \ | ||
| 43 | & AT91_XDMAC_DT_PER_IF_MASK) | ||
| 44 | |||
| 45 | #define AT91_XDMAC_DT_PERID_MASK (0x7f) | ||
| 46 | #define AT91_XDMAC_DT_PERID_OFFSET (24) | ||
| 47 | #define AT91_XDMAC_DT_PERID(perid) (((perid) & AT91_XDMAC_DT_PERID_MASK) \ | ||
| 48 | << AT91_XDMAC_DT_PERID_OFFSET) | ||
| 49 | #define AT91_XDMAC_DT_GET_PERID(cfg) (((cfg) >> AT91_XDMAC_DT_PERID_OFFSET) \ | ||
| 50 | & AT91_XDMAC_DT_PERID_MASK) | ||
| 51 | |||
| 27 | #endif /* __DT_BINDINGS_AT91_DMA_H__ */ | 52 | #endif /* __DT_BINDINGS_AT91_DMA_H__ */ |
diff --git a/include/linux/dmaengine.h b/include/linux/dmaengine.h index 653a1fd07ae8..40cd75e21ea2 100644 --- a/include/linux/dmaengine.h +++ b/include/linux/dmaengine.h | |||
| @@ -447,7 +447,8 @@ struct dmaengine_unmap_data { | |||
| 447 | * communicate status | 447 | * communicate status |
| 448 | * @phys: physical address of the descriptor | 448 | * @phys: physical address of the descriptor |
| 449 | * @chan: target channel for this operation | 449 | * @chan: target channel for this operation |
| 450 | * @tx_submit: set the prepared descriptor(s) to be executed by the engine | 450 | * @tx_submit: accept the descriptor, assign ordered cookie and mark the |
| 451 | * descriptor pending. To be pushed on .issue_pending() call | ||
| 451 | * @callback: routine to call after this operation is complete | 452 | * @callback: routine to call after this operation is complete |
| 452 | * @callback_param: general parameter to pass to the callback routine | 453 | * @callback_param: general parameter to pass to the callback routine |
| 453 | * ---async_tx api specific fields--- | 454 | * ---async_tx api specific fields--- |
diff --git a/include/linux/platform_data/dma-imx.h b/include/linux/platform_data/dma-imx.h index 6a1357d31871..7d964e787299 100644 --- a/include/linux/platform_data/dma-imx.h +++ b/include/linux/platform_data/dma-imx.h | |||
| @@ -41,6 +41,7 @@ enum sdma_peripheral_type { | |||
| 41 | IMX_DMATYPE_ESAI, /* ESAI */ | 41 | IMX_DMATYPE_ESAI, /* ESAI */ |
| 42 | IMX_DMATYPE_SSI_DUAL, /* SSI Dual FIFO */ | 42 | IMX_DMATYPE_SSI_DUAL, /* SSI Dual FIFO */ |
| 43 | IMX_DMATYPE_ASRC_SP, /* Shared ASRC */ | 43 | IMX_DMATYPE_ASRC_SP, /* Shared ASRC */ |
| 44 | IMX_DMATYPE_SAI, /* SAI */ | ||
| 44 | }; | 45 | }; |
| 45 | 46 | ||
| 46 | enum imx_dma_prio { | 47 | enum imx_dma_prio { |
