Patchwork [U-Boot] mx27: add function enable_caches

login
register
mail settings
Submitter trem
Date May 28, 2013, 7:09 p.m.
Message ID <1369768172-19217-1-git-send-email-tremyfr@yahoo.fr>
Download mbox | patch
Permalink /patch/246948/
State Superseded
Delegated to: Stefano Babic
Headers show

Comments

trem - May 28, 2013, 7:09 p.m.
Signed-off-by: Philippe Reynes <tremyfr@yahoo.fr>
---
 arch/arm/cpu/arm926ejs/mx27/generic.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

Patch

diff --git a/arch/arm/cpu/arm926ejs/mx27/generic.c b/arch/arm/cpu/arm926ejs/mx27/generic.c
index 41bb84b..4239fa0 100644
--- a/arch/arm/cpu/arm926ejs/mx27/generic.c
+++ b/arch/arm/cpu/arm926ejs/mx27/generic.c
@@ -380,3 +380,9 @@  void mx27_sd2_init_pins(void)
 
 }
 #endif /* CONFIG_MXC_MMC */
+
+void enable_caches(void)
+{
+	/* Enable D-cache. I-cache is already enabled in start.S */
+	dcache_enable();
+}