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.web09.10438.1608300466797043554 for ; Fri, 18 Dec 2020 06:07:47 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: aditya.angadi@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 701511FB; Fri, 18 Dec 2020 06:07:46 -0800 (PST) Received: from usa.arm.com (a073440-lin.blr.arm.com [10.162.16.34]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 337A03F66B; Fri, 18 Dec 2020 06:07:43 -0800 (PST) From: "Aditya Angadi" To: devel@edk2.groups.io Cc: Leif Lindholm , Ard Biesheuvel , Sami Mujawar , Thomas Abraham , Vijayenthiran Subramaniam , Aditya Angadi Subject: [PATCH][edk2-platforms 0/5] Add support for RD-N2 platform Date: Fri, 18 Dec 2020 19:37:21 +0530 Message-Id: <20201218140726.23670-1-aditya.angadi@arm.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable This patch series refactors existing code to support addition of upcoming derivatives of RD platforms. It also adds support for the new RD-N2 platform.=20 The upcoming derivative platforms that are being added have a different memory map from the existing ones. In order to accomodate this change, the macros that define base addresses have been refactored into PCDs. This allows defining a different base addresses for newer platforms. The second patch removes the use SMSC Lan91x controller from all the supp= orted platforms under SgiPkg as all the platforms have been migrated to use Vir= tIO. The last three patches in the series add support for RD-N2 platform Aditya Angadi (5): Platform/ARM/SgiPkg: Use PCD for base addresses Platform/ARM/SgiPkg: remove the use of SMSC Lan91x controller Platform/ARM/SgiPkg: Define base address PCD for derivative platforms Platform/ARM/SgiPkg: Add ACPI tables for RD-N2 platform Platform/ARM/SgiPkg: Add initial support for RD-N2 platform Platform/ARM/SgiPkg/AcpiTables/RdN2/Dsdt.asl | 112 ++++++++++++++ Platform/ARM/SgiPkg/AcpiTables/RdN2/Madt.aslc | 137 ++++++++++++++++++ .../ARM/SgiPkg/AcpiTables/RdN2AcpiTables.inf | 60 ++++++++ Platform/ARM/SgiPkg/AcpiTables/SsdtRos.asl | 19 +-- Platform/ARM/SgiPkg/Include/SgiPlatform.h | 32 ---- .../SgiPkg/Library/NorFlashLib/NorFlashLib.c | 12 +- .../Library/NorFlashLib/NorFlashLib.inf | 7 +- .../Library/PlatformLib/PlatformLib.inf | 6 + .../Library/PlatformLib/PlatformLibMem.c | 34 ++--- Platform/ARM/SgiPkg/RdE1Edge/RdE1Edge.dsc | 1 + Platform/ARM/SgiPkg/RdN1Edge/RdN1Edge.dsc | 1 + Platform/ARM/SgiPkg/RdN1EdgeX2/RdN1EdgeX2.dsc | 1 + .../SgiPkg/{RdV1/RdV1.dsc =3D> RdN2/RdN2.dsc} | 11 +- Platform/ARM/SgiPkg/RdN2/RdN2.fdf.inc | 10 ++ Platform/ARM/SgiPkg/RdV1/RdV1.dsc | 1 + Platform/ARM/SgiPkg/RdV1Mc/RdV1Mc.dsc | 1 + Platform/ARM/SgiPkg/Sgi575/Sgi575.dsc | 1 + Platform/ARM/SgiPkg/SgiMemoryMap.dsc.inc | 46 ++++++ Platform/ARM/SgiPkg/SgiMemoryMap2.dsc.inc | 46 ++++++ Platform/ARM/SgiPkg/SgiPlatform.dec | 5 + Platform/ARM/SgiPkg/SgiPlatform.dsc.inc | 25 +--- Platform/ARM/SgiPkg/SgiPlatform.fdf | 4 - 22 files changed, 462 insertions(+), 110 deletions(-) create mode 100644 Platform/ARM/SgiPkg/AcpiTables/RdN2/Dsdt.asl create mode 100644 Platform/ARM/SgiPkg/AcpiTables/RdN2/Madt.aslc create mode 100644 Platform/ARM/SgiPkg/AcpiTables/RdN2AcpiTables.inf copy Platform/ARM/SgiPkg/{RdV1/RdV1.dsc =3D> RdN2/RdN2.dsc} (80%) create mode 100644 Platform/ARM/SgiPkg/RdN2/RdN2.fdf.inc create mode 100644 Platform/ARM/SgiPkg/SgiMemoryMap.dsc.inc create mode 100644 Platform/ARM/SgiPkg/SgiMemoryMap2.dsc.inc --=20 2.17.1