tizen 2.4 release
[profile/mobile/platform/kernel/u-boot-tm1.git] / arch / arm / cpu / armv7 / sc9630 / watchdog.c
1 #include <config.h>
2 #include <asm/io.h>
3 #include <asm/arch/chip_drv_config_extern.h>
4 #include <asm/arch/bits.h>
5 #include <linux/types.h>
6
7 void start_watchdog(uint32_t init_time_ms)
8 {
9         WDG_ClockOn();
10     WDG_ResetMCU();
11 }
12
13 void stop_watchdog(void)
14 {
15     WDG_TimerStop();
16         
17 }
18
19 void init_watchdog(void)
20 {
21     WDG_TimerInit();
22 }
23
24 void feed_watchdog(void)
25 {
26 }
27
28 void load_watchdog(uint32_t time_ms)
29 {
30     WDG_TimerLoad(time_ms);
31 }
32
33 void hw_watchdog_reset(void)
34 {
35
36 }
37
38 int hw_watchdog_rst_pending(void)
39 {
40     WDG_ClockOn();
41         return WDG_PHY_RST_INT_ON();
42 }
43
44 int fatal_dump_enabled(void)
45 {
46         return *(volatile u32 *) (0x1ffc);
47 }
48