summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 019438e)
raw | patch | inline | side by side (parent: 019438e)
author | Michael Walle <michael@walle.cc> | |
Fri, 26 Mar 2021 18:40:56 +0000 (19:40 +0100) | ||
committer | Priyanka Jain <priyanka.jain@nxp.com> | |
Thu, 15 Apr 2021 08:52:22 +0000 (14:22 +0530) |
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: Michael Walle <michael@walle.cc>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
have to call spl_early_init() to initialize the memory allocator and the
setup the device tree.
Signed-off-by: Michael Walle <michael@walle.cc>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
arch/arm/cpu/armv8/fsl-layerscape/spl.c | patch | blob | history |
index 888c02f6c5d9cb830d2d85e6a37dd402edbe57a2..01dd6a30e8785a1f93218af3d88f3c568450c650 100644 (file)
#include <cpu_func.h>
#include <debug_uart.h>
#include <env.h>
+#include <hang.h>
#include <image.h>
#include <init.h>
#include <log.h>
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();