summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Zhao <john.zhao@intel.com>2021-04-23 10:29:12 -0700
committerPatrick Georgi <pgeorgi@google.com>2021-04-26 08:27:54 +0000
commitbaecee105235f92556d7236ff5004f79e1a2249d (patch)
tree032b4f0c1a9dcd27216a6c4782735240bf0449e8
parent24ae31cdc6940320bd0a5cccf2d991b2fd31e236 (diff)
downloadcoreboot-baecee105235f92556d7236ff5004f79e1a2249d.tar.xz
soc/intel/alderlake: Use device ID from pci_devs header file
This change applies device ID from the SoC pci_devs.h directly. BUG=None TEST=Built image successfully. Signed-off-by: John Zhao <john.zhao@intel.com> Change-Id: Ic5d2910ca53c02527aef0ad33ed52a35f2bdf7af Reviewed-on: https://review.coreboot.org/c/coreboot/+/52640 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
-rw-r--r--src/soc/intel/alderlake/acpi.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/soc/intel/alderlake/acpi.c b/src/soc/intel/alderlake/acpi.c
index 664c40ba3d..04d2a296fe 100644
--- a/src/soc/intel/alderlake/acpi.c
+++ b/src/soc/intel/alderlake/acpi.c
@@ -180,7 +180,7 @@ static unsigned long soc_fill_dmar(unsigned long current)
const unsigned long tmp = current;
current += acpi_create_dmar_drhd(current, 0, 0, gfxvtbar);
- current += acpi_create_dmar_ds_pci(current, 0, 2, 0);
+ current += acpi_create_dmar_ds_pci(current, 0, SA_DEV_SLOT_IGD, 0);
acpi_dmar_drhd_fixup(tmp, current);
}
@@ -193,7 +193,7 @@ static unsigned long soc_fill_dmar(unsigned long current)
const unsigned long tmp = current;
current += acpi_create_dmar_drhd(current, 0, 0, ipuvtbar);
- current += acpi_create_dmar_ds_pci(current, 0, 5, 0);
+ current += acpi_create_dmar_ds_pci(current, 0, SA_DEV_SLOT_IPU, 0);
acpi_dmar_drhd_fixup(tmp, current);
}
@@ -208,7 +208,8 @@ static unsigned long soc_fill_dmar(unsigned long current)
const unsigned long tmp = current;
current += acpi_create_dmar_drhd(current, 0, 0, tbtbar);
- current += acpi_create_dmar_ds_pci_br(current, 0, 7, i);
+ current += acpi_create_dmar_ds_pci_br(current, 0,
+ SA_DEV_SLOT_TBT, i);
acpi_dmar_drhd_fixup(tmp, current);
}
@@ -238,7 +239,7 @@ static unsigned long soc_fill_dmar(unsigned long current)
const unsigned long tmp = current;
current += acpi_create_dmar_rmrr(current, 0,
sa_get_gsm_base(), sa_get_tolud_base() - 1);
- current += acpi_create_dmar_ds_pci(current, 0, 2, 0);
+ current += acpi_create_dmar_ds_pci(current, 0, SA_DEV_SLOT_IGD, 0);
acpi_dmar_rmrr_fixup(tmp, current);
}