u-boot/arch/nios2/lib
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
..
board.c nios2: fix no flash, add nand and mmc init in board.c 2010-04-24 18:21:23 -04:00
bootm.c FDT: only call boot_get_fdt from generic code 2010-10-18 22:52:10 +02:00
cache.S Move lib_$ARCH directories to arch/$ARCH/lib 2010-04-13 09:13:03 +02:00
libgcc.c nios2: fix div64 issue for gcc4 2010-05-28 10:56:03 -04:00
longlong.h nios2: fix div64 issue for gcc4 2010-05-28 10:56:03 -04:00
Makefile nios2: fix div64 issue for gcc4 2010-05-28 10:56:03 -04:00
time.c Move lib_$ARCH directories to arch/$ARCH/lib 2010-04-13 09:13:03 +02:00