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 <patrick.rudolph@9elements.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/90396
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Patrick Rudolph 2025-12-05 14:07:05 +01:00 committed by Matt DeVillier
commit 06446dd0ac

View file

@ -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;