Arm: i.MX5: Do not disable L2 cache
Disabling the L2 cache is not working in imx5_init_lowlevel() because
the necessary cache maintenance operations are missing. This often
results in cache corruption in a chainloaded barebox.
Disabling the cache is unnecessary: when we come from the ROM the L2
cache is disabled anyway, so disabling it is a no-op. When we get here
in a chainloaded barebox the L2 cache is already enabled and correctly
configured. So instead of initializing it again we can take an enabled
L2 cache as a sign to skip initialization and just return from the
function.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 6c1e768 commit 93651898a5d6a2ab5c0e947f759ea55e82564b54
@Sascha Hauer Sascha Hauer authored on 17 Jun 2020
Showing 1 changed file
View
arch/arm/mach-imx/imx5.c