arm: Add new config option ARCH_VERY_EARLY_INIT
authorPali Rohár <pali@kernel.org>
Fri, 6 May 2022 09:05:13 +0000 (11:05 +0200)
committerStefan Roese <sr@denx.de>
Mon, 16 May 2022 09:31:33 +0000 (11:31 +0200)
commit948da7773e340fe76d4d1b9c635d724bf8661d30
tree2ffb6b6d7b8a7efbe6cb1919bfc2a24fdf977e2f
parent1001a0ab46ee3be2bb5f0017afdaf135df5e6f6d
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>
arch/arm/Kconfig
arch/arm/lib/crt0.S