From 9d231a9fd34670c235aa4baf88e6da9a225f56d1 Mon Sep 17 00:00:00 2001 From: Julien Viard de Galbert Date: Wed, 28 Feb 2018 13:39:55 +0100 Subject: smbios: Add option to select the enclosure type This allows for a mainboard to change the value from its Kconfig. The default value is still SMBIOS_ENCLOSURE_DESKTOP (0x03) or SMBIOS_ENCLOSURE_LAPTOP (0x09) if SYSTEM_TYPE_LAPTOP is set. Change-Id: I35bc913af69565531831746040a0afe0cabe1c58 Signed-off-by: Julien Viard de Galbert Reviewed-on: https://review.coreboot.org/23841 Tested-by: build bot (Jenkins) Reviewed-by: Nico Huber Reviewed-by: Patrick Rudolph Reviewed-by: Paul Menzel --- src/arch/x86/smbios.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/arch/x86') diff --git a/src/arch/x86/smbios.c b/src/arch/x86/smbios.c index e1743086e7..9df997320b 100644 --- a/src/arch/x86/smbios.c +++ b/src/arch/x86/smbios.c @@ -454,10 +454,7 @@ static int smbios_write_type3(unsigned long *current, int handle) t->bootup_state = SMBIOS_STATE_SAFE; t->power_supply_state = SMBIOS_STATE_SAFE; t->thermal_state = SMBIOS_STATE_SAFE; - if (IS_ENABLED(CONFIG_SYSTEM_TYPE_LAPTOP)) - t->_type = SMBIOS_ENCLOSURE_LAPTOP; - else - t->_type = SMBIOS_ENCLOSURE_DESKTOP; + t->_type = CONFIG_SMBIOS_ENCLOSURE_TYPE; t->security_status = SMBIOS_STATE_SAFE; len = t->length + smbios_string_table_len(t->eos); *current += len; -- cgit v1.2.3