From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Wu Date: Fri, 09 Apr 2010 11:11:45 -0400 Subject: [U-Boot] [PATCH 1/6] Colfdfire MCF5282: enable icache if CONFIG_SYS_ENABLE_ICACHE is defined Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Signed-off-by: David Wu --- 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