projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
armv7: adapt omap4 to the new cache maintenance framework
[platform/kernel/u-boot.git]
/
arch
/
arm
/
cpu
/
armv7
/
omap4
/
board.c
diff --git
a/arch/arm/cpu/armv7/omap4/board.c
b/arch/arm/cpu/armv7/omap4/board.c
index
fcd29a7
..
de4cc2a
100644
(file)
--- a/
arch/arm/cpu/armv7/omap4/board.c
+++ b/
arch/arm/cpu/armv7/omap4/board.c
@@
-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