aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTushar Behera <tushar.behera@linaro.org>2011-12-15 15:13:22 +0800
committerAndy Green <andy.green@linaro.org>2011-12-26 22:33:45 +0800
commite76f218e31d5b4fa48b3cdec3a856202063888b9 (patch)
tree765608f8c9be3afce7d5c81d06f1dfab0d8e6163
parent906e94fe76eae55c5be5ebb572c5b6ba20a1e67c (diff)
ARM: EXYNOS4: Setup consistent dma size at boot time
Some of the boards under mach-exynos4 initialize frame-buffers for which the memory requirement is more than 2MB, hence the default dma pool allocation size of 2MB is not sufficient. The consistent dma size is hence increased to successfully allocate memory for those boards. Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
-rw-r--r--arch/arm/mach-exynos/cpu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-exynos/cpu.c b/arch/arm/mach-exynos/cpu.c
index 0da006c0c4a..8006041fd97 100644
--- a/arch/arm/mach-exynos/cpu.c
+++ b/arch/arm/mach-exynos/cpu.c
@@ -197,6 +197,8 @@ void __init exynos4_map_io(void)
iotable_init(exynos_iodesc, ARRAY_SIZE(exynos_iodesc));
iotable_init(exynos4_iodesc, ARRAY_SIZE(exynos4_iodesc));
+ init_consistent_dma_size(SZ_8M);
+
if (soc_is_exynos4210() && samsung_rev() == EXYNOS4210_REV_0)
iotable_init(exynos4_iodesc0, ARRAY_SIZE(exynos4_iodesc0));
else