]> git.sur5r.net Git - u-boot/commitdiff
omap: enable caches at system start-up
authorAneesh V <aneesh@ti.com>
Thu, 11 Aug 2011 04:35:43 +0000 (04:35 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Sun, 4 Sep 2011 09:36:16 +0000 (11:36 +0200)
Signed-off-by: Aneesh V <aneesh@ti.com>
arch/arm/cpu/armv7/omap3/board.c
arch/arm/cpu/armv7/omap4/board.c

index bce3ee695f6f60b4c61f08a0c2bfb186a4bdb918..0448bc93ffc442fd4983f5a4f1714e44c20f9545 100644 (file)
@@ -402,3 +402,11 @@ void v7_outer_cache_disable(void)
        omap3_update_aux_cr(0, 0x2);
 }
 #endif
+
+#ifndef CONFIG_SYS_DCACHE_OFF
+void enable_caches(void)
+{
+       /* Enable D-cache. I-cache is already enabled in start.S */
+       dcache_enable();
+}
+#endif
index 8e9054594d25a63803b4619116300cdd4bfb2de8..69a0ce5513f71c6b6fc30b38d76b5240730b1b46 100644 (file)
@@ -299,3 +299,11 @@ void v7_outer_cache_disable(void)
        set_pl310_ctrl_reg(0);
 }
 #endif
+
+#ifndef CONFIG_SYS_DCACHE_OFF
+void enable_caches(void)
+{
+       /* Enable D-cache. I-cache is already enabled in start.S */
+       dcache_enable();
+}
+#endif