Commit 60985bba58e7695dac1fddae8cdbb62d8cfd1254

Authored by Axel Lin
Committed by Tom Warren
1 parent 578e63782b

tegra: Define CONFIG_SKIP_LOWLEVEL_INIT for SPL build

Then we can get rid of the #ifdef CONFIG_TEGRA guard in cpu_init_crit.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Tested-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Tom Warren <twarren@nvidia.com>

Showing 2 changed files with 2 additions and 2 deletions Side-by-side Diff

arch/arm/cpu/arm720t/start.S
... ... @@ -247,7 +247,6 @@
247 247 #ifndef CONFIG_SKIP_LOWLEVEL_INIT
248 248 cpu_init_crit:
249 249  
250   -#if !defined(CONFIG_TEGRA)
251 250 mov ip, lr
252 251 /*
253 252 * before relocating, we have to setup RAM timing
... ... @@ -256,7 +255,6 @@
256 255 */
257 256 bl lowlevel_init
258 257 mov lr, ip
259   -#endif
260 258  
261 259 mov pc, lr
262 260 #endif /* CONFIG_SKIP_LOWLEVEL_INIT */
include/configs/tegra-common-post.h
... ... @@ -157,6 +157,8 @@
157 157 /* overrides for SPL build here */
158 158 #ifdef CONFIG_SPL_BUILD
159 159  
  160 +#define CONFIG_SKIP_LOWLEVEL_INIT
  161 +
160 162 /* remove devicetree support */
161 163 #ifdef CONFIG_OF_CONTROL
162 164 #undef CONFIG_OF_CONTROL