soc/intel/tigerlake/fsp_params.c: Use `is_dev_enabled()`

Change-Id: I3e79f637bedec0bdca1312291328b2385bd027a7
Signed-off-by: Felix Singer <felixsinger@posteo.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/60026
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Reviewed-by: Paul Menzel <paulepanter@mailbox.org>
This commit is contained in:
Felix Singer 2021-12-10 23:23:42 +01:00
parent b6519812d4
commit f424c8b80f
1 changed files with 1 additions and 4 deletions

View File

@ -530,10 +530,7 @@ void platform_fsp_silicon_init_params_cb(FSPS_UPD *supd)
/* USB4/TBT */
for (i = 0; i < ARRAY_SIZE(params->ITbtPcieRootPortEn); i++) {
dev = pcidev_on_root(SA_DEV_SLOT_TBT, i);
if (dev)
params->ITbtPcieRootPortEn[i] = dev->enabled;
else
params->ITbtPcieRootPortEn[i] = 0;
params->ITbtPcieRootPortEn[i] = is_dev_enabled(dev);
}
/* PCH FIVR settings override */