summaryrefslogtreecommitdiffstats
path: root/cpu
diff options
context:
space:
mode:
authorWolfgang Denk <wd@pollux.denx.de>2006-05-09 13:49:12 +0200
committerWolfgang Denk <wd@pollux.denx.de>2006-05-09 13:49:12 +0200
commit4af099bda90fe602aff96b2fd914fca89f320c5c (patch)
tree16d2cfaeed3b97933294cf741062b82c583dcc81 /cpu
parent1cfefe8cb6e1bb43f6509c0aee254e2908d42f21 (diff)
downloadbarebox-4af099bda90fe602aff96b2fd914fca89f320c5c.tar.gz
barebox-4af099bda90fe602aff96b2fd914fca89f320c5c.tar.xz
Fix watchdog issues for ColdFire boards.
Diffstat (limited to 'cpu')
-rw-r--r--cpu/mcf52x2/serial.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/cpu/mcf52x2/serial.c b/cpu/mcf52x2/serial.c
index 1cde1b6883..c66bdef768 100644
--- a/cpu/mcf52x2/serial.c
+++ b/cpu/mcf52x2/serial.c
@@ -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();
}