Explorar o código

mx27: add function enable_caches

Signed-off-by: Philippe Reynes <tremyfr@yahoo.fr>
trem %!s(int64=12) %!d(string=hai) anos
pai
achega
6247c4653b
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  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 */