soc/intel/jasperlake: Enable Intel FIVR RFI settings

We already have RFI UPD settings to mitigate RFI noise issues in
platform. These UPDs were not getting filled via devicetree but
needed to be filled from fsp_params.c

Exporting these UPDs to chip.h will allow OEM/ODMs to fill it
directly from devicetree and also allow us to control it based
on boards instead of keeping it common across SoCs.

BUG=b:171683785
BRANCH=None
TEST=Compilation works and we're able to fill UPD from devicetree.Value
gets reflected in FSP UPDs.

Change-Id: I495cd2294368e6b3035c48b9556a83418d5632de
Signed-off-by: Maulik V Vaghela <maulik.v.vaghela@intel.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/47286
Reviewed-by: EricR Lai <ericr_lai@compal.corp-partner.google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Maulik V Vaghela 2020-11-06 10:56:57 +05:30 committed by Patrick Georgi
parent 27ba085334
commit 58ce44720a
2 changed files with 22 additions and 0 deletions

View File

@ -341,6 +341,24 @@ struct soc_intel_jasperlake_config {
* - PM_CFG.SLP_LAN_MIN_ASST_WDTH * - PM_CFG.SLP_LAN_MIN_ASST_WDTH
*/ */
uint8_t PchPmPwrCycDur; uint8_t PchPmPwrCycDur;
/*
* FIVR RFI Frequency
* PCODE MMIO Mailbox: Set the desired RFI frequency, in increments of 100KHz.
* 0: Auto.
* Range varies based on XTAL clock:
* 0-1918 (Up to 191.8HMz) for 24MHz clock;
* 0-1535 (Up to 153.5MHz) for 19MHz clock.
*/
uint16_t FivrRfiFrequency;
/*
* FIVR RFI Spread Spectrum
* Set the Spread Spectrum Range. <b>0: 0%</b>;
* FIVR RFI Spread Spectrum, in 0.1% increments.
* Range: 0.0% to 10.0% (0-100)
*/
uint8_t FivrSpreadSpectrum;
}; };
typedef struct soc_intel_jasperlake_config config_t; typedef struct soc_intel_jasperlake_config config_t;

View File

@ -216,6 +216,10 @@ void platform_fsp_silicon_init_params_cb(FSPS_UPD *supd)
/* Provide correct UART number for FSP debug logs */ /* Provide correct UART number for FSP debug logs */
params->SerialIoDebugUartNumber = CONFIG_UART_FOR_CONSOLE; params->SerialIoDebugUartNumber = CONFIG_UART_FOR_CONSOLE;
/* Configure FIVR RFI related settings */
params->FivrRfiFrequency = config->FivrRfiFrequency;
params->FivrSpreadSpectrum = config->FivrSpreadSpectrum;
/* Apply minimum assertion width settings if non-zero */ /* Apply minimum assertion width settings if non-zero */
if (config->PchPmSlpS3MinAssert) if (config->PchPmSlpS3MinAssert)
params->PchPmSlpS3MinAssert = config->PchPmSlpS3MinAssert; params->PchPmSlpS3MinAssert = config->PchPmSlpS3MinAssert;