aboutsummaryrefslogtreecommitdiff
path: root/include/bootm.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-12-15 20:14:21 -0700
committerTom Rini <trini@konsulko.com>2023-12-21 16:07:52 -0500
commite1a24c025c3b065b417bd0dd491cb7000583b334 (patch)
tree19ce5052dff83bd388354b9848ec104cccbda5c2 /include/bootm.h
parent725ddf1f24f7d08aa344f64d06c62cf5f50a6b6c (diff)
downloadu-boot-e1a24c025c3b065b417bd0dd491cb7000583b334.zip
u-boot-e1a24c025c3b065b417bd0dd491cb7000583b334.tar.gz
u-boot-e1a24c025c3b065b417bd0dd491cb7000583b334.tar.bz2
bootm: Create a function to run through the bootm states
In quite a few places, the bootm command is used to handle a boot. We want these to be done without needing CONFIG_CMDLINE, so add a new bootm_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 628d3d3..6e6b2ad 100644
--- a/include/bootm.h
+++ b/include/bootm.h
@@ -150,6 +150,19 @@ int bootm_measure(struct bootm_headers *images);
*/
int bootm_run_states(struct bootm_info *bmi, int states);
+/**
+ * bootm_run() - Run the entire bootm process
+ *
+ * This runs through the bootm 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 bootm_run(struct bootm_info *bmi);
+
void arch_preboot_os(void);
/*