From ea99f0dcea1b56f6eb6318c9fbf14883031460af Mon Sep 17 00:00:00 2001 From: Scott Chao Date: Mon, 18 Apr 2022 10:40:18 +0800 Subject: [PATCH] lib: Add LPDDR5 DRAM type BUG=b:229437061 TEST=Not seeing default msg "Defaulting to using DDR4 params." with this CL. Signed-off-by: Scott Chao Change-Id: I98ba9e87b1a093b93434334a75c9a9252effa933 Reviewed-on: https://review.coreboot.org/c/coreboot/+/63680 Tested-by: build bot (Jenkins) Reviewed-by: Tim Wawrzynczak Reviewed-by: Subrata Banik --- src/lib/spd_bin.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/spd_bin.c b/src/lib/spd_bin.c index 1b236b0e8f..823f717910 100644 --- a/src/lib/spd_bin.c +++ b/src/lib/spd_bin.c @@ -34,6 +34,7 @@ static bool use_ddr4_params(int dram_type) case SPD_DRAM_LPDDR3_JEDEC: case SPD_DRAM_DDR4: case SPD_DRAM_DDR5: + case SPD_DRAM_LPDDR5: case SPD_DRAM_LPDDR4: case SPD_DRAM_LPDDR4X: return true; @@ -165,6 +166,7 @@ static void spd_get_name(const uint8_t spd[], int type, const char **spd_name, s case SPD_DRAM_LPDDR3_JEDEC: case SPD_DRAM_DDR4: case SPD_DRAM_DDR5: + case SPD_DRAM_LPDDR5: case SPD_DRAM_LPDDR4: case SPD_DRAM_LPDDR4X: if (spd[DDR4_SPD_PART_OFF]) {