]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
am33xx: enable dcache
authorLothar Waßmann <LW@KARO-electronics.de>
Wed, 29 May 2013 08:23:54 +0000 (10:23 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 29 May 2013 08:23:54 +0000 (10:23 +0200)
arch/arm/cpu/armv7/am33xx/board.c

index e711f0bf4a239ee45c24227b5ead7442e4338bd9..d83c7d50306020bedf6227edf1ef8e672cfac2d5 100644 (file)
@@ -97,6 +97,14 @@ void hw_watchdog_reset(void)
 }
 #endif
 
+#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_OMAP_HSMMC) && !defined(CONFIG_SPL_BUILD)
 int cpu_mmc_init(bd_t *bis)
 {