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:
Elyes HAOUAS 2020-07-19 10:20:55 +02:00 committed by Patrick Georgi
parent 416644085a
commit a92acecb54
1 changed files with 3 additions and 3 deletions

View File

@ -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->data_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->memory_type = 0x12; /* DDR */
t->type_detail = 0x80; /* Synchronous */
t->memory_type = MEMORY_TYPE_DDR;
t->type_detail = MEMORY_TYPE_DETAIL_SYNCHRONOUS;
t->speed = 200;
t->clock_speed = 200;
t->manufacturer = smbios_add_string(t->eos, CONFIG_MAINBOARD_VENDOR);