diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2012-09-21 08:05:47 -0400 |
---|---|---|
committer | Vinod Koul <vinod.koul@linux.intel.com> | 2012-09-27 06:05:23 -0400 |
commit | 4a63a8b3e8d2e4f56174deb728085010aa3ac2a1 (patch) | |
tree | 0c6d4fb4cd88f9c7fff748909e5956ea55793ef0 /drivers/dma/dw_dmac_regs.h | |
parent | 482c67ea7bab80b956185a3e7553151820bc5876 (diff) |
dw_dmac: autoconfigure block_size or use platform data
The maximum block size is a configurable parameter for the chip. So, driver
will try to get it from the encoded component parameters. Otherwise it will
come from the platform data.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
Diffstat (limited to 'drivers/dma/dw_dmac_regs.h')
-rw-r--r-- | drivers/dma/dw_dmac_regs.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/dma/dw_dmac_regs.h b/drivers/dma/dw_dmac_regs.h index 8a3a81adbf78..2a1cc533f0c8 100644 --- a/drivers/dma/dw_dmac_regs.h +++ b/drivers/dma/dw_dmac_regs.h | |||
@@ -193,6 +193,9 @@ struct dw_dma_chan { | |||
193 | 193 | ||
194 | unsigned int descs_allocated; | 194 | unsigned int descs_allocated; |
195 | 195 | ||
196 | /* hardware configuration */ | ||
197 | unsigned int block_size; | ||
198 | |||
196 | /* configuration passed via DMA_SLAVE_CONFIG */ | 199 | /* configuration passed via DMA_SLAVE_CONFIG */ |
197 | struct dma_slave_config dma_sconfig; | 200 | struct dma_slave_config dma_sconfig; |
198 | }; | 201 | }; |