summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authortrem <tremyfr@yahoo.fr>2013-06-14 18:21:21 +0200
committerStefano Babic <sbabic@denx.de>2013-06-26 17:34:21 +0200
commit6247c4653b54931a44a0c2789063ac282bd77505 (patch)
tree75e8aa71460e2fffc99ad5ef4b14c9eaaa030d83 /arch
parentc1747970612e36148e7f7a51872c652ed47697f4 (diff)
downloadu-boot-imx-6247c4653b54931a44a0c2789063ac282bd77505.zip
u-boot-imx-6247c4653b54931a44a0c2789063ac282bd77505.tar.gz
u-boot-imx-6247c4653b54931a44a0c2789063ac282bd77505.tar.bz2
mx27: add function enable_caches
Signed-off-by: Philippe Reynes <tremyfr@yahoo.fr>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/cpu/arm926ejs/mx27/generic.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/cpu/arm926ejs/mx27/generic.c b/arch/arm/cpu/arm926ejs/mx27/generic.c
index 41bb84b..bffbadd 100644
--- a/arch/arm/cpu/arm926ejs/mx27/generic.c
+++ b/arch/arm/cpu/arm926ejs/mx27/generic.c
@@ -380,3 +380,11 @@ void mx27_sd2_init_pins(void)
}
#endif /* CONFIG_MXC_MMC */
+
+#ifndef CONFIG_SYS_DCACHE_OFF
+void enable_caches(void)
+{
+ /* Enable D-cache. I-cache is already enabled in start.S */
+ dcache_enable();
+}
+#endif /* CONFIG_SYS_DCACHE_OFF */