]> git.sur5r.net Git - u-boot/blobdiff - cpu/mcf52x2/serial.c
Fix watchdog issues for ColdFire boards.
[u-boot] / cpu / mcf52x2 / serial.c
index 1cde1b6883de26eac60f26a28983ecc030b12c4b..c66bdef768fb9e19b966198eca7fc493029059d9 100644 (file)
@@ -23,6 +23,7 @@
 
 #include <common.h>
 #include <command.h>
+#include <watchdog.h>
 
 #include <asm/mcfuart.h>
 
@@ -174,7 +175,9 @@ void serial_puts (const char *s) {
 }
 
 int serial_getc(void) {
-       while(!rs_is_char());
+       while(!rs_is_char())
+               WATCHDOG_RESET();
+
        return rs_get_char();
 }