]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
at91rm9200ek: use atmel_usart
authorAndreas Bießmann <andreas.devel@googlemail.com>
Sun, 12 Jun 2011 01:49:14 +0000 (01:49 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Mon, 4 Jul 2011 08:55:27 +0000 (10:55 +0200)
Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
board/atmel/at91rm9200ek/at91rm9200ek.c
include/configs/at91rm9200ek.h

index 5ebc24d26e79126ac9d74be64f6d46ca937079a3..ec0dabaaaa318432bb05375e37f288a0d83a13eb 100644 (file)
@@ -31,6 +31,7 @@
 #include <asm/arch/hardware.h>
 #include <asm/arch/at91_pio.h>
 #include <asm/arch/at91_pmc.h>
+#include <asm/arch/at91_common.h>
 #include <asm/io.h>
 
 DECLARE_GLOBAL_DATA_PTR;
@@ -54,6 +55,12 @@ int board_init(void)
        return 0;
 }
 
+int board_early_init_f(void)
+{
+       at91_seriald_hw_init();
+       return 0;
+}
+
 int dram_init (void)
 {
        /* dram_init must store complete ramsize in gd->ram_size */
index ee199ab014b78f04490d8f3cbc5c9c381305d648..b847798aa44a1d5c06c2753e62afc4ee2910c425 100644 (file)
@@ -73,6 +73,8 @@
 #define CONFIG_SETUP_MEMORY_TAGS
 #define CONFIG_INITRD_TAG
 
+#define CONFIG_BOARD_EARLY_INIT_F
+
 /*
  * Memory Configuration
  */
  * CONFIG_DBGU is DBGU unit on J10
  * CONFIG_USART1 is USART1 on J14
  */
-#define CONFIG_AT91RM9200_USART
-#define CONFIG_DBGU
+#define CONFIG_ATMEL_USART
+#define CONFIG_USART_BASE      ATMEL_BASE_DBGU
+#define CONFIG_USART_ID                0/* ignored in arm */
 
 #define CONFIG_SYS_BAUDRATE_TABLE      {115200 , 19200, 38400, 57600, 9600 }
 #define CONFIG_BAUDRATE                        115200