summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefano Babic <sbabic@denx.de>2011-10-04 23:43:31 +0000
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2011-11-03 22:56:25 +0100
commit1c6ec6dd33bc9d728031cef47aee554407cce107 (patch)
tree69a282087be29408b31f3c7920e04e575753277e
parent17a8904b2791cdb495370c0e21c95f4ddd4fe877 (diff)
downloadu-boot-imx-1c6ec6dd33bc9d728031cef47aee554407cce107.zip
u-boot-imx-1c6ec6dd33bc9d728031cef47aee554407cce107.tar.gz
u-boot-imx-1c6ec6dd33bc9d728031cef47aee554407cce107.tar.bz2
Davinci: ea20: Add early init to get early output from console
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>
-rw-r--r--board/davinci/ea20/ea20.c18
1 files changed, 11 insertions, 7 deletions
diff --git a/board/davinci/ea20/ea20.c b/board/davinci/ea20/ea20.c
index f9ad121..da9086a 100644
--- a/board/davinci/ea20/ea20.c
+++ b/board/davinci/ea20/ea20.c
@@ -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
/*