public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: David Wu <davidwu@arcturusnetworks.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/6] Colfdfire MCF5282: enable icache if CONFIG_SYS_ENABLE_ICACHE is defined
Date: Fri, 09 Apr 2010 11:11:45 -0400	[thread overview]
Message-ID: <op.vawhtvs7qigx4y@cyprus.local> (raw)


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

                 reply	other threads:[~2010-04-09 15:11 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=op.vawhtvs7qigx4y@cyprus.local \
    --to=davidwu@arcturusnetworks.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox