lib: Add DDR5 DRAM type
TEST=Not seeing default msg "Defaulting to using DDR4 params." with
this CL.
Change-Id: Ib751396ec74b1491fd08b88b07462b315c4a152d
Signed-off-by: Subrata Banik <subrata.banik@intel.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/50745
Reviewed-by: Furquan Shaikh <furquan@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
diff --git a/src/lib/spd_bin.c b/src/lib/spd_bin.c
index 863218c..213d5f4 100644
--- a/src/lib/spd_bin.c
+++ b/src/lib/spd_bin.c
@@ -33,6 +33,7 @@
/* Below DDR type share the same attributes */
case SPD_DRAM_LPDDR3_JEDEC:
case SPD_DRAM_DDR4:
+ case SPD_DRAM_DDR5:
case SPD_DRAM_LPDDR4:
case SPD_DRAM_LPDDR4X:
return true;
@@ -163,6 +164,7 @@
/* LPDDR3, LPDDR4 and DDR4 have same part number offset and length */
case SPD_DRAM_LPDDR3_JEDEC:
case SPD_DRAM_DDR4:
+ case SPD_DRAM_DDR5:
case SPD_DRAM_LPDDR4:
case SPD_DRAM_LPDDR4X:
*spd_name = (const char *) &spd[DDR4_SPD_PART_OFF];