From c0733e1639bc97cd1774c556edd6bb6526876529 Mon Sep 17 00:00:00 2001 From: Kyösti Mälkki Date: Sun, 14 Feb 2021 06:58:39 +0200 Subject: ACPI: Use common OperationRegion for PCI_MMCONF MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Iadb4c3c77ecda4df8e48415d246e769ede2ce86d Signed-off-by: Kyösti Mälkki Reviewed-on: https://review.coreboot.org/c/coreboot/+/50648 Reviewed-by: Angel Pons Tested-by: build bot (Jenkins) --- src/acpi/dsdt_top.asl | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'src/acpi/dsdt_top.asl') diff --git a/src/acpi/dsdt_top.asl b/src/acpi/dsdt_top.asl index 160a53fc7b..eece7f7f22 100644 --- a/src/acpi/dsdt_top.asl +++ b/src/acpi/dsdt_top.asl @@ -32,9 +32,14 @@ Method (_PIC, 1) } #if CONFIG(MMCONF_SUPPORT) -/* Base address of PCIe config space */ -Name(PCBA, CONFIG_MMCONF_BASE_ADDRESS) +Scope(\_SB) { + /* Base address of PCIe config space */ + Name(PCBA, CONFIG_MMCONF_BASE_ADDRESS) -/* Length of PCIe config space, 1MB each bus */ -Name(PCLN, CONFIG_MMCONF_LENGTH) + /* Length of PCIe config space, 1MB each bus */ + Name(PCLN, CONFIG_MMCONF_LENGTH) + + /* PCIe Configuration Space */ + OperationRegion(PCFG, SystemMemory, PCBA, PCLN) /* Each bus consumes 1MB */ +} #endif -- cgit v1.2.3