summaryrefslogtreecommitdiff
path: root/board/freescale/mx51evk
diff options
context:
space:
mode:
authorLiu Hui-R64343 <r64343@freescale.com>2010-12-23 01:13:17 +0000
committerAlbert Aribaud <albert.aribaud@free.fr>2011-02-02 00:54:41 +0100
commit877eb0f91543dc5bca385bb6d22454b1d43f3e2d (patch)
tree60c9c2e869fb5259b545bd565522a3ca31671a4d /board/freescale/mx51evk
parent6f918bd46482f889f4d94623b09daf659a1974bd (diff)
MX51EVK: UART does not print out the early information
The early bootup information is not print out due to the UART pin iomux not set up correctly before board_init Add the board_early_init_f function and enable the CONFIG_BOARD_EARLY_INIT_F. Move the UART pin setting from board_init to board_early_init_f function. This patch also move the FEC pin iomux setup to the board_early_init_f. Signed-off-by: Jason Liu <r64343@freescale.com>
Diffstat (limited to 'board/freescale/mx51evk')
-rw-r--r--board/freescale/mx51evk/mx51evk.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/board/freescale/mx51evk/mx51evk.c b/board/freescale/mx51evk/mx51evk.c
index 2160d5a49b..7c50c54cd4 100644
--- a/board/freescale/mx51evk/mx51evk.c
+++ b/board/freescale/mx51evk/mx51evk.c
@@ -399,6 +399,14 @@ int board_mmc_init(bd_t *bis)
}
#endif
+int board_early_init_f(void)
+{
+ setup_iomux_uart();
+ setup_iomux_fec();
+
+ return 0;
+}
+
int board_init(void)
{
system_rev = get_cpu_rev();
@@ -407,9 +415,6 @@ int board_init(void)
/* address of boot parameters */
gd->bd->bi_boot_params = PHYS_SDRAM_1 + 0x100;
- setup_iomux_uart();
- setup_iomux_fec();
-
return 0;
}