Davinci: ea20: Add early init to get early output from console
authorStefano Babic <sbabic@denx.de>
Tue, 4 Oct 2011 23:43:31 +0000 (23:43 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Thu, 3 Nov 2011 21:56:25 +0000 (22:56 +0100)
Use board_early_init_f so that the full boot log output can be displayed.

Signed-off-by: Stefano Babic <sbabic@denx.de>
CC: Sandeep Paulraj <s-paulraj@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
board/davinci/ea20/ea20.c

index f9ad121822aeb988ddab005f13c28584ebad054c..da9086a527354041a127ed2f4a49c7a3eb457e22 100644 (file)
@@ -116,7 +116,7 @@ static const struct lpsc_resource lpsc[] = {
        { DAVINCI_LPSC_GPIO },
 };
 
-int board_init(void)
+int board_early_init_f(void)
 {
        struct davinci_gpio *gpio6_base =
                        (struct davinci_gpio *)DAVINCI_GPIO_BANK67;
@@ -160,12 +160,6 @@ int board_init(void)
               &davinci_emif_regs->ab1cr); /* CS2 */
 #endif
 
-       /* arch number of the board */
-       gd->bd->bi_arch_number = MACH_TYPE_EA20;
-
-       /* address of boot parameters */
-       gd->bd->bi_boot_params = LINUX_BOOT_PARAM_ADDR;
-
        /*
         * Power on required peripherals
         * ARM does not have access by default to PSC0 and PSC1
@@ -201,6 +195,16 @@ int board_init(void)
        return 0;
 }
 
+int board_init(void)
+{
+       /* arch number of the board */
+       gd->bd->bi_arch_number = MACH_TYPE_EA20;
+
+       /* address of boot parameters */
+       gd->bd->bi_boot_params = LINUX_BOOT_PARAM_ADDR;
+
+       return 0;
+}
 #ifdef CONFIG_DRIVER_TI_EMAC
 
 /*