From 2bc54e7c001c2f21752ac2365762a76ff1887b78 Mon Sep 17 00:00:00 2001 From: V Sowmya Date: Thu, 4 Aug 2022 22:50:51 +0530 Subject: soc/intel/alderlake: 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. Only ADL-N FSP has the required support to skip the MBP HOB and enabling it is saving the Boot time. BUG=b:241850107 TEST=Build and boot to verify that the right value has been passed to the FSP. Signed-off-by: V Sowmya Change-Id: Iddeb2c652fac9513b14139d6f732d333bbb989d0 Reviewed-on: https://review.coreboot.org/c/coreboot/+/66441 Tested-by: build bot (Jenkins) Reviewed-by: Reka Norman Reviewed-by: Kangheui Won Reviewed-by: Eric Lai --- src/soc/intel/alderlake/chip.h | 6 ++++++ src/soc/intel/alderlake/romstage/fsp_params.c | 3 +++ 2 files changed, 9 insertions(+) (limited to 'src') diff --git a/src/soc/intel/alderlake/chip.h b/src/soc/intel/alderlake/chip.h index f54cac2c42..06d1ef5ef4 100644 --- a/src/soc/intel/alderlake/chip.h +++ b/src/soc/intel/alderlake/chip.h @@ -637,6 +637,12 @@ struct soc_intel_alderlake_config { * Set this to 1 in order to disable Package C-state demotion. */ bool disable_package_c_state_demotion; + + /* + * 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_alderlake_config config_t; diff --git a/src/soc/intel/alderlake/romstage/fsp_params.c b/src/soc/intel/alderlake/romstage/fsp_params.c index 337c4a609b..71a1a5c92c 100644 --- a/src/soc/intel/alderlake/romstage/fsp_params.c +++ b/src/soc/intel/alderlake/romstage/fsp_params.c @@ -224,6 +224,9 @@ static void fill_fspm_misc_params(FSP_M_CONFIG *m_cfg, ARRAY_SIZE(path)); if (is_dev_enabled(dev)) m_cfg->CnviDdrRfim = wifi_generic_cnvi_ddr_rfim_enabled(dev); + + /* 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