Support for PCI IO range with ACPI on JUNO

Contributed-under: TianoCore Contribution Agreement 1.0

Signed-off-by: Supreeth Venkatesh <supreeth.venkat...@arm.com>
---
 .../ArmJunoPkg/AcpiTables/AcpiSsdtRootPci.asl      | 27 ++++++++++++++++------
 1 file changed, 20 insertions(+), 7 deletions(-)

diff --git a/ArmPlatformPkg/ArmJunoPkg/AcpiTables/AcpiSsdtRootPci.asl 
b/ArmPlatformPkg/ArmJunoPkg/AcpiTables/AcpiSsdtRootPci.asl
index c6d5a9a..7d50a5f 100644
--- a/ArmPlatformPkg/ArmJunoPkg/AcpiTables/AcpiSsdtRootPci.asl
+++ b/ArmPlatformPkg/ArmJunoPkg/AcpiTables/AcpiSsdtRootPci.asl
@@ -57,13 +57,13 @@ DefinitionBlock("SsdtPci.aml", "SSDT", 1, "ARMLTD", 
"ARM-JUNO", EFI_ACPI_ARM_OEM
             Name(_ADR, 0xF0000000)    // Dev 0, Func 0
         }
 
-        // PCI Routing Table
-               Name(_PRT, Package() {
-               ROOT_PRT_ENTRY(0, 136),   // INTA
-               ROOT_PRT_ENTRY(1, 137),   // INTB
-               ROOT_PRT_ENTRY(2, 138),   // INTC
-               ROOT_PRT_ENTRY(3, 139),   // INTD
-       })
+               // PCI Routing Table
+               Name(_PRT, Package() {
+                       ROOT_PRT_ENTRY(0, 168),   // INTA
+                       ROOT_PRT_ENTRY(1, 169),   // INTB
+                       ROOT_PRT_ENTRY(2, 170),   // INTC
+                       ROOT_PRT_ENTRY(3, 171),   // INTD
+               })
         // Root complex resources
                Method (_CRS, 0, Serialized) {
                        Name (RBUF, ResourceTemplate () {
@@ -98,6 +98,19 @@ DefinitionBlock("SsdtPci.aml", "SSDT", 1, "ARMLTD", 
"ARM-JUNO", EFI_ACPI_ARM_OEM
                                        0x00000000,                             
                        // Translate
                                        0x100000000                             
                                // Length
                                )
+
+                               DWordIo ( // IO window
+                                       ResourceProducer,
+                                       MinFixed,
+                                       MaxFixed,
+                                       PosDecode,
+                                       EntireRange,
+                                       0x00000000,                             
                        // Granularity
+                                       0x5f800000,                             
                        // Min Base Address
+                                       0x5fffffff,                             
                        // Max Base Address
+                                       0x5f800000,                             
                        // Translate
+                                       0x00800000                              
                        // Length
+                               )
                        }) // Name(RBUF)
                        
                        Return (RBUF)
-- 
2.5.0

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to