Patchwork [U-Boot] armv7: only call save_boot_params for OMAP

login
register
mail settings
Submitter Simon Schwarz
Date Sept. 16, 2011, 3:32 p.m.
Message ID <1316187178-13700-1-git-send-email-simonschwarzcor@gmail.com>
Download mbox | patch
Permalink /patch/114953/
State Superseded
Headers show

Comments

Simon Schwarz - Sept. 16, 2011, 3:32 p.m.
save_boot_params in start.S got called for all armv7 based cpus. Since the
function relys on the OMAP specific bootloader this broke some boards
(or to be specific added more errors to already broken ones). This patch
wraps the call in #ifdef CONFIG_OMAP.

Signed-off-by: Simon Schwarz <simonschwarzcor@gmail.com>
---
 arch/arm/cpu/armv7/start.S |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

Patch

diff --git a/arch/arm/cpu/armv7/start.S b/arch/arm/cpu/armv7/start.S
index db8e9d2..7cb380c 100644
--- a/arch/arm/cpu/armv7/start.S
+++ b/arch/arm/cpu/armv7/start.S
@@ -134,7 +134,9 @@  IRQ_STACK_START_IN:
  */
 
 reset:
+#ifdef CONFIG_OMAP
 	bl	save_boot_params
+#endif
 	/*
 	 * set the cpu to SVC32 mode
 	 */