soc/intel/alderlake: add MaxDramSpeed config
This change add MaxDramSpeed for variants usage to config dram speed. Signed-off-by: Casper Chang <casper_chang@wistron.corp-partner.google.com> Change-Id: Iba0fae0ab4ff0121dc63af792458492eeb21ec2b Reviewed-on: https://review.coreboot.org/c/coreboot/+/57866 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
This commit is contained in:
parent
28e2945ab1
commit
8fcefd3f6f
|
@ -436,6 +436,8 @@ struct soc_intel_alderlake_config {
|
|||
* 0 = VR_DOMAIN_IA Core 1 = VR_DOMAIN_GT.
|
||||
*/
|
||||
struct vr_config domain_vr_config[NUM_VR_DOMAINS];
|
||||
|
||||
uint16_t MaxDramSpeed;
|
||||
};
|
||||
|
||||
typedef struct soc_intel_alderlake_config config_t;
|
||||
|
|
|
@ -136,6 +136,8 @@ static void fill_fspm_mrc_params(FSP_M_CONFIG *m_cfg,
|
|||
{
|
||||
m_cfg->SaGv = config->SaGv;
|
||||
m_cfg->RMT = config->RMT;
|
||||
if (config->MaxDramSpeed)
|
||||
m_cfg->DdrFreqLimit = config->MaxDramSpeed;
|
||||
}
|
||||
|
||||
static void fill_fspm_cpu_params(FSP_M_CONFIG *m_cfg,
|
||||
|
|
Loading…
Reference in New Issue