|
@@ -14,10 +14,17 @@
|
|
|
|
|
|
|
|
#include <plat/watchdog-reset.h>
|
|
#include <plat/watchdog-reset.h>
|
|
|
|
|
|
|
|
|
|
+void (*s5p_reset_hook)(void);
|
|
|
|
|
+
|
|
|
static void arch_reset(char mode, const char *cmd)
|
|
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();
|
|
arch_wdt_reset();
|