Commit ca4b55800ed74207c35271bf7335a092d4955416
Committed by
Albert ARIBAUD
1 parent
ff62fb4c6a
Exists in
master
and in
54 other branches
arm, arm926ejs: always do cpu critical inits
always do the cpu critical inits in cpu_init_crit, and only jump to lowlevel_init, if CONFIG_SKIP_LOWLEVEL_INIT is not defined. Signed-off-by: Heiko Schocher <hs@denx.de> Cc: Albert ARIBAUD <albert.u.boot@aribaud.net> Cc: Wolfgang Denk <hs@denx.de> Cc: Sandeep Paulraj <s-paulraj@ti.com> Cc: Tom Rini <tom.rini@gmail.com> Cc: Christian Riesch <christian.riesch@omicron.at>
Showing 1 changed file with 2 additions and 4 deletions Side-by-side Diff
arch/arm/cpu/arm926ejs/start.S
... | ... | @@ -194,9 +194,7 @@ |
194 | 194 | * we do sys-critical inits only at reboot, |
195 | 195 | * not when booting from ram! |
196 | 196 | */ |
197 | -#ifndef CONFIG_SKIP_LOWLEVEL_INIT | |
198 | 197 | bl cpu_init_crit |
199 | -#endif | |
200 | 198 | |
201 | 199 | /* Set stackpointer in internal RAM to call board_init_f */ |
202 | 200 | call_board_init_f: |
... | ... | @@ -355,7 +353,6 @@ |
355 | 353 | * |
356 | 354 | ************************************************************************* |
357 | 355 | */ |
358 | -#ifndef CONFIG_SKIP_LOWLEVEL_INIT | |
359 | 356 | cpu_init_crit: |
360 | 357 | /* |
361 | 358 | * flush v4 I/D caches |
362 | 359 | |
363 | 360 | |
... | ... | @@ -374,14 +371,15 @@ |
374 | 371 | orr r0, r0, #0x00001000 /* set bit 12 (I) I-Cache */ |
375 | 372 | mcr p15, 0, r0, c1, c0, 0 |
376 | 373 | |
374 | +#ifndef CONFIG_SKIP_LOWLEVEL_INIT | |
377 | 375 | /* |
378 | 376 | * Go setup Memory and board specific bits prior to relocation. |
379 | 377 | */ |
380 | 378 | mov ip, lr /* perserve link reg across call */ |
381 | 379 | bl lowlevel_init /* go setup pll,mux,memory */ |
382 | 380 | mov lr, ip /* restore link */ |
383 | - mov pc, lr /* back to my caller */ | |
384 | 381 | #endif /* CONFIG_SKIP_LOWLEVEL_INIT */ |
382 | + mov pc, lr /* back to my caller */ | |
385 | 383 | |
386 | 384 | #ifndef CONFIG_SPL_BUILD |
387 | 385 | /* |