diff options
author | Greg Ungerer <gerg@snapgear.com> | 2005-11-02 00:03:09 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-02 00:41:20 -0500 |
commit | 4f4ef2967e1e8dce43e9cf7186aeb60a8c33aaf4 (patch) | |
tree | b2a55bdaf01217adeb7fe1f1a8b65f3eae8c3eb8 | |
parent | 7354b62cf799d91e69e38603a139a79df48b23d9 (diff) |
[PATCH] m68knommu: add 5208 ColdFire cache support
Add support for the cpu cache of the 5208 ColdFire fmaily.
Patch originally from Matt Wadell (from code originally written by
Mike Lavender).
Signed-off-by: Greg Ungerer <gerg@uclinux.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r-- | include/asm-m68knommu/mcfcache.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/asm-m68knommu/mcfcache.h b/include/asm-m68knommu/mcfcache.h index b17cd920977f..9cb401421835 100644 --- a/include/asm-m68knommu/mcfcache.h +++ b/include/asm-m68knommu/mcfcache.h | |||
@@ -117,6 +117,20 @@ | |||
117 | .endm | 117 | .endm |
118 | #endif /* CONFIG_M5407 */ | 118 | #endif /* CONFIG_M5407 */ |
119 | 119 | ||
120 | #if defined(CONFIG_M520x) | ||
121 | .macro CACHE_ENABLE | ||
122 | move.l #0x01000000,%d0 /* invalidate whole cache */ | ||
123 | movec %d0,%CACR | ||
124 | nop | ||
125 | move.l #0x0000c000,%d0 /* set SDRAM cached (write-thru) */ | ||
126 | movec %d0,%ACR0 | ||
127 | move.l #0x00000000,%d0 /* no other regions cached */ | ||
128 | movec %d0,%ACR1 | ||
129 | move.l #0x80400000,%d0 /* enable 8K instruction cache */ | ||
130 | movec %d0,%CACR | ||
131 | nop | ||
132 | .endm | ||
133 | #endif /* CONFIG_M520x */ | ||
120 | 134 | ||
121 | /****************************************************************************/ | 135 | /****************************************************************************/ |
122 | #endif /* __M68KNOMMU_MCFCACHE_H */ | 136 | #endif /* __M68KNOMMU_MCFCACHE_H */ |