Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Jun 2006 17:09:25 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 100215 for review
Message-ID:  <200606281709.k5SH9PTl030995@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=100215

Change 100215 by imp@imp_lighthouse on 2006/06/28 17:08:42

	Minor nits

Affected files ...

.. //depot/projects/arm/src/sys/arm/at91/uart_dev_at91usart.c#29 edit

Differences ...

==== //depot/projects/arm/src/sys/arm/at91/uart_dev_at91usart.c#29 (text+ko) ====

@@ -213,19 +213,17 @@
 }
 
 /*
- * Initialize this device (I think as the console)
+ * Initialize this device for use as a console.
  */
 static void
 at91_usart_init(struct uart_bas *bas, int baudrate, int databits, int stopbits,
     int parity)
 {
-	int cr;
 
 	at91_usart_param(bas, baudrate, databits, stopbits, parity);
 
-	/* Turn on rx and tx */
-	cr = USART_CR_RSTSTA | USART_CR_RSTRX | USART_CR_RSTTX;
-	WR4(bas, USART_CR, cr);
+	/* Reset the rx and tx buffers and turn on rx and tx */
+	WR4(bas, USART_CR, USART_CR_RSTSTA | USART_CR_RSTRX | USART_CR_RSTTX);
 	WR4(bas, USART_CR, USART_CR_RXEN | USART_CR_TXEN);
 	WR4(bas, USART_IDR, 0xffffffff);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200606281709.k5SH9PTl030995>