diff options
author | Viresh Kumar <viresh.kumar@st.com> | 2011-03-04 11:12:50 +0100 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2011-03-06 20:42:27 +0100 |
commit | 418e74070662e1ae7d9bb5202f773d35c9a7f05e (patch) | |
tree | 23bd64f0d62af665ae69b67f608cb416e60e16ea /drivers/dma/dw_dmac.c | |
parent | dw_dmac: Adding support for 64 bit access width for memcpy xfers (diff) | |
download | linux-418e74070662e1ae7d9bb5202f773d35c9a7f05e.tar.xz linux-418e74070662e1ae7d9bb5202f773d35c9a7f05e.zip |
dw_dmac: Change value of DWC_MAX_COUNT to 4095.
Every descriptor can transfer a maximum count of 4095 (12 bits, in control reg),
So we must have DWC_MAX_COUNT as 4095 instead of 2048.
Signed-off-by: Viresh Kumar <viresh.kumar@st.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/dw_dmac.c')
-rw-r--r-- | drivers/dma/dw_dmac.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/dma/dw_dmac.c b/drivers/dma/dw_dmac.c index e5d97bf9264a..711ebe954f5b 100644 --- a/drivers/dma/dw_dmac.c +++ b/drivers/dma/dw_dmac.c @@ -47,14 +47,13 @@ /* * This is configuration-dependent and usually a funny size like 4095. - * Let's round it down to the nearest power of two. * * Note that this is a transfer count, i.e. if we transfer 32-bit - * words, we can do 8192 bytes per descriptor. + * words, we can do 16380 bytes per descriptor. * * This parameter is also system-specific. */ -#define DWC_MAX_COUNT 2048U +#define DWC_MAX_COUNT 4095U /* * Number of descriptors to allocate for each channel. This should be |