projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add support for environment in SPI flash
[platform/kernel/u-boot.git]
/
lib_nios
/
time.c
diff --git
a/lib_nios/time.c
b/lib_nios/time.c
index
765b9c1
..
25a233e
100644
(file)
--- a/
lib_nios/time.c
+++ b/
lib_nios/time.c
@@
-22,6
+22,7
@@
*/
#include <common.h>
+#include <watchdog.h>
extern void dly_clks( unsigned long ticks );
@@
-33,5
+34,6
@@
void udelay(unsigned long usec)
* cpu clocks.
*/
unsigned long cnt = (CONFIG_SYS_CLK_FREQ/1000000) * usec;
+ WATCHDOG_RESET (); /* trigger watchdog if needed */
dly_clks (cnt);
}