Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 282216
b: refs/heads/master
c: 86955e2
h: refs/heads/master
v: v3
  • Loading branch information
Gabor Juhos authored and Wim Van Sebroeck committed Jan 6, 2012
1 parent 10478a7 commit d30374e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 60daac4a9084d5a6216443f428d0060c42eb44ff
refs/heads/master: 86955e2bcb320bf8f271443cb7b03896fc3cbd67
6 changes: 6 additions & 0 deletions trunk/drivers/watchdog/ath79_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,17 +68,23 @@ static int max_timeout;
static inline void ath79_wdt_keepalive(void)
{
ath79_reset_wr(AR71XX_RESET_REG_WDOG, wdt_freq * timeout);
/* flush write */
ath79_reset_rr(AR71XX_RESET_REG_WDOG);
}

static inline void ath79_wdt_enable(void)
{
ath79_wdt_keepalive();
ath79_reset_wr(AR71XX_RESET_REG_WDOG_CTRL, WDOG_CTRL_ACTION_FCR);
/* flush write */
ath79_reset_rr(AR71XX_RESET_REG_WDOG_CTRL);
}

static inline void ath79_wdt_disable(void)
{
ath79_reset_wr(AR71XX_RESET_REG_WDOG_CTRL, WDOG_CTRL_ACTION_NONE);
/* flush write */
ath79_reset_rr(AR71XX_RESET_REG_WDOG_CTRL);
}

static int ath79_wdt_set_timeout(int val)
Expand Down

0 comments on commit d30374e

Please sign in to comment.