MX51EVK: UART does not print out the early information
PATCH 1/1 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.
--- board/freescale/mx51evk/mx51evk.c | 11 ++++++++--- include/configs/mx51evk.h | 2 ++ 2 files changed, 10 insertions(+), 3 deletions(-)
board/freescale/mx51evk/mx51evk.c +8 -3
@@ -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 ; }
include/configs/mx51evk.h +2 -0
@@ -202,6 +202,8 @@#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 \
Signature · 1 line
1.7.0.4
PATCH 1/1 MX51EVK: UART does not print out the early information
Quoted 7 lines · Jason Liu
The early bootup information is not print out due to the UART pin iomux not set up correctly before
board_initAdd the
board_early_init_ffunction and enable theCONFIG_BOARD_EARLY_INIT_F. Move the UART pin setting fromboard_inittoboard_early_init_ffunction.
Quoted 5 lines
This patch also move the FEC pin iomux setup to the
board_early_init_f.Signed-off-by Jason Liu <[email protected]>---
Applied to u-boot-imx, thanks.
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de =====================================================================