mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-19 19:34:35 +00:00
arm: Add new config option ARCH_VERY_EARLY_INIT
When this option is set then ARM _main() function would call arch_very_early_init() function at the beginning. It would be before calling any other functions like debug_uart_init() and also before initializing C runtime environment. Signed-off-by: Pali Rohár <pali@kernel.org> Reviewed-by: Stefan Roese <sr@denx.de>
This commit is contained in:
parent
1001a0ab46
commit
948da7773e
2 changed files with 11 additions and 0 deletions
|
@ -401,6 +401,12 @@ config SYS_ARM_CACHE_WRITEALLOC
|
||||||
write is performed.
|
write is performed.
|
||||||
endchoice
|
endchoice
|
||||||
|
|
||||||
|
config ARCH_VERY_EARLY_INIT
|
||||||
|
bool
|
||||||
|
|
||||||
|
config SPL_ARCH_VERY_EARLY_INIT
|
||||||
|
bool
|
||||||
|
|
||||||
config ARCH_CPU_INIT
|
config ARCH_CPU_INIT
|
||||||
bool "Enable ARCH_CPU_INIT"
|
bool "Enable ARCH_CPU_INIT"
|
||||||
help
|
help
|
||||||
|
|
|
@ -90,6 +90,11 @@ clbss_l:cmp r0, r1 /* while not at end of BSS */
|
||||||
|
|
||||||
ENTRY(_main)
|
ENTRY(_main)
|
||||||
|
|
||||||
|
/* Call arch_very_early_init before initializing C runtime environment. */
|
||||||
|
#if CONFIG_IS_ENABLED(ARCH_VERY_EARLY_INIT)
|
||||||
|
bl arch_very_early_init
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Set up initial C runtime environment and call board_init_f(0).
|
* Set up initial C runtime environment and call board_init_f(0).
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Reference in a new issue