summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/include/spd_bin.h3
-rw-r--r--src/lib/spd_bin.c9
2 files changed, 11 insertions, 1 deletions
diff --git a/src/include/spd_bin.h b/src/include/spd_bin.h
index c78f7c3267..fb771f2bf8 100644
--- a/src/include/spd_bin.h
+++ b/src/include/spd_bin.h
@@ -29,6 +29,9 @@
#define SPD_DRAM_LPDDR3_JEDEC 0x0F
#define SPD_DRAM_DDR4 0x0C
#define SPD_DRAM_LPDDR4 0x10
+#define SPD_DRAM_LPDDR4X 0x11
+#define SPD_DRAM_DDR5 0x12
+#define SPD_DRAM_LPDDR5 0x13
#define SPD_DENSITY_BANKS 4
#define SPD_ADDRESSING 5
#define DDR3_ORGANIZATION 7
diff --git a/src/lib/spd_bin.c b/src/lib/spd_bin.c
index 35bcb4c2c7..f59e187037 100644
--- a/src/lib/spd_bin.c
+++ b/src/lib/spd_bin.c
@@ -36,10 +36,11 @@ static bool use_ddr4_params(int dram_type)
case SPD_DRAM_DDR3:
case SPD_DRAM_LPDDR3_INTEL:
return false;
- /* LPDDR3, LPDDR4 and DDR4 share the same attributes */
+ /* Below DDR type share the same attributes */
case SPD_DRAM_LPDDR3_JEDEC:
case SPD_DRAM_DDR4:
case SPD_DRAM_LPDDR4:
+ case SPD_DRAM_LPDDR4X:
return true;
default:
printk(BIOS_ERR, "Defaulting to using DDR4 params. Please add dram_type check for %d to %s\n",
@@ -60,6 +61,12 @@ static const char *spd_get_module_type_string(int dram_type)
return "DDR4";
case SPD_DRAM_LPDDR4:
return "LPDDR4";
+ case SPD_DRAM_LPDDR4X:
+ return "LPDDR4X";
+ case SPD_DRAM_DDR5:
+ return "DDR5";
+ case SPD_DRAM_LPDDR5:
+ return "LPDDR5";
}
return "UNKNOWN";
}