All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tom Rini <trini@konsulko.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 3/5] ARM: SPL: Use CONFIG_SPL_DM not CONFIG_DM
Date: Fri, 31 Jul 2015 19:55:10 -0400	[thread overview]
Message-ID: <1438386912-14711-3-git-send-email-trini@konsulko.com> (raw)
In-Reply-To: <1438386912-14711-1-git-send-email-trini@konsulko.com>

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 |    2 +-
 arch/arm/lib/spl.c                 |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/arm/cpu/armv7/lowlevel_init.S b/arch/arm/cpu/armv7/lowlevel_init.S
index 427b0b1..1872c57 100644
--- a/arch/arm/cpu/armv7/lowlevel_init.S
+++ b/arch/arm/cpu/armv7/lowlevel_init.S
@@ -21,7 +21,7 @@ ENTRY(lowlevel_init)
 	 */
 	ldr	sp, =CONFIG_SYS_INIT_SP_ADDR
 	bic	sp, sp, #7 /* 8-byte alignment for ABI compliance */
-#ifdef CONFIG_DM
+#ifdef CONFIG_SPL_DM
 	mov	r9, #0
 #else
 	/*
diff --git a/arch/arm/lib/spl.c b/arch/arm/lib/spl.c
index bd8c7d2..d737a5c 100644
--- a/arch/arm/lib/spl.c
+++ b/arch/arm/lib/spl.c
@@ -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
-- 
1.7.9.5

  parent reply	other threads:[~2015-07-31 23:55 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-31 23:55 [U-Boot] [PATCH 1/5] am33xx: Update DT files, add am335x_gp_evm_config target Tom Rini
2015-07-31 23:55 ` [U-Boot] [PATCH 2/5] gpio: omap: Drop 'method' parameter Tom Rini
2015-08-13 13:22   ` [U-Boot] [U-Boot,2/5] " Tom Rini
2015-07-31 23:55 ` Tom Rini [this message]
2015-08-13 13:22   ` [U-Boot] [U-Boot, 3/5] ARM: SPL: Use CONFIG_SPL_DM not CONFIG_DM Tom Rini
2015-07-31 23:55 ` [U-Boot] [PATCH 4/5] dra7xx: Move CONS_INDEX to Kconfig and enable CONFIG_SPL_STACK_ADDR Tom Rini
2015-08-13 13:22   ` [U-Boot] [U-Boot, " Tom Rini
2015-07-31 23:55 ` [U-Boot] [PATCH 5/5] dra7xx: Add dra72_evm_defconfig using CONFIG_DM Tom Rini
2015-08-02 21:29   ` Simon Glass
2015-08-02 23:07     ` Tom Rini
2015-08-02 23:22       ` Simon Glass
2015-08-02 23:29         ` Tom Rini
2015-08-02 23:32           ` Simon Glass
2015-08-13 13:22   ` [U-Boot] [U-Boot, " Tom Rini
2015-08-13 13:22 ` [U-Boot] [U-Boot, 1/5] am33xx: Update DT files, add am335x_gp_evm_config target Tom Rini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1438386912-14711-3-git-send-email-trini@konsulko.com \
    --to=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.