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>
This commit is contained in:
parent
c92efa3363
commit
c0733e1639
|
@ -32,9 +32,14 @@ Method (_PIC, 1)
|
||||||
}
|
}
|
||||||
|
|
||||||
#if CONFIG(MMCONF_SUPPORT)
|
#if CONFIG(MMCONF_SUPPORT)
|
||||||
/* Base address of PCIe config space */
|
Scope(\_SB) {
|
||||||
Name(PCBA, CONFIG_MMCONF_BASE_ADDRESS)
|
/* Base address of PCIe config space */
|
||||||
|
Name(PCBA, CONFIG_MMCONF_BASE_ADDRESS)
|
||||||
|
|
||||||
/* Length of PCIe config space, 1MB each bus */
|
/* Length of PCIe config space, 1MB each bus */
|
||||||
Name(PCLN, CONFIG_MMCONF_LENGTH)
|
Name(PCLN, CONFIG_MMCONF_LENGTH)
|
||||||
|
|
||||||
|
/* PCIe Configuration Space */
|
||||||
|
OperationRegion(PCFG, SystemMemory, PCBA, PCLN) /* Each bus consumes 1MB */
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||||
|
|
||||||
/* PCIe Configuration Space for CONFIG_MMCONF_BUS_NUMBER busses */
|
|
||||||
OperationRegion(PCFG, SystemMemory, PCBA, PCLN) /* Each bus consumes 1MB */
|
|
||||||
Field(PCFG, ByteAcc, NoLock, Preserve) {
|
Field(PCFG, ByteAcc, NoLock, Preserve) {
|
||||||
/* Byte offsets are computed using the following technique:
|
/* Byte offsets are computed using the following technique:
|
||||||
* ((bus number + 1) * ((device number * 8) * 4096)) + register offset
|
* ((bus number + 1) * ((device number * 8) * 4096)) + register offset
|
||||||
|
|
|
@ -284,8 +284,7 @@ Field( SMIC, ByteAcc, NoLock, Preserve) {
|
||||||
PGA3, 8 ,
|
PGA3, 8 ,
|
||||||
}
|
}
|
||||||
|
|
||||||
OperationRegion(FCFG, SystemMemory, PCBA, 0x01000000)
|
Field(PCFG, DwordAcc, NoLock, Preserve)
|
||||||
Field(FCFG, DwordAcc, NoLock, Preserve)
|
|
||||||
{
|
{
|
||||||
/* XHCI */
|
/* XHCI */
|
||||||
Offset(0x00080010), /* Base address */
|
Offset(0x00080010), /* Base address */
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||||
|
|
||||||
/* PCIe Configuration Space for CONFIG_MMCONF_BUS_NUMBER busses */
|
|
||||||
OperationRegion(PCFG, SystemMemory, PCBA, PCLN) /* Each bus consumes 1MB */
|
|
||||||
Field(PCFG, ByteAcc, NoLock, Preserve) {
|
Field(PCFG, ByteAcc, NoLock, Preserve) {
|
||||||
/* Byte offsets are computed using the following technique:
|
/* Byte offsets are computed using the following technique:
|
||||||
* ((bus number + 1) * ((device number * 8) * 4096)) + register offset
|
* ((bus number + 1) * ((device number * 8) * 4096)) + register offset
|
||||||
|
|
|
@ -29,8 +29,6 @@ Scope(\) {
|
||||||
}
|
}
|
||||||
|
|
||||||
Scope(\_SB) {
|
Scope(\_SB) {
|
||||||
/* PCIe Configuration Space for 16 busses */
|
|
||||||
OperationRegion(PCFG, SystemMemory, PCBA, 0x01000000) /* Each bus consumes 1MB */
|
|
||||||
Field(PCFG, ByteAcc, NoLock, Preserve) {
|
Field(PCFG, ByteAcc, NoLock, Preserve) {
|
||||||
/* Byte offsets are computed using the following technique:
|
/* Byte offsets are computed using the following technique:
|
||||||
* ((bus number + 1) * ((device number * 8) * 4096)) + register offset
|
* ((bus number + 1) * ((device number * 8) * 4096)) + register offset
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||||
|
|
||||||
/* PCIe Configuration Space for CONFIG_MMCONF_BUS_NUMBER busses */
|
|
||||||
OperationRegion(PCFG, SystemMemory, PCBA, PCLN) /* Each bus consumes 1MB */
|
|
||||||
Field(PCFG, ByteAcc, NoLock, Preserve) {
|
Field(PCFG, ByteAcc, NoLock, Preserve) {
|
||||||
/* Byte offsets are computed using the following technique:
|
/* Byte offsets are computed using the following technique:
|
||||||
* ((bus number + 1) * ((device number * 8) * 4096)) + register offset
|
* ((bus number + 1) * ((device number * 8) * 4096)) + register offset
|
||||||
|
|
Loading…
Reference in New Issue