summaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-s5p/include/plat/system-reset.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/plat-s5p/include/plat/system-reset.h')
-rw-r--r--arch/arm/plat-s5p/include/plat/system-reset.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/arch/arm/plat-s5p/include/plat/system-reset.h b/arch/arm/plat-s5p/include/plat/system-reset.h
index 7f76a164c20..f307f34e642 100644
--- a/arch/arm/plat-s5p/include/plat/system-reset.h
+++ b/arch/arm/plat-s5p/include/plat/system-reset.h
@@ -14,10 +14,17 @@
#include <plat/watchdog-reset.h>
+void (*s5p_reset_hook)(void);
+
static void arch_reset(char mode, const char *cmd)
{
- /* Perform reset using Watchdog reset.
- * SWRESET support will be added later.
+ /* SWRESET support in s5p_reset_hook() */
+
+ if (s5p_reset_hook)
+ s5p_reset_hook();
+
+ /* Perform reset using Watchdog reset
+ * if there is no s5p_reset_hook()
*/
arch_wdt_reset();