]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
mx27: add function enable_caches
authortrem <tremyfr@yahoo.fr>
Fri, 14 Jun 2013 16:21:21 +0000 (18:21 +0200)
committerStefano Babic <sbabic@denx.de>
Wed, 26 Jun 2013 15:34:21 +0000 (17:34 +0200)
Signed-off-by: Philippe Reynes <tremyfr@yahoo.fr>
arch/arm/cpu/arm926ejs/mx27/generic.c

index 41bb84bb6e7ffe58e64988fc4e88e090daab91fb..bffbadd7e2ce5cda6e338431af6b2f8873eb6f55 100644 (file)
@@ -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 */