]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - arch/arm/cpu/arm926ejs/spear/cpu.c
arm: spear: Enable caches on SPEAr
[karo-tx-uboot.git] / arch / arm / cpu / arm926ejs / spear / cpu.c
index 3037084b29bce7cdae69b31a65f25eb79bb7dba0..e39cdbaa6e5110f056222fee6dd413b093f0fbbd 100644 (file)
@@ -56,6 +56,16 @@ int arch_cpu_init(void)
        return 0;
 }
 
+void enable_caches(void)
+{
+#ifndef CONFIG_SYS_ICACHE_OFF
+       icache_enable();
+#endif
+#ifndef CONFIG_SYS_DCACHE_OFF
+       dcache_enable();
+#endif
+}
+
 #ifdef CONFIG_DISPLAY_CPUINFO
 int print_cpuinfo(void)
 {