powerpc: e6500: Lock/unlock 1 cache instead of L1 as init_ram
authorRuchika Gupta <ruchika.gupta@nxp.com>
Thu, 2 Mar 2017 08:42:41 +0000 (14:12 +0530)
committerYork Sun <york.sun@nxp.com>
Mon, 17 Apr 2017 16:03:30 +0000 (09:03 -0700)
commit668ec87f523580c981a01b06560f70cd5a52e2c9
tree170b1bf6ea3a8078a90b060e205804abd50d6792
parent3d91f46ca84f6b4a667a41ac1957aebf60764002
powerpc: e6500: Lock/unlock 1 cache instead of L1 as init_ram

For E6500 cores, L2 cache has been used as init_ram. L1 cache is a
write through cache on E6500.If lines are not locked in both L1 and
L2 caches, crashes are observed during secure boot. This patch locks/
unlocks both L1 and L2 cache to prevent the crash.

Signed-off-by: Ruchika Gupta <ruchika.gupta@nxp.com>
Reviewed-by: York Sun <york.sun@nxp.com>
arch/powerpc/cpu/mpc85xx/start.S