]> git.sur5r.net Git - u-boot/blobdiff - lib_nios/time.c
img2srec: use standard types
[u-boot] / lib_nios / time.c
index 765b9c1989a74e0cc5f2743aaaa8c8abb911b6b1..25a233ea785a13d09e2e8d5a82b179d39572f8aa 100644 (file)
@@ -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);
 }