summaryrefslogtreecommitdiff
path: root/arch/arm/include/asm/mach-imx
diff options
context:
space:
mode:
authorYe Li <ye.li@nxp.com>2023-02-03 13:21:47 +0300
committerStefano Babic <sbabic@denx.de>2023-03-30 01:45:39 +0300
commit20ba9f252a483d7c2da2e1cf5659e47401c5d77f (patch)
treeb2185e56bbacd2a5a7de3aae838b6ef0dce4ff18 /arch/arm/include/asm/mach-imx
parente54882aefb5c906e460cb7c84bb072f360b29680 (diff)
downloadu-boot-20ba9f252a483d7c2da2e1cf5659e47401c5d77f.tar.xz
imx: spl_imx_romapi: Get and print boot stage
Get and print boot stage through ROM API in SPL Signed-off-by: Ye Li <ye.li@nxp.com> Reviewed-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'arch/arm/include/asm/mach-imx')
-rw-r--r--arch/arm/include/asm/mach-imx/sys_proto.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/include/asm/mach-imx/sys_proto.h b/arch/arm/include/asm/mach-imx/sys_proto.h
index 27fdc16cd5..2eacddb51f 100644
--- a/arch/arm/include/asm/mach-imx/sys_proto.h
+++ b/arch/arm/include/asm/mach-imx/sys_proto.h
@@ -172,6 +172,13 @@ enum boot_dev_type_e {
BT_DEV_TYPE_INVALID = 0xFF
};
+enum boot_stage_type {
+ BT_STAGE_PRIMARY = 0x6,
+ BT_STAGE_SECONDARY = 0x9,
+ BT_STAGE_RECOVERY = 0xa,
+ BT_STAGE_USB = 0x5,
+};
+
#define QUERY_ROM_VER 1
#define QUERY_BT_DEV 2
#define QUERY_PAGE_SZ 3