Skip to content
Snippets Groups Projects
Commit e50d76cc authored by Simon Glass's avatar Simon Glass Committed by Tom Rini
Browse files

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: default avatarSimon Glass <sjg@chromium.org>
Reviewed-by: default avatarTom Rini <trini@konsulko.com>
parent ab895d6a
No related branches found
No related tags found
No related merge requests found
...@@ -33,15 +33,6 @@ enum { ...@@ -33,15 +33,6 @@ enum {
}; };
#endif #endif
/**
* 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);
/* Linker symbols. */ /* Linker symbols. */
extern char __bss_start[], __bss_end[]; extern char __bss_start[], __bss_end[];
......
...@@ -8,14 +8,6 @@ ...@@ -8,14 +8,6 @@
#define CONFIG_SPL_BOARD_LOAD_IMAGE #define CONFIG_SPL_BOARD_LOAD_IMAGE
/**
* 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);
enum { enum {
BOOT_DEVICE_BOARD, BOOT_DEVICE_BOARD,
}; };
......
...@@ -152,4 +152,13 @@ bool spl_was_boot_source(void); ...@@ -152,4 +152,13 @@ bool spl_was_boot_source(void);
* @return 0 on success, otherwise error code * @return 0 on success, otherwise error code
*/ */
int spl_dfu_cmd(int usbctrl, char *dfu_alt_info, char *interface, char *devstr); 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 #endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment