aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard/google/cyan/spd/spd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/google/cyan/spd/spd.c')
-rw-r--r--src/mainboard/google/cyan/spd/spd.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mainboard/google/cyan/spd/spd.c b/src/mainboard/google/cyan/spd/spd.c
index f38fc58ff8..a3db2ed6f4 100644
--- a/src/mainboard/google/cyan/spd/spd.c
+++ b/src/mainboard/google/cyan/spd/spd.c
@@ -137,7 +137,11 @@ static void set_dimm_info(uint8_t *spd, struct dimm_info *dimm)
}
/* Parse the SPD data to determine the DIMM information */
- dimm->ddr_type = MEMORY_DEVICE_DDR3;
+ if (IS_ENABLED(CONFIG_BOARD_GOOGLE_CYAN)) {
+ dimm->ddr_type = MEMORY_DEVICE_DDR3;
+ } else {
+ dimm->ddr_type = MEMORY_DEVICE_LPDDR3;
+ }
dimm->dimm_size = capmb / 8 * busw / devw * ranks; /* MiB */
dimm->mod_type = spd[3] & 0xf;
memcpy((char *)&dimm->module_part_number[0], &spd[0x80],