exynos: Reinit the L2 cache settings right before jumping to kernel
We've tweaked some L2 cache settings recently which means that RO
U-Boot and RW U-Boot might have different ideas for what the proper
settings are. The RO settings that we have appear to be good enough
for running U-Boot but they can cause problems for the kernel.
Unfortunately it's not easy for the kernel to reconfigure these
settings since the L2 cache is turned on REALLY early in the kernel
(before it knows anything about what board it's on). ...and you're
not supposed to change the settings while the L2 cache is in use.
We'll be nice to the kernel and set the L2 cache settings after we've
turned off the cache but before we jump to the kernel.
NOTE: the kernel will still have to have some smarts, since the RO
U-Boot will still be in charge of cache settings when bringing up
secondary CPUs and when coming out of sleep. It will presumably save
the cache settings of the boot CPU and apply them elsewhere.
TEST=Use this as an RW update and see cache settings get updated.
Signed-off-by: Doug Anderson <firstname.lastname@example.org>
Reviewed-by: Simon Glass <email@example.com>
1 file changed