Patchwork [U-Boot,3/3] mx31pdk: Make the full boot log visible

login
register
mail settings
Submitter Fabio Estevam
Date Feb. 9, 2011, 11:17 a.m.
Message ID <1297250276-16007-3-git-send-email-fabio.estevam@freescale.com>
Download mbox | patch
Permalink /patch/82450/
State Accepted
Commit 9b6442f99c617f147b95d9844a492c429e16e23c
Delegated to: Stefano Babic
Headers show

Comments

Fabio Estevam - Feb. 9, 2011, 11:17 a.m.
Use board_early_init_f so that the full boot log output can be displayed.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
 board/freescale/mx31pdk/mx31pdk.c |    7 ++++++-
 include/configs/mx31pdk.h         |    1 +
 2 files changed, 7 insertions(+), 1 deletions(-)
Stefano Babic - Feb. 13, 2011, 9:53 a.m.
On 02/09/2011 12:17 PM, Fabio Estevam wrote:
> Use board_early_init_f so that the full boot log output can be displayed.
> 
> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
> ---
>  board/freescale/mx31pdk/mx31pdk.c |    7 ++++++-
>  include/configs/mx31pdk.h         |    1 +
>  2 files changed, 7 insertions(+), 1 deletions(-)
> 
> diff --git a/board/freescale/mx31pdk/mx31pdk.c b/board/freescale/mx31pdk/mx31pdk.c
> index 2756e5a..a9f0fb4 100644

Applied to u-boot-imx, thanks.

Best regards,
Stefano Babic

Patch

diff --git a/board/freescale/mx31pdk/mx31pdk.c b/board/freescale/mx31pdk/mx31pdk.c
index 2756e5a..a9f0fb4 100644
--- a/board/freescale/mx31pdk/mx31pdk.c
+++ b/board/freescale/mx31pdk/mx31pdk.c
@@ -45,7 +45,7 @@  void dram_init_banksize(void)
 	gd->bd->bi_dram[0].size = PHYS_SDRAM_1_SIZE;
 }
 
-int board_init(void)
+int board_early_init_f(void)
 {
 	/* CS5: CPLD incl. network controller */
 	__REG(CSCR_U(5)) = 0x0000d843;
@@ -56,6 +56,11 @@  int board_init(void)
 	mx31_uart1_hw_init();
 	mx31_spi2_hw_init();
 
+	return 0;
+}
+
+int board_init(void)
+{
 	gd->bd->bi_arch_number = MACH_TYPE_MX31_3DS; /* board id for linux */
 	/* adress of boot parameters */
 	gd->bd->bi_boot_params = PHYS_SDRAM_1 + 0x100;
diff --git a/include/configs/mx31pdk.h b/include/configs/mx31pdk.h
index d7286c0..86c758f 100644
--- a/include/configs/mx31pdk.h
+++ b/include/configs/mx31pdk.h
@@ -154,6 +154,7 @@ 
 #define CONFIG_NR_DRAM_BANKS	1
 #define PHYS_SDRAM_1		CSD0_BASE
 #define PHYS_SDRAM_1_SIZE	(128 * 1024 * 1024)
+#define CONFIG_BOARD_EARLY_INIT_F	1
 
 #define CONFIG_SYS_SDRAM_BASE		PHYS_SDRAM_1
 #define CONFIG_SYS_INIT_RAM_ADDR	IRAM_BASE_ADDR