summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohnny Lin <johnny_lin@wiwynn.com>2019-11-14 15:08:09 +0800
committerPatrick Georgi <pgeorgi@google.com>2019-11-28 10:51:19 +0000
commitc3a8d63788438bd9c477e88a8cd0de73e981c33e (patch)
tree315249c52686d8e1a35846faf3c8ee0ff0701cf9
parent556630336244941efcaa6750d954da6dbb0ce72d (diff)
downloadcoreboot-c3a8d63788438bd9c477e88a8cd0de73e981c33e.tar.gz
mb/ocp/monolake: Override SMBIOS UUID with the value sent by BMC
Tested on OCP Mono Lake with dmidecode -t 1 and the expected UUID is visible. Change-Id: I0aab4df67b7aaba8be6ddbb13984fffb2b14fe6b Signed-off-by: Johnny Lin <johnny_lin@wiwynn.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/37086 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: David Hendricks <david.hendricks@gmail.com>
-rw-r--r--src/mainboard/ocp/monolake/mainboard.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mainboard/ocp/monolake/mainboard.c b/src/mainboard/ocp/monolake/mainboard.c
index dffd19f0f0..a75aae7051 100644
--- a/src/mainboard/ocp/monolake/mainboard.c
+++ b/src/mainboard/ocp/monolake/mainboard.c
@@ -95,3 +95,9 @@ void smbios_fill_dimm_locator(const struct dimm_info *dimm, struct smbios_type17
dimm->dimm_num);
t->bank_locator = smbios_add_string(t->eos, locator);
}
+
+/* Override SMBIOS uuid from the value from BMC. */
+void smbios_system_set_uuid(u8 *uuid)
+{
+ ipmi_get_system_guid(BMC_KCS_BASE, uuid);
+}