]> git.sur5r.net Git - u-boot/blobdiff - cpu/blackfin/interrupts.c
Blackfin: reset watchdog in udelay()
[u-boot] / cpu / blackfin / interrupts.c
index bf6fb4b4cf38cd19af4f0ee4852fa8f98b12fe01..19456e5c1476f999812e0247e8cb4b05cba9c03b 100644 (file)
@@ -20,6 +20,7 @@
 
 #include <common.h>
 #include <config.h>
+#include <watchdog.h>
 #include <asm/blackfin.h>
 #include "cpu.h"
 
@@ -70,6 +71,8 @@ void udelay(unsigned long usec)
        cclk = (CONFIG_CCLK_HZ);
 
        while (usec > 1) {
+               WATCHDOG_RESET();
+
                /*
                 * how many clock ticks to delay?
                 *  - request(in useconds) * clock_ticks(Hz) / useconds/second