]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
Blackfin arch: enable a choice to provide 4M DMA memory
authorCliff Cai <cliff.cai@analog.com>
Sat, 17 May 2008 08:36:52 +0000 (16:36 +0800)
committerBryan Wu <cooloney@kernel.org>
Sat, 17 May 2008 08:36:52 +0000 (16:36 +0800)
support two cascaded AD73322 cards, more uncached DMA
memory is needed, so add a choice to provide 4M DMA memory

Signed-off-by: Cliff Cai <cliff.cai@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
arch/blackfin/Kconfig
include/asm-blackfin/bfin-global.h

index 785d8b4fa0cb9dd453a78db16bb409850afe54d9..b87634e75f20f6b4ac9cecb8068e430c27ba8885 100644 (file)
@@ -685,6 +685,8 @@ choice
        prompt "Uncached SDRAM region"
        default DMA_UNCACHED_1M
        depends on BFIN_DMA_5XX
+config DMA_UNCACHED_4M
+       bool "Enable 4M DMA region"
 config DMA_UNCACHED_2M
        bool "Enable 2M DMA region"
 config DMA_UNCACHED_1M
index 716df7c8592322d2b8e851a81a0dcefb7efe0bf4..a9248d8836754224dd6fd95840be6064d8eb5bec 100644 (file)
@@ -37,7 +37,9 @@
 #include <linux/linkage.h>
 #include <linux/types.h>
 
-#if defined(CONFIG_DMA_UNCACHED_2M)
+#if defined(CONFIG_DMA_UNCACHED_4M)
+# define DMA_UNCACHED_REGION (4 * 1024 * 1024)
+#elif defined(CONFIG_DMA_UNCACHED_2M)
 # define DMA_UNCACHED_REGION (2 * 1024 * 1024)
 #elif defined(CONFIG_DMA_UNCACHED_1M)
 # define DMA_UNCACHED_REGION (1024 * 1024)