mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
[PATCH] m68knommu: add ColdFire 532x cache init
Add cache init support for the new ColdFire 532x CPU family. Signed-off-by: Greg Ungerer <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
76aa698f33
commit
df8fbe1e7f
1 changed files with 15 additions and 0 deletions
|
|
@ -92,6 +92,21 @@
|
|||
.endm
|
||||
#endif /* CONFIG_M5249 || CONFIG_M5307 */
|
||||
|
||||
#if defined(CONFIG_M532x)
|
||||
.macro CACHE_ENABLE
|
||||
movel #0x01000000,%d0 /* invalidate cache cmd */
|
||||
movec %d0,%CACR /* do invalidate cache */
|
||||
nop
|
||||
movel #0x4001C000,%d0 /* set SDRAM cached (write-thru) */
|
||||
movec %d0,%ACR0
|
||||
movel #0x00000000,%d0 /* no other regions cached */
|
||||
movec %d0,%ACR1
|
||||
movel #0x80000200,%d0 /* setup cache mask */
|
||||
movec %d0,%CACR /* enable cache */
|
||||
nop
|
||||
.endm
|
||||
#endif /* CONFIG_M532x */
|
||||
|
||||
#if defined(CONFIG_M5407)
|
||||
/*
|
||||
* Version 4 cores have a true harvard style separate instruction
|
||||
|
|
|
|||
Loading…
Reference in a new issue