diff options
Diffstat (limited to 'arch/arm/mach-s3c64xx/common.c')
-rw-r--r-- | arch/arm/mach-s3c64xx/common.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/mach-s3c64xx/common.c b/arch/arm/mach-s3c64xx/common.c index 8ae5b16cc4f5..35182ba049da 100644 --- a/arch/arm/mach-s3c64xx/common.c +++ b/arch/arm/mach-s3c64xx/common.c | |||
@@ -44,6 +44,7 @@ | |||
44 | #include <plat/irq-vic-timer.h> | 44 | #include <plat/irq-vic-timer.h> |
45 | #include <plat/regs-irqtype.h> | 45 | #include <plat/regs-irqtype.h> |
46 | #include <plat/regs-serial.h> | 46 | #include <plat/regs-serial.h> |
47 | #include <plat/watchdog-reset.h> | ||
47 | 48 | ||
48 | #include "common.h" | 49 | #include "common.h" |
49 | 50 | ||
@@ -373,3 +374,12 @@ static int __init s3c64xx_init_irq_eint(void) | |||
373 | return 0; | 374 | return 0; |
374 | } | 375 | } |
375 | arch_initcall(s3c64xx_init_irq_eint); | 376 | arch_initcall(s3c64xx_init_irq_eint); |
377 | |||
378 | void s3c64xx_restart(char mode, const char *cmd) | ||
379 | { | ||
380 | if (mode != 's') | ||
381 | arch_wdt_reset(); | ||
382 | |||
383 | /* if all else fails, or mode was for soft, jump to 0 */ | ||
384 | soft_restart(0); | ||
385 | } | ||