summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSubrata Banik <subratabanik@google.com>2022-11-04 18:33:37 +0530
committerEric Lai <eric_lai@quanta.corp-partner.google.com>2022-11-07 02:29:23 +0000
commitca971d132508a32caada6195cae8471afc13db38 (patch)
treecdc5978ad57b4cf54d61c7cb0948ddf5c781d2f6 /src
parent624bf72709423d72acda107ed6d00b945068268d (diff)
lib: Add LPDDR5x DRAM type
BUG=none TEST=Able to build and boot Google, Rex SKU2 (Micron LPDDR5x MT62F1G32D2DS-026). Without this code change: [INFO ] SPD: module type is UNKNOWN With this code change: [INFO ] SPD: module type is LPDDR5X Signed-off-by: Subrata Banik <subratabanik@google.com> Change-Id: If620cf51133ca295fd3f1cbecbb472beb337b9fc Reviewed-on: https://review.coreboot.org/c/coreboot/+/69226 Reviewed-by: Tarun Tuli <taruntuli@google.com> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src')
-rw-r--r--src/include/spd_bin.h1
-rw-r--r--src/lib/spd_bin.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/src/include/spd_bin.h b/src/include/spd_bin.h
index 973eb498a7..d0cdefcac1 100644
--- a/src/include/spd_bin.h
+++ b/src/include/spd_bin.h
@@ -19,6 +19,7 @@
#define SPD_DRAM_LPDDR4X 0x11
#define SPD_DRAM_DDR5 0x12
#define SPD_DRAM_LPDDR5 0x13
+#define SPD_DRAM_LPDDR5X 0x15
#define SPD_DENSITY_BANKS 4
#define SPD_ADDRESSING 5
#define SPD_SN_LEN 4
diff --git a/src/lib/spd_bin.c b/src/lib/spd_bin.c
index 0aaaee6e4f..e005ccbad9 100644
--- a/src/lib/spd_bin.c
+++ b/src/lib/spd_bin.c
@@ -63,6 +63,8 @@ static const char *spd_get_module_type_string(int dram_type)
return "DDR5";
case SPD_DRAM_LPDDR5:
return "LPDDR5";
+ case SPD_DRAM_LPDDR5X:
+ return "LPDDR5X";
}
return "UNKNOWN";
}