summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFranklin Lin <franklin_lin@wistron.corp-partner.google.com>2022-07-15 17:53:13 +0800
committerFelix Held <felix-coreboot@felixheld.de>2022-07-20 12:36:52 +0000
commit759bb4c00d818011c754e62afbe554b6a4cb52d4 (patch)
tree4f43bf68575536994a353e40854f1cdd0eca2b8d /src
parente69851cd8a2efd9ccffe14465fe7fdbb5c93eed1 (diff)
soc/intel/alderlake/fsp_params.c: Set DdrSpeedControl UPD
When override "max_dram_speed_mts", set the DdrSpeedControl to manual. (0:Auto, 1:Manual) BUG=b:229549930 BRANCH=none TEST=build coreboot without error Signed-off-by: Franklin Lin <franklin_lin@wistron.corp-partner.google.com> Change-Id: Iffbbee8082fb1a41e0ed1db3f4ea9ec4709c9ce7 Reviewed-on: https://review.coreboot.org/c/coreboot/+/65877 Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src')
-rw-r--r--src/soc/intel/alderlake/romstage/fsp_params.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/soc/intel/alderlake/romstage/fsp_params.c b/src/soc/intel/alderlake/romstage/fsp_params.c
index 4e58c29008..337c4a609b 100644
--- a/src/soc/intel/alderlake/romstage/fsp_params.c
+++ b/src/soc/intel/alderlake/romstage/fsp_params.c
@@ -150,8 +150,10 @@ static void fill_fspm_mrc_params(FSP_M_CONFIG *m_cfg,
{
m_cfg->SaGv = config->sagv;
m_cfg->RMT = config->RMT;
- if (config->max_dram_speed_mts)
+ if (config->max_dram_speed_mts) {
m_cfg->DdrFreqLimit = config->max_dram_speed_mts;
+ m_cfg->DdrSpeedControl = 1;
+ }
}
static void fill_fspm_cpu_params(FSP_M_CONFIG *m_cfg,