From e5f6ff88c468e93b00a3bd9216d33df8e8a079a5 Mon Sep 17 00:00:00 2001 From: Wonkyu Kim Date: Thu, 13 Oct 2022 13:34:27 -0700 Subject: 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 Change-Id: I360d33617b9d2626fce5600e861214b0747f57b4 Reviewed-on: https://review.coreboot.org/c/coreboot/+/68416 Tested-by: build bot (Jenkins) Reviewed-by: Subrata Banik Reviewed-by: Angel Pons Reviewed-by: Kapil Porwal --- src/soc/intel/meteorlake/chip.h | 6 ++++++ src/soc/intel/meteorlake/romstage/fsp_params.c | 3 +++ 2 files changed, 9 insertions(+) (limited to 'src/soc/intel') 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, -- cgit v1.2.3