aboutsummaryrefslogtreecommitdiff
path: root/arch/sandbox/include/asm
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2022-10-20 18:23:01 -0600
committerTom Rini <trini@konsulko.com>2022-10-31 11:02:44 -0400
commit830690d2ed29c5a0960ca13b00c938e352bf6f51 (patch)
treee065103d18f91c32b86cf805f18301ed9886c23a /arch/sandbox/include/asm
parent494e66d3a9abc5b47258a9f2d7b41f1341015c44 (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 <sjg@chromium.org>
Diffstat (limited to 'arch/sandbox/include/asm')
-rw-r--r--arch/sandbox/include/asm/spl.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/sandbox/include/asm/spl.h b/arch/sandbox/include/asm/spl.h
index bf5a585622..312aef7208 100644
--- a/arch/sandbox/include/asm/spl.h
+++ b/arch/sandbox/include/asm/spl.h
@@ -7,6 +7,9 @@
#define __asm_spl_h
enum {
+ BOOT_DEVICE_MMC1,
+ BOOT_DEVICE_MMC2,
+ BOOT_DEVICE_MMC2_2,
BOOT_DEVICE_BOARD,
};