aboutsummaryrefslogtreecommitdiff
path: root/src/soc/intel/xeon_sp/nb_acpi.c
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2020-11-06 11:50:55 +0100
committerArthur Heymans <arthur@aheymans.xyz>2020-11-12 16:13:49 +0000
commit83b262275c43a2ff29c9d9364f25483fd690b803 (patch)
treeac9f0fecb3e82be9caf6ec86701667edbbe59f29 /src/soc/intel/xeon_sp/nb_acpi.c
parent04ebdd9710fc62d0ed3f1388e37125eafc80f0d9 (diff)
soc/intel/xeon_sp: Use a common function to get the IIO HOB
TESTED ocp/deltalake still boots. Change-Id: I69f336c1ff348b8e820340b84494929f2c58ce72 Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/47296 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/intel/xeon_sp/nb_acpi.c')
-rw-r--r--src/soc/intel/xeon_sp/nb_acpi.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/soc/intel/xeon_sp/nb_acpi.c b/src/soc/intel/xeon_sp/nb_acpi.c
index 4a29c0868f..55c3d820ca 100644
--- a/src/soc/intel/xeon_sp/nb_acpi.c
+++ b/src/soc/intel/xeon_sp/nb_acpi.c
@@ -362,10 +362,7 @@ static unsigned long acpi_create_rmrr(unsigned long current)
static unsigned long acpi_create_rhsa(unsigned long current)
{
- size_t hob_size;
- const uint8_t uds_guid[16] = FSP_HOB_IIO_UNIVERSAL_DATA_GUID;
- const IIO_UDS *hob = fsp_find_extension_hob_by_guid(uds_guid, &hob_size);
- assert(hob != NULL && hob_size != 0);
+ const IIO_UDS *hob = get_iio_uds();
for (int socket = 0; socket < hob->PlatformData.numofIIO; ++socket) {
IIO_RESOURCE_INSTANCE iio_resource =
@@ -386,10 +383,7 @@ static unsigned long acpi_create_rhsa(unsigned long current)
static unsigned long acpi_fill_dmar(unsigned long current)
{
- size_t hob_size;
- const uint8_t uds_guid[16] = FSP_HOB_IIO_UNIVERSAL_DATA_GUID;
- const IIO_UDS *hob = fsp_find_extension_hob_by_guid(uds_guid, &hob_size);
- assert(hob != NULL && hob_size != 0);
+ const IIO_UDS *hob = get_iio_uds();
// DRHD
for (int iio = 1; iio <= hob->PlatformData.numofIIO; ++iio) {