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
pxa: add support for D- and I- caches
[platform/kernel/u-boot.git]
/
arch
/
arm
/
cpu
/
pxa
/
pxa2xx.c
diff --git
a/arch/arm/cpu/pxa/pxa2xx.c
b/arch/arm/cpu/pxa/pxa2xx.c
index
2f12fb9
..
77f0ef2
100644
(file)
--- a/
arch/arm/cpu/pxa/pxa2xx.c
+++ b/
arch/arm/cpu/pxa/pxa2xx.c
@@
-284,3
+284,13
@@
void reset_cpu(ulong ignored)
for (;;)
;
}
+
+void enable_caches(void)
+{
+#ifndef CONFIG_SYS_ICACHE_OFF
+ icache_enable();
+#endif
+#ifndef CONFIG_SYS_DCACHE_OFF
+ dcache_enable();
+#endif
+}