aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/include/smbios.h6
-rw-r--r--src/mainboard/ocp/deltalake/ramstage.c6
2 files changed, 12 insertions, 0 deletions
diff --git a/src/include/smbios.h b/src/include/smbios.h
index 78f364e336..694e091387 100644
--- a/src/include/smbios.h
+++ b/src/include/smbios.h
@@ -311,6 +311,12 @@ struct smbios_type1 {
u8 eos[2];
} __packed;
+#define SMBIOS_FEATURE_FLAGS_HOSTING_BOARD (1 << 0)
+#define SMBIOS_FEATURE_FLAGS_REQUIRES_DAUGHTER_CARD (1 << 1)
+#define SMBIOS_FEATURE_FLAGS_REMOVABLE (1 << 2)
+#define SMBIOS_FEATURE_FLAGS_REPLACEABLE (1 << 3)
+#define SMBIOS_FEATURE_FLAGS_HOT_SWAPPABLE (1 << 4)
+
typedef enum {
SMBIOS_BOARD_TYPE_UNKNOWN = 0x01,
SMBIOS_BOARD_TYPE_OTHER = 0x02,
diff --git a/src/mainboard/ocp/deltalake/ramstage.c b/src/mainboard/ocp/deltalake/ramstage.c
index 7c79949a6c..211ba0f7b6 100644
--- a/src/mainboard/ocp/deltalake/ramstage.c
+++ b/src/mainboard/ocp/deltalake/ramstage.c
@@ -56,6 +56,12 @@ const char *smbios_mainboard_location_in_chassis(void)
return slot_id_str;
}
+/* Override SMBIOS type 2 Feature Flags */
+u8 smbios_mainboard_feature_flags(void)
+{
+ return SMBIOS_FEATURE_FLAGS_HOSTING_BOARD | SMBIOS_FEATURE_FLAGS_REPLACEABLE;
+}
+
/*
* Override SMBIOS type 4 cpu voltage.
* BIT7 will set to 1 after value return. If BIT7 is set to 1, the remaining seven