aboutsummaryrefslogtreecommitdiff
path: root/include/bootm.h
diff options
context:
space:
mode:
authorSimon Glass2023-12-15 20:14:23 -0700
committerTom Rini2023-12-21 16:07:52 -0500
commit3405c9b6a592585db80405d960ec219590689159 (patch)
treedd7e899e351f498e933885b360f5d29bee2324e6 /include/bootm.h
parent6b50aff13f55262210636d7329811c649173fb67 (diff)
bootm: Create a function to run through the bootz states
In a few places, the bootz command is used to handle a boot. We want these to be done without needing CONFIG_CMDLINE, so add a new bootz_run() function to handle this. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'include/bootm.h')
-rw-r--r--include/bootm.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/bootm.h b/include/bootm.h
index 6e6b2ad8f7e..f7d6d27ecb0 100644
--- a/include/bootm.h
+++ b/include/bootm.h
@@ -163,6 +163,19 @@ int bootm_run_states(struct bootm_info *bmi, int states);
*/
int bootm_run(struct bootm_info *bmi);
+/**
+ * bootz_run() - Run the entire bootz process
+ *
+ * This runs through the bootz process from start to finish, using the default
+ * set of states.
+ *
+ * This uses bootm_run_states().
+ *
+ * @bmi: bootm information
+ * Return: 0 if ok, something else on error
+ */
+int bootz_run(struct bootm_info *bmi);
+
void arch_preboot_os(void);
/*