diff options
Diffstat (limited to 'include/asm-m68knommu/mcfcache.h')
-rw-r--r-- | include/asm-m68knommu/mcfcache.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/include/asm-m68knommu/mcfcache.h b/include/asm-m68knommu/mcfcache.h index 9cb401421835..7b61a8a529f5 100644 --- a/include/asm-m68knommu/mcfcache.h +++ b/include/asm-m68knommu/mcfcache.h | |||
@@ -11,7 +11,6 @@ | |||
11 | #define __M68KNOMMU_MCFCACHE_H | 11 | #define __M68KNOMMU_MCFCACHE_H |
12 | /****************************************************************************/ | 12 | /****************************************************************************/ |
13 | 13 | ||
14 | #include <linux/config.h> | ||
15 | 14 | ||
16 | /* | 15 | /* |
17 | * The different ColdFire families have different cache arrangments. | 16 | * The different ColdFire families have different cache arrangments. |
@@ -93,6 +92,21 @@ | |||
93 | .endm | 92 | .endm |
94 | #endif /* CONFIG_M5249 || CONFIG_M5307 */ | 93 | #endif /* CONFIG_M5249 || CONFIG_M5307 */ |
95 | 94 | ||
95 | #if defined(CONFIG_M532x) | ||
96 | .macro CACHE_ENABLE | ||
97 | movel #0x01000000,%d0 /* invalidate cache cmd */ | ||
98 | movec %d0,%CACR /* do invalidate cache */ | ||
99 | nop | ||
100 | movel #0x4001C000,%d0 /* set SDRAM cached (write-thru) */ | ||
101 | movec %d0,%ACR0 | ||
102 | movel #0x00000000,%d0 /* no other regions cached */ | ||
103 | movec %d0,%ACR1 | ||
104 | movel #0x80000200,%d0 /* setup cache mask */ | ||
105 | movec %d0,%CACR /* enable cache */ | ||
106 | nop | ||
107 | .endm | ||
108 | #endif /* CONFIG_M532x */ | ||
109 | |||
96 | #if defined(CONFIG_M5407) | 110 | #if defined(CONFIG_M5407) |
97 | /* | 111 | /* |
98 | * Version 4 cores have a true harvard style separate instruction | 112 | * Version 4 cores have a true harvard style separate instruction |