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/t208xrdb/spl.c | |
parent | 8b528709c5bba6a8d0ec83b20545bbd75f082704 (diff) |
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/t208xrdb/spl.c')
-rw-r--r-- | board/freescale/t208xrdb/spl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/board/freescale/t208xrdb/spl.c b/board/freescale/t208xrdb/spl.c index f63366bb0e..2ff05a29f5 100644 --- a/board/freescale/t208xrdb/spl.c +++ b/board/freescale/t208xrdb/spl.c @@ -76,6 +76,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, |