Don't cache flash.

This commit is contained in:
Eric Norum
2005-02-14 22:05:04 +00:00
parent 995e19f595
commit 059c95ed54
2 changed files with 5 additions and 5 deletions

View File

@@ -1,3 +1,7 @@
2005-02-14 Eric Norum <norume@aps.anl.gov>
* startup/bspstart.c: Don't cache flash -- it messes up programming.
2005-02-04 Ralf Corsepius <ralf.corsepius@rtems.org>
* console/console.c, include/bsp.h, network/network.c,

View File

@@ -199,17 +199,13 @@ void bsp_start( void )
m68k_set_cacr(MCF5XXX_CACR_CINV);
/*
* Cache SDRAM and FLASH
* Cache SDRAM
*/
m68k_set_acr0(MCF5XXX_ACR_AB((uint32_t)_RamBase) |
MCF5XXX_ACR_AM((uint32_t)_RamSize-1) |
MCF5XXX_ACR_EN |
MCF5XXX_ACR_BWE |
MCF5XXX_ACR_SM_IGNORE);
m68k_set_acr1(MCF5XXX_ACR_AB((uint32_t)_FlashBase) |
MCF5XXX_ACR_AM((uint32_t)_FlashSize-1) |
MCF5XXX_ACR_EN |
MCF5XXX_ACR_SM_IGNORE);
/*
* Enable the cache