aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/plat-samsung/include/plat/watchdog-reset.h
diff options
context:
space:
mode:
authorTomasz Figa <tomasz.figa@gmail.com>2013-06-17 23:45:33 +0900
committerKukjin Kim <kgene.kim@samsung.com>2013-06-19 03:13:16 +0900
commita4658e57a7a1bc8d6b54c29c051426ea838fd6d7 (patch)
tree21d7f0ff1454662f9d9ff45aa0b5393983390d3b /arch/arm/plat-samsung/include/plat/watchdog-reset.h
parentfa26c71aaf14c7aa46f02fb85b1ee58b4081d4d3 (diff)
ARM: SAMSUNG: Add watchdog reset driver
This patch adds a watchdog reset driver that can be used on Samsung SoCs that do not provide dedicated reset method. It replaces the legacy helper function that relies on static IO mapping. Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com> Tested-by: Sylwester Nawrocki <sylvester.nawrocki@gmail.com> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm/plat-samsung/include/plat/watchdog-reset.h')
-rw-r--r--arch/arm/plat-samsung/include/plat/watchdog-reset.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/plat-samsung/include/plat/watchdog-reset.h b/arch/arm/plat-samsung/include/plat/watchdog-reset.h
index bc4db9b04e3..31a05720a00 100644
--- a/arch/arm/plat-samsung/include/plat/watchdog-reset.h
+++ b/arch/arm/plat-samsung/include/plat/watchdog-reset.h
@@ -10,6 +10,9 @@
* published by the Free Software Foundation.
*/
+#ifndef __PLAT_SAMSUNG_WATCHDOG_RESET_H
+#define __PLAT_SAMSUNG_WATCHDOG_RESET_H
+
#include <plat/clock.h>
#include <plat/regs-watchdog.h>
#include <mach/map.h>
@@ -44,3 +47,9 @@ static inline void arch_wdt_reset(void)
/* delay to allow the serial port to show the message */
mdelay(50);
}
+
+extern void samsung_wdt_reset(void);
+extern void samsung_wdt_reset_of_init(void);
+extern void samsung_wdt_reset_init(void __iomem *base);
+
+#endif /* __PLAT_SAMSUNG_WATCHDOG_RESET_H */