From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web12.4288.1617861537939352816 for ; Wed, 07 Apr 2021 22:58:58 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: jeremy.linton@arm.com) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 874A01435; Wed, 7 Apr 2021 22:58:57 -0700 (PDT) Received: from mammon-tx2.austin.arm.com (mammon-tx2.austin.arm.com [10.118.28.62]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 7D27F3F93E; Wed, 7 Apr 2021 22:58:57 -0700 (PDT) From: "Jeremy Linton" To: devel@edk2.groups.io Cc: ard.biesheuvel@arm.com, leif@nuviainc.com, pete@akeo.ie, samer.el-haj-mahmoud@arm.com, awarkentin@vmware.com, Jeremy Linton Subject: [PATCH 2/3] Platform/RaspberryPi/AcpiTables: Add further named components Date: Thu, 8 Apr 2021 00:58:42 -0500 Message-Id: <20210408055843.2883563-3-jeremy.linton@arm.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210408055843.2883563-1-jeremy.linton@arm.com> References: <20210408055843.2883563-1-jeremy.linton@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Add some additional IORT nodes for the USB & EMMC devices, realistically we probably only need to have a single node with the lowest AddressSizeLimit but this is conceptually "cleaner" should anyone actually try and use these values rather than the _DMA provided ones. Signed-off-by: Jeremy Linton --- Platform/RaspberryPi/AcpiTables/Iort.aslc | 44 +++++++++++++++++++++++++++= +++- 1 file changed, 43 insertions(+), 1 deletion(-) diff --git a/Platform/RaspberryPi/AcpiTables/Iort.aslc b/Platform/Raspberry= Pi/AcpiTables/Iort.aslc index 00720194bb..810307ae37 100644 --- a/Platform/RaspberryPi/AcpiTables/Iort.aslc +++ b/Platform/RaspberryPi/AcpiTables/Iort.aslc @@ -20,6 +20,8 @@ typedef struct { typedef struct {=0D EFI_ACPI_6_0_IO_REMAPPING_TABLE Iort;=0D RPI4_NC_NODE NamedCompNode;=0D + RPI4_NC_NODE NamedCompNode2;=0D + RPI4_NC_NODE NamedCompNode3;=0D } RPI4_IO_REMAPPING_STRUCTURE;=0D =0D STATIC RPI4_IO_REMAPPING_STRUCTURE Iort =3D {=0D @@ -27,7 +29,7 @@ STATIC RPI4_IO_REMAPPING_STRUCTURE Iort =3D { ACPI_HEADER (EFI_ACPI_6_0_IO_REMAPPING_TABLE_SIGNATURE,=0D RPI4_IO_REMAPPING_STRUCTURE,=0D EFI_ACPI_IO_REMAPPING_TABLE_REVISION),=0D - 1, // NumNodes=0D + 3, // NumNodes=0D sizeof (EFI_ACPI_6_0_IO_REMAPPING_TABLE), // NodeOffset=0D 0 // Reserved=0D }, {=0D @@ -50,6 +52,46 @@ STATIC RPI4_IO_REMAPPING_STRUCTURE Iort =3D { }, {=0D "\\_SB_.SCB0.XHC0" // ObjectName=0D }=0D + }, {=0D + // gpu/dwc usb named component node=0D + {=0D + {=0D + EFI_ACPI_IORT_TYPE_NAMED_COMP, // Type=0D + sizeof (RPI4_NC_NODE), // Length=0D + 0x0, // Revision=0D + 0x0, // Reserved=0D + 0x0, // NumIdMappings=0D + 0x0, // IdReference=0D + },=0D + 0x0, // Flags=0D + 0x0, // CacheCoherent=0D + 0x0, // AllocationHints=0D + 0x0, // Reserved=0D + 0x0, // MemoryAccessFlags=0D + 30, // AddressSizeLimit=0D + }, {=0D + "\\_SB_.GDV0.USB0" // ObjectName=0D + }=0D + }, {=0D + // emmc2 named component node=0D + {=0D + {=0D + EFI_ACPI_IORT_TYPE_NAMED_COMP, // Type=0D + sizeof (RPI4_NC_NODE), // Length=0D + 0x0, // Revision=0D + 0x0, // Reserved=0D + 0x0, // NumIdMappings=0D + 0x0, // IdReference=0D + },=0D + 0x0, // Flags=0D + 0x0, // CacheCoherent=0D + 0x0, // AllocationHints=0D + 0x0, // Reserved=0D + 0x0, // MemoryAccessFlags=0D + 30, // AddressSizeLimit=0D + }, {=0D + "\\_SB_.GDV1.SDC3" // ObjectName=0D + }=0D }=0D };=0D =0D --=20 2.13.7