Patchwork [U-Boot,1/7] Colfdfire MCF5282: enable icache if CONFIG_SYS_ENABLE_ICACHE is defined

login
register
mail settings
Submitter David Wu
Date April 8, 2010, midnight
Message ID <op.vatgytuzqigx4y@cyprus.local>
Download mbox | patch
Permalink /patch/71736/
State Superseded
Delegated to: Jason Jin
Headers show

Comments

David Wu - April 8, 2010, midnight
Signed-off-by: David Wu <davidwu@arcturusnetworks.com>
---
  cpu/mcf52x2/cpu_init.c |    6 ++++--
  1 files changed, 4 insertions(+), 2 deletions(-)

Patch

diff --git a/cpu/mcf52x2/cpu_init.c b/cpu/mcf52x2/cpu_init.c
index 170bbfc..36f62cc 100644
--- a/cpu/mcf52x2/cpu_init.c
+++ b/cpu/mcf52x2/cpu_init.c
@@ -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
  }

  /*