mb/emulation/qemu-i440fx/northbridge.c: Use SMBIOS macros
Change-Id: I0297c8c4008d9e448793c38a3758dced9ede0d7e Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/43587 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
parent
416644085a
commit
a92acecb54
|
@ -192,10 +192,10 @@ static int qemu_get_smbios_data17(int handle, int parent_handle, unsigned long *
|
||||||
t->size = qemu_get_memory_size() / 1024;
|
t->size = qemu_get_memory_size() / 1024;
|
||||||
t->data_width = 64;
|
t->data_width = 64;
|
||||||
t->total_width = 64;
|
t->total_width = 64;
|
||||||
t->form_factor = 9; /* DIMM */
|
t->form_factor = MEMORY_FORMFACTOR_DIMM;
|
||||||
t->device_locator = smbios_add_string(t->eos, "Virtual");
|
t->device_locator = smbios_add_string(t->eos, "Virtual");
|
||||||
t->memory_type = 0x12; /* DDR */
|
t->memory_type = MEMORY_TYPE_DDR;
|
||||||
t->type_detail = 0x80; /* Synchronous */
|
t->type_detail = MEMORY_TYPE_DETAIL_SYNCHRONOUS;
|
||||||
t->speed = 200;
|
t->speed = 200;
|
||||||
t->clock_speed = 200;
|
t->clock_speed = 200;
|
||||||
t->manufacturer = smbios_add_string(t->eos, CONFIG_MAINBOARD_VENDOR);
|
t->manufacturer = smbios_add_string(t->eos, CONFIG_MAINBOARD_VENDOR);
|
||||||
|
|
Loading…
Reference in New Issue