u-boot/u-boot/board/ar7240/common/watchdog.c

14 lines
287 B
C

#include <common.h>
#include <asm/addrspace.h>
#include <asm/types.h>
#include "ar7240_soc.h"
void hw_watchdog_reset(void)
{
/* around 15 seconds */
ar7240_reg_wr(AR7240_WATCHDOG_TMR, 0xfffffffful);
/* do a full chip reset */
ar7240_reg_wr(AR7240_WATCHDOG_TMR_CONTROL, 0x3);
}