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 <v.sowmya@intel.com>
Change-Id: Iddeb2c652fac9513b14139d6f732d333bbb989d0
Reviewed-on: https://review.coreboot.org/c/coreboot/+/66441
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Reka Norman <rekanorman@chromium.org>
Reviewed-by: Kangheui Won <khwon@chromium.org>
Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
This commit is contained in:
V Sowmya 2022-08-04 22:50:51 +05:30 committed by Martin Roth
parent 8b8e9bc84d
commit 2bc54e7c00
2 changed files with 9 additions and 0 deletions

View File

@ -637,6 +637,12 @@ struct soc_intel_alderlake_config {
* Set this to 1 in order to disable Package C-state demotion. * Set this to 1 in order to disable Package C-state demotion.
*/ */
bool 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; typedef struct soc_intel_alderlake_config config_t;

View File

@ -224,6 +224,9 @@ static void fill_fspm_misc_params(FSP_M_CONFIG *m_cfg,
ARRAY_SIZE(path)); ARRAY_SIZE(path));
if (is_dev_enabled(dev)) if (is_dev_enabled(dev))
m_cfg->CnviDdrRfim = wifi_generic_cnvi_ddr_rfim_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, static void fill_fspm_audio_params(FSP_M_CONFIG *m_cfg,