Commit 918c72f3 authored by Michael Walle's avatar Michael Walle Committed by Priyanka Jain
Browse files

armv8: fsl-layerscape: spl: call spl_early_init()



DM_SERIAL needs both the device tree as well as an early heap. Thus, we
have to call spl_early_init() to initialize the memory allocator and the
setup the device tree.
Signed-off-by: default avatarMichael Walle <michael@walle.cc>
Reviewed-by: Priyanka Jain's avatarPriyanka Jain <priyanka.jain@nxp.com>
parent 019438e4
......@@ -8,6 +8,7 @@
#include <cpu_func.h>
#include <debug_uart.h>
#include <env.h>
#include <hang.h>
#include <image.h>
#include <init.h>
#include <log.h>
......@@ -68,12 +69,19 @@ void spl_board_init(void)
void board_init_f(ulong dummy)
{
int ret;
icache_enable();
/* Clear global data */
memset((void *)gd, 0, sizeof(gd_t));
if (IS_ENABLED(CONFIG_DEBUG_UART))
debug_uart_init();
board_early_init_f();
ret = spl_early_init();
if (ret) {
debug("spl_early_init() failed: %d\n", ret);
hang();
}
timer_init();
#ifdef CONFIG_ARCH_LS2080A
env_init();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment