fsl: update CRC after setting EEPROM identifier
[oweals/u-boot.git] / drivers / serial / at91rm9200_usart.c
index d5634454927591eb4b3e52a4d9499b8988fff7ec..05ebbc34c980e58d04a48162e0de39ce42a4a3db 100644 (file)
  */
 
 #include <common.h>
+
+#ifndef CONFIG_AT91_LEGACY
 #include <asm/io.h>
 #include <asm/arch/hardware.h>
+#define CONFIG_AT91_LEGACY
+#include <asm/arch-at91rm9200/AT91RM9200.h>
+#warning Please update to use C structur SoC access !
+#else
+#include <asm/arch/AT91RM9200.h>
+#endif
 
 DECLARE_GLOBAL_DATA_PTR;
 
@@ -86,6 +94,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')