diff options
| author | Simon Glass <[email protected]> | 2023-12-15 20:14:21 -0700 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2023-12-21 16:07:52 -0500 |
| commit | e1a24c025c3b065b417bd0dd491cb7000583b334 (patch) | |
| tree | 19ce5052dff83bd388354b9848ec104cccbda5c2 /include | |
| parent | 725ddf1f24f7d08aa344f64d06c62cf5f50a6b6c (diff) | |
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 <[email protected]>
Reviewed-by: Tom Rini <[email protected]>
Diffstat (limited to 'include')
| -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 628d3d3e83f..6e6b2ad8f7e 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); /* |
