diff options
author | Wolfgang Denk <wd@pollux.denx.de> | 2006-05-09 11:49:12 (GMT) |
---|---|---|
committer | Wolfgang Denk <wd@pollux.denx.de> | 2006-05-09 11:49:12 (GMT) |
commit | 4af099bda90fe602aff96b2fd914fca89f320c5c (patch) | |
tree | 16d2cfaeed3b97933294cf741062b82c583dcc81 /cpu | |
parent | 1cfefe8cb6e1bb43f6509c0aee254e2908d42f21 (diff) | |
download | u-boot-fsl-qoriq-4af099bda90fe602aff96b2fd914fca89f320c5c.tar.xz |
Fix watchdog issues for ColdFire boards.
Diffstat (limited to 'cpu')
-rw-r--r-- | cpu/mcf52x2/serial.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cpu/mcf52x2/serial.c b/cpu/mcf52x2/serial.c index 1cde1b6..c66bdef 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(); } |