]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mx5: Enable dcache
authorBenoît Thébaudeau <benoit.thebaudeau@advansee.com>
Tue, 14 Aug 2012 03:17:52 +0000 (03:17 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Sat, 1 Sep 2012 12:58:26 +0000 (14:58 +0200)
Now that the main i.MX features work fine with dcache enabled, enabled it by
default if CONFIG_SYS_DCACHE_OFF is not defined.

Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau@advansee.com>
Cc: Stefano Babic <sbabic@denx.de>
Acked-by: Stefano Babic <sbabic@denx.de>
arch/arm/cpu/armv7/mx5/soc.c

index 3f5a4f726c70910bcbda382f8c34bed6c1f6d358..98203ba514c19f2230171559983b3c17b5b16a0d 100644 (file)
@@ -71,6 +71,14 @@ u32 get_cpu_rev(void)
        return system_rev;
 }
 
+#ifndef CONFIG_SYS_DCACHE_OFF
+void enable_caches(void)
+{
+       /* Enable D-cache. I-cache is already enabled in start.S */
+       dcache_enable();
+}
+#endif
+
 #if defined(CONFIG_FEC_MXC)
 void imx_get_mac_from_fuse(int dev_id, unsigned char *mac)
 {