smbios: Mark laptops as such
Change-Id: I179a4cede2f826f72a400208748798737216c01a Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com> Reviewed-on: http://review.coreboot.org/7071 Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Tested-by: build bot (Jenkins)
This commit is contained in:
@@ -253,7 +253,11 @@ 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;
|
||||
t->_type = SMBIOS_ENCLOSURE_DESKTOP;
|
||||
if(IS_ENABLED(CONFIG_SYSTEM_TYPE_LAPTOP)) {
|
||||
t->_type = SMBIOS_ENCLOSURE_NOTEBOOK;
|
||||
} else {
|
||||
t->_type = SMBIOS_ENCLOSURE_DESKTOP;
|
||||
}
|
||||
t->security_status = SMBIOS_STATE_SAFE;
|
||||
len = t->length + smbios_string_table_len(t->eos);
|
||||
*current += len;
|
||||
|
Reference in New Issue
Block a user