diff options
author | Scott Jiang <scott.jiang.linux@gmail.com> | 2012-05-18 16:27:22 -0400 |
---|---|---|
committer | Bob Liu <lliubbo@gmail.com> | 2012-07-24 01:39:48 -0400 |
commit | c8d11a06bf8242d5d6ff86fa2514c4f50cb847fb (patch) | |
tree | e397eaf4ee43581f3217464899c7ebd1fab26155 /arch/blackfin | |
parent | 2cdd7008334854a1e9a0b7ceefdccbd3fdfe372a (diff) |
bfin: add 32M, 16M and 8M uncached DMA region options
We need larger DMA region to support HD video.
Signed-off-by: Scott Jiang <scott.jiang.linux@gmail.com>
Signed-off-by: Bob Liu <lliubbo@gmail.com>
Diffstat (limited to 'arch/blackfin')
-rw-r--r-- | arch/blackfin/Kconfig | 6 | ||||
-rw-r--r-- | arch/blackfin/include/asm/bfin-global.h | 8 |
2 files changed, 13 insertions, 1 deletions
diff --git a/arch/blackfin/Kconfig b/arch/blackfin/Kconfig index fef96f47876c..2baa4938d741 100644 --- a/arch/blackfin/Kconfig +++ b/arch/blackfin/Kconfig | |||
@@ -1009,6 +1009,12 @@ config HAVE_PWM | |||
1009 | choice | 1009 | choice |
1010 | prompt "Uncached DMA region" | 1010 | prompt "Uncached DMA region" |
1011 | default DMA_UNCACHED_1M | 1011 | default DMA_UNCACHED_1M |
1012 | config DMA_UNCACHED_32M | ||
1013 | bool "Enable 32M DMA region" | ||
1014 | config DMA_UNCACHED_16M | ||
1015 | bool "Enable 16M DMA region" | ||
1016 | config DMA_UNCACHED_8M | ||
1017 | bool "Enable 8M DMA region" | ||
1012 | config DMA_UNCACHED_4M | 1018 | config DMA_UNCACHED_4M |
1013 | bool "Enable 4M DMA region" | 1019 | bool "Enable 4M DMA region" |
1014 | config DMA_UNCACHED_2M | 1020 | config DMA_UNCACHED_2M |
diff --git a/arch/blackfin/include/asm/bfin-global.h b/arch/blackfin/include/asm/bfin-global.h index 608be5e6d25c..dc47d79287f9 100644 --- a/arch/blackfin/include/asm/bfin-global.h +++ b/arch/blackfin/include/asm/bfin-global.h | |||
@@ -14,7 +14,13 @@ | |||
14 | #include <linux/linkage.h> | 14 | #include <linux/linkage.h> |
15 | #include <linux/types.h> | 15 | #include <linux/types.h> |
16 | 16 | ||
17 | #if defined(CONFIG_DMA_UNCACHED_4M) | 17 | #if defined(CONFIG_DMA_UNCACHED_32M) |
18 | # define DMA_UNCACHED_REGION (32 * 1024 * 1024) | ||
19 | #elif defined(CONFIG_DMA_UNCACHED_16M) | ||
20 | # define DMA_UNCACHED_REGION (16 * 1024 * 1024) | ||
21 | #elif defined(CONFIG_DMA_UNCACHED_8M) | ||
22 | # define DMA_UNCACHED_REGION (8 * 1024 * 1024) | ||
23 | #elif defined(CONFIG_DMA_UNCACHED_4M) | ||
18 | # define DMA_UNCACHED_REGION (4 * 1024 * 1024) | 24 | # define DMA_UNCACHED_REGION (4 * 1024 * 1024) |
19 | #elif defined(CONFIG_DMA_UNCACHED_2M) | 25 | #elif defined(CONFIG_DMA_UNCACHED_2M) |
20 | # define DMA_UNCACHED_REGION (2 * 1024 * 1024) | 26 | # define DMA_UNCACHED_REGION (2 * 1024 * 1024) |