diff mbox

[U-Boot,05/27] spl: Add function comments to spl_start_uboot()

Message ID 1474227917-9256-6-git-send-email-sjg@chromium.org
State Accepted
Commit f59961e343cc591b99a78690eb01ec590e15baa7
Delegated to: Tom Rini
Headers show

Commit Message

Simon Glass Sept. 18, 2016, 7:44 p.m. UTC
Add some comments to describe this function.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 include/spl.h | 11 +++++++++++
 1 file changed, 11 insertions(+)

Comments

Tom Rini Sept. 18, 2016, 10:15 p.m. UTC | #1
On Sun, Sep 18, 2016 at 01:44:54PM -0600, Simon Glass wrote:

> Add some comments to describe this function.
> 
> Signed-off-by: Simon Glass <sjg@chromium.org>

Reviewed-by: Tom Rini <trini@konsulko.com>
diff mbox

Patch

diff --git a/include/spl.h b/include/spl.h
index aebafa3..742e6c2 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 */