diff options
Diffstat (limited to 'include/asm-m68knommu')
-rw-r--r-- | include/asm-m68knommu/system.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/asm-m68knommu/system.h b/include/asm-m68knommu/system.h index 53cbbad0f130..6338afc850ba 100644 --- a/include/asm-m68knommu/system.h +++ b/include/asm-m68knommu/system.h | |||
@@ -312,6 +312,19 @@ cmpxchg(volatile int *p, int old, int new) | |||
312 | moveb #0x80, (%a0); \ | 312 | moveb #0x80, (%a0); \ |
313 | "); \ | 313 | "); \ |
314 | }) | 314 | }) |
315 | #elif defined(CONFIG_M520x) | ||
316 | /* | ||
317 | * The MCF5208 has a bit (SOFTRST) in memory (Reset Control Register | ||
318 | * RCR), that when set, resets the MCF5208. | ||
319 | */ | ||
320 | #define HARD_RESET_NOW() \ | ||
321 | ({ \ | ||
322 | unsigned char volatile *reset; \ | ||
323 | asm("move.w #0x2700, %sr"); \ | ||
324 | reset = ((volatile unsigned short *)(MCF_IPSBAR + 0xA0000)); \ | ||
325 | while(1) \ | ||
326 | *reset |= 0x80; \ | ||
327 | }) | ||
315 | #else | 328 | #else |
316 | #define HARD_RESET_NOW() ({ \ | 329 | #define HARD_RESET_NOW() ({ \ |
317 | asm(" \ | 330 | asm(" \ |