diff options
author | Barry Song <barry.song@analog.com> | 2009-12-02 04:13:36 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2009-12-15 00:15:48 -0500 |
commit | c45c06596e0d45125d25beb0fe24a68aef1f1046 (patch) | |
tree | a556caee3f3f14ae9fd0eb5bb9e7053ecd8c63e8 /arch/blackfin/include | |
parent | 5df326aca48b8631c9e3c90c76d7e9f0b466a721 (diff) |
Blackfin: support smaller uncached DMA chunks for memory constrained systems
When working with 8 meg systems, forcing a 1 meg DMA chunk heavily cuts
into the available resources. So support smaller chunks to better cover
needs for these systems.
Signed-off-by: Barry Song <barry.song@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin/include')
-rw-r--r-- | arch/blackfin/include/asm/bfin-global.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/blackfin/include/asm/bfin-global.h b/arch/blackfin/include/asm/bfin-global.h index 741c02112c06..e6485c305ea6 100644 --- a/arch/blackfin/include/asm/bfin-global.h +++ b/arch/blackfin/include/asm/bfin-global.h | |||
@@ -20,6 +20,12 @@ | |||
20 | # define DMA_UNCACHED_REGION (2 * 1024 * 1024) | 20 | # define DMA_UNCACHED_REGION (2 * 1024 * 1024) |
21 | #elif defined(CONFIG_DMA_UNCACHED_1M) | 21 | #elif defined(CONFIG_DMA_UNCACHED_1M) |
22 | # define DMA_UNCACHED_REGION (1024 * 1024) | 22 | # define DMA_UNCACHED_REGION (1024 * 1024) |
23 | #elif defined(CONFIG_DMA_UNCACHED_512K) | ||
24 | # define DMA_UNCACHED_REGION (512 * 1024) | ||
25 | #elif defined(CONFIG_DMA_UNCACHED_256K) | ||
26 | # define DMA_UNCACHED_REGION (256 * 1024) | ||
27 | #elif defined(CONFIG_DMA_UNCACHED_128K) | ||
28 | # define DMA_UNCACHED_REGION (128 * 1024) | ||
23 | #else | 29 | #else |
24 | # define DMA_UNCACHED_REGION (0) | 30 | # define DMA_UNCACHED_REGION (0) |
25 | #endif | 31 | #endif |