From 821217b60fbaf58cdda6cfdc03d1f0fc1fc31011 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 27 Mar 2015 22:47:25 -0500 Subject: arch/x86/boot/smbios: Add additional SMBIOS defines and enums Change-Id: I337584d1f4ce32094c24478a99418e0775cf9ab5 Signed-off-by: Timothy Pearson Reviewed-on: http://review.coreboot.org/9135 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin --- src/arch/x86/boot/smbios.c | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'src/arch/x86') 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 , Raptor Engineering * Copyright (C) 2011 Sven Schnelle * * 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; + } } } -- cgit v1.2.3