summaryrefslogtreecommitdiff
path: root/include/spl.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-09-25 00:19:55 (GMT)
committerTom Rini <trini@konsulko.com>2016-10-06 18:48:19 (GMT)
commitf59961e343cc591b99a78690eb01ec590e15baa7 (patch)
treeb1a70acb295f15e06ed2c26e0bfa442defaa0d1c /include/spl.h
parentca12e65caa42dc9c095cce0990ae94d41cf62a71 (diff)
downloadu-boot-f59961e343cc591b99a78690eb01ec590e15baa7.tar.xz
spl: Add function comments to spl_start_uboot()
Add some comments to describe this function. 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.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/spl.h b/include/spl.h
index 7fba485..16f1ef4 100644
--- a/include/spl.h
+++ b/include/spl.h
@@ -110,7 +110,18 @@ int spl_board_ubi_load_image(u32 boot_device);
*/
void __noreturn jump_to_image_linux(struct spl_image_info *spl_image,
void *arg);
+
+/**
+ * spl_start_uboot() - Check if SPL should start the kernel or U-Boot
+ *
+ * This is called by the various SPL loaders to determine whether the board
+ * wants to load the kernel or U-Boot. This function should be provided by
+ * the board.
+ *
+ * @return 0 if SPL should start the kernel, 1 if U-Boot must be started
+ */
int spl_start_uboot(void);
+
void spl_display_print(void);
/* NAND SPL functions */