2 * A lowlevel_init function that sets up the stack to call a C function to
3 * perform further init.
6 * Texas Instruments, <www.ti.com>
9 * Aneesh V <aneesh@ti.com>
11 * SPDX-License-Identifier: GPL-2.0+
14 #include <asm-offsets.h>
16 #include <linux/linkage.h>
20 * Setup a temporary stack
22 #ifndef CONFIG_SPL_BUILD
23 ldr sp, =CONFIG_SYS_INIT_SP_ADDR
25 ldr sp, =CONFIG_SPL_STACK
27 bic sp, sp, #7 /* 8-byte alignment for ABI compliance */
28 #ifdef CONFIG_SPL_BUILD
36 * Save the old lr(passed in ip) and the current lr to stack
41 * go setup pll, mux, memory
45 ENDPROC(lowlevel_init)