From: Simon Glass Date: Sun, 13 Mar 2022 06:03:27 +0000 (-0700) Subject: x86: Add an enum name for the GNVS firmware type X-Git-Url: http://git.dujemihanovic.xyz/login.html?a=commitdiff_plain;h=978a8a296e699fbb0919c245f78317dea08eab8e;p=u-boot.git 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 Reviewed-by: Bin Meng --- diff --git a/arch/x86/include/asm/intel_gnvs.h b/arch/x86/include/asm/intel_gnvs.h index fc743dc928..0b69530edb 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,