summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2022-10-20 18:23:08 -0600
committerTom Rini <trini@konsulko.com>2022-10-31 11:03:18 -0400
commitf1459c365795a72fff94e249b0eb5cb61ead340e (patch)
tree5f375e56f815ea70a09786183b049399dbae97d7 /include
parent5a61bf17d893c269b9cec383ebdd7c1d5348a853 (diff)
downloadu-boot-f1459c365795a72fff94e249b0eb5cb61ead340e.tar.gz
u-boot-f1459c365795a72fff94e249b0eb5cb61ead340e.tar.bz2
u-boot-f1459c365795a72fff94e249b0eb5cb61ead340e.zip
sandbox: Support obtaining the next phase from an image
At present sandbox runs the next phase from discrete executables, so for example u-boot-tpl runs u-boot-vpl to get to the next phase. In some cases the phases are all built into a single firmware image, as is done for real boards. Add support for this to sandbox. Make it higher priority so that it takes precedence over the existing method. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/spl.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/spl.h b/include/spl.h
index c2c1f969a5..7286f4b5ca 100644
--- a/include/spl.h
+++ b/include/spl.h
@@ -232,9 +232,12 @@ static inline const char *spl_phase_prefix(enum u_boot_phase phase)
* 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)
+ * @SPL_SANDBOXF_ARG_IS_BUF: arg is the containing image to jump to, @offset is
+ * the start offset within the image, @size is the size of the image
*/
enum spl_sandbox_flags {
SPL_SANDBOXF_ARG_IS_FNAME = 0,
+ SPL_SANDBOXF_ARG_IS_BUF,
};
struct spl_image_info {