summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-09-24 18:19:54 -0600
committerTom Rini <trini@konsulko.com>2016-10-06 14:48:19 -0400
commitca12e65caa42dc9c095cce0990ae94d41cf62a71 (patch)
treed13eab6bd8ed99eb98c15aef9a7e85b260a244f2 /include
parent71316c1d8c1799b444d14cfb00eaacb6cf1ce44a (diff)
downloadu-boot-imx-ca12e65caa42dc9c095cce0990ae94d41cf62a71.zip
u-boot-imx-ca12e65caa42dc9c095cce0990ae94d41cf62a71.tar.gz
u-boot-imx-ca12e65caa42dc9c095cce0990ae94d41cf62a71.tar.bz2
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')
-rw-r--r--include/spl.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/include/spl.h b/include/spl.h
index 1770fd8..7fba485 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);