u-boot-brain/arch
Bernhard Kaindl 9d256b67f6 powerpc/lib/board.c: Call run_post(POST_ROM) before relocating
The call to run_post(POST_ROM) which can run the POST memory test
is currently called too late when gd has already been copied to DRAM.

This results in failure to boot Linux after a POST_ROM memory test
tested all RAM while gd was already relocated to DRAM due to gd being
overwritten by the POST_ROM memory test.

Support this by moving the call to run_post(POST_ROM) to run earlier,
before U-Boot has started to move data to DRAM (from late board_init_f
to early board_init_f) where DRAM is initialized, but not used yet.

This allows that an POST memory test can test the whole DRAM,
including the area where the board info struct is located.

Signed-off-by: Bernhard Kaindl <bernhard.kaindl@thalesgroup.com>
Cc: Pieter Voorthuijsen <pieter.voorthuijsen@prodrive.nl>
2011-10-23 23:34:19 +02:00
..
arm arm: Use getenv_ulong() in place of getenv(), strtoul 2011-10-23 23:33:17 +02:00
avr32 avr32: Use getenv_ulong() in place of getenv(), strtoul 2011-10-23 23:33:17 +02:00
blackfin blackfin: Use getenv_ulong() in place of getenv(), strtoul 2011-10-23 23:33:18 +02:00
m68k m68k: Use getenv_ulong() in place of getenv(), strtoul 2011-10-23 23:33:18 +02:00
microblaze microblaze: Use getenv_ulong() in place of getenv(), strtoul 2011-10-23 23:33:18 +02:00
mips mips: Use getenv_ulong() in place of getenv(), strtoul 2011-10-23 23:33:19 +02:00
nds32 nds32/lib: add generic funcs in NDS32 lib 2011-10-22 00:53:11 +02:00
nios2 nios2: cache: define ARCH_DMA_MINALIGN for DMA buffer alignment 2011-10-23 20:50:42 +02:00
powerpc powerpc/lib/board.c: Call run_post(POST_ROM) before relocating 2011-10-23 23:34:19 +02:00
sandbox sandbox: Add main program 2011-10-17 23:56:58 +02:00
sh sh: cache: define ARCH_DMA_MINALIGN for DMA buffer alignment 2011-10-23 20:50:42 +02:00
sparc sparc: Use getenv_ulong() in place of getenv(), strtoul 2011-10-23 23:33:19 +02:00
x86 x86: Use getenv_ulong() in place of getenv(), strtoul 2011-10-23 23:34:19 +02:00
.gitignore update include/asm/ gitignore after move 2010-05-07 00:17:30 +02:00