Add support for environment in SPI flash
[platform/kernel/u-boot.git] / lib_nios / time.c
index 765b9c1..25a233e 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);
 }