soc/intel/meteorlake: Convert chip config into snake case

This patch converts below chip configs from camel case to snake
case to match with the other chip configs belongs to the chip
structure.
- SaGv
- RMT

Additionally, updated the `sagv` help text and operation as
applicable based on the FSPMUPD.h file (belongs to the vendorcode).

Signed-off-by: Subrata Banik <subratabanik@google.com>
Change-Id: I62e521cf3f46e888e2c995d83ac7dc666de1af82
Reviewed-on: https://review.coreboot.org/c/coreboot/+/72135
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Kapil Porwal <kapilporwal@google.com>
Reviewed-by: Sridhar Siricilla <sridhar.siricilla@intel.com>
This commit is contained in:
Subrata Banik 2023-01-20 21:38:05 +05:30
parent 7d68353d15
commit 289f9a5566
2 changed files with 8 additions and 12 deletions

View file

@ -122,19 +122,15 @@ struct soc_intel_meteorlake_config {
/* System Agent dynamic frequency support. Only effects ULX/ULT CPUs. /* System Agent dynamic frequency support. Only effects ULX/ULT CPUs.
* When enabled memory will be training at two different frequencies. * When enabled memory will be training at two different frequencies.
* 0:Disabled, 1:FixedPoint0, 2:FixedPoint1, 3:FixedPoint2, * 0:Disabled, 1:Enabled
* 4:FixedPoint3, 5:Enabled */ */
enum { enum {
SaGv_Disabled, SAGV_DISABLED,
SaGv_FixedPoint0, SAGV_ENABLED,
SaGv_FixedPoint1, } sagv;
SaGv_FixedPoint2,
SaGv_FixedPoint3,
SaGv_Enabled,
} SaGv;
/* Rank Margin Tool. 1:Enable, 0:Disable */ /* Rank Margin Tool. 1:Enable, 0:Disable */
uint8_t RMT; uint8_t rmt;
/* USB related */ /* USB related */
struct usb2_port_config usb2_ports[CONFIG_SOC_INTEL_USB2_DEV_MAX]; struct usb2_port_config usb2_ports[CONFIG_SOC_INTEL_USB2_DEV_MAX];

View file

@ -122,8 +122,8 @@ static void fill_fspm_igd_params(FSP_M_CONFIG *m_cfg,
static void fill_fspm_mrc_params(FSP_M_CONFIG *m_cfg, static void fill_fspm_mrc_params(FSP_M_CONFIG *m_cfg,
const struct soc_intel_meteorlake_config *config) const struct soc_intel_meteorlake_config *config)
{ {
m_cfg->SaGv = config->SaGv; m_cfg->SaGv = config->sagv;
m_cfg->RMT = config->RMT; m_cfg->RMT = config->rmt;
} }
static void fill_fspm_cpu_params(FSP_M_CONFIG *m_cfg, static void fill_fspm_cpu_params(FSP_M_CONFIG *m_cfg,