armv7: adapt omap4 to the new cache maintenance framework
[platform/kernel/u-boot.git] / arch / arm / cpu / armv7 / omap4 / board.c
index fcd29a7..de4cc2a 100644 (file)
@@ -127,3 +127,15 @@ int arch_cpu_init(void)
        set_muxconf_regs();
        return 0;
 }
+
+#ifndef CONFIG_SYS_L2CACHE_OFF
+void v7_outer_cache_enable(void)
+{
+       set_pl310_ctrl_reg(1);
+}
+
+void v7_outer_cache_disable(void)
+{
+       set_pl310_ctrl_reg(0);
+}
+#endif