diff options
author | Simon Glass <sjg@chromium.org> | 2016-09-24 18:19:54 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-10-06 14:48:19 -0400 |
commit | ca12e65caa42dc9c095cce0990ae94d41cf62a71 (patch) | |
tree | d13eab6bd8ed99eb98c15aef9a7e85b260a244f2 /include/spl.h | |
parent | 71316c1d8c1799b444d14cfb00eaacb6cf1ce44a (diff) | |
download | u-boot-ca12e65caa42dc9c095cce0990ae94d41cf62a71.tar.gz |
spl: Add a parameter to jump_to_image_linux()
Instead of using the global spl_image variable, pass the required struct in
as an argument.
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 | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/include/spl.h b/include/spl.h index 1770fd8860..7fba485fea 100644 --- a/include/spl.h +++ b/include/spl.h @@ -99,7 +99,17 @@ int spl_parse_image_header(struct spl_image_info *spl_image, void spl_board_prepare_for_linux(void); void spl_board_prepare_for_boot(void); int spl_board_ubi_load_image(u32 boot_device); -void __noreturn jump_to_image_linux(void *arg); + +/** + * jump_to_image_linux() - Jump to a Linux kernel from SPL + * + * This jumps into a Linux kernel using the information in @spl_image. + * + * @spl_image: Image description to set up + * @arg: Argument to pass to Linux (typically a device tree pointer) + */ +void __noreturn jump_to_image_linux(struct spl_image_info *spl_image, + void *arg); int spl_start_uboot(void); void spl_display_print(void); |