Patchwork [U-Boot,1/6] ARM: add missing CONFIG_SKIP_LOWLEVEL_INIT for armv7

login
register
mail settings
Submitter Rob Herring
Date June 28, 2011, 3:39 p.m.
Message ID <1309275583-11763-2-git-send-email-robherring2@gmail.com>
Download mbox | patch
Permalink /patch/102407/
State Accepted
Delegated to: Albert ARIBAUD
Headers show

Comments

Rob Herring - June 28, 2011, 3:39 p.m.
From: Rob Herring <rob.herring@calxeda.com>

cpu_init_crit can be skipped, but the code is still enabled requiring a
platform to supply lowlevel_init.

Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Cc: Albert ARIBAUD <albert.aribaud@free.fr>
---
 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 d91ae12..ec54125 100644
--- a/arch/arm/cpu/armv7/start.S
+++ b/arch/arm/cpu/armv7/start.S
@@ -275,6 +275,7 @@  _rel_dyn_end_ofs:
 _dynsym_start_ofs:
 	.word __dynsym_start - _start
 
+#ifndef CONFIG_SKIP_LOWLEVEL_INIT
 /*************************************************************************
  *
  * CPU_init_critical registers
@@ -311,6 +312,7 @@  cpu_init_crit:
 	bl	lowlevel_init		@ go setup pll,mux,memory
 	mov	lr, ip			@ restore link
 	mov	pc, lr			@ back to my caller
+#endif
 /*
  *************************************************************************
  *