diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2021-02-14 06:58:39 +0200 |
---|---|---|
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2021-02-20 21:38:54 +0000 |
commit | c0733e1639bc97cd1774c556edd6bb6526876529 (patch) | |
tree | 41bb4158f088aa89c05dc63fd3bdd6e9ae9fae4f /src/acpi | |
parent | c92efa336397b917081706dabeb6f41cf69176e8 (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.asl | 13 |
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 |