From 06446dd0ac844899df01fb72eb7cb4cb97e1639c Mon Sep 17 00:00:00 2001 From: Patrick Rudolph Date: Fri, 5 Dec 2025 14:07:05 +0100 Subject: [PATCH] dram/ddr3: Add speed in MT/s Fill in the speed in MT/s that the DIMM currently runs at and the speed it could run at. Change-Id: I936b97bd517f2fcf80ff403171fc89d4a4487761 Signed-off-by: Patrick Rudolph Reviewed-on: https://review.coreboot.org/c/coreboot/+/90396 Reviewed-by: Angel Pons Tested-by: build bot (Jenkins) --- src/device/dram/ddr3.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/device/dram/ddr3.c b/src/device/dram/ddr3.c index c99255ba5a..eb87289481 100644 --- a/src/device/dram/ddr3.c +++ b/src/device/dram/ddr3.c @@ -542,6 +542,9 @@ enum cb_err spd_add_smbios17(const u8 channel, const u8 slot, const u16 selected if (info->size_mb) { dimm->ddr_type = MEMORY_TYPE_DDR3; dimm->ddr_frequency = selected_freq; + dimm->configured_speed_mts = 2 * selected_freq; + if (info->tCK > 0) + dimm->max_speed_mts = 2 * NS2MHZ_DIV256 / info->tCK; dimm->dimm_size = info->size_mb; dimm->channel_num = channel; dimm->rank_per_dimm = info->ranks;