summaryrefslogtreecommitdiff
path: root/src/mainboard/emulation/qemu-i440fx
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2020-07-19 10:20:55 +0200
committerPatrick Georgi <pgeorgi@google.com>2020-07-26 21:13:12 +0000
commita92acecb5409914abd47ef00d0fc1d65abbe7787 (patch)
tree9f25dfced363afd62b4d5582ffbd88352d5d46a3 /src/mainboard/emulation/qemu-i440fx
parent416644085a5c7daf07a2fd5cd6c76f6d25c73acf (diff)
downloadcoreboot-a92acecb5409914abd47ef00d0fc1d65abbe7787.tar.xz
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>
Diffstat (limited to 'src/mainboard/emulation/qemu-i440fx')
-rw-r--r--src/mainboard/emulation/qemu-i440fx/northbridge.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mainboard/emulation/qemu-i440fx/northbridge.c b/src/mainboard/emulation/qemu-i440fx/northbridge.c
index 2b7d2036e0..d19d6c8207 100644
--- a/src/mainboard/emulation/qemu-i440fx/northbridge.c
+++ b/src/mainboard/emulation/qemu-i440fx/northbridge.c
@@ -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);