Merge git://git.denx.de/u-boot-usb
[oweals/u-boot.git] / arch / arm / cpu / pxa / pxa2xx.c
index 7e861e26dba7e1baa009e0bf85459ae068eb47b1..77f0ef2de4ae8e9297ae8d77a2d31eb4cf9a5798 100644 (file)
  * SPDX-License-Identifier:    GPL-2.0+
  */
 
+#include <common.h>
+#include <asm/arch/pxa-regs.h>
 #include <asm/io.h>
 #include <asm/system.h>
 #include <command.h>
-#include <common.h>
-#include <asm/arch/pxa-regs.h>
 
 /* Flush I/D-cache */
 static void cache_flush(void)
@@ -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
+}