projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b3541c1
)
i.MX28: Enable caches by default
author
Marek Vasut
<marex@denx.de>
Thu, 15 Mar 2012 18:33:23 +0000
(18:33 +0000)
committer
Albert ARIBAUD
<albert.u.boot@aribaud.net>
Thu, 29 Mar 2012 05:57:08 +0000
(07:57 +0200)
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Stefano Babic <sbabic@denx.de>
arch/arm/cpu/arm926ejs/mx28/mx28.c
patch
|
blob
|
history
diff --git
a/arch/arm/cpu/arm926ejs/mx28/mx28.c
b/arch/arm/cpu/arm926ejs/mx28/mx28.c
index 9bfd83bab97c2ec1849c81575d43aaceb3769118..cf6d4e9bd46aa9260e85ee040992b03dc5ceb49c 100644
(file)
--- a/
arch/arm/cpu/arm926ejs/mx28/mx28.c
+++ b/
arch/arm/cpu/arm926ejs/mx28/mx28.c
@@
-63,6
+63,16
@@
void reset_cpu(ulong ignored)
;
}
+void enable_caches(void)
+{
+#ifndef CONFIG_SYS_ICACHE_OFF
+ icache_enable();
+#endif
+#ifndef CONFIG_SYS_DCACHE_OFF
+ dcache_enable();
+#endif
+}
+
int mx28_wait_mask_set(struct mx28_register_32 *reg, uint32_t mask, int timeout)
{
while (--timeout) {