Commit c8d11a06 authored by Scott Jiang's avatar Scott Jiang Committed by Bob Liu

bfin: add 32M, 16M and 8M uncached DMA region options

We need larger DMA region to support HD video.
Signed-off-by: default avatarScott Jiang <scott.jiang.linux@gmail.com>
Signed-off-by: default avatarBob Liu <lliubbo@gmail.com>
parent 2cdd7008
...@@ -1009,6 +1009,12 @@ config HAVE_PWM ...@@ -1009,6 +1009,12 @@ config HAVE_PWM
choice choice
prompt "Uncached DMA region" prompt "Uncached DMA region"
default DMA_UNCACHED_1M default DMA_UNCACHED_1M
config DMA_UNCACHED_32M
bool "Enable 32M DMA region"
config DMA_UNCACHED_16M
bool "Enable 16M DMA region"
config DMA_UNCACHED_8M
bool "Enable 8M DMA region"
config DMA_UNCACHED_4M config DMA_UNCACHED_4M
bool "Enable 4M DMA region" bool "Enable 4M DMA region"
config DMA_UNCACHED_2M config DMA_UNCACHED_2M
......
...@@ -14,7 +14,13 @@ ...@@ -14,7 +14,13 @@
#include <linux/linkage.h> #include <linux/linkage.h>
#include <linux/types.h> #include <linux/types.h>
#if defined(CONFIG_DMA_UNCACHED_4M) #if defined(CONFIG_DMA_UNCACHED_32M)
# define DMA_UNCACHED_REGION (32 * 1024 * 1024)
#elif defined(CONFIG_DMA_UNCACHED_16M)
# define DMA_UNCACHED_REGION (16 * 1024 * 1024)
#elif defined(CONFIG_DMA_UNCACHED_8M)
# define DMA_UNCACHED_REGION (8 * 1024 * 1024)
#elif defined(CONFIG_DMA_UNCACHED_4M)
# define DMA_UNCACHED_REGION (4 * 1024 * 1024) # define DMA_UNCACHED_REGION (4 * 1024 * 1024)
#elif defined(CONFIG_DMA_UNCACHED_2M) #elif defined(CONFIG_DMA_UNCACHED_2M)
# define DMA_UNCACHED_REGION (2 * 1024 * 1024) # define DMA_UNCACHED_REGION (2 * 1024 * 1024)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment