u-boot/arch
Pali Rohár 5818198e6a arm: mvebu: Fix moving internal registers
Commit 5bb2c550b1 ("arm: mvebu: Move internal registers in
arch_very_early_init() function") moved code from file cpu.c to lowlevel.c,
which moves Marvell internal registers from address INTREG_BASE_ADDR_REG to
SOC_REGS_PHY_BASE.

But the steps describing how to do it correctly were documented only in
older U-Boot versions and commit cefd764222 ("arm: mvebu: Fix internal
register config on A38x") probably unintentionally removed important
details about MMU from code comments around.

Commit 5bb2c550b1 ("arm: mvebu: Move internal registers in
arch_very_early_init() function") implemented code movement according to
(now incomplete) comments which resulted in semi-broken code.

The result is that I-cache is currently disabled for all Armada 38x boards
and maybe there are some other (unreported / undetected) issues.

Reimplement it correctly. First flush all caches, then disable MMU and L2
cache and then move Marvell internal registers. There is no need to
explicitly disable I-cache.

After this change lzmadec command with lzma image of 0x7000000 bytes is
doing decompression just 5 seconds. Before this change it was 30 seconds.

To make lowlevel.S code more readable, extend asm/pl310.h header file to be
compatible with assembler and use macros from this file.

Fixes: 5bb2c550b1 ("arm: mvebu: Move internal registers in arch_very_early_init() function")
Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Marek Behún <kabel@kernel.org>
Reviewed-by: Stefan Roese <sr@denx.de>
2022-09-13 09:04:22 +02:00
..
arc arc: Move SYS_LITTLE_ENDIAN / SYS_BIG_ENDIAN selection to Kconfig 2022-08-12 16:10:49 -04:00
arm arm: mvebu: Fix moving internal registers 2022-09-13 09:04:22 +02:00
m68k Remove CONFIG_SYS_FSL_SCFG_IODSECR1_ADDR et al 2022-08-12 16:10:49 -04:00
microblaze zynqmp: Run board_get_usable_ram_top() only on main U-Boot 2022-07-26 08:23:54 +02:00
mips mips: mtmips: add two reference boards for mt7621 2022-07-13 23:03:37 +02:00
nios2 linker_lists: Rename sections to remove . prefix 2022-06-23 12:58:18 -04:00
powerpc board: freescale: p1_p2_rdb_pc: Turn off watchdog before reset 2022-09-06 14:08:35 +08:00
riscv riscv: dts: sifive: Synchronize FU740 and Unmatched DT 2022-09-06 13:00:41 +08:00
sandbox bootstd: Add vbe bootmeth into sandbox 2022-08-12 08:17:11 -04:00
sh sh: Remove unused code in arch/sh/lib/bootm.c 2022-08-04 16:18:47 -04:00
x86 video: Rename structs and functions to avoid VBE 2022-08-12 08:14:23 -04:00
xtensa xtensa: Switch to using CONFIG_XTENSA for building device trees 2022-06-28 17:03:31 -04:00
.gitignore
Kconfig arc: Move SYS_LITTLE_ENDIAN / SYS_BIG_ENDIAN selection to Kconfig 2022-08-12 16:10:49 -04:00
Kconfig.nxp Convert CONFIG_SYS_FSL_NUM_CC_PLLS to Kconfig 2022-08-12 16:10:49 -04:00
u-boot-elf.lds