device/dram/ddr2.c: Fix is_registered_ddr2

Type 0x10 is mini RDIMM according to JEDEC DDR2 SPD
specifications.

Change-Id: I6d35bd74961326ebd9225f044313b107aca24bda
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/20058
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
This commit is contained in:
Arthur Heymans 2017-06-07 00:17:06 +02:00 committed by Martin Roth
parent 459d2198eb
commit 87f7588c50
2 changed files with 3 additions and 2 deletions

View File

@ -39,7 +39,8 @@
int spd_dimm_is_registered_ddr2(enum spd_dimm_type type) int spd_dimm_is_registered_ddr2(enum spd_dimm_type type)
{ {
if ((type == SPD_DIMM_TYPE_RDIMM) if ((type == SPD_DIMM_TYPE_RDIMM)
| (type == SPD_DIMM_TYPE_72B_SO_RDIMM)) || (type == SPD_DIMM_TYPE_72B_SO_RDIMM)
|| (type == SPD_DIMM_TYPE_MINI_RDIMM))
return 1; return 1;
return 0; return 0;

View File

@ -75,7 +75,7 @@ enum spd_dimm_type {
SPD_DIMM_TYPE_72B_SO_CDIMM = 0x06, SPD_DIMM_TYPE_72B_SO_CDIMM = 0x06,
SPD_DIMM_TYPE_72B_SO_RDIMM = 0x07, SPD_DIMM_TYPE_72B_SO_RDIMM = 0x07,
SPD_DIMM_TYPE_MICRO_DIMM = 0x08, SPD_DIMM_TYPE_MICRO_DIMM = 0x08,
SPD_DIMM_TYPE_MINI_DIMM = 0x10, SPD_DIMM_TYPE_MINI_RDIMM = 0x10,
SPD_DIMM_TYPE_MINI_UDIMM = 0x20, SPD_DIMM_TYPE_MINI_UDIMM = 0x20,
/* Masks to bits 5:0 to give the dimm type */ /* Masks to bits 5:0 to give the dimm type */
SPD_DIMM_TYPE_MASK = 0x3f, SPD_DIMM_TYPE_MASK = 0x3f,