diff options
author | Sumit Garg <sumit.garg@nxp.com> | 2016-05-25 12:41:48 -0400 |
---|---|---|
committer | York Sun <york.sun@nxp.com> | 2016-06-03 22:12:06 -0700 |
commit | ed4708aaeaf74008d199866bfbd450d91439a9cf (patch) | |
tree | 8b33459e29d417dd9c7f3706bd96ed60d777cab7 /board/freescale/t4qds | |
parent | 8b528709c5bba6a8d0ec83b20545bbd75f082704 (diff) | |
download | u-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/t4qds')
-rw-r--r-- | board/freescale/t4qds/spl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/board/freescale/t4qds/spl.c b/board/freescale/t4qds/spl.c index d52059a..6ca0f03 100644 --- a/board/freescale/t4qds/spl.c +++ b/board/freescale/t4qds/spl.c @@ -116,6 +116,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, |