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>
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 0afec51..9898c7d 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -401,6 +401,12 @@
write is performed.
endchoice
+config ARCH_VERY_EARLY_INIT
+ bool
+
+config SPL_ARCH_VERY_EARLY_INIT
+ bool
+
config ARCH_CPU_INIT
bool "Enable ARCH_CPU_INIT"
help