diff options
author | Ye Li <ye.li@nxp.com> | 2019-04-24 21:57:23 -0700 |
---|---|---|
committer | Ye Li <ye.li@nxp.com> | 2020-04-26 23:24:07 -0700 |
commit | bbade661f5967270d58142911c6ac55349a11542 (patch) | |
tree | 0a9d198a03f8e7e9cc72b3b7d85f7a5819450da0 /board/freescale/imx8qm_mek/spl.c | |
parent | d81132a327b61f8646dd9f295226c94791bc0a59 (diff) |
MLK-20654-2 imx8: SPL: Move arch_cpu_init to board_init_f
Since we have data section save/restore in arch_cpu_init, need it
in early stage, so move arch_cpu_init to board_init_f
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit 736ea652c6dbc7bb9f52bceff35a5f4bb98ca4dc)
Diffstat (limited to 'board/freescale/imx8qm_mek/spl.c')
-rw-r--r-- | board/freescale/imx8qm_mek/spl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/board/freescale/imx8qm_mek/spl.c b/board/freescale/imx8qm_mek/spl.c index 14badd40833..13ef4ca9000 100644 --- a/board/freescale/imx8qm_mek/spl.c +++ b/board/freescale/imx8qm_mek/spl.c @@ -27,8 +27,6 @@ void spl_board_init(void) continue; } - arch_cpu_init(); - board_early_init_f(); timer_init(); @@ -58,5 +56,7 @@ void board_init_f(ulong dummy) /* Clear the BSS. */ memset(__bss_start, 0, __bss_end - __bss_start); + arch_cpu_init(); + board_init_r(NULL, 0); } |