u-boot/arch
John Rigby 5a75e12107 FDT: only call boot_get_fdt from generic code
All arches except nios2 and microblaze call boot_get_fdt
from bootm_start in common/cmd_bootm.c.

Having nios2 and microblaze do so as well removes code from
their respective do_bootm_linux routines and allows removal of
a nasty ifdef from bootm_start.

In the case where boot_get_fdt returns an error bootm_start
returns and the platform specific do_bootm_linux routines
will never get called.

Also only check argv[3] for an fdt addr if argc > 3 first.
This is already the case for nios2.

Signed-off-by: John Rigby <john.rigby@linaro.org>
CC: Scott McNutt <smcnutt@psyent.com>
CC: Michal Simek <monstr@monstr.eu>
CC: Thomas Chou <thomas@wytron.com.tw>
Acked-by: Wolfgang Denk <wd@denx.de>
Acked-by: Michal Simek <monstr@monstr.eu>
Tested-by: Thomas Chou <thomas@wytron.com.tw>
2010-10-18 22:52:10 +02:00
..
arm Rename TEXT_BASE into CONFIG_SYS_TEXT_BASE 2010-10-18 22:07:10 +02:00
avr32 relocation: fixup cmdtable 2010-09-19 19:29:51 +02:00
blackfin Blackfin: workaround anomaly 05000440 2010-10-14 20:23:26 -04:00
i386 Rename TEXT_BASE into CONFIG_SYS_TEXT_BASE 2010-10-18 22:07:10 +02:00
m68k Rename TEXT_BASE into CONFIG_SYS_TEXT_BASE 2010-10-18 22:07:10 +02:00
microblaze FDT: only call boot_get_fdt from generic code 2010-10-18 22:52:10 +02:00
mips common: move TOTAL_MALLOC_LEN to include/common.h 2010-09-19 19:29:52 +02:00
nios2 FDT: only call boot_get_fdt from generic code 2010-10-18 22:52:10 +02:00
powerpc powerpc: do not fixup NULL ptrs 2010-10-18 22:39:37 +02:00
sh Rename TEXT_BASE into CONFIG_SYS_TEXT_BASE 2010-10-18 22:07:10 +02:00
sparc Rename TEXT_BASE into CONFIG_SYS_TEXT_BASE 2010-10-18 22:07:10 +02:00
.gitignore update include/asm/ gitignore after move 2010-05-07 00:17:30 +02:00