]>
Commit | Line | Data |
---|---|---|
d7f1e82a JL |
1 | /* linux/arch/arm/plat-s5p/include/plat/system-reset.h |
2 | * | |
3 | * Copyright (c) 2010 Samsung Electronics Co., Ltd. | |
4 | * http://www.samsung.com | |
5 | * | |
6 | * Based on arch/arm/mach-s3c2410/include/mach/system-reset.h | |
7 | * | |
8 | * S5P - System define for arch_reset() | |
9 | * | |
10 | * This program is free software; you can redistribute it and/or modify | |
11 | * it under the terms of the GNU General Public License version 2 as | |
12 | * published by the Free Software Foundation. | |
13 | */ | |
14 | ||
15 | #include <plat/watchdog-reset.h> | |
16 | ||
0fdb480e JL |
17 | void (*s5p_reset_hook)(void); |
18 | ||
d7f1e82a JL |
19 | static void arch_reset(char mode, const char *cmd) |
20 | { | |
0fdb480e JL |
21 | /* SWRESET support in s5p_reset_hook() */ |
22 | ||
23 | if (s5p_reset_hook) | |
24 | s5p_reset_hook(); | |
25 | ||
26 | /* Perform reset using Watchdog reset | |
27 | * if there is no s5p_reset_hook() | |
d7f1e82a JL |
28 | */ |
29 | ||
30 | arch_wdt_reset(); | |
31 | } |