diff options
author | Christophe Leroy <christophe.leroy@csgroup.eu> | 2023-01-18 20:52:38 +0100 |
---|---|---|
committer | Christophe Leroy <christophe.leroy@csgroup.eu> | 2023-04-06 14:50:03 +0200 |
commit | b20db903c80906c0ba4a2da708c398413a9f9845 (patch) | |
tree | 78f4caf46955baa6d426e55db1d5bb89d943f39e /arch | |
parent | 8886a819615eac220aba1de77b996a6da0b68155 (diff) | |
download | u-boot-b20db903c80906c0ba4a2da708c398413a9f9845.tar.gz u-boot-b20db903c80906c0ba4a2da708c398413a9f9845.tar.bz2 u-boot-b20db903c80906c0ba4a2da708c398413a9f9845.zip |
powerpc: mpc83xx: Don't activate MMU when not necessary
At startup, some RAM is needed (for instance for stack) before
DRAM is initialised.
One way to offer such RAM, used by mpc83xx, is to lock some entries
in the cache. To do that, MMU needs to be activated.
On mpc83xx having a QUICC Engine an alternative is to user some
part of from the Multi User RAM, like done on mpc8xx for instance.
For that, the MMU is not needed.
Activating the MMU is problematic because exception vectors are not
setup yet so in case of ISI or DSI that CPU will crash and reboot.
At the time being, MMU is activated regardless.
Only activate it when locking cache entries to provide initial RAM.
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/cpu/mpc83xx/start.S | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/cpu/mpc83xx/start.S b/arch/powerpc/cpu/mpc83xx/start.S index 4329b173db..6749263da8 100644 --- a/arch/powerpc/cpu/mpc83xx/start.S +++ b/arch/powerpc/cpu/mpc83xx/start.S @@ -215,6 +215,7 @@ in_flash: * gt-regs BAT can be reused after board_init_f calls * board_early_init_f (EVB only). */ +#ifdef CONFIG_SYS_INIT_RAM_LOCK /* enable address translation */ bl enable_addr_trans sync @@ -222,7 +223,6 @@ in_flash: /* enable the data cache */ bl dcache_enable sync -#ifdef CONFIG_SYS_INIT_RAM_LOCK bl lock_ram_in_cache sync #endif |