There is no reason to do the few spear-related initialization, in a
different procedure than 'reset'. Spare one branching and get a linear
code flow by removing this indirection.
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: Stefan Roese <sr@denx.de>
* UART boot, USB boot): save registers in BootROM's stack.
*/
push {r0-r12,lr}
- bl cpu_init_crit
- pop {r0-r12,pc}
-/*
- *************************************************************************
- *
- * CPU_init_critical registers
- *
- * setup important registers
- * setup memory timing
- *
- *************************************************************************
- */
-cpu_init_crit:
/*
* Flush v4 I/D caches
*/
/*
* Go setup Memory and board specific bits prior to relocation.
*/
- push {lr}
bl _main /* _main will call board_init_f */
- pop {pc}
+
+ pop {r0-r12,pc}