diff options
author | Andreas Bießmann <andreas.devel@googlemail.com> | 2011-06-12 01:49:16 +0000 |
---|---|---|
committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2011-07-04 10:55:27 +0200 |
commit | dbbf13ba7b3a8624016fb369447407c77a8b0f7d (patch) | |
tree | d91a6b1e1758e04e5e0b80cc6aeff8160b7b6ab8 | |
parent | 5a05cb73566d5bacbd7e6379c265cc160895c0c8 (diff) | |
download | u-boot-imx-dbbf13ba7b3a8624016fb369447407c77a8b0f7d.zip u-boot-imx-dbbf13ba7b3a8624016fb369447407c77a8b0f7d.tar.gz u-boot-imx-dbbf13ba7b3a8624016fb369447407c77a8b0f7d.tar.bz2 |
cpuat91: use atmel_usart
Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
Cc: Eric Bénard <eric@eukrea.com>
-rw-r--r-- | board/eukrea/cpuat91/cpuat91.c | 8 | ||||
-rw-r--r-- | include/configs/cpuat91.h | 7 |
2 files changed, 12 insertions, 3 deletions
diff --git a/board/eukrea/cpuat91/cpuat91.c b/board/eukrea/cpuat91/cpuat91.c index fa4b25b..5d05414 100644 --- a/board/eukrea/cpuat91/cpuat91.c +++ b/board/eukrea/cpuat91/cpuat91.c @@ -32,6 +32,7 @@ #include <asm/arch/hardware.h> #include <asm/arch/at91_pio.h> #include <asm/arch/at91_pmc.h> +#include <asm/arch/at91_common.h> DECLARE_GLOBAL_DATA_PTR; @@ -52,6 +53,13 @@ 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/cpuat91.h b/include/configs/cpuat91.h index 2bda72b..75b881c 100644 --- a/include/configs/cpuat91.h +++ b/include/configs/cpuat91.h @@ -54,6 +54,7 @@ #define CONFIG_CMDLINE_TAG #define CONFIG_SETUP_MEMORY_TAGS #define CONFIG_INITRD_TAG +#define CONFIG_BOARD_EARLY_INIT_F #ifndef CONFIG_SKIP_LOWLEVEL_INIT #define CONFIG_SYS_USE_MAIN_OSCILLATOR @@ -87,9 +88,9 @@ #define CONFIG_SYS_SDRC_TR_VAL 0x000002E0 /* Write refresh rate */ #endif /* CONFIG_SKIP_LOWLEVEL_INIT */ -/* define one of these to choose the DBGU, USART0 or USART1 as console */ -#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 */ #undef CONFIG_HARD_I2C #undef CONFIG_SOFT_I2C |