summaryrefslogtreecommitdiff
path: root/board/freescale/t104xrdb
diff options
context:
space:
mode:
authorSumit Garg <sumit.garg@nxp.com>2016-05-25 12:41:48 -0400
committerYork Sun <york.sun@nxp.com>2016-06-03 22:12:06 -0700
commited4708aaeaf74008d199866bfbd450d91439a9cf (patch)
tree8b33459e29d417dd9c7f3706bd96ed60d777cab7 /board/freescale/t104xrdb
parent8b528709c5bba6a8d0ec83b20545bbd75f082704 (diff)
downloadu-boot-imx-ed4708aaeaf74008d199866bfbd450d91439a9cf.zip
u-boot-imx-ed4708aaeaf74008d199866bfbd450d91439a9cf.tar.gz
u-boot-imx-ed4708aaeaf74008d199866bfbd450d91439a9cf.tar.bz2
powerpc/board: SPL: Enable malloc flag in global data.
For malloc to work in SPL framework enable GD_FLG_FULL_MALLOC_INIT flag in global data after allocating memory using mem_malloc_init. Signed-off-by: Sumit Garg <sumit.garg@nxp.com> Reviewed-by: York Sun <york.sun@nxp.com>
Diffstat (limited to 'board/freescale/t104xrdb')
-rw-r--r--board/freescale/t104xrdb/spl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/board/freescale/t104xrdb/spl.c b/board/freescale/t104xrdb/spl.c
index 81f48c4..4b35af6 100644
--- a/board/freescale/t104xrdb/spl.c
+++ b/board/freescale/t104xrdb/spl.c
@@ -98,6 +98,7 @@ void board_init_r(gd_t *gd, ulong dest_addr)
get_clocks();
mem_malloc_init(CONFIG_SPL_RELOC_MALLOC_ADDR,
CONFIG_SPL_RELOC_MALLOC_SIZE);
+ gd->flags |= GD_FLG_FULL_MALLOC_INIT;
#ifdef CONFIG_SPL_MMC_BOOT
mmc_initialize(bd);