aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorLee Jones <lee.jones@linaro.org>2013-05-03 10:32:03 -0400
committerLinus Walleij <linus.walleij@linaro.org>2013-05-23 15:12:47 -0400
commitdb72da92103e3023e6a4fdfe65183b21bfe5d883 (patch)
tree19663173711535124862a6833481633d875d3377 /include/linux
parent4bd04e2ed415754a38118399328bc2c494f68632 (diff)
dmaengine: ste_dma40: Calculate number of logical channels from physical ones
This change will cost ~25KB of memory, but it's worth the trade-off, as it removes a great deal of overhead. It means that instead of only allocating memory for the logical channels in use, it does so for all available ones, which is 32 per physical channel. However, this now means we can remove some platform data and we don't have to worry about adding vendor specific variables to Device Tree. Acked-by: Vinod Koul <vnod.koul@intel.com> Signed-off-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/platform_data/dma-ste-dma40.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/linux/platform_data/dma-ste-dma40.h b/include/linux/platform_data/dma-ste-dma40.h
index 9e42a67d0cd5..c54af61c9e48 100644
--- a/include/linux/platform_data/dma-ste-dma40.h
+++ b/include/linux/platform_data/dma-ste-dma40.h
@@ -136,7 +136,6 @@ struct stedma40_chan_cfg {
136/** 136/**
137 * struct stedma40_platform_data - Configuration struct for the dma device. 137 * struct stedma40_platform_data - Configuration struct for the dma device.
138 * 138 *
139 * @dev_len: length of dev_tx and dev_rx
140 * @dev_tx: mapping between destination event line and io address 139 * @dev_tx: mapping between destination event line and io address
141 * @dev_rx: mapping between source event line and io address 140 * @dev_rx: mapping between source event line and io address
142 * @disabled_channels: A vector, ending with -1, that marks physical channels 141 * @disabled_channels: A vector, ending with -1, that marks physical channels
@@ -153,7 +152,6 @@ struct stedma40_chan_cfg {
153 * for 'multiple of 4' channels, like 8. 152 * for 'multiple of 4' channels, like 8.
154 */ 153 */
155struct stedma40_platform_data { 154struct stedma40_platform_data {
156 u32 dev_len;
157 const dma_addr_t *dev_tx; 155 const dma_addr_t *dev_tx;
158 const dma_addr_t *dev_rx; 156 const dma_addr_t *dev_rx;
159 int disabled_channels[STEDMA40_MAX_PHYS]; 157 int disabled_channels[STEDMA40_MAX_PHYS];