summaryrefslogtreecommitdiff
path: root/payloads/libpayload/libc
diff options
context:
space:
mode:
Diffstat (limited to 'payloads/libpayload/libc')
-rw-r--r--payloads/libpayload/libc/coreboot.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/payloads/libpayload/libc/coreboot.c b/payloads/libpayload/libc/coreboot.c
index cdd6a437b6..bcc9530733 100644
--- a/payloads/libpayload/libc/coreboot.c
+++ b/payloads/libpayload/libc/coreboot.c
@@ -264,6 +264,13 @@ static void cb_parse_cbmem_entry(void *ptr, struct sysinfo_t *info)
}
}
+static void cb_parse_pcie(void *ptr, struct sysinfo_t *info)
+{
+ const struct cb_pcie *pcie = ptr;
+
+ info->pcie_ctrl_base = pcie->ctrl_base;
+}
+
static void cb_parse_rsdp(void *ptr, struct sysinfo_t *info)
{
const struct cb_acpi_rsdp *cb_acpi_rsdp = ptr;
@@ -413,6 +420,9 @@ int cb_parse_header(void *addr, int len, struct sysinfo_t *info)
case CB_TAG_ACPI_RSDP:
cb_parse_rsdp(ptr, info);
break;
+ case CB_TAG_PCIE:
+ cb_parse_pcie(ptr, info);
+ break;
default:
cb_parse_arch_specific(rec, info);
break;