arm: sc8830: remove build warnings
[profile/mobile/platform/kernel/u-boot-tm1.git] / arch / arm / cpu / armv7 / sc8830 / 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 <asm/arch/sci_types.h>
6 #include <linux/types.h>
7
8 extern void WDG_ClockOn(void);
9 extern void WDG_ResetMCU(void);
10 extern void WDG_TimerInit(void);
11 extern void WDG_TimerStop(void);
12 extern void WDG_TimerLoad(uint32 time_ms);
13 extern uint32 WDG_PHY_RST_INT_ON(void);
14
15 void start_watchdog(uint32_t init_time_ms)
16 {
17         WDG_ClockOn();
18     WDG_ResetMCU();
19 }
20
21 void stop_watchdog(void)
22 {
23     WDG_TimerStop();
24         
25 }
26
27 void init_watchdog(void)
28 {
29     WDG_TimerInit();
30 }
31
32 void feed_watchdog(void)
33 {
34 }
35
36 void load_watchdog(uint32_t time_ms)
37 {
38     WDG_TimerLoad(time_ms);
39 }
40
41 void hw_watchdog_reset(void)
42 {
43
44 }
45
46 int hw_watchdog_rst_pending(void)
47 {
48     WDG_ClockOn();
49         return WDG_PHY_RST_INT_ON();
50 }
51
52 int fatal_dump_enabled(void)
53 {
54         return *(volatile u32 *) (0x1ffc);
55 }
56