* [U-Boot] MCF528x cache errata / fix [PATCH]
@ 2010-01-19 20:50 Michael Durrant
2010-01-20 18:34 ` [U-Boot] MCF528x cache errata / fix [PATCH] -- resent in git format Michael Durrant
0 siblings, 1 reply; 2+ messages in thread
From: Michael Durrant @ 2010-01-19 20:50 UTC (permalink / raw)
To: u-boot
Signed-off-by: David Wu <davidwu@arcturusnetworks.com>
Signed-off-by: Michael Durrant <mdurrant@arcturusnetworks.com>
patch created against u-boot-2009.11 release
cpu_mcf52x2_cache.patch
- Setup CACR, bit 5 set to 0 per Freescale chip errata
(MCF5282DE, Rev. 6, 5/2009)
--
Michael Durrant
mdurrant at arcturusnetworks.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cpu_mcf52x2_cache.patch
Type: application/octet-stream
Size: 1276 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20100119/487b97d9/attachment.obj
^ permalink raw reply [flat|nested] 2+ messages in thread
* [U-Boot] MCF528x cache errata / fix [PATCH] -- resent in git format
2010-01-19 20:50 [U-Boot] MCF528x cache errata / fix [PATCH] Michael Durrant
@ 2010-01-20 18:34 ` Michael Durrant
0 siblings, 0 replies; 2+ messages in thread
From: Michael Durrant @ 2010-01-20 18:34 UTC (permalink / raw)
To: u-boot
cpu_mcf52x2_cache.patch
- Setup CACR, bit 5 set to 0 per Freescale chip errata
(MCF5282DE, Rev. 6, 5/2009)
Signed-off-by: David Wu <davidwu@arcturusnetworks.com>
Signed-off-by: Michael Durrant <mdurrant@arcturusnetworks.com>
---
cpu/mcf52x2/cpu_init.c | 6 ++++--
cpu/mcf52x2/start.S | 5 ++++-
2 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/cpu/mcf52x2/cpu_init.c b/cpu/mcf52x2/cpu_init.c
index 5b06930..60b55ce 100644
--- a/cpu/mcf52x2/cpu_init.c
+++ b/cpu/mcf52x2/cpu_init.c
@@ -609,8 +609,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 now */
+ icache_enable();
+#endif
}
/*
diff --git a/cpu/mcf52x2/start.S b/cpu/mcf52x2/start.S
index 0dd4de5..5540c95 100644
--- a/cpu/mcf52x2/start.S
+++ b/cpu/mcf52x2/start.S
@@ -417,7 +417,10 @@ icache_enable:
movec %d0, %ACR0 /* Enable cache */
move.l #0xff00c000, %d0 /* Setup cache mask */
movec %d0, %ACR1 /* Enable cache */
- move.l #0x80400100, %d0 /* Setup cache mask, data cache
disabel*/
+ move.l #0x80400000, %d0 /* Setup cache mask, data cache
disabled,
+ bit 5 set to 0 per chip errata
+ (MCF5282DE, Rev. 6, 5/2009)
+ */
movec %d0, %CACR /* Enable cache */
moveq #1, %d0
icache_state_access_1:
-- 1.4.3.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-01-20 18:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-19 20:50 [U-Boot] MCF528x cache errata / fix [PATCH] Michael Durrant
2010-01-20 18:34 ` [U-Boot] MCF528x cache errata / fix [PATCH] -- resent in git format Michael Durrant
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.