Commit fd70aa41468be4324275910f85578cb5be6a0439

Authored by angelo
Committed by Tom Rini
1 parent 7a8e739cd5

m68k/lib: fix serial driver relocation

Fix coldfire serial driver bindings no more relocated to ram after last
changes to drivers/serial/serial.c (regression).
Serial initialization in ram has to be called after that gd->reloc_off is
calculated.

Signed-off-by: Angelo Dureghello <sysamfw@gmail.com>
Cc: Jason Jin <jason.jin@freescale.com>
Acked-by: Jens Scharsig (BuS Elektronik) <esw@bus-elektronik.de>
Tested-by: Jens Scharsig (BuS Elektronik) <esw@bus-elektronik.de>

Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff

arch/m68k/lib/board.c
... ... @@ -402,13 +402,13 @@
402 402  
403 403 gd->flags |= GD_FLG_RELOC; /* tell others: relocation done */
404 404  
405   - serial_initialize();
406   -
407 405 debug ("Now running in RAM - U-Boot at: %08lx\n", dest_addr);
408 406  
409 407 WATCHDOG_RESET ();
410 408  
411 409 gd->reloc_off = dest_addr - CONFIG_SYS_MONITOR_BASE;
  410 +
  411 + serial_initialize();
412 412  
413 413 monitor_flash_len = (ulong)&__init_end - dest_addr;
414 414