soc/intel/meteorlake: Add PsysPmax configuration
psys_pmax_watts is configured in SoC node of devicetree. Value represents Watts the PSU provides. Zero means automatic/default configuration (not optimal). BUG=b:289853442 TEST=Build google/rex/ovis4es target board Change-Id: I69afa06110254f6384352c062891c0c9c0b23070 Signed-off-by: Jakub Czapiga <jacz@semihalf.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/76796 Reviewed-by: Martin L Roth <gaumless@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
731e28a938
commit
bfadc78bd7
2 changed files with 8 additions and 0 deletions
|
@ -448,6 +448,9 @@ struct soc_intel_meteorlake_config {
|
||||||
* Set this to 1 in order to reduce BasicMemoryTest size
|
* Set this to 1 in order to reduce BasicMemoryTest size
|
||||||
*/
|
*/
|
||||||
bool lower_basic_mem_test_size;
|
bool lower_basic_mem_test_size;
|
||||||
|
|
||||||
|
/* Platform Power Pmax in Watts. Zero means automatic. */
|
||||||
|
uint16_t psys_pmax_watts;
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct soc_intel_meteorlake_config config_t;
|
typedef struct soc_intel_meteorlake_config config_t;
|
||||||
|
|
|
@ -257,6 +257,11 @@ static void fill_fspm_misc_params(FSP_M_CONFIG *m_cfg,
|
||||||
m_cfg->SkipMbpHob = !CONFIG(FSP_PUBLISH_MBP_HOB);
|
m_cfg->SkipMbpHob = !CONFIG(FSP_PUBLISH_MBP_HOB);
|
||||||
|
|
||||||
m_cfg->SkipExtGfxScan = config->skip_ext_gfx_scan;
|
m_cfg->SkipExtGfxScan = config->skip_ext_gfx_scan;
|
||||||
|
|
||||||
|
/* Set PsysPmax if it is available in DT.
|
||||||
|
PsysPmax is in unit of 1/8 Watt */
|
||||||
|
if (config->psys_pmax_watts)
|
||||||
|
m_cfg->PsysPmax = config->psys_pmax_watts * 8;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void fill_fspm_audio_params(FSP_M_CONFIG *m_cfg,
|
static void fill_fspm_audio_params(FSP_M_CONFIG *m_cfg,
|
||||||
|
|
Loading…
Reference in a new issue