Skip to contentSkip to conversation

Colfdfire MCF5282: enable icache if CONFIG_SYS_ENABLE_ICACHE is defined

PATCH New David Wu 1 participant 1 message Apr 9, 2010

lore
Share & tools
lore

David Wu

author
#0 lore raw

PATCH 1/6 Colfdfire MCF5282: enable icache if CONFIG_SYS_ENABLE_ICACHE is defined

---
    cpu/mcf52x2/cpu_init.c |    6 ++++--
    1 files changed, 4 insertions(+), 2 deletions(-)
cpu/mcf52x2/cpu_init.c +4 -2
index 170bbfc..36f62cc 100644
@@ -621,8 +621,10 @@ void cpu_init_f(void)
 
    #endif				/* CONFIG_MONITOR_IS_IN_RAM */
 
-	/* defer enabling cache until boot (see do_go) */
-	/* icache_enable(); */
+#if defined(CONFIG_SYS_ENABLE_ICACHE)
+	/* enable instruction cache */
+	icache_enable();
+#endif
    }
 
    /*
Signature · 1 line
1.5.6