arm: mvebu: Move internal registers in arch_very_early_init() function
authorPali Rohár <pali@kernel.org>
Fri, 6 May 2022 09:05:14 +0000 (11:05 +0200)
committerStefan Roese <sr@denx.de>
Mon, 16 May 2022 09:31:34 +0000 (11:31 +0200)
commit5bb2c550b11eb087437740b2a0d1fe780be5aec3
treedaa5d2eb1e8cd948b25a23f073386013a5a07b3a
parent948da7773e340fe76d4d1b9c635d724bf8661d30
arm: mvebu: Move internal registers in arch_very_early_init() function

Moving of internal registers from INTREG_BASE_ADDR_REG to SOC_REGS_PHY_BASE
needs to be done very early, prior calling any function which may touch
internal registers, like debug_uart_init().

So do it earlier in arch_very_early_init() instead of arch_cpu_init().

Movement is done in proper U-Boot, not in SPL. SPL may return to bootrom
and bootrom requires internal registers at (old) expected location.

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Stefan Roese <sr@denx.de>
arch/arm/mach-mvebu/Kconfig
arch/arm/mach-mvebu/Makefile
arch/arm/mach-mvebu/cpu.c
arch/arm/mach-mvebu/lowlevel.S [new file with mode: 0644]