From c3a10e42e3aa888612b8ec297bfcec973f5e9ffd Mon Sep 17 00:00:00 2001 From: Supreeth Venkatesh Date: Wed, 7 Oct 2015 08:18:00 +0000 Subject: [PATCH] ArmPlatformPkg: Fixes for Juno ACPI 1. Change Interrupt for Juno PCI Routing table Interrupt Number Reference: http://www.arm.com/files/pdf/DDI0515D1a_juno_arm_development_platform_soc_trm.pdf table 3-3 page 3-7 2. Support for PCI IO range with ACPI on JUNO Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Supreeth Venkatesh Reviewed-by: Leif Lindholm git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18576 6f19259b-4bc3-4df7-8a09-765794883524 --- .../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 c6d5a9a7de..7d50a5f946 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)