diff options
author | Simon Glass | 2023-12-15 20:14:25 -0700 |
---|---|---|
committer | Tom Rini | 2023-12-21 16:07:52 -0500 |
commit | e7683c3675ce425e2f8149dedcaafa02175321ef (patch) | |
tree | 9f7c7f9e0cb540589722ec825d7fea3ba4cf5184 /include/bootm.h | |
parent | e4cee649b9628ee17c40d12097e2c122e8a5a803 (diff) |
bootm: Create a function to run through the booti states
In a few places, the booti command is used to handle a boot. We want
these to be done without needing CONFIG_CMDLINE, so add a new
booti_run() function to handle this.
So far this is not used.
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.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/bootm.h b/include/bootm.h index f7d6d27ecb0..eba35b33b4e 100644 --- a/include/bootm.h +++ b/include/bootm.h @@ -176,6 +176,19 @@ int bootm_run(struct bootm_info *bmi); */ int bootz_run(struct bootm_info *bmi); +/** + * booti_run() - Run the entire booti process + * + * This runs through the booti 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 booti_run(struct bootm_info *bmi); + void arch_preboot_os(void); /* |