3 #include <linux/types.h>
4 #include <asm/arch/bits.h>
6 #include <asm/arch/cmddef.h>
8 #include <asm/arch/sci_types.h>
9 #include <asm/arch/boot_drvapi.h>
10 #include <asm/arch/mocor_boot_mode.h>
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);
16 static void ResetMCU(void)
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 */
27 void reboot_func(void)
29 /* reboot example only for amazing */
30 printf("\n--------%s %d-------\n", __FUNCTION__, __LINE__);