diff options
author | Simon Glass | 2023-11-18 14:05:19 -0700 |
---|---|---|
committer | Tom Rini | 2023-12-13 11:51:24 -0500 |
commit | 1047b5340c1203f825c0a68b33997b787be0123e (patch) | |
tree | e631e2a3dc1cfccf6a9aa3c61873f5a5ee479dfc /include | |
parent | 984e6fedb54ee45002b8b7e2de916346a1aca26c (diff) |
bootstd: Introduce programmatic boot
At present bootstd requires CONFIG_CMDLINE to operate. Add a new
'programmatic' boot which can be used when no command line is available.
For now it does almost nothing, since most bootmeths require the
command line.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/bootstd.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/bootstd.h b/include/bootstd.h index 7802564bcc6..99ce7b64e7c 100644 --- a/include/bootstd.h +++ b/include/bootstd.h @@ -94,4 +94,13 @@ int bootstd_get_priv(struct bootstd_priv **stdp); */ void bootstd_clear_glob(void); +/** + * bootstd_prog_boot() - Run standard boot in a fully programmatic mode + * + * Attempts to boot without making any use of U-Boot commands + * + * Returns: -ve error value (does not return except on failure to boot) + */ +int bootstd_prog_boot(void); + #endif |