All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/7] Colfdfire MCF5282: enable icache if CONFIG_SYS_ENABLE_ICACHE is defined
@ 2010-04-08  0:00 David Wu
  0 siblings, 0 replies; only message in thread
From: David Wu @ 2010-04-08  0:00 UTC (permalink / raw)
  To: u-boot


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

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
  }

  /*
-- 
1.5.6

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2010-04-08  0:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-08  0:00 [U-Boot] [PATCH 1/7] Colfdfire MCF5282: enable icache if CONFIG_SYS_ENABLE_ICACHE is defined David Wu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.