]> git.ipfire.org Git - people/ms/u-boot.git/commit
armv8: fsl-layerscape: add i/d-cache enable function to enable_caches
authorHou Zhiqiang <Zhiqiang.Hou@nxp.com>
Tue, 28 Jun 2016 12:18:12 +0000 (20:18 +0800)
committerYork Sun <york.sun@nxp.com>
Tue, 19 Jul 2016 18:32:43 +0000 (11:32 -0700)
commit85cdf38e69bbf3b2bb67c8218c8e4cbf28f8759b
treeee799656cdd9adce32cb78d4987ec909a6686a50
parent5ad5823d0c71a45f886d0016a74d62a5216abe10
armv8: fsl-layerscape: add i/d-cache enable function to enable_caches

This function assume that the d-cache and MMU has been enabled earlier,
so it just created MMU table in main memory. But the assumption is not
always correct, for example, the early setup is done in EL3, while
enable_caches() is called when the PE has turned into another EL.

Define the function mmu_setup() for fsl-layerscape to cover the weak
one.

Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
Reviewed-by: York Sun <york.sun@nxp.com>
arch/arm/cpu/armv8/fsl-layerscape/cpu.c