smbios: Fix type1 family setting
The type1 family setting from chromium was mis-merged into the
type2 function. Move it to the correct type1 function.
Bad commit: 51bdc47816
Change-Id: I72e6ef80bbf185a39fcf169c8247dc16462e6bc3
Signed-off-by: Marc Jones <marc.jones@se-eng.com>
Reviewed-on: http://review.coreboot.org/10498
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Tested-by: build bot (Jenkins)
This commit is contained in:
parent
45e291eebc
commit
f43ba9cf18
|
@ -326,6 +326,9 @@ static int smbios_write_type1(unsigned long *current, int handle)
|
|||
t->product_name = smbios_add_string(t->eos, smbios_mainboard_product_name());
|
||||
t->serial_number = smbios_add_string(t->eos, smbios_mainboard_serial_number());
|
||||
t->version = smbios_add_string(t->eos, smbios_mainboard_version());
|
||||
#ifdef CONFIG_MAINBOARD_FAMILY
|
||||
t->family = smbios_add_string(t->eos, smbios_mainboard_family());
|
||||
#endif
|
||||
smbios_mainboard_set_uuid(t->uuid);
|
||||
len = t->length + smbios_string_table_len(t->eos);
|
||||
*current += len;
|
||||
|
@ -345,9 +348,6 @@ static int smbios_write_type2(unsigned long *current, int handle)
|
|||
t->product_name = smbios_add_string(t->eos, smbios_mainboard_product_name());
|
||||
t->serial_number = smbios_add_string(t->eos, smbios_mainboard_serial_number());
|
||||
t->version = smbios_add_string(t->eos, smbios_mainboard_version());
|
||||
#ifdef CONFIG_MAINBOARD_FAMILY
|
||||
t->family = smbios_add_string(t->eos, smbios_mainboard_family());
|
||||
#endif
|
||||
len = t->length + smbios_string_table_len(t->eos);
|
||||
*current += len;
|
||||
return len;
|
||||
|
|
Loading…
Reference in New Issue