summaryrefslogtreecommitdiff
path: root/drivers/serial
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2009-03-27 23:26:43 +0100
committerJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2009-04-04 20:42:20 +0200
commit3524049cd053746298e4cfab2449882e75c146fc (patch)
tree71a34c88087e6ee4c5404b191d082a3f5c0e796d /drivers/serial
parentbeebd851cdbc9dd070bcdfec1fd8f17e3cc91bc0 (diff)
downloadu-boot-imx-3524049cd053746298e4cfab2449882e75c146fc.zip
u-boot-imx-3524049cd053746298e4cfab2449882e75c146fc.tar.gz
u-boot-imx-3524049cd053746298e4cfab2449882e75c146fc.tar.bz2
at91rm9200: move serial shutdown code to serial drivers
introduce serial_exit for this purpose. Use it only when the rm9200 serial driver is active Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'drivers/serial')
-rw-r--r--drivers/serial/at91rm9200_usart.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/serial/at91rm9200_usart.c b/drivers/serial/at91rm9200_usart.c
index d563445..858bde9 100644
--- a/drivers/serial/at91rm9200_usart.c
+++ b/drivers/serial/at91rm9200_usart.c
@@ -86,6 +86,11 @@ int serial_init (void)
return (0);
}
+void serial_exit (void)
+{
+ us->US_CR = (AT91C_US_RSTRX | AT91C_US_RSTTX);
+}
+
void serial_putc (const char c)
{
if (c == '\n')