diff options
| author | Simon Glass <[email protected]> | 2022-10-20 18:23:01 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2022-10-31 11:02:44 -0400 |
| commit | 830690d2ed29c5a0960ca13b00c938e352bf6f51 (patch) | |
| tree | e065103d18f91c32b86cf805f18301ed9886c23a /include | |
| parent | 494e66d3a9abc5b47258a9f2d7b41f1341015c44 (diff) | |
sandbox: Generalise SPL booting
At present sandbox only supports jumping to a file, to get to the next
U-Boot phase. We want to support other methods, so update the code to
use an enum for the method. Also use the
Use board_boot_order() to set the order, so we can add more options.
Also add the MMC methods into the BOOT_DEVICE enum so that booting
from MMC can be supported.
Signed-off-by: Simon Glass <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/spl.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/spl.h b/include/spl.h index 09a12f815f6..c2c1f969a50 100644 --- a/include/spl.h +++ b/include/spl.h @@ -228,6 +228,15 @@ static inline const char *spl_phase_prefix(enum u_boot_phase phase) # define SPL_TPL_PROMPT "" #endif +/** + * enum spl_sandbox_flags - flags for sandbox's use of spl_image_info->flags + * + * @SPL_SANDBOXF_ARG_IS_FNAME: arg is the filename to jump to (default) + */ +enum spl_sandbox_flags { + SPL_SANDBOXF_ARG_IS_FNAME = 0, +}; + struct spl_image_info { const char *name; u8 os; |
