summaryrefslogtreecommitdiff
path: root/include/spl.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-09-25 00:19:51 (GMT)
committerTom Rini <trini@konsulko.com>2016-10-06 18:48:14 (GMT)
commite50d76cc3c2894267a4b36a675abb957d6e3df8c (patch)
tree0a8b2b723dc45d1bf54e9bbaf8cceba11e31435f /include/spl.h
parentab895d6af224a427db4ffb70884588a2449be1c6 (diff)
downloadu-boot-e50d76cc3c2894267a4b36a675abb957d6e3df8c.tar.xz
spl: Move spl_board_load_image() into a generic header
At present this is only used on ARM and sandbox, but it is just as applicable to other architectures. Move the function prototype into the generic SPL header. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'include/spl.h')
-rw-r--r--include/spl.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/spl.h b/include/spl.h
index 30eda36..a597250 100644
--- a/include/spl.h
+++ b/include/spl.h
@@ -152,4 +152,13 @@ bool spl_was_boot_source(void);
* @return 0 on success, otherwise error code
*/
int spl_dfu_cmd(int usbctrl, char *dfu_alt_info, char *interface, char *devstr);
+
+/**
+ * Board-specific load method for boards that have a special way of loading
+ * U-Boot, which does not fit with the existing SPL code.
+ *
+ * @return 0 on success, negative errno value on failure.
+ */
+int spl_board_load_image(void);
+
#endif