]> 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 427b0b132165b8003233a3280e097b02a4891e0b..658934d664a4ab5827169da13aa2728a395bc171 100644 (file)
@@ -19,9 +19,13 @@ 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_DM
+#ifdef CONFIG_SPL_DM
        mov     r9, #0
 #else
        /*