summaryrefslogtreecommitdiffstats
path: root/src/arch/x86/smbios.c
diff options
context:
space:
mode:
authorTim Chu <Tim.Chu@quantatw.com>2021-10-19 01:45:12 +0000
committerFelix Held <felix-coreboot@felixheld.de>2021-10-21 20:06:59 +0000
commit13ab1d787907e0af9744ce1afbb855e9c5a2bb50 (patch)
tree9c87684bb195a173df6c0e37f5f1fc9d1c4ee494 /src/arch/x86/smbios.c
parent91e8c2a1d40c5a41869b2a9595fb2cc2c5f579f5 (diff)
downloadcoreboot-13ab1d787907e0af9744ce1afbb855e9c5a2bb50.tar.gz
coreboot-13ab1d787907e0af9744ce1afbb855e9c5a2bb50.tar.bz2
coreboot-13ab1d787907e0af9744ce1afbb855e9c5a2bb50.zip
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 <Tim.Chu@quantatw.com> Change-Id: If79ba65426f1f18ebb55a0f3ef022bee83c1a93b Reviewed-on: https://review.coreboot.org/c/coreboot/+/58436 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Jonathan Zhang <jonzhang@fb.com>
Diffstat (limited to 'src/arch/x86/smbios.c')
-rw-r--r--src/arch/x86/smbios.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/arch/x86/smbios.c b/src/arch/x86/smbios.c
index 04f8717e724a..ea429713ae40 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