ARM: arm720t: Add missing CONFIG_SKIP_LOWLEVEL_INIT guard for cpu_init_crit
authorAxel Lin <axel.lin@ingics.com>
Tue, 21 May 2013 13:44:10 +0000 (13:44 +0000)
committerTom Warren <twarren@nvidia.com>
Tue, 28 May 2013 19:58:43 +0000 (12:58 -0700)
cpu_init_crit() can be skipped, but the code is still enabled requiring a
platform to supply lowlevel_init().

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Tested-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Tom Warren <twarren@nvidia.com>
arch/arm/cpu/arm720t/start.S

index 9facc7e69481db7aabc7286b4d7131bb2ad04bd8..9f0e3f961a3dc4283a02535996918942e60c4884 100644 (file)
@@ -244,6 +244,7 @@ c_runtime_cpu_setup:
  *************************************************************************
  */
 
+#ifndef CONFIG_SKIP_LOWLEVEL_INIT
 cpu_init_crit:
 
 #if !defined(CONFIG_TEGRA)
@@ -258,6 +259,7 @@ cpu_init_crit:
 #endif
 
        mov     pc, lr
+#endif /* CONFIG_SKIP_LOWLEVEL_INIT */
 
 
 #ifndef CONFIG_SPL_BUILD