]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
ARM: SPL: Use CONFIG_SPL_DM not CONFIG_DM
authorTom Rini <trini@konsulko.com>
Fri, 31 Jul 2015 23:55:10 +0000 (19:55 -0400)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 08:19:14 +0000 (10:19 +0200)
We now have the CONFIG_SPL_DM for code within SPL to toggle caring about
DM or not.  Without this change platforms that do enable CONFIG_DM but
not CONFIG_SPL_DM may be broken (such as OMAP5).

Cc: Albert Aribaud <albert.u.boot@aribaud.net>
Signed-off-by: Tom Rini <trini@konsulko.com>
arch/arm/cpu/armv7/lowlevel_init.S
arch/arm/lib/spl.c

index 1db673754dcb115fff9835ad4dfdf667d2febf67..6083880ec8a6e930ed790c93526942a8e248698c 100644 (file)
@@ -25,7 +25,7 @@ ENTRY(lowlevel_init)
        ldr     sp, =CONFIG_SPL_STACK
 #endif
        bic     sp, sp, #7 /* 8-byte alignment for ABI compliance */
-#ifdef CONFIG_DM
+#ifdef CONFIG_SPL_DM
        mov     r9, #0
 #else
        /*
index bd8c7d2ede0c589aaf7526252dc92e95d2f8dc98..d737a5cce83dcc867a30a6487206e8ed7402e858 100644 (file)
@@ -13,7 +13,7 @@
 #include <image.h>
 #include <linux/compiler.h>
 
-#ifndef CONFIG_DM
+#ifndef CONFIG_SPL_DM
 /* Pointer to as well as the global data structure for SPL */
 DECLARE_GLOBAL_DATA_PTR;
 
@@ -35,7 +35,7 @@ void __weak board_init_f(ulong dummy)
        /* Clear the BSS. */
        memset(__bss_start, 0, __bss_end - __bss_start);
 
-#ifndef CONFIG_DM
+#ifndef CONFIG_SPL_DM
        /* TODO: Remove settings of the global data pointer here */
        gd = &gdata;
 #endif