mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-28 15:41:40 +00:00
lib: Add WATCHDOG_RESET to wait_bit.h
wait_for_bit() is missing reset watchdog in case watchdog is configured. Signed-off-by: Michal Simek <michal.simek@xilinx.com> Reviewed-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
parent
a705ebc81b
commit
3cd42180a8
1 changed files with 2 additions and 0 deletions
|
@ -11,6 +11,7 @@
|
|||
|
||||
#include <common.h>
|
||||
#include <console.h>
|
||||
#include <watchdog.h>
|
||||
#include <linux/errno.h>
|
||||
#include <asm/io.h>
|
||||
|
||||
|
@ -59,6 +60,7 @@ static inline int wait_for_bit(const char *prefix, const u32 *reg,
|
|||
}
|
||||
|
||||
udelay(1);
|
||||
WATCHDOG_RESET();
|
||||
}
|
||||
|
||||
debug("%s: Timeout (reg=%p mask=%08x wait_set=%i)\n", prefix, reg, mask,
|
||||
|
|
Loading…
Reference in a new issue