浏览代码

omap: enable caches at system start-up

Signed-off-by: Aneesh V <aneesh@ti.com>
Aneesh V 13 年之前
父节点
当前提交
13d4f9bd74
共有 2 个文件被更改,包括 16 次插入0 次删除
  1. 8 0
      arch/arm/cpu/armv7/omap3/board.c
  2. 8 0
      arch/arm/cpu/armv7/omap4/board.c

+ 8 - 0
arch/arm/cpu/armv7/omap3/board.c

@@ -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

+ 8 - 0
arch/arm/cpu/armv7/omap4/board.c

@@ -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