diff options
author | Michal Simek <michal.simek@xilinx.com> | 2016-12-12 09:46:09 +0100 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2017-01-10 10:18:11 +0100 |
commit | 3cd42180a8f691c68d88b9ef428054348c2f0432 (patch) | |
tree | 638374045339ddc3b36f5d758672e5cdb4f4e668 /include | |
parent | a705ebc81b7f91bbd0ef7c634284208342901149 (diff) | |
download | u-boot-imx-3cd42180a8f691c68d88b9ef428054348c2f0432.zip u-boot-imx-3cd42180a8f691c68d88b9ef428054348c2f0432.tar.gz u-boot-imx-3cd42180a8f691c68d88b9ef428054348c2f0432.tar.bz2 |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/wait_bit.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/wait_bit.h b/include/wait_bit.h index 066e30c..06ad43a 100644 --- a/include/wait_bit.h +++ b/include/wait_bit.h @@ -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, |