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>
This commit is contained in:
parent
c867cd3675
commit
02bec2bd5c
|
@ -33,6 +33,7 @@ static bool use_ddr4_params(int dram_type)
|
|||
/* 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 @@ static void spd_get_name(const uint8_t spd[], int type, const char **spd_name, s
|
|||
/* 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];
|
||||
|
|
Loading…
Reference in New Issue