diff options
author | Wolfgang Denk <wd@denx.de> | 2009-04-04 22:15:46 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2009-04-04 22:15:46 +0200 |
commit | 5f58f8d20f97deaf4dde7eb3886efa3e5a3715ee (patch) | |
tree | 0e748004387ad33d791977718a100f090b59a5c6 /drivers/serial/atmel_usart.c | |
parent | 66932ac3929c7a145a6ef6574a96fd7535154951 (diff) | |
parent | 03bab0091948196b9558248684c04f60943ca4b5 (diff) | |
download | u-boot-imx-5f58f8d20f97deaf4dde7eb3886efa3e5a3715ee.zip u-boot-imx-5f58f8d20f97deaf4dde7eb3886efa3e5a3715ee.tar.gz u-boot-imx-5f58f8d20f97deaf4dde7eb3886efa3e5a3715ee.tar.bz2 |
Merge branch 'master' of git://git.denx.de/u-boot-at91
Diffstat (limited to 'drivers/serial/atmel_usart.c')
-rw-r--r-- | drivers/serial/atmel_usart.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/serial/atmel_usart.c b/drivers/serial/atmel_usart.c index f3b146c..f50552a 100644 --- a/drivers/serial/atmel_usart.c +++ b/drivers/serial/atmel_usart.c @@ -16,6 +16,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include <common.h> +#include <watchdog.h> #include <asm/io.h> #include <asm/arch/clk.h> @@ -87,7 +88,8 @@ void serial_puts(const char *s) int serial_getc(void) { - while (!(usart3_readl(CSR) & USART3_BIT(RXRDY))) ; + while (!(usart3_readl(CSR) & USART3_BIT(RXRDY))) + WATCHDOG_RESET(); return usart3_readl(RHR); } |