diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-10-07 08:06:10 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-10-07 08:06:10 -0400 |
| commit | 7cb9cf0224efd6d41b2bdd9bfb412b42aa4281f8 (patch) | |
| tree | d4be181ecdf4e5eba7bc3b83e08b34678d9dbe84 | |
| parent | dc92b1f9ab1e1665dbbc56911782358e7f9a49f9 (diff) | |
| parent | a255172895b35d7c9271a44b25700a7b3f1558b1 (diff) | |
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu
Pull m68knommu arch updates from Greg Ungerer:
"Most of it is a cleanup of the ColdFire hardware header files. We
have had a few occurrances of bugs caused by inconsistent definitions
of peripheral addresses. These patches make them all consistent, and
also clean out a bunch of old crap. Overall we remove about 1000
lines."
* 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu: (27 commits)
m68knommu: fix inconsistent formating in ColdFire 5407 definitions
m68knommu: fix inconsistent formating in ColdFire 5307 definitions
m68knommu: fix inconsistent formating in ColdFire 527x definitions
m68knommu: fix inconsistent formating in ColdFire 5272 definitions
m68knommu: fix inconsistent formating in ColdFire 523x definitions
m68knommu: clean up ColdFire 54xx General Timer definitions
m68knommu: clean up Pin Assignment definitions for the 54xx ColdFire CPU
m68knommu: fix multi-function pin setup for FEC module on ColdFire 523x
m68knommu: move ColdFire slice timer address defiens to 54xx header
m68knommu: use read/write IO access functions in ColdFire m532x setup code
m68knommu: modify ColdFire 532x GPIO register definitions to be consistent
m68knommu: remove a lot of unsed definitions for 532x ColdFire
m68knommu: use definitions for the ColdFire 528x FEC multi-function pins
m68knommu: remove address offsets relative to IPSBAR for ColdFire 527x
m68knommu: remove unused ColdFire 5282 register definitions
m68knommu: fix wrong register offsets used for ColdFire 5272 multi-function pins
m68knommu: make ColdFire 5249 MBAR2 register definitions absolute addresses
m68knommu: make remaining ColdFire 5272 register definitions absolute addresses
m68knommu: make ColdFire Park and Assignment register definitions absolute addresses
m68knommu: make ColdFire Chip Select register definitions absolute addresses
...
35 files changed, 702 insertions, 1778 deletions
diff --git a/arch/m68k/include/asm/cacheflush_no.h b/arch/m68k/include/asm/cacheflush_no.h index 7cafb537d03c..d2b3935ae147 100644 --- a/arch/m68k/include/asm/cacheflush_no.h +++ b/arch/m68k/include/asm/cacheflush_no.h | |||
| @@ -34,10 +34,9 @@ static inline void __clear_cache_all(void) | |||
| 34 | { | 34 | { |
| 35 | #ifdef CACHE_INVALIDATE | 35 | #ifdef CACHE_INVALIDATE |
| 36 | __asm__ __volatile__ ( | 36 | __asm__ __volatile__ ( |
| 37 | "movel %0, %%d0\n\t" | 37 | "movec %0, %%CACR\n\t" |
| 38 | "movec %%d0, %%CACR\n\t" | ||
| 39 | "nop\n\t" | 38 | "nop\n\t" |
| 40 | : : "i" (CACHE_INVALIDATE) : "d0" ); | 39 | : : "r" (CACHE_INVALIDATE) ); |
| 41 | #endif | 40 | #endif |
| 42 | } | 41 | } |
| 43 | 42 | ||
| @@ -58,10 +57,9 @@ static inline void __flush_icache_all(void) | |||
| 58 | { | 57 | { |
| 59 | #ifdef CACHE_INVALIDATEI | 58 | #ifdef CACHE_INVALIDATEI |
| 60 | __asm__ __volatile__ ( | 59 | __asm__ __volatile__ ( |
| 61 | "movel %0, %%d0\n\t" | 60 | "movec %0, %%CACR\n\t" |
| 62 | "movec %%d0, %%CACR\n\t" | ||
| 63 | "nop\n\t" | 61 | "nop\n\t" |
| 64 | : : "i" (CACHE_INVALIDATEI) : "d0" ); | 62 | : : "r" (CACHE_INVALIDATEI) ); |
| 65 | #endif | 63 | #endif |
| 66 | } | 64 | } |
| 67 | 65 | ||
| @@ -72,19 +70,18 @@ static inline void __flush_dcache_all(void) | |||
| 72 | #endif | 70 | #endif |
| 73 | #ifdef CACHE_INVALIDATED | 71 | #ifdef CACHE_INVALIDATED |
| 74 | __asm__ __volatile__ ( | 72 | __asm__ __volatile__ ( |
| 75 | "movel %0, %%d0\n\t" | 73 | "movec %0, %%CACR\n\t" |
| 76 | "movec %%d0, %%CACR\n\t" | ||
| 77 | "nop\n\t" | 74 | "nop\n\t" |
| 78 | : : "i" (CACHE_INVALIDATED) : "d0" ); | 75 | : : "r" (CACHE_INVALIDATED) ); |
| 79 | #else | 76 | #else |
| 80 | /* Flush the wrtite buffer */ | 77 | /* Flush the write buffer */ |
| 81 | __asm__ __volatile__ ( "nop" ); | 78 | __asm__ __volatile__ ( "nop" ); |
| 82 | #endif | 79 | #endif |
| 83 | } | 80 | } |
| 84 | 81 | ||
| 85 | /* | 82 | /* |
| 86 | * Push cache entries at supplied address. We want to write back any dirty | 83 | * Push cache entries at supplied address. We want to write back any dirty |
| 87 | * data and the invalidate the cache lines associated with this address. | 84 | * data and then invalidate the cache lines associated with this address. |
| 88 | */ | 85 | */ |
| 89 | static inline void cache_push(unsigned long paddr, int len) | 86 | static inline void cache_push(unsigned long paddr, int len) |
| 90 | { | 87 | { |
diff --git a/arch/m68k/include/asm/m5206sim.h b/arch/m68k/include/asm/m5206sim.h index 69722366b084..4cf864f5ea7a 100644 --- a/arch/m68k/include/asm/m5206sim.h +++ b/arch/m68k/include/asm/m5206sim.h | |||
| @@ -21,33 +21,33 @@ | |||
| 21 | /* | 21 | /* |
| 22 | * Define the 5206 SIM register set addresses. | 22 | * Define the 5206 SIM register set addresses. |
| 23 | */ | 23 | */ |
| 24 | #define MCFSIM_SIMR 0x03 /* SIM Config reg (r/w) */ | 24 | #define MCFSIM_SIMR (MCF_MBAR + 0x03) /* SIM Config reg */ |
| 25 | #define MCFSIM_ICR1 0x14 /* Intr Ctrl reg 1 (r/w) */ | 25 | #define MCFSIM_ICR1 (MCF_MBAR + 0x14) /* Intr Ctrl reg 1 */ |
| 26 | #define MCFSIM_ICR2 0x15 /* Intr Ctrl reg 2 (r/w) */ | 26 | #define MCFSIM_ICR2 (MCF_MBAR + 0x15) /* Intr Ctrl reg 2 */ |
| 27 | #define MCFSIM_ICR3 0x16 /* Intr Ctrl reg 3 (r/w) */ | 27 | #define MCFSIM_ICR3 (MCF_MBAR + 0x16) /* Intr Ctrl reg 3 */ |
| 28 | #define MCFSIM_ICR4 0x17 /* Intr Ctrl reg 4 (r/w) */ | 28 | #define MCFSIM_ICR4 (MCF_MBAR + 0x17) /* Intr Ctrl reg 4 */ |
| 29 | #define MCFSIM_ICR5 0x18 /* Intr Ctrl reg 5 (r/w) */ | 29 | #define MCFSIM_ICR5 (MCF_MBAR + 0x18) /* Intr Ctrl reg 5 */ |
| 30 | #define MCFSIM_ICR6 0x19 /* Intr Ctrl reg 6 (r/w) */ | 30 | #define MCFSIM_ICR6 (MCF_MBAR + 0x19) /* Intr Ctrl reg 6 */ |
| 31 | #define MCFSIM_ICR7 0x1a /* Intr Ctrl reg 7 (r/w) */ | 31 | #define MCFSIM_ICR7 (MCF_MBAR + 0x1a) /* Intr Ctrl reg 7 */ |
| 32 | #define MCFSIM_ICR8 0x1b /* Intr Ctrl reg 8 (r/w) */ | 32 | #define MCFSIM_ICR8 (MCF_MBAR + 0x1b) /* Intr Ctrl reg 8 */ |
| 33 | #define MCFSIM_ICR9 0x1c /* Intr Ctrl reg 9 (r/w) */ | 33 | #define MCFSIM_ICR9 (MCF_MBAR + 0x1c) /* Intr Ctrl reg 9 */ |
| 34 | #define MCFSIM_ICR10 0x1d /* Intr Ctrl reg 10 (r/w) */ | 34 | #define MCFSIM_ICR10 (MCF_MBAR + 0x1d) /* Intr Ctrl reg 10 */ |
| 35 | #define MCFSIM_ICR11 0x1e /* Intr Ctrl reg 11 (r/w) */ | 35 | #define MCFSIM_ICR11 (MCF_MBAR + 0x1e) /* Intr Ctrl reg 11 */ |
| 36 | #define MCFSIM_ICR12 0x1f /* Intr Ctrl reg 12 (r/w) */ | 36 | #define MCFSIM_ICR12 (MCF_MBAR + 0x1f) /* Intr Ctrl reg 12 */ |
| 37 | #define MCFSIM_ICR13 0x20 /* Intr Ctrl reg 13 (r/w) */ | 37 | #define MCFSIM_ICR13 (MCF_MBAR + 0x20) /* Intr Ctrl reg 13 */ |
| 38 | #ifdef CONFIG_M5206e | 38 | #ifdef CONFIG_M5206e |
| 39 | #define MCFSIM_ICR14 0x21 /* Intr Ctrl reg 14 (r/w) */ | 39 | #define MCFSIM_ICR14 (MCF_MBAR + 0x21) /* Intr Ctrl reg 14 */ |
| 40 | #define MCFSIM_ICR15 0x22 /* Intr Ctrl reg 15 (r/w) */ | 40 | #define MCFSIM_ICR15 (MCF_MBAR + 0x22) /* Intr Ctrl reg 15 */ |
| 41 | #endif | 41 | #endif |
| 42 | 42 | ||
| 43 | #define MCFSIM_IMR 0x36 /* Interrupt Mask reg (r/w) */ | 43 | #define MCFSIM_IMR (MCF_MBAR + 0x36) /* Interrupt Mask */ |
| 44 | #define MCFSIM_IPR 0x3a /* Interrupt Pend reg (r/w) */ | 44 | #define MCFSIM_IPR (MCF_MBAR + 0x3a) /* Interrupt Pending */ |
| 45 | 45 | ||
| 46 | #define MCFSIM_RSR 0x40 /* Reset Status reg (r/w) */ | 46 | #define MCFSIM_RSR (MCF_MBAR + 0x40) /* Reset Status */ |
| 47 | #define MCFSIM_SYPCR 0x41 /* System Protection reg (r/w)*/ | 47 | #define MCFSIM_SYPCR (MCF_MBAR + 0x41) /* System Protection */ |
| 48 | 48 | ||
| 49 | #define MCFSIM_SWIVR 0x42 /* SW Watchdog intr reg (r/w) */ | 49 | #define MCFSIM_SWIVR (MCF_MBAR + 0x42) /* SW Watchdog intr */ |
| 50 | #define MCFSIM_SWSR 0x43 /* SW Watchdog service (r/w) */ | 50 | #define MCFSIM_SWSR (MCF_MBAR + 0x43) /* SW Watchdog srv */ |
| 51 | 51 | ||
| 52 | #define MCFSIM_DCRR (MCF_MBAR + 0x46) /* DRAM Refresh reg (r/w) */ | 52 | #define MCFSIM_DCRR (MCF_MBAR + 0x46) /* DRAM Refresh reg (r/w) */ |
