]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - arch/arm/cpu/armv8/fsl-layerscape/cpu.c
armv8: fsl-layerscape: add i/d-cache enable function to enable_caches
[people/ms/u-boot.git] / arch / arm / cpu / armv8 / fsl-layerscape / cpu.c
index b6ebedcc18e5bcf4cdd3c6f6e7bac07c95688916..bcedf2c08006f5eb9f79f85e2cd94c0e39dae384 100644 (file)
@@ -164,15 +164,21 @@ int arch_cpu_init(void)
        return 0;
 }
 
+void mmu_setup(void)
+{
+       final_mmu_setup();
+}
+
 /*
- * This function is called from lib/board.c.
- * It recreates MMU table in main memory. MMU and d-cache are enabled earlier.
- * There is no need to disable d-cache for this operation.
+ * This function is called from common/board_r.c.
+ * It recreates MMU table in main memory.
  */
 void enable_caches(void)
 {
-       final_mmu_setup();
+       mmu_setup();
        __asm_invalidate_tlb_all();
+       icache_enable();
+       dcache_enable();
 }
 #endif