All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 1/2] x86: Add an enum name for the GNVS firmware type
@ 2022-03-13  6:03 Simon Glass
  2022-03-13  6:03 ` [PATCH v2 2/2] x86: Correct the coreboot header file in MAINTAINERS Simon Glass
  2022-03-14  7:18 ` [PATCH v2 1/2] x86: Add an enum name for the GNVS firmware type Bin Meng
  0 siblings, 2 replies; 4+ messages in thread
From: Simon Glass @ 2022-03-13  6:03 UTC (permalink / raw)
  To: U-Boot Mailing List; +Cc: Bin Meng, Simon Glass

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>
---

Changes in v2:
- Add some comments for the enum

 arch/x86/include/asm/intel_gnvs.h | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

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,
-- 
2.35.1.723.g4982287a31-goog


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-03-14  7:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-13  6:03 [PATCH v2 1/2] x86: Add an enum name for the GNVS firmware type Simon Glass
2022-03-13  6:03 ` [PATCH v2 2/2] x86: Correct the coreboot header file in MAINTAINERS Simon Glass
2022-03-14  7:18   ` Bin Meng
2022-03-14  7:18 ` [PATCH v2 1/2] x86: Add an enum name for the GNVS firmware type Bin Meng

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.