summaryrefslogtreecommitdiff
path: root/cpu/mcf532x/cpu_init.c
diff options
context:
space:
mode:
authorTsiChung <tcliew@Goku.(none)>2007-07-10 15:45:43 -0500
committerJohn Rigby <jrigby@freescale.com>2007-07-10 14:29:10 -0600
commit0dca874db62718e41253659e60f3a1de7eb418ce (patch)
tree358165147025f019ff3b71149749b46dd44fd717 /cpu/mcf532x/cpu_init.c
parent52b017604a8f4d4a795880ef6e7861d7f2f1b005 (diff)
downloadu-boot-imx-0dca874db62718e41253659e60f3a1de7eb418ce.zip
u-boot-imx-0dca874db62718e41253659e60f3a1de7eb418ce.tar.gz
u-boot-imx-0dca874db62718e41253659e60f3a1de7eb418ce.tar.bz2
Cache update and added CFG_UNIFY_CACHE
Enabled cache in cpu_init_f() for faster flash to mem allocation. Updated cache handling in start.S. Applied cache invalidate in fec_send() and fec_recv(). Added CFG_UNIFY_CACHE for CF V3 only. Signed-off-by: TsiChung <tcliew@Goku.(none)>
Diffstat (limited to 'cpu/mcf532x/cpu_init.c')
-rw-r--r--cpu/mcf532x/cpu_init.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpu/mcf532x/cpu_init.c b/cpu/mcf532x/cpu_init.c
index b056fbe..32711a1 100644
--- a/cpu/mcf532x/cpu_init.c
+++ b/cpu/mcf532x/cpu_init.c
@@ -113,6 +113,8 @@ void cpu_init_f(void)
fbcs->cscr5 = CFG_CS5_CTRL;
fbcs->csmr5 = CFG_CS5_MASK;
#endif
+
+ icache_enable();
}
/*
@@ -120,6 +122,5 @@ void cpu_init_f(void)
*/
int cpu_init_r(void)
{
- icache_enable();
return (0);
}