]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
m68k: fix debug call befor serial init
authorJens Scharsig (BuS Elektronik) <esw@bus-elektronik.de>
Wed, 16 Jan 2013 07:24:10 +0000 (08:24 +0100)
committerjason <jason@jason-ThinkPad-T61.(none)>
Thu, 27 Jun 2013 00:31:16 +0000 (08:31 +0800)
There is a debug call in board.c befor serial interface was initialized.
This moves the debug code behind serial_initialize call.

Signed-off-by: Jens Scharsig (BuS Elektronik) <esw@bus-elektronik.de>
arch/m68k/lib/board.c

index b2e306836412665a9185ebd03e0b6abd10f81701..efc9fccc1bc9f66619ec6d101e878269d24897b8 100644 (file)
@@ -403,14 +403,14 @@ void board_init_r (gd_t *id, ulong dest_addr)
 
        gd->flags |= GD_FLG_RELOC;      /* tell others: relocation done */
 
-       debug ("Now running in RAM - U-Boot at: %08lx\n", dest_addr);
-
        WATCHDOG_RESET ();
 
        gd->reloc_off =  dest_addr - CONFIG_SYS_MONITOR_BASE;
 
        serial_initialize();
 
+       debug("Now running in RAM - U-Boot at: %08lx\n", dest_addr);
+
        monitor_flash_len = (ulong)&__init_end - dest_addr;
 
 #if defined(CONFIG_NEEDS_MANUAL_RELOC)