pxa: add support for D- and I- caches
[platform/kernel/u-boot.git] / arch / arm / cpu / pxa / pxa2xx.c
index 2f12fb9..77f0ef2 100644 (file)
@@ -284,3 +284,13 @@ void reset_cpu(ulong ignored)
        for (;;)
                ;
 }
+
+void enable_caches(void)
+{
+#ifndef CONFIG_SYS_ICACHE_OFF
+       icache_enable();
+#endif
+#ifndef CONFIG_SYS_DCACHE_OFF
+       dcache_enable();
+#endif
+}