[U-Boot] [PATCH 02/10] AVR32: atmel_usart - Make sure that all interrupts are disabled during startup

Olav Morken olavmrk at gmail.com
Fri Oct 10 15:15:44 CEST 2008


On the ATEVK1100 (with an ATUC3A0512ES CPU), USART interrupts appear to be
enabled after reset.

Signed-off-by: Gunnar Rangoy <gunnar at rangoy.com>
Signed-off-by: Paul Driveklepp <pauldriveklepp at gmail.com>
Signed-off-by: Olav Morken <olavmrk at gmail.com>
---
 drivers/serial/atmel_usart.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/drivers/serial/atmel_usart.c b/drivers/serial/atmel_usart.c
index f3b146c..a358871 100644
--- a/drivers/serial/atmel_usart.c
+++ b/drivers/serial/atmel_usart.c
@@ -58,6 +58,9 @@ int serial_init(void)
 {
 	usart3_writel(CR, USART3_BIT(RSTRX) | USART3_BIT(RSTTX));
 
+	/* Make sure that all interrupts are disabled during startup. */
+	usart3_writel(IDR, 0xffffffff);
+
 	serial_setbrg();
 
 	usart3_writel(CR, USART3_BIT(RXEN) | USART3_BIT(TXEN));
-- 
1.6.0.2



More information about the U-Boot mailing list