summaryrefslogtreecommitdiff
path: root/board/freescale/t102xqds
diff options
context:
space:
mode:
authorSumit Garg <sumit.garg@nxp.com>2016-05-25 16:41:48 (GMT)
committerYork Sun <york.sun@nxp.com>2016-06-04 05:12:06 (GMT)
commited4708aaeaf74008d199866bfbd450d91439a9cf (patch)
tree8b33459e29d417dd9c7f3706bd96ed60d777cab7 /board/freescale/t102xqds
parent8b528709c5bba6a8d0ec83b20545bbd75f082704 (diff)
downloadu-boot-ed4708aaeaf74008d199866bfbd450d91439a9cf.tar.xz
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/t102xqds')
-rw-r--r--board/freescale/t102xqds/spl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/board/freescale/t102xqds/spl.c b/board/freescale/t102xqds/spl.c
index 073ff2d..d59d343 100644
--- a/board/freescale/t102xqds/spl.c
+++ b/board/freescale/t102xqds/spl.c
@@ -120,6 +120,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_NAND_BOOT
nand_spl_load_image(CONFIG_ENV_OFFSET, CONFIG_ENV_SIZE,