summaryrefslogtreecommitdiff
path: root/lib_ppc
diff options
context:
space:
mode:
authorHeiko Schocher <hs@denx.de>2009-03-12 07:37:15 +0100
committerWolfgang Denk <wd@denx.de>2009-03-18 20:48:29 +0100
commit506f391888b82d1b83bdd749c3cea9eb2fd64df8 (patch)
tree4bdebce633040d272570c03126a1ad31a2956a75 /lib_ppc
parentcabf7b9c83bd780a5805ddbb4c0ce431d5b9f9f3 (diff)
downloadu-boot-imx-506f391888b82d1b83bdd749c3cea9eb2fd64df8.zip
u-boot-imx-506f391888b82d1b83bdd749c3cea9eb2fd64df8.tar.gz
u-boot-imx-506f391888b82d1b83bdd749c3cea9eb2fd64df8.tar.bz2
8xx, icache: enabling ICache not before running from RAM
with the new CONFIG_SYS_DELAYED_ICACHE config option, ICache is not enabled before code runs from RAM. Signed-off-by: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'lib_ppc')
-rw-r--r--lib_ppc/board.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib_ppc/board.c b/lib_ppc/board.c
index 6d29303..f69c5f4 100644
--- a/lib_ppc/board.c
+++ b/lib_ppc/board.c
@@ -736,8 +736,7 @@ void board_init_r (gd_t *id, ulong dest_addr)
WATCHDOG_RESET();
-#if defined(CONFIG_IP860) || defined(CONFIG_PCU_E) || \
- defined (CONFIG_FLAGADM) || defined(CONFIG_MPC83XX)
+#if defined(CONFIG_SYS_DELAYED_ICACHE) || defined(CONFIG_MPC83XX)
icache_enable (); /* it's time to enable the instruction cache */
#endif