]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
MX51EVK: UART does not print out the early information
authorLiu Hui-R64343 <r64343@freescale.com>
Thu, 23 Dec 2010 01:13:17 +0000 (01:13 +0000)
committerAlbert Aribaud <albert.aribaud@free.fr>
Tue, 1 Feb 2011 23:54:41 +0000 (00:54 +0100)
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>
board/freescale/mx51evk/mx51evk.c
include/configs/mx51evk.h

index 2160d5a49bfbe03df1cc535d47814e071dc43503..7c50c54cd440159995c9fc6f0d57b0d4d88d9754 100644 (file)
@@ -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;
 }
 
index b4e57387af0929ed524db5b0e0f14888d5bbaa18..aed96255d6be36ad24cdb78de67780ce3eb19b30 100644 (file)
 #define CONFIG_SYS_INIT_RAM_ADDR       (IRAM_BASE_ADDR)
 #define CONFIG_SYS_INIT_RAM_SIZE       (IRAM_SIZE)
 
+#define CONFIG_BOARD_EARLY_INIT_F
+
 #define CONFIG_SYS_INIT_SP_OFFSET \
        (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
 #define CONFIG_SYS_INIT_SP_ADDR \