2 * watchdog.c - driver for Blackfin on-chip watchdog
4 * Copyright (c) 2007-2009 Analog Devices Inc.
6 * Licensed under the GPL-2 or later.
11 #include <asm/blackfin.h>
13 void hw_watchdog_reset(void)
15 bfin_write_WDOG_STAT(0);
18 void hw_watchdog_init(void)
20 bfin_write_WDOG_CNT(5 * get_sclk()); /* 5 second timeout */
22 bfin_write_WDOG_CTL(0x0);