summaryrefslogtreecommitdiff
path: root/lib_ppc
diff options
context:
space:
mode:
authorMarian Balakowicz <m8@semihalf.com>2006-06-30 13:27:09 (GMT)
committerMarian Balakowicz <m8@semihalf.com>2006-06-30 13:27:09 (GMT)
commitbb105f24cc90ec4c56ea13012acc3d763b2a2984 (patch)
treed1b71c6903a084b7b48adf13d40f3abc5784083d /lib_ppc
parente6b6d16de73de6a76e2ec4338291e828b860f040 (diff)
downloadu-boot-bb105f24cc90ec4c56ea13012acc3d763b2a2984.tar.xz
Call serial_initialize() before first debug() is used.
Diffstat (limited to 'lib_ppc')
-rw-r--r--lib_ppc/board.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/lib_ppc/board.c b/lib_ppc/board.c
index f40bb25..18e5537 100644
--- a/lib_ppc/board.c
+++ b/lib_ppc/board.c
@@ -609,6 +609,11 @@ void board_init_r (gd_t *id, ulong dest_addr)
bd = gd->bd;
gd->flags |= GD_FLG_RELOC; /* tell others: relocation done */
+ gd->reloc_off = dest_addr - CFG_MONITOR_BASE;
+
+#ifdef CONFIG_SERIAL_MULTI
+ serial_initialize();
+#endif
debug ("Now running in RAM - U-Boot at: %08lx\n", dest_addr);
@@ -618,14 +623,8 @@ void board_init_r (gd_t *id, ulong dest_addr)
board_early_init_r ();
#endif
- gd->reloc_off = dest_addr - CFG_MONITOR_BASE;
-
monitor_flash_len = (ulong)&__init_end - dest_addr;
-#ifdef CONFIG_SERIAL_MULTI
- serial_initialize();
-#endif
-
/*
* We have to relocate the command table manually
*/