diff options
author | Simon Glass <sjg@chromium.org> | 2016-09-24 18:19:52 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-10-06 14:48:15 -0400 |
commit | d95ceb97c0ca158605372634a860651ca925915a (patch) | |
tree | 0fc61807e410cd256ec15bd02787e7cb3a31d8cb /include/spl.h | |
parent | e50d76cc3c2894267a4b36a675abb957d6e3df8c (diff) | |
download | u-boot-d95ceb97c0ca158605372634a860651ca925915a.tar.gz |
spl: Add a parameter to spl_set_header_raw_uboot()
Rather than act on the global variable, pass the required struct in as a
parameter.
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.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/include/spl.h b/include/spl.h index a597250e7c..c0c5f78017 100644 --- a/include/spl.h +++ b/include/spl.h @@ -67,7 +67,18 @@ extern struct spl_image_info spl_image; void preloader_console_init(void); u32 spl_boot_device(void); u32 spl_boot_mode(const u32 boot_device); -void spl_set_header_raw_uboot(void); + +/** + * spl_set_header_raw_uboot() - Set up a standard SPL image structure + * + * This sets up the given spl_image which the standard values obtained from + * config options: CONFIG_SYS_MONITOR_LEN, CONFIG_SYS_UBOOT_START, + * CONFIG_SYS_TEXT_BASE. + * + * @spl_image: Image to set up + */ +void spl_set_header_raw_uboot(struct spl_image_info *spl_image); + int spl_parse_image_header(const struct image_header *header); void spl_board_prepare_for_linux(void); void spl_board_prepare_for_boot(void); |