diff options
Diffstat (limited to 'arch/arm/mach-s3c2410/s3c2410.c')
-rw-r--r-- | arch/arm/mach-s3c2410/s3c2410.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/arm/mach-s3c2410/s3c2410.c b/arch/arm/mach-s3c2410/s3c2410.c index af74927bca14..dad596332c5e 100644 --- a/arch/arm/mach-s3c2410/s3c2410.c +++ b/arch/arm/mach-s3c2410/s3c2410.c | |||
@@ -42,6 +42,7 @@ | |||
42 | #include <plat/clock.h> | 42 | #include <plat/clock.h> |
43 | #include <plat/pll.h> | 43 | #include <plat/pll.h> |
44 | #include <plat/pm.h> | 44 | #include <plat/pm.h> |
45 | #include <plat/watchdog-reset.h> | ||
45 | 46 | ||
46 | #include <plat/gpio-core.h> | 47 | #include <plat/gpio-core.h> |
47 | #include <plat/gpio-cfg.h> | 48 | #include <plat/gpio-cfg.h> |
@@ -189,3 +190,15 @@ int __init s3c2410a_init(void) | |||
189 | s3c2410_sysdev.cls = &s3c2410a_sysclass; | 190 | s3c2410_sysdev.cls = &s3c2410a_sysclass; |
190 | return s3c2410_init(); | 191 | return s3c2410_init(); |
191 | } | 192 | } |
193 | |||
194 | void s3c2410_restart(char mode, const char *cmd) | ||
195 | { | ||
196 | if (mode == 's') { | ||
197 | soft_restart(0); | ||
198 | } | ||
199 | |||
200 | arch_wdt_reset(); | ||
201 | |||
202 | /* we'll take a jump through zero as a poor second */ | ||
203 | soft_restart(0); | ||
204 | } | ||