]> git.baikalelectronics.ru Git - uboot.git/commit
powerpc: mpc83xx: Don't activate MMU when not necessary
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Wed, 18 Jan 2023 19:52:38 +0000 (20:52 +0100)
committerChristophe Leroy <christophe.leroy@csgroup.eu>
Thu, 6 Apr 2023 12:50:03 +0000 (14:50 +0200)
commit0b5b88e71e5dee83b49f45104925a0e166f6d9ab
tree78f4caf46955baa6d426e55db1d5bb89d943f39e
parentf22bc3900948f8509b09b0c89e5825e0b27cf284
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>
arch/powerpc/cpu/mpc83xx/start.S