summaryrefslogtreecommitdiff
path: root/src/arch/x86/boot
diff options
context:
space:
mode:
authorTimothy Pearson <tpearson@raptorengineeringinc.com>2015-03-27 22:47:25 -0500
committerAaron Durbin <adurbin@gmail.com>2015-03-29 16:33:00 +0200
commit821217b60fbaf58cdda6cfdc03d1f0fc1fc31011 (patch)
tree2ac8f6eacdb3145cd25330544633486f411e9818 /src/arch/x86/boot
parentfef509499f9dc97c0c8bc9498191c0635486000e (diff)
arch/x86/boot/smbios: Add additional SMBIOS defines and enums
Change-Id: I337584d1f4ce32094c24478a99418e0775cf9ab5 Signed-off-by: Timothy Pearson <tpearson@raptorengineeringinc.com> Reviewed-on: http://review.coreboot.org/9135 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@google.com>
Diffstat (limited to 'src/arch/x86/boot')
-rw-r--r--src/arch/x86/boot/smbios.c17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/arch/x86/boot/smbios.c b/src/arch/x86/boot/smbios.c
index 16e25311a3..9931ff3dbe 100644
--- a/src/arch/x86/boot/smbios.c
+++ b/src/arch/x86/boot/smbios.c
@@ -1,6 +1,7 @@
/*
* This file is part of the coreboot project.
*
+ * Copyright (C) 2015 Timothy Pearson <tpearson@raptorengineeringinc.com>, Raptor Engineering
* Copyright (C) 2011 Sven Schnelle <svens@stackframe.org>
*
* This program is free software; you can redistribute it and/or
@@ -125,6 +126,10 @@ static int smbios_processor_name(char *start)
static void fill_dimm_manufacturer(uint16_t mod_id, struct smbios_type17 *t)
{
switch (mod_id) {
+ case 0x987f:
+ t->manufacturer = smbios_add_string(t->eos,
+ "Hynix");
+ break;
case 0xad80:
t->manufacturer = smbios_add_string(t->eos,
"Hynix/Hyundai");
@@ -137,10 +142,18 @@ static void fill_dimm_manufacturer(uint16_t mod_id, struct smbios_type17 *t)
t->manufacturer = smbios_add_string(t->eos,
"Elpida");
break;
- default:
+ case 0xff2c:
t->manufacturer = smbios_add_string(t->eos,
- "Unknown");
+ "Micron");
break;
+ default: {
+ char string_buffer[256];
+ snprintf(string_buffer, sizeof(string_buffer),
+ "Unknown (%x)", mod_id);
+ t->manufacturer = smbios_add_string(t->eos,
+ string_buffer);
+ break;
+ }
}
}