From: Przemyslaw Marczak
Date: Wed, 4 Mar 2015 13:01:30 +0000 (+0100)
Subject: tegra-common: increase malloc pool len by dfu mmc file buffer size
X-Git-Tag: v2015.04-rc4~49
X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=52a7c98a1772;p=pandora-u-boot.git
tegra-common: increase malloc pool len by dfu mmc file buffer size
The dfu mmc file buffer, which was static, now is allocated
by memalign(), so the malloc pool len should be also increased.
Signed-off-by: Przemyslaw Marczak
Cc: Tom Warren
---
diff --git a/include/configs/tegra-common.h b/include/configs/tegra-common.h
index fa6ccc16ee3..117714150ce 100644
--- a/include/configs/tegra-common.h
+++ b/include/configs/tegra-common.h
@@ -36,7 +36,12 @@
/*
* Size of malloc() pool
*/
+#ifdef CONFIG_DFU_MMC
+#define CONFIG_SYS_MALLOC_LEN ((4 << 20) + \
+ CONFIG_SYS_DFU_DATA_BUF_SIZE)
+#else
#define CONFIG_SYS_MALLOC_LEN (4 << 20) /* 4MB */
+#endif
#define CONFIG_SYS_NONCACHED_MEMORY (1 << 20) /* 1 MiB */