]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
x86: Add an enum name for the GNVS firmware type
authorSimon Glass <sjg@chromium.org>
Sun, 13 Mar 2022 06:03:27 +0000 (23:03 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Mon, 14 Mar 2022 07:20:40 +0000 (15:20 +0800)
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>
arch/x86/include/asm/intel_gnvs.h

index fc743dc92858f646c68db44878de46210e7a66ed..0b69530edbfc502f8dd0d7ac072646cc15b8b240 100644 (file)
@@ -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,