You've already forked edk2-platforms
mirror of
https://github.com/Dasharo/edk2-platforms.git
synced 2026-03-06 14:51:43 -08:00
Marvell: Armada7k8k/OcteonTx: Allow tuning PCIE config space size
Until now it was assumed that the configuration space size is 256MB. Allow setting different values in the board description library instance for each platform. Signed-off-by: Marcin Wojtas <mw@semihalf.com>
This commit is contained in:
@@ -141,7 +141,9 @@ ArmPlatformGetVirtualMemoryMap (
|
||||
for (PcieIndex = 0; PcieIndex < PcieControllerCount; PcieIndex++) {
|
||||
mVirtualMemoryTable[++Index].PhysicalBase = PcieControllers[PcieIndex].ConfigSpaceAddress;
|
||||
mVirtualMemoryTable[Index].VirtualBase = PcieControllers[PcieIndex].ConfigSpaceAddress;
|
||||
mVirtualMemoryTable[Index].Length = SIZE_256MB;
|
||||
mVirtualMemoryTable[Index].Length = (PcieControllers[PcieIndex].ConfigSpaceSize == 0) ?
|
||||
SIZE_256MB :
|
||||
PcieControllers[PcieIndex].ConfigSpaceSize;
|
||||
mVirtualMemoryTable[Index].Attributes = ARM_MEMORY_REGION_ATTRIBUTE_DEVICE;
|
||||
}
|
||||
|
||||
|
||||
@@ -111,6 +111,7 @@ typedef struct {
|
||||
typedef struct {
|
||||
EFI_PHYSICAL_ADDRESS PcieDbiAddress;
|
||||
EFI_PHYSICAL_ADDRESS ConfigSpaceAddress;
|
||||
UINT64 ConfigSpaceSize;
|
||||
BOOLEAN HaveResetGpio;
|
||||
MV_GPIO_PIN PcieResetGpio;
|
||||
UINT64 PcieBusMin;
|
||||
|
||||
Reference in New Issue
Block a user