diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-03-29 18:34:57 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-03-29 18:34:57 -0400 |
commit | ef08e78268423fc4d7fbc3e54bd9a67fc8da7cc5 (patch) | |
tree | d0561d3ef89c9cd277a38168e33850666cbd33c4 /arch/avr32 | |
parent | 71db34fc4330f7c784397acb9f1e6ee7f7b32eb2 (diff) | |
parent | 5b2e02e401deb44e7f5befe19404d8b2688efea4 (diff) |
Merge branch 'next' of git://git.infradead.org/users/vkoul/slave-dma
Pull slave-dmaengine update from Vinod Koul:
"This includes the cookie cleanup by Russell, the addition of context
parameter for dmaengine APIs, more arm dmaengine driver cleanup by
moving code to dmaengine, this time for imx by Javier and pl330 by
Boojin along with the usual driver fixes."
Fix up some fairly trivial conflicts with various other cleanups.
* 'next' of git://git.infradead.org/users/vkoul/slave-dma: (67 commits)
dmaengine: imx: fix the build failure on x86_64
dmaengine: i.MX: Fix merge of cookie branch.
dmaengine: i.MX: Add support for interleaved transfers.
dmaengine: imx-dma: use 'dev_dbg' and 'dev_warn' for messages.
dmaengine: imx-dma: remove 'imx_dmav1_baseaddr' and 'dma_clk'.
dmaengine: imx-dma: remove unused arg of imxdma_sg_next.
dmaengine: imx-dma: remove internal structure.
dmaengine: imx-dma: remove 'resbytes' field of 'internal' structure.
dmaengine: imx-dma: remove 'in_use' field of 'internal' structure.
dmaengine: imx-dma: remove sg member from internal structure.
dmaengine: imx-dma: remove 'imxdma_setup_sg_hw' function.
dmaengine: imx-dma: remove 'imxdma_config_channel_hw' function.
dmaengine: imx-dma: remove 'imxdma_setup_mem2mem_hw' function.
dmaengine: imx-dma: remove dma_mode member of internal structure.
dmaengine: imx-dma: remove data member from internal structure.
dmaengine: imx-dma: merge old dma-v1.c with imx-dma.c
dmaengine: at_hdmac: add slave config operation
dmaengine: add context parameter to prep_slave_sg and prep_dma_cyclic
dmaengine/dma_slave: introduce inline wrappers
dma: imx-sdma: Treat firmware messages as warnings instead of erros
...
Diffstat (limited to 'arch/avr32')
-rw-r--r-- | arch/avr32/mach-at32ap/at32ap700x.c | 13 | ||||
-rw-r--r-- | arch/avr32/mach-at32ap/include/mach/atmel-mci.h | 7 |
2 files changed, 0 insertions, 20 deletions
diff --git a/arch/avr32/mach-at32ap/at32ap700x.c b/arch/avr32/mach-at32ap/at32ap700x.c index 889c544688ca..0445c4fd67e3 100644 --- a/arch/avr32/mach-at32ap/at32ap700x.c +++ b/arch/avr32/mach-at32ap/at32ap700x.c | |||
@@ -1351,7 +1351,6 @@ at32_add_device_mci(unsigned int id, struct mci_platform_data *data) | |||
1351 | goto fail; | 1351 | goto fail; |
1352 | 1352 | ||
1353 | slave->sdata.dma_dev = &dw_dmac0_device.dev; | 1353 | slave->sdata.dma_dev = &dw_dmac0_device.dev; |
1354 | slave->sdata.reg_width = DW_DMA_SLAVE_WIDTH_32BIT; | ||
1355 | slave->sdata.cfg_hi = (DWC_CFGH_SRC_PER(0) | 1354 | slave->sdata.cfg_hi = (DWC_CFGH_SRC_PER(0) |
1356 | | DWC_CFGH_DST_PER(1)); | 1355 | | DWC_CFGH_DST_PER(1)); |
1357 | slave->sdata.cfg_lo &= ~(DWC_CFGL_HS_DST_POL | 1356 | slave->sdata.cfg_lo &= ~(DWC_CFGL_HS_DST_POL |
@@ -2046,27 +2045,19 @@ at32_add_device_ac97c(unsigned int id, struct ac97c_platform_data *data, | |||
2046 | /* Check if DMA slave interface for capture should be configured. */ | 2045 | /* Check if DMA slave interface for capture should be configured. */ |
2047 | if (flags & AC97C_CAPTURE) { | 2046 | if (flags & AC97C_CAPTURE) { |
2048 | rx_dws->dma_dev = &dw_dmac0_device.dev; | 2047 | rx_dws->dma_dev = &dw_dmac0_device.dev; |
2049 | rx_dws->reg_width = DW_DMA_SLAVE_WIDTH_16BIT; | ||
2050 | rx_dws->cfg_hi = DWC_CFGH_SRC_PER(3); | 2048 | rx_dws->cfg_hi = DWC_CFGH_SRC_PER(3); |
2051 | rx_dws->cfg_lo &= ~(DWC_CFGL_HS_DST_POL | DWC_CFGL_HS_SRC_POL); | 2049 | rx_dws->cfg_lo &= ~(DWC_CFGL_HS_DST_POL | DWC_CFGL_HS_SRC_POL); |
2052 | rx_dws->src_master = 0; | 2050 | rx_dws->src_master = 0; |
2053 | rx_dws->dst_master = 1; | 2051 | rx_dws->dst_master = 1; |
2054 | rx_dws->src_msize = DW_DMA_MSIZE_1; | ||
2055 | rx_dws->dst_msize = DW_DMA_MSIZE_1; | ||
2056 | rx_dws->fc = DW_DMA_FC_D_P2M; | ||
2057 | } | 2052 | } |
2058 | 2053 | ||
2059 | /* Check if DMA slave interface for playback should be configured. */ | 2054 | /* Check if DMA slave interface for playback should be configured. */ |
2060 | if (flags & AC97C_PLAYBACK) { | 2055 | if (flags & AC97C_PLAYBACK) { |
2061 | tx_dws->dma_dev = &dw_dmac0_device.dev; | 2056 | tx_dws->dma_dev = &dw_dmac0_device.dev; |
2062 | tx_dws->reg_width = DW_DMA_SLAVE_WIDTH_16BIT; | ||
2063 | tx_dws->cfg_hi = DWC_CFGH_DST_PER(4); | 2057 | tx_dws->cfg_hi = DWC_CFGH_DST_PER(4); |
2064 | tx_dws->cfg_lo &= ~(DWC_CFGL_HS_DST_POL | DWC_CFGL_HS_SRC_POL); | 2058 | tx_dws->cfg_lo &= ~(DWC_CFGL_HS_DST_POL | DWC_CFGL_HS_SRC_POL); |
2065 | tx_dws->src_master = 0; | 2059 | tx_dws->src_master = 0; |
2066 | tx_dws->dst_master = 1; | 2060 | tx_dws->dst_master = 1; |
2067 | tx_dws->src_msize = DW_DMA_MSIZE_1; | ||
2068 | tx_dws->dst_msize = DW_DMA_MSIZE_1; | ||
2069 | tx_dws->fc = DW_DMA_FC_D_M2P; | ||
2070 | } | 2061 | } |
2071 | 2062 | ||
2072 | if (platform_device_add_data(pdev, data, | 2063 | if (platform_device_add_data(pdev, data, |
@@ -2136,14 +2127,10 @@ at32_add_device_abdac(unsigned int id, struct atmel_abdac_pdata *data) | |||
2136 | dws = &data->dws; | 2127 | dws = &data->dws; |
2137 | 2128 | ||
2138 | dws->dma_dev = &dw_dmac0_device.dev; | 2129 | dws->dma_dev = &dw_dmac0_device.dev; |
2139 | dws->reg_width = DW_DMA_SLAVE_WIDTH_32BIT; | ||
2140 | dws->cfg_hi = DWC_CFGH_DST_PER(2); | 2130 | dws->cfg_hi = DWC_CFGH_DST_PER(2); |
2141 | dws->cfg_lo &= ~(DWC_CFGL_HS_DST_POL | DWC_CFGL_HS_SRC_POL); | 2131 | dws->cfg_lo &= ~(DWC_CFGL_HS_DST_POL | DWC_CFGL_HS_SRC_POL); |
2142 | dws->src_master = 0; | 2132 | dws->src_master = 0; |
2143 | dws->dst_master = 1; | 2133 | dws->dst_master = 1; |
2144 | dws->src_msize = DW_DMA_MSIZE_1; | ||
2145 | dws->dst_msize = DW_DMA_MSIZE_1; | ||
2146 | dws->fc = DW_DMA_FC_D_M2P; | ||
2147 | 2134 | ||
2148 | if (platform_device_add_data(pdev, data, | 2135 | if (platform_device_add_data(pdev, data, |
2149 | sizeof(struct atmel_abdac_pdata))) | 2136 | sizeof(struct atmel_abdac_pdata))) |
diff --git a/arch/avr32/mach-at32ap/include/mach/atmel-mci.h b/arch/avr32/mach-at32ap/include/mach/atmel-mci.h index a9b38967f703..4bba58561d5c 100644 --- a/arch/avr32/mach-at32ap/include/mach/atmel-mci.h +++ b/arch/avr32/mach-at32ap/include/mach/atmel-mci.h | |||
@@ -14,11 +14,4 @@ struct mci_dma_data { | |||
14 | #define slave_data_ptr(s) (&(s)->sdata) | 14 | #define slave_data_ptr(s) (&(s)->sdata) |
15 | #define find_slave_dev(s) ((s)->sdata.dma_dev) | 15 | #define find_slave_dev(s) ((s)->sdata.dma_dev) |
16 | 16 | ||
17 | #define setup_dma_addr(s, t, r) do { \ | ||
18 | if (s) { \ | ||
19 | (s)->sdata.tx_reg = (t); \ | ||
20 | (s)->sdata.rx_reg = (r); \ | ||
21 | } \ | ||
22 | } while (0) | ||
23 | |||
24 | #endif /* __MACH_ATMEL_MCI_H */ | 17 | #endif /* __MACH_ATMEL_MCI_H */ |