summaryrefslogtreecommitdiff
path: root/include/configs/tegra-common-post.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/configs/tegra-common-post.h')
-rw-r--r--include/configs/tegra-common-post.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/configs/tegra-common-post.h b/include/configs/tegra-common-post.h
index 594fa456d1..651c4c4935 100644
--- a/include/configs/tegra-common-post.h
+++ b/include/configs/tegra-common-post.h
@@ -12,8 +12,9 @@
* Size of malloc() pool
*/
#ifdef CONFIG_USB_FUNCTION_DFU
-#define CONFIG_SYS_MALLOC_LEN ((4 << 20) + \
- CONFIG_SYS_DFU_DATA_BUF_SIZE)
+#define CONFIG_SYS_MALLOC_LEN (SZ_4M + \
+ CONFIG_SYS_DFU_DATA_BUF_SIZE + \
+ CONFIG_SYS_DFU_MAX_FILE_SIZE)
#else
#define CONFIG_SYS_MALLOC_LEN (4 << 20) /* 4MB */
#endif