summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Bießmann <andreas.devel@googlemail.com>2011-06-12 01:49:14 +0000
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2011-07-04 10:55:27 +0200
commit3432a93bcd897913e1a2df58de5ae0226062e5ca (patch)
tree38e92189585c91ab6a33e99033f4481e77abc1a8
parentd703355fd1d77c71d6a2a5c589714c4ce4560c28 (diff)
downloadu-boot-imx-3432a93bcd897913e1a2df58de5ae0226062e5ca.zip
u-boot-imx-3432a93bcd897913e1a2df58de5ae0226062e5ca.tar.gz
u-boot-imx-3432a93bcd897913e1a2df58de5ae0226062e5ca.tar.bz2
at91rm9200ek: use atmel_usart
Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
-rw-r--r--board/atmel/at91rm9200ek/at91rm9200ek.c7
-rw-r--r--include/configs/at91rm9200ek.h7
2 files changed, 12 insertions, 2 deletions
diff --git a/board/atmel/at91rm9200ek/at91rm9200ek.c b/board/atmel/at91rm9200ek/at91rm9200ek.c
index 5ebc24d..ec0daba 100644
--- a/board/atmel/at91rm9200ek/at91rm9200ek.c
+++ b/board/atmel/at91rm9200ek/at91rm9200ek.c
@@ -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 */
diff --git a/include/configs/at91rm9200ek.h b/include/configs/at91rm9200ek.h
index ee199ab..b847798 100644
--- a/include/configs/at91rm9200ek.h
+++ b/include/configs/at91rm9200ek.h
@@ -73,6 +73,8 @@
#define CONFIG_SETUP_MEMORY_TAGS
#define CONFIG_INITRD_TAG
+#define CONFIG_BOARD_EARLY_INIT_F
+
/*
* Memory Configuration
*/
@@ -123,8 +125,9 @@
* 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