diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-02-17 15:05:27 -0500 |
---|---|---|
committer | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-02-24 04:07:06 -0500 |
commit | 8e3a6e7fa739d021324d813cd6fdd1c5c7998774 (patch) | |
tree | 1784bb78c570c18945f1cba974c4948b5f6c6538 /arch/arm/plat-mxc | |
parent | abf61632884ae6bfd1e7b967d5254fa7b5191e7b (diff) |
arm/imx: choose sane CONSISTENT_DMA_SIZE if video is enabled for both mx1 and mx3
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Diffstat (limited to 'arch/arm/plat-mxc')
-rw-r--r-- | arch/arm/plat-mxc/include/mach/memory.h | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/arch/arm/plat-mxc/include/mach/memory.h b/arch/arm/plat-mxc/include/mach/memory.h index 002eb91ab235..d636564f5833 100644 --- a/arch/arm/plat-mxc/include/mach/memory.h +++ b/arch/arm/plat-mxc/include/mach/memory.h | |||
@@ -34,20 +34,19 @@ | |||
34 | # endif | 34 | # endif |
35 | #endif | 35 | #endif |
36 | 36 | ||
37 | #if defined(CONFIG_MX1_VIDEO) | 37 | #if defined(CONFIG_MX3_VIDEO) |
38 | /* | 38 | /* |
39 | * Increase size of DMA-consistent memory region. | 39 | * Increase size of DMA-consistent memory region. |
40 | * This is required for i.MX camera driver to capture at least four VGA frames. | 40 | * This is required for mx3 camera driver to capture at least two QXGA frames. |
41 | */ | 41 | */ |
42 | #define CONSISTENT_DMA_SIZE SZ_4M | 42 | #define CONSISTENT_DMA_SIZE SZ_8M |
43 | #endif /* CONFIG_MX1_VIDEO */ | ||
44 | 43 | ||
45 | #if defined(CONFIG_MX3_VIDEO) | 44 | #elif defined(CONFIG_MX1_VIDEO) |
46 | /* | 45 | /* |
47 | * Increase size of DMA-consistent memory region. | 46 | * Increase size of DMA-consistent memory region. |
48 | * This is required for mx3 camera driver to capture at least two QXGA frames. | 47 | * This is required for i.MX camera driver to capture at least four VGA frames. |
49 | */ | 48 | */ |
50 | #define CONSISTENT_DMA_SIZE SZ_8M | 49 | #define CONSISTENT_DMA_SIZE SZ_4M |
51 | #endif /* CONFIG_MX3_VIDEO */ | 50 | #endif /* CONFIG_MX1_VIDEO */ |
52 | 51 | ||
53 | #endif /* __ASM_ARCH_MXC_MEMORY_H__ */ | 52 | #endif /* __ASM_ARCH_MXC_MEMORY_H__ */ |