summaryrefslogtreecommitdiff
path: root/src/acpi
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2021-02-14 06:58:39 +0200
committerKyösti Mälkki <kyosti.malkki@gmail.com>2021-02-20 21:38:54 +0000
commitc0733e1639bc97cd1774c556edd6bb6526876529 (patch)
tree41bb4158f088aa89c05dc63fd3bdd6e9ae9fae4f /src/acpi
parentc92efa336397b917081706dabeb6f41cf69176e8 (diff)
ACPI: Use common OperationRegion for PCI_MMCONF
Change-Id: Iadb4c3c77ecda4df8e48415d246e769ede2ce86d Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/50648 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/acpi')
-rw-r--r--src/acpi/dsdt_top.asl13
1 files changed, 9 insertions, 4 deletions
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