wdt_writel(0x0a, RK29_WDT_CR);\r
}\r
\r
-static void rk29_wdt_stop(void)\r
+void rk29_wdt_stop(void)\r
{\r
__rk29_wdt_stop();\r
clk_disable(wdt_clock);\r
}\r
\r
-/* timeout unit us */\r
-static int rk29_wdt_set_heartbeat(int timeout)\r
+/* timeout unit second */\r
+int rk29_wdt_set_heartbeat(int timeout)\r
{\r
unsigned int freq = clk_get_rate(wdt_clock);\r
- unsigned int count;\r
+ unsigned int long count;\r
unsigned int torr = 0;\r
unsigned int acc = 1;\r
\r
if (timeout < 1)\r
return -EINVAL;\r
\r
-// freq /= 1000000;\r
count = timeout * freq;\r
count /= 0x10000;\r
\r
return 0;\r
}\r
\r
-static void rk29_wdt_start(void)\r
+void rk29_wdt_start(void)\r
{\r
unsigned long wtcon;\r
clk_enable(wdt_clock);\r