]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - arch/arm/cpu/arm926ejs/mx28/mx28.c
i.MX28: Enable caches by default
[karo-tx-uboot.git] / arch / arm / cpu / arm926ejs / mx28 / mx28.c
index 9bfd83bab97c2ec1849c81575d43aaceb3769118..cf6d4e9bd46aa9260e85ee040992b03dc5ceb49c 100644 (file)
@@ -63,6 +63,16 @@ void reset_cpu(ulong ignored)
                ;
 }
 
+void enable_caches(void)
+{
+#ifndef CONFIG_SYS_ICACHE_OFF
+       icache_enable();
+#endif
+#ifndef CONFIG_SYS_DCACHE_OFF
+       dcache_enable();
+#endif
+}
+
 int mx28_wait_mask_set(struct mx28_register_32 *reg, uint32_t mask, int timeout)
 {
        while (--timeout) {