From patchwork Thu Apr 8 00:00:19 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Wu X-Patchwork-Id: 71736 X-Patchwork-Delegate: jason.jin@freescale.com Return-Path: X-Original-To: wd@gemini.denx.de Delivered-To: wd@gemini.denx.de Received: from diddl.denx.de (diddl.denx.de [10.0.0.6]) by gemini.denx.de (Postfix) with ESMTP id 01E691051E75 for ; Thu, 8 Apr 2010 02:11:40 +0200 (CEST) Received: from diddl.denx.de (localhost.localdomain [127.0.0.1]) by diddl.denx.de (Postfix) with ESMTP id E2E96C91311C for ; Thu, 8 Apr 2010 02:11:39 +0200 (CEST) Received: from pop.mnet-online.de by diddl.denx.de with POP3 (fetchmail-6.3.9) for (single-drop); Thu, 08 Apr 2010 02:11:39 +0200 (CEST) Received: from murder (svr19.m-online.net [192.168.3.147]) by backend2 (Cyrus v2.2.12) with LMTPA; Thu, 08 Apr 2010 02:10:43 +0200 X-Sieve: CMU Sieve 2.2 Received: from mail.m-online.net (localhost [127.0.0.1]) by frontend3.pop.m-online.net (Cyrus v2.2.13) with LMTPA; Thu, 08 Apr 2010 02:10:42 +0200 Received: from scanner-2.m-online.net (unknown [192.168.8.166]) by mail.m-online.net (Postfix) with ESMTP id 2D82B200161; Thu, 8 Apr 2010 02:10:42 +0200 (CEST) Received: from mxin-3.m-online.net ([192.168.6.165]) by scanner-2.m-online.net (scanner-2.m-online.net [192.168.8.166]) (amavisd-new, port 10026) with ESMTP id 15249-04-2; Thu, 8 Apr 2010 02:10:40 +0200 (CEST) Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by mxin-3.m-online.net (Postfix) with ESMTP id 2C61946159E; Thu, 8 Apr 2010 02:10:40 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 1AE9228125; Thu, 8 Apr 2010 02:10:17 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qp6UrzUqRa3Y; Thu, 8 Apr 2010 02:10:16 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5AA2E280D6; Thu, 8 Apr 2010 02:09:58 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 1940E280C3 for ; Thu, 8 Apr 2010 02:09:52 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QxAb6dbjygua for ; Thu, 8 Apr 2010 02:09:50 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail.arcturusnetworks.com (mail.arcturusnetworks.com [204.50.165.220]) by theia.denx.de (Postfix) with ESMTP id 0B126280A6 for ; Thu, 8 Apr 2010 02:09:48 +0200 (CEST) Received: from cyprus.local (gw.arcturusgroup.net [204.50.165.202]) by mail.arcturusnetworks.com (Postfix) with ESMTP id 523FB1184CD0 for ; Wed, 7 Apr 2010 20:00:20 -0400 (EDT) To: "u-boot@lists.denx.de" Date: Wed, 07 Apr 2010 20:00:19 -0400 MIME-Version: 1.0 From: "David Wu" Organization: Arcturus Networks Inc. Message-ID: User-Agent: Opera Mail/10.10 (Linux) Subject: [U-Boot] [PATCH 1/7] Colfdfire MCF5282: enable icache if CONFIG_SYS_ENABLE_ICACHE is defined X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.9 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de X-Virus-Scanned: by amavisd-new at m-online.net 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 } /*