summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatt DeVillier <matt.devillier@amd.corp-partner.google.com>2022-08-23 11:49:54 -0500
committerMartin L Roth <gaumless@gmail.com>2022-08-25 01:02:04 +0000
commitb4a5ef4ffe179bdcfe9a14efa9dc0a8f2acec225 (patch)
tree503a30bc7b596549cf715bc4b4ac9bcc374507db /src
parent32bb6b6500eab66658928c5930e899577e5a44b8 (diff)
soc/amd/common/fsp/dmi: Print MT/s speeds, not frequency in debug output
Since the frequency field is deprecated, print the max/configured MT/s speeds instead. TEST=build/boot google/skyrim, verify output in cbmem console log Change-Id: Icee5af762ca37c3b2ec8c9a52a7f32fb848390b0 Signed-off-by: Matt DeVillier <matt.devillier@amd.corp-partner.google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/66980 Reviewed-by: Raul Rangel <rrangel@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Fred Reitberger <reitbergerfred@gmail.com> Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/soc/amd/common/fsp/dmi.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/soc/amd/common/fsp/dmi.c b/src/soc/amd/common/fsp/dmi.c
index 872417ba44..e3b6fad221 100644
--- a/src/soc/amd/common/fsp/dmi.c
+++ b/src/soc/amd/common/fsp/dmi.c
@@ -77,7 +77,8 @@ static void print_dimm_info(const struct dimm_info *dimm)
"CBMEM_ID_MEMINFO:\n"
" dimm_size: %u\n"
" ddr_type: 0x%hx\n"
- " ddr_frequency: %hu\n"
+ " max_speed_mts: %hu\n"
+ " config_speed_mts: %hu\n"
" rank_per_dimm: %hhu\n"
" channel_num: %hhu\n"
" dimm_num: %hhu\n"
@@ -89,7 +90,8 @@ static void print_dimm_info(const struct dimm_info *dimm)
" module_part_number(%zu): %s\n",
dimm->dimm_size,
dimm->ddr_type,
- dimm->ddr_frequency,
+ dimm->max_speed_mts,
+ dimm->configured_speed_mts,
dimm->rank_per_dimm,
dimm->channel_num,
dimm->dimm_num,