|
@@ -10,6 +10,7 @@
|
|
* published by the Free Software Foundation.
|
|
* published by the Free Software Foundation.
|
|
*/
|
|
*/
|
|
|
|
|
|
|
|
+#include <plat/clock.h>
|
|
#include <plat/regs-watchdog.h>
|
|
#include <plat/regs-watchdog.h>
|
|
#include <mach/map.h>
|
|
#include <mach/map.h>
|
|
|
|
|
|
@@ -19,17 +20,12 @@
|
|
|
|
|
|
static inline void arch_wdt_reset(void)
|
|
static inline void arch_wdt_reset(void)
|
|
{
|
|
{
|
|
- struct clk *wdtclk;
|
|
|
|
-
|
|
|
|
printk("arch_reset: attempting watchdog reset\n");
|
|
printk("arch_reset: attempting watchdog reset\n");
|
|
|
|
|
|
__raw_writel(0, S3C2410_WTCON); /* disable watchdog, to be safe */
|
|
__raw_writel(0, S3C2410_WTCON); /* disable watchdog, to be safe */
|
|
|
|
|
|
- wdtclk = clk_get(NULL, "watchdog");
|
|
|
|
- if (!IS_ERR(wdtclk)) {
|
|
|
|
- clk_enable(wdtclk);
|
|
|
|
- } else
|
|
|
|
- printk(KERN_WARNING "%s: warning: cannot get watchdog clock\n", __func__);
|
|
|
|
|
|
+ if (s3c2410_wdtclk)
|
|
|
|
+ clk_enable(s3c2410_wdtclk);
|
|
|
|
|
|
/* put initial values into count and data */
|
|
/* put initial values into count and data */
|
|
__raw_writel(0x80, S3C2410_WTCNT);
|
|
__raw_writel(0x80, S3C2410_WTCNT);
|