summaryrefslogtreecommitdiffstats
path: root/src/soc/intel/icelake/romstage/fsp_params.c
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2021-04-05 11:40:11 +0200
committerPatrick Georgi <pgeorgi@google.com>2021-04-08 06:47:02 +0000
commit3993d38ae6ea85a8d05349e6d7534f4cde9ba9ae (patch)
tree8e9a184c12265b715057519ecc6eabbbdc0067a4 /src/soc/intel/icelake/romstage/fsp_params.c
parent691020e22baf6518a1840ecf81c51cd0ee68b8d4 (diff)
downloadcoreboot-3993d38ae6ea85a8d05349e6d7534f4cde9ba9ae.tar.gz
coreboot-3993d38ae6ea85a8d05349e6d7534f4cde9ba9ae.tar.bz2
coreboot-3993d38ae6ea85a8d05349e6d7534f4cde9ba9ae.zip
soc/intel: Hook up `SOC_INTEL_DISABLE_IGD` to `InternalGfx` UPD
Commit 0591348833f730a42e74039d8e2d957ec94a39d5 introduced this Kconfig option inside soc/intel/common scope. However, it was only hooked up in commit d74cd60b8159c3928dba318e6387f200ff3bb0e7 for Alder Lake, and in commit 99157c1f4a80556462ca22a4ade87b2c8d09e674 for Tiger Lake. Hook up the `SOC_INTEL_DISABLE_IGD` Kconfig option to all other platforms which have the `InternalGfx` UPD. Change-Id: Icd1379a835b445a6d4b028ebde5a3e355ee5b67b Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/52100 Reviewed-by: Michael Niewöhner <foss@mniewoehner.de> Reviewed-by: Felix Singer <felixsinger@posteo.net> Reviewed-by: Nico Huber <nico.h@gmx.de> Reviewed-by: Subrata Banik <subrata.banik@intel.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/intel/icelake/romstage/fsp_params.c')
-rw-r--r--src/soc/intel/icelake/romstage/fsp_params.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/soc/intel/icelake/romstage/fsp_params.c b/src/soc/intel/icelake/romstage/fsp_params.c
index 0801da23bf23..a5311d930c84 100644
--- a/src/soc/intel/icelake/romstage/fsp_params.c
+++ b/src/soc/intel/icelake/romstage/fsp_params.c
@@ -16,8 +16,8 @@ static void soc_memory_init_params(FSP_M_CONFIG *m_cfg,
const struct device *dev = pcidev_path_on_root(SA_DEVFN_IGD);
uint32_t mask = 0;
- if (!dev || !dev->enabled) {
- /* Skip IGD initialization in FSP if device is disabled in devicetree.cb. */
+ if (CONFIG(SOC_INTEL_DISABLE_IGD) || !dev || !dev->enabled) {
+ /* Skip IGD initialization in FSP if device is disabled */
m_cfg->InternalGfx = 0;
m_cfg->IgdDvmt50PreAlloc = 0;
} else {