From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jens Scharsig Date: Fri, 11 Jan 2013 15:45:26 +0100 Subject: [U-Boot] [PATCH 1/1] m68k/lib: fix serial driver relocation In-Reply-To: <20121123222338.GA28670@angel3> References: <20121123222338.GA28670@angel3> Message-ID: <50F02586.8040707@bus-elektronik.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Am 2012-11-23 23:23, schrieb Angelo Dureghello: > 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 > Cc: Jason Jin > --- > diff --git a/arch/m68k/lib/board.c b/arch/m68k/lib/board.c > index 02d73fd..373570c 100644 > --- a/arch/m68k/lib/board.c > +++ b/arch/m68k/lib/board.c > @@ -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) > Acked-by: Jens Scharsig (BuS Elektronik) Tested-by: Jens Scharsig (BuS Elektronik)