summaryrefslogtreecommitdiff
path: root/include/configs/tegra-common.h
diff options
context:
space:
mode:
authorPrzemyslaw Marczak <p.marczak@samsung.com>2015-03-04 14:01:30 +0100
committerTom Rini <trini@konsulko.com>2015-03-09 11:13:29 -0400
commit52a7c98a1772859131ca2018d0ab591a1e0e95c9 (patch)
tree33f49c1d65bb720e0d01c1ca3598abeb62ee5422 /include/configs/tegra-common.h
parentb648a7891e8e569a88573f5956099d39e39ab4dd (diff)
downloadu-boot-52a7c98a1772859131ca2018d0ab591a1e0e95c9.tar.gz
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 <p.marczak@samsung.com> Cc: Tom Warren <twarren.nvidia@gmail.com>
Diffstat (limited to 'include/configs/tegra-common.h')
-rw-r--r--include/configs/tegra-common.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/configs/tegra-common.h b/include/configs/tegra-common.h
index fa6ccc16ee..117714150c 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 */