From 13ab1d787907e0af9744ce1afbb855e9c5a2bb50 Mon Sep 17 00:00:00 2001 From: Tim Chu Date: Tue, 19 Oct 2021 01:45:12 +0000 Subject: arch/x86/smbios: Add support for wake-up type in smbios type 1 Add system wake-up type in smbios type 1 - system information. TESTED=On S9S, can override original value and show expected result using "dmidecode -t 1". Signed-off-by: Tim Chu Change-Id: If79ba65426f1f18ebb55a0f3ef022bee83c1a93b Reviewed-on: https://review.coreboot.org/c/coreboot/+/58436 Tested-by: build bot (Jenkins) Reviewed-by: Angel Pons Reviewed-by: Jonathan Zhang --- src/arch/x86/smbios.c | 1 + src/arch/x86/smbios_defaults.c | 5 +++++ 2 files changed, 6 insertions(+) (limited to 'src/arch/x86') diff --git a/src/arch/x86/smbios.c b/src/arch/x86/smbios.c index 04f8717e72..ea429713ae 100644 --- a/src/arch/x86/smbios.c +++ b/src/arch/x86/smbios.c @@ -489,6 +489,7 @@ static int smbios_write_type1(unsigned long *current, int handle) t->manufacturer = smbios_add_string(t->eos, smbios_system_manufacturer()); t->product_name = smbios_add_string(t->eos, smbios_system_product_name()); t->serial_number = smbios_add_string(t->eos, smbios_system_serial_number()); + t->wakeup_type = smbios_system_wakeup_type(); t->sku = smbios_add_string(t->eos, smbios_system_sku()); t->version = smbios_add_string(t->eos, smbios_system_version()); #ifdef CONFIG_MAINBOARD_FAMILY diff --git a/src/arch/x86/smbios_defaults.c b/src/arch/x86/smbios_defaults.c index 30bbea1a8e..8b62ebba14 100644 --- a/src/arch/x86/smbios_defaults.c +++ b/src/arch/x86/smbios_defaults.c @@ -27,6 +27,11 @@ __weak void smbios_fill_dimm_asset_tag(const struct dimm_info *dimm, struct smbi t->asset_tag = smbios_add_string(t->eos, buf); } +__weak smbios_wakeup_type smbios_system_wakeup_type(void) +{ + return SMBIOS_WAKEUP_TYPE_RESERVED; +} + __weak const char *smbios_mainboard_bios_version(void) { return NULL; -- cgit v1.2.3