diff options
author | Wonkyu Kim <wonkyu.kim@intel.com> | 2022-10-13 13:34:27 -0700 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2022-10-20 17:18:45 +0000 |
commit | e5f6ff88c468e93b00a3bd9216d33df8e8a079a5 (patch) | |
tree | 2884f08e4eafa9d96d16dd8d90100bdbfc3b448e /src | |
parent | 97e612586af1ece276b5dd3d3623bf80486c0b26 (diff) |
soc/intel/meteorlake: Add support to skip the MBP HOB
This patch adds the support to enable/disable skipping MBP HOB
from the devicetree based on mainboard requirement.
Porting the feature from commit 2bc54e7c001c
("soc/intel/alderlake: Add support to skip the MBP HOB")
TEST=Build and boot to verify that the right value has been passed to
the FSP.
Signed-off-by: Wonkyu Kim <wonkyu.kim@intel.com>
Change-Id: I360d33617b9d2626fce5600e861214b0747f57b4
Reviewed-on: https://review.coreboot.org/c/coreboot/+/68416
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Subrata Banik <subratabanik@google.com>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Kapil Porwal <kapilporwal@google.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/soc/intel/meteorlake/chip.h | 6 | ||||
-rw-r--r-- | src/soc/intel/meteorlake/romstage/fsp_params.c | 3 |
2 files changed, 9 insertions, 0 deletions
diff --git a/src/soc/intel/meteorlake/chip.h b/src/soc/intel/meteorlake/chip.h index 1d335c574e..b6e3ab25b1 100644 --- a/src/soc/intel/meteorlake/chip.h +++ b/src/soc/intel/meteorlake/chip.h @@ -325,6 +325,12 @@ struct soc_intel_meteorlake_config { * Default 0. */ uint8_t lan_clk; + + /* + * Enable or Disable Skipping MBP HOB. + * Default is set to 0 and set to 1 to skip the MBP HOB. + */ + bool skip_mbp_hob; }; typedef struct soc_intel_meteorlake_config config_t; diff --git a/src/soc/intel/meteorlake/romstage/fsp_params.c b/src/soc/intel/meteorlake/romstage/fsp_params.c index 60324e9827..0ca37564ae 100644 --- a/src/soc/intel/meteorlake/romstage/fsp_params.c +++ b/src/soc/intel/meteorlake/romstage/fsp_params.c @@ -173,6 +173,9 @@ static void fill_fspm_misc_params(FSP_M_CONFIG *m_cfg, /* Skip GPIO configuration from FSP */ m_cfg->GpioOverride = 0x1; + + /* Skip MBP HOB */ + m_cfg->SkipMbpHob = config->skip_mbp_hob; } static void fill_fspm_audio_params(FSP_M_CONFIG *m_cfg, |