]> git.sur5r.net Git - u-boot/blobdiff - arch/arm/cpu/armv7/lowlevel_init.S
imx6: isiotmx6ul: Add FEC support
[u-boot] / arch / arm / cpu / armv7 / lowlevel_init.S
index 1872c57699577bcf107753fb48ff1a2dbde63ac1..658934d664a4ab5827169da13aa2728a395bc171 100644 (file)
@@ -19,7 +19,11 @@ ENTRY(lowlevel_init)
        /*
         * Setup a temporary stack. Global data is not available yet.
         */
+#if defined(CONFIG_SPL_BUILD) && defined(CONFIG_SPL_STACK)
+       ldr     sp, =CONFIG_SPL_STACK
+#else
        ldr     sp, =CONFIG_SYS_INIT_SP_ADDR
+#endif
        bic     sp, sp, #7 /* 8-byte alignment for ABI compliance */
 #ifdef CONFIG_SPL_DM
        mov     r9, #0