diff options
author | Simon Glass <sjg@chromium.org> | 2022-03-12 23:03:27 -0700 |
---|---|---|
committer | Bin Meng <bmeng.cn@gmail.com> | 2022-03-14 15:20:40 +0800 |
commit | 978a8a296e699fbb0919c245f78317dea08eab8e (patch) | |
tree | ed72c680bd7da0e1d2db3b599542ea034b3ea8ff /arch | |
parent | c96137000e4cf486dcb164fd67a1a0b5b2fb99c6 (diff) | |
download | u-boot-978a8a296e699fbb0919c245f78317dea08eab8e.tar.gz |
x86: Add an enum name for the GNVS firmware type
This enum is currently anonymous. Add a name so it can be used in the
code.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/include/asm/intel_gnvs.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/x86/include/asm/intel_gnvs.h b/arch/x86/include/asm/intel_gnvs.h index fc743dc9285..0b69530edbf 100644 --- a/arch/x86/include/asm/intel_gnvs.h +++ b/arch/x86/include/asm/intel_gnvs.h @@ -47,7 +47,13 @@ enum { BINF_RW_B = 2 }; -enum { +/** + * enum cros_fw_type_t - Used to indicate Chromium OS firmware type + * + * Chromium OS uses a region of the GNVS starting at offset 0x100 to store + * various bits of information, including the type of firmware being booted + */ +enum cros_fw_type_t { FIRMWARE_TYPE_AUTO_DETECT = -1, FIRMWARE_TYPE_RECOVERY = 0, FIRMWARE_TYPE_NORMAL = 1, |