]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commitbae797b56e7bc2ce1b88c3669ca660bec877367e
treedaa5d2eb1e8cd948b25a23f073386013a5a07b3a
parent2ba8646e9c35778b1bbb706dd8d253f7bcef15de
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]