summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/m68k/uC5282/startup/bspstart.c
diff options
context:
space:
mode:
authorEric Norum <WENorum@lbl.gov>2009-07-28 19:29:44 +0000
committerEric Norum <WENorum@lbl.gov>2009-07-28 19:29:44 +0000
commit9bfb3c61aa36a7d71024579edfdb9495b5d1bd1f (patch)
treeb30041b7953052f9494e99c6c838e426ed0185e9 /c/src/lib/libbsp/m68k/uC5282/startup/bspstart.c
parentRegenerate. (diff)
downloadrtems-9bfb3c61aa36a7d71024579edfdb9495b5d1bd1f.tar.bz2
PR 1420/bsps
Turn on buffered writes to DRAM. As Device Errata SECF124 notes this may cause double writes, but that's not really a big problem and benchmarking tests have shown that buffered writes do gain some performance.
Diffstat (limited to '')
-rw-r--r--c/src/lib/libbsp/m68k/uC5282/startup/bspstart.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/c/src/lib/libbsp/m68k/uC5282/startup/bspstart.c b/c/src/lib/libbsp/m68k/uC5282/startup/bspstart.c
index 260db55f3f..4dbd9c0470 100644
--- a/c/src/lib/libbsp/m68k/uC5282/startup/bspstart.c
+++ b/c/src/lib/libbsp/m68k/uC5282/startup/bspstart.c
@@ -278,11 +278,16 @@ void bsp_start( void )
/*
* Cache SDRAM
+ * Enable buffered writes
+ * As Device Errata SECF124 notes this may cause double writes,
+ * but that's not really a big problem and benchmarking tests have
+ * shown that buffered writes do gain some performance.
*/
mcf5282_acr0_mode = MCF5XXX_ACR_AB((uint32_t)_RamBase) |
MCF5XXX_ACR_AM((uint32_t)_RamSize-1) |
MCF5XXX_ACR_EN |
- MCF5XXX_ACR_SM_IGNORE;
+ MCF5XXX_ACR_SM_IGNORE |
+ MCF5XXX_ACR_BWE;
m68k_set_acr0(mcf5282_acr0_mode);
/*