Browse Source

mx27: add function enable_caches

Signed-off-by: Philippe Reynes <tremyfr@yahoo.fr>
trem 12 years ago
parent
commit
6247c4653b
1 changed files with 8 additions and 0 deletions
  1. 8 0
      arch/arm/cpu/arm926ejs/mx27/generic.c

+ 8 - 0
arch/arm/cpu/arm926ejs/mx27/generic.c

@@ -380,3 +380,11 @@ void mx27_sd2_init_pins(void)
 
 }
 #endif /* CONFIG_MXC_MMC */
+
+#ifndef CONFIG_SYS_DCACHE_OFF
+void enable_caches(void)
+{
+	/* Enable D-cache. I-cache is already enabled in start.S */
+	dcache_enable();
+}
+#endif /* CONFIG_SYS_DCACHE_OFF */