m68k/lib: fix serial driver relocation
PATCH 1/1 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.
---
arch/m68k/lib/board.c +2 -2
@@ -402,14 +402,14 @@ void board_init_r (gd_t *id, ulong dest_addr) gd->flags |=GD_FLG_RELOC ;/* tell others: relocation done */ -serial_initialize (); -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 (); + monitor_flash_len = (ulong )&__init_end - dest_addr;#if defined(CONFIG_NEEDS_MANUAL_RELOC )
PATCH 1/1 m68k/lib: fix serial driver relocation
Am 2012-11-23 23:23, schrieb Angelo Dureghello:
Quoted 20 lines
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 thatgd->reloc_offis calculated.Signed-off-by Angelo Dureghello <[email protected]>Cc Jason Jin <[email protected]>---
arch/m68k/lib/board.c +0
-2@@ -402,14 +402,14 @@ void board_init_r (gd_t *id, ulong dest_addr) gd->flags |=GD_FLG_RELOC ;/* tell others: relocation done */ -serial_initialize (); -debug ("Now running in RAM - U-Boot at: %08lx\n" , dest_addr);
arch/m68k/lib/board.c void board_init_r (gd_t *id, ulong dest_addr) · line 415
Quoted 10 lines
arch/m68k/lib/board.c +2
-0WATCHDOG_RESET (); gd->reloc_off = dest_addr -CONFIG_SYS_MONITOR_BASE ; +serial_initialize (); + monitor_flash_len = (ulong )&__init_end - dest_addr;#if defined(CONFIG_NEEDS_MANUAL_RELOC )
PATCH 1/1 m68k/lib: fix serial driver relocation
Quoted 29 lines · Jens Scharsig
Am 2012-11-23 23:23, schrieb Angelo Dureghello:
Quoted 28 lines
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 thatgd->reloc_offis calculated.Signed-off-by Angelo Dureghello <[email protected]>Cc Jason Jin <[email protected]>---
arch/m68k/lib/board.c +2
-2@@ -402,14 +402,14 @@ void board_init_r (gd_t *id, ulong dest_addr) gd->flags |=GD_FLG_RELOC ;/* tell others: relocation done */ -serial_initialize (); -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 (); + monitor_flash_len = (ulong )&__init_end - dest_addr;
Quoted 5 lines
arch/m68k/lib/board.c void board_init_r (gd_t *id, ulong dest_addr) · line 415
Quoted 2 lines
arch/m68k/lib/board.c +0
-0#if defined(CONFIG_NEEDS_MANUAL_RELOC )
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20130111/4ff958be/attachment.pgp>