Skip to content

Commit

Permalink
m68knommu: fix 528x ColdFire cache settings
Browse files Browse the repository at this point in the history
Fix problems with the 528x ColdFire CPU cache setup.
Do not cache the flash region (if present), and make the runtime
settings consistent with the init setting.

Problems pointed out by Bernd Buttner <[email protected]>

Signed-off-by: Greg Ungerer <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Greg Ungerer authored and torvalds committed Feb 1, 2008
1 parent 9f69ba8 commit b7dcf7f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/asm-m68knommu/cacheflush.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ static inline void __flush_cache_all(void)
#endif /* CONFIG_M5407 */
#if defined(CONFIG_M527x) || defined(CONFIG_M528x)
__asm__ __volatile__ (
"movel #0x81400100, %%d0\n\t"
"movel #0x81000200, %%d0\n\t"
"movec %%d0, %%CACR\n\t"
"nop\n\t"
: : : "d0" );
Expand Down
2 changes: 1 addition & 1 deletion include/asm-m68knommu/mcfcache.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
nop
movel #0x0000c020, %d0 /* Set SDRAM cached only */
movec %d0, %ACR0
movel #0xff00c000, %d0 /* Cache Flash also */
movel #0x00000000, %d0 /* No other regions cached */
movec %d0, %ACR1
movel #0x80000200, %d0 /* Setup cache mask */
movec %d0, %CACR /* Enable cache */
Expand Down

0 comments on commit b7dcf7f

Please sign in to comment.