common: spl: move image load to its own function
authorNikita Kiryanov <nikita@compulab.co.il>
Sun, 8 Nov 2015 15:11:50 +0000 (17:11 +0200)
committerTom Rini <trini@konsulko.com>
Wed, 18 Nov 2015 19:50:03 +0000 (14:50 -0500)
commit5211b87e0c323e7474be9c817c9880f51459fbb9
tree940d35ea0a1ef16bf84ae7922078cb766ca8f119
parent36afd451361dd4386c5527154d94bff4c6c538da
common: spl: move image load to its own function

Refactor spl image load code out of board_init_r and into its own
function. This is a preparation for supporting alternative boot
devices.

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>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
common/spl/spl.c