summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2016-05-25 02:14:56 +0200
committerTom Rini <trini@konsulko.com>2016-06-02 21:21:42 -0400
commit94b9e22e5036a2d8ad76956785e55754d4a980ad (patch)
tree42b7a21058f8df3a05900ad543b33aeb3b74a48f /common
parent03c6f1761ede305637ed54fb238b2059c597451e (diff)
downloadu-boot-imx-94b9e22e5036a2d8ad76956785e55754d4a980ad.zip
u-boot-imx-94b9e22e5036a2d8ad76956785e55754d4a980ad.tar.gz
u-boot-imx-94b9e22e5036a2d8ad76956785e55754d4a980ad.tar.bz2
spl: Allow settings malloc_f base address
Allow configuring the begining of the malloc_f area in SPL. This patch uses the same CONFIG_MALLOC_F_ADDR established by the sandbox. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Tom Rini <trini@konsulko.com> Cc: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common')
-rw-r--r--common/spl/spl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/spl/spl.c b/common/spl/spl.c
index bdde716..780c081 100644
--- a/common/spl/spl.c
+++ b/common/spl/spl.c
@@ -192,6 +192,9 @@ int spl_init(void)
debug("spl_init()\n");
#if defined(CONFIG_SYS_MALLOC_F_LEN)
+#ifdef CONFIG_MALLOC_F_ADDR
+ gd->malloc_base = CONFIG_MALLOC_F_ADDR;
+#endif
gd->malloc_limit = CONFIG_SYS_MALLOC_F_LEN;
gd->malloc_ptr = 0;
#endif