u-boot-brain/arch
Nikita Kiryanov 36afd45136 spl: change return values of spl_*_load_image()
Make spl_*_load_image() functions return a value instead of
hanging if a problem is encountered. This enables main spl code
to make the decision whether to hang or not, thus preparing
it to support alternative boot devices.

Some boot devices (namely nand and spi) do not hang on error.
Instead, they return normally and SPL proceeds to boot the
contents of the load address. This is considered a bug and
is rectified by hanging on error for these devices as well.

Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il>
Cc: Igor Grinberg <grinberg@compulab.co.il>
Cc: Tom Rini <trini@konsulko.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Ian Campbell <ijc@hellion.org.uk>
Cc: Hans De Goede <hdegoede@redhat.com>
Cc: Albert Aribaud <albert.u.boot@aribaud.net>
Cc: Jagan Teki <jteki@openedev.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2015-11-18 14:50:02 -05:00
..
arc board: axs10x switch serial port and Ethernet to driver model 2015-11-18 00:39:22 +03:00
arm spl: change return values of spl_*_load_image() 2015-11-18 14:50:02 -05:00
avr32 avr32: Use the generic bitops headers 2015-11-05 10:52:31 -05:00
blackfin Various Makefiles: Add SPDX-License-Identifier tags 2015-11-10 09:19:52 -05:00
m68k Replace "extern inline" with "static inline" 2015-11-09 18:19:40 -05:00
microblaze Various Makefiles: Add SPDX-License-Identifier tags 2015-11-10 09:19:52 -05:00
mips Merge branch 'master' of git://git.denx.de/u-boot-mips 2015-11-06 09:17:17 -05:00
nds32 nds32: Use the generic bitops headers 2015-11-05 10:52:21 -05:00
nios2 nios2: zap ioremap 2015-11-18 21:18:30 +08:00
openrisc openrisc: updating build tools naming convention 2015-11-12 18:13:20 -05:00
powerpc mpc83xx: Add strider board 2015-11-12 18:03:48 -05:00
sandbox Various Makefiles: Add SPDX-License-Identifier tags 2015-11-10 09:19:52 -05:00
sh sh: Use the generic bitops headers 2015-11-05 10:52:09 -05:00
sparc sparc: leon3: Add debug_uart support to LEON3 serial driver. 2015-11-13 10:23:33 +02:00
x86 x86: Remove legacy pci codes 2015-11-13 06:46:25 -08:00
.gitignore .gitignore: drop include/asm/proc from ignore pattern 2014-06-19 11:18:54 -04:00
Kconfig arm, powerpc: select SYS_GENERIC_BOARD 2015-10-24 13:50:38 -04:00