mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
UPSTREAM: arch/x86/smbios: Correct manufacturer ID
Correct standard manufacturer's identification code. Change-Id: I273711e121a61a91176c15cd4cab75420f1f5a39 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/15271 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth <martinroth@google.com> Reviewed-on: https://chromium-review.googlesource.com/356444 Commit-Ready: Furquan Shaikh <furquan@chromium.org> Tested-by: Furquan Shaikh <furquan@chromium.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
parent
dc5072674e
commit
23eaaf6811
1 changed files with 12 additions and 9 deletions
|
@ -15,6 +15,13 @@
|
||||||
* GNU General Public License for more details.
|
* GNU General Public License for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Standard Manufacturer’s Identification Code
|
||||||
|
* JEP106AS (Revision of JEP106AR, October 2015)
|
||||||
|
* MAY 2016
|
||||||
|
* http://www.jedec.org/standards-documents/results/JEP106AS
|
||||||
|
*/
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <smbios.h>
|
#include <smbios.h>
|
||||||
|
@ -127,7 +134,7 @@ static int smbios_processor_name(char *start)
|
||||||
void smbios_fill_dimm_manufacturer_from_id(uint16_t mod_id, struct smbios_type17 *t)
|
void smbios_fill_dimm_manufacturer_from_id(uint16_t mod_id, struct smbios_type17 *t)
|
||||||
{
|
{
|
||||||
switch (mod_id) {
|
switch (mod_id) {
|
||||||
case 0x2c80:
|
case 0x9b05:
|
||||||
t->manufacturer = smbios_add_string(t->eos,
|
t->manufacturer = smbios_add_string(t->eos,
|
||||||
"Crucial");
|
"Crucial");
|
||||||
break;
|
break;
|
||||||
|
@ -143,7 +150,7 @@ void smbios_fill_dimm_manufacturer_from_id(uint16_t mod_id, struct smbios_type17
|
||||||
t->manufacturer = smbios_add_string(t->eos,
|
t->manufacturer = smbios_add_string(t->eos,
|
||||||
"Kingston");
|
"Kingston");
|
||||||
break;
|
break;
|
||||||
case 0x987f:
|
case 0xad00:
|
||||||
t->manufacturer = smbios_add_string(t->eos,
|
t->manufacturer = smbios_add_string(t->eos,
|
||||||
"Hynix");
|
"Hynix");
|
||||||
break;
|
break;
|
||||||
|
@ -155,11 +162,7 @@ void smbios_fill_dimm_manufacturer_from_id(uint16_t mod_id, struct smbios_type17
|
||||||
t->manufacturer = smbios_add_string(t->eos,
|
t->manufacturer = smbios_add_string(t->eos,
|
||||||
"OCZ");
|
"OCZ");
|
||||||
break;
|
break;
|
||||||
case 0xad80:
|
case 0x3406:
|
||||||
t->manufacturer = smbios_add_string(t->eos,
|
|
||||||
"Hynix/Hyundai");
|
|
||||||
break;
|
|
||||||
case 0xb502:
|
|
||||||
t->manufacturer = smbios_add_string(t->eos,
|
t->manufacturer = smbios_add_string(t->eos,
|
||||||
"SuperTalent");
|
"SuperTalent");
|
||||||
break;
|
break;
|
||||||
|
@ -167,7 +170,7 @@ void smbios_fill_dimm_manufacturer_from_id(uint16_t mod_id, struct smbios_type17
|
||||||
t->manufacturer = smbios_add_string(t->eos,
|
t->manufacturer = smbios_add_string(t->eos,
|
||||||
"GSkill");
|
"GSkill");
|
||||||
break;
|
break;
|
||||||
case 0xce80:
|
case 0xce00:
|
||||||
t->manufacturer = smbios_add_string(t->eos,
|
t->manufacturer = smbios_add_string(t->eos,
|
||||||
"Samsung");
|
"Samsung");
|
||||||
break;
|
break;
|
||||||
|
@ -175,7 +178,7 @@ void smbios_fill_dimm_manufacturer_from_id(uint16_t mod_id, struct smbios_type17
|
||||||
t->manufacturer = smbios_add_string(t->eos,
|
t->manufacturer = smbios_add_string(t->eos,
|
||||||
"Elpida");
|
"Elpida");
|
||||||
break;
|
break;
|
||||||
case 0xff2c:
|
case 0x2c00:
|
||||||
t->manufacturer = smbios_add_string(t->eos,
|
t->manufacturer = smbios_add_string(t->eos,
|
||||||
"Micron");
|
"Micron");
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Reference in a new issue