diff options
author | Ben Dooks <ben-linux@fluff.org> | 2009-05-17 23:40:30 +0100 |
---|---|---|
committer | Ben Dooks <ben-linux@fluff.org> | 2009-05-17 23:40:30 +0100 |
commit | 543899f610799426babb5313682fd9c249e34677 (patch) | |
tree | 3b43c6b04941b6e2464413c396020af913ef65e2 /arch/arm/mach-s3c6400/include/mach/system.h | |
parent | 3cba5ef862bc2c2a0cf2841d993bfb99b9a6c476 (diff) |
[ARM] S3C64XX: Use common watchdog reset for system reset.
Use the newly moved <plat/watchdog-reset.h> to perform the
arch_reset() call which has been unimplemented for a while.
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Diffstat (limited to 'arch/arm/mach-s3c6400/include/mach/system.h')
-rw-r--r-- | arch/arm/mach-s3c6400/include/mach/system.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/arm/mach-s3c6400/include/mach/system.h b/arch/arm/mach-s3c6400/include/mach/system.h index 090cfd969bc..2e58cb7a714 100644 --- a/arch/arm/mach-s3c6400/include/mach/system.h +++ b/arch/arm/mach-s3c6400/include/mach/system.h @@ -11,6 +11,8 @@ #ifndef __ASM_ARCH_SYSTEM_H #define __ASM_ARCH_SYSTEM_H __FILE__ +#include <plat/watchdog-reset.h> + static void arch_idle(void) { /* nothing here yet */ @@ -18,7 +20,11 @@ static void arch_idle(void) static void arch_reset(char mode, const char *cmd) { - /* nothing here yet */ + if (mode != 's') + arch_wdt_reset(); + + /* if all else fails, or mode was for soft, jump to 0 */ + cpu_reset(0); } #endif /* __ASM_ARCH_IRQ_H */ |