bootmode: remove build warnings
[profile/mobile/platform/kernel/u-boot-tm1.git] / property / reboot_mode.c
1 #include <config.h>
2 #include <common.h>
3 #include <linux/types.h>
4 #include <asm/arch/bits.h>
5
6 #include <asm/arch/cmddef.h>
7 #include <boot_mode.h>
8 #include <asm/arch/sci_types.h>
9 #include <asm/arch/boot_drvapi.h>
10 #include <asm/arch/mocor_boot_mode.h>
11
12 extern void CHIP_PHY_ResetHWFlag(uint32 val);
13 extern void CHIP_PHY_SetWDGHWFlag(WDG_HW_FLAG_T type, uint32 val);
14 extern void CHIP_ResetMCU(void);
15
16 static void ResetMCU(void)
17 {
18     /* set watchdog reset flag */
19     CHIP_PHY_ResetHWFlag(0x1FFF);
20     CHIP_PHY_SetWDGHWFlag(TYPE_RESET, AUTO_TEST_MODE);
21     /* reset the system via watchdog timeout */
22     CHIP_ResetMCU();
23
24     while (1);
25 }
26
27 void reboot_func(void)
28 {
29         /* reboot example only for amazing */
30         printf("\n--------%s %d-------\n", __FUNCTION__, __LINE__);
31         ResetMCU();
32 }
33
34