summaryrefslogtreecommitdiff
path: root/Silicon/Socionext/SynQuacer/Library
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2018-06-26 12:38:17 +0200
committerArd Biesheuvel <ard.biesheuvel@linaro.org>2019-03-27 08:50:04 +0100
commit70120a26760406b3f1d7cd61643d5250b30e6309 (patch)
tree75287ff9755d66f827345ac1d0e1e52514f88acd /Silicon/Socionext/SynQuacer/Library
parent76d9e9a5da9e3691447bda32ba050e0fb5595492 (diff)
Silicon/Socionext/SynQuacer: use single translated MMIO window for PCI0
For testing purposes, reconfigure the first PCI host bridge to only expose a single MMIO window of 512 MB in size, and map it below 4 GB on the PCI side (so 32-bit BARs can be allocated from it) and above 4 GB on the CPU side. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Diffstat (limited to 'Silicon/Socionext/SynQuacer/Library')
-rw-r--r--Silicon/Socionext/SynQuacer/Library/SynQuacerPciHostBridgeLib/SynQuacerPciHostBridgeLib.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/Silicon/Socionext/SynQuacer/Library/SynQuacerPciHostBridgeLib/SynQuacerPciHostBridgeLib.c b/Silicon/Socionext/SynQuacer/Library/SynQuacerPciHostBridgeLib/SynQuacerPciHostBridgeLib.c
index 117cf6cf..7afcec59 100644
--- a/Silicon/Socionext/SynQuacer/Library/SynQuacerPciHostBridgeLib/SynQuacerPciHostBridgeLib.c
+++ b/Silicon/Socionext/SynQuacer/Library/SynQuacerPciHostBridgeLib/SynQuacerPciHostBridgeLib.c
@@ -100,7 +100,7 @@ PCI_ROOT_BRIDGE mPciRootBridges[] = {
TRUE, // DmaAbove4G
FALSE, // NoExtendedConfigSpace
FALSE, // ResourceAssigned
- PCI_ALLOCATION_ATTRIBUTES, // AllocationAttributes
+ EFI_PCI_HOST_BRIDGE_COMBINE_MEM_PMEM, // AllocationAttributes
{ SYNQUACER_PCI_SEG0_BUSNUM_MIN,
SYNQUACER_PCI_SEG0_BUSNUM_MAX }, // Bus
{ SYNQUACER_PCI_SEG0_PORTIO_MIN,
@@ -109,12 +109,7 @@ PCI_ROOT_BRIDGE mPciRootBridges[] = {
{ SYNQUACER_PCI_SEG0_MMIO32_MIN,
SYNQUACER_PCI_SEG0_MMIO32_MAX,
MAX_UINT64 - SYNQUACER_PCI_SEG0_MMIO32_XLATE + 1 }, // Mem
-#ifndef MDE_CPU_ARM
- { SYNQUACER_PCI_SEG0_MMIO64_MIN,
- SYNQUACER_PCI_SEG0_MMIO64_MAX }, // MemAbove4G
-#else
{ MAX_UINT64, 0x0 }, // MemAbove4G
-#endif
{ MAX_UINT64, 0x0 }, // PMem
{ MAX_UINT64, 0x0 }, // PMemAbove4G
(EFI_DEVICE_PATH_PROTOCOL *)&mEfiPciRootBridgeDevicePath[0]