From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=217.140.101.70; helo=foss.arm.com; envelope-from=chandni.cherukuri@arm.com; receiver=edk2-devel@lists.01.org Received: from foss.arm.com (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by ml01.01.org (Postfix) with ESMTP id C269721959CB2 for ; Mon, 12 Nov 2018 03:42:13 -0800 (PST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 6CB6780D; Mon, 12 Nov 2018 03:42:13 -0800 (PST) Received: from usa.arm.com (a73437-lin.blr.arm.com [10.162.0.155]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 2C6733F5A0; Mon, 12 Nov 2018 03:42:11 -0800 (PST) From: Chandni Cherukuri To: edk2-devel@lists.01.org Date: Mon, 12 Nov 2018 17:11:54 +0530 Message-Id: <1542022916-24462-4-git-send-email-chandni.cherukuri@arm.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1542022916-24462-1-git-send-email-chandni.cherukuri@arm.com> References: <1542022916-24462-1-git-send-email-chandni.cherukuri@arm.com> Subject: [PATCH v3 edk2-platforms 3/5] Platform/ARM/Sgi: Add initial support for SGI-Clark.Ares platform X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Nov 2018 11:42:14 -0000 X-List-Received-Date: Mon, 12 Nov 2018 11:42:14 -0000 X-List-Received-Date: Mon, 12 Nov 2018 11:42:14 -0000 X-List-Received-Date: Mon, 12 Nov 2018 11:42:14 -0000 X-List-Received-Date: Mon, 12 Nov 2018 11:42:14 -0000 X-List-Received-Date: Mon, 12 Nov 2018 11:42:14 -0000 X-List-Received-Date: Mon, 12 Nov 2018 11:42:14 -0000 X-List-Received-Date: Mon, 12 Nov 2018 11:42:14 -0000 X-List-Received-Date: Mon, 12 Nov 2018 11:42:14 -0000 X-List-Received-Date: Mon, 12 Nov 2018 11:42:14 -0000 X-List-Received-Date: Mon, 12 Nov 2018 11:42:14 -0000 X-List-Received-Date: Mon, 12 Nov 2018 11:42:14 -0000 X-List-Received-Date: Mon, 12 Nov 2018 11:42:14 -0000 X-List-Received-Date: Mon, 12 Nov 2018 11:42:14 -0000 X-List-Received-Date: Mon, 12 Nov 2018 11:42:14 -0000 X-List-Received-Date: Mon, 12 Nov 2018 11:42:14 -0000 X-List-Received-Date: Mon, 12 Nov 2018 11:42:14 -0000 X-List-Received-Date: Mon, 12 Nov 2018 11:42:14 -0000 X-List-Received-Date: Mon, 12 Nov 2018 11:42:14 -0000 X-List-Received-Date: Mon, 12 Nov 2018 11:42:14 -0000 X-List-Received-Date: Mon, 12 Nov 2018 11:42:14 -0000 X-List-Received-Date: Mon, 12 Nov 2018 11:42:14 -0000 Add the initial support for ARM's System Guidance for Infrastructure SGI-Clark.Ares platform. The ACPI tables for this platform are installed. Contributed-under: TianoCore Contribution Agreement 1.1 Cc: Leif Lindholm Cc: Ard Biesheuvel Signed-off-by: Chandni Cherukuri --- Platform/ARM/SgiPkg/Include/SgiPlatform.h | 4 ++++ Platform/ARM/SgiPkg/Drivers/PlatformDxe/PlatformDxe.c | 16 +++++++++------- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/Platform/ARM/SgiPkg/Include/SgiPlatform.h b/Platform/ARM/SgiPkg/Include/SgiPlatform.h index 1454018..b84709e 100644 --- a/Platform/ARM/SgiPkg/Include/SgiPlatform.h +++ b/Platform/ARM/SgiPkg/Include/SgiPlatform.h @@ -72,6 +72,10 @@ #define SGI575_CONF_NUM 0x3 #define SGI575_PART_NUM 0x783 +//SGI-Clark Platform Identification values +#define SGI_CLARK_PART_NUM 0x786 +#define SGI_CLARKA_CONF_NUM 0x1 + #define SGI_CONFIG_MASK 0x0F #define SGI_CONFIG_SHIFT 0x1C #define SGI_PART_NUM_MASK 0xFFF diff --git a/Platform/ARM/SgiPkg/Drivers/PlatformDxe/PlatformDxe.c b/Platform/ARM/SgiPkg/Drivers/PlatformDxe/PlatformDxe.c index 5ccd01d..1c56f65 100644 --- a/Platform/ARM/SgiPkg/Drivers/PlatformDxe/PlatformDxe.c +++ b/Platform/ARM/SgiPkg/Drivers/PlatformDxe/PlatformDxe.c @@ -48,14 +48,16 @@ ArmSgiPkgEntryPoint ( if ((PartNum == SGI575_PART_NUM) && (ConfigId == SGI575_CONF_NUM)) { Status = LocateAndInstallAcpiFromFv (&gSgi575AcpiTablesFileGuid); - if (EFI_ERROR (Status)) { - DEBUG ((DEBUG_ERROR, "%a: Failed to install ACPI tables\n", - __FUNCTION__)); - return Status; - } + } else if ((PartNum == SGI_CLARK_PART_NUM) && + (ConfigId == SGI_CLARKA_CONF_NUM)) { + Status = LocateAndInstallAcpiFromFv (&gSgiClarkAresAcpiTablesFileGuid); } else { - DEBUG ((DEBUG_ERROR, "PlatformDxe: Unsupported Platform Id\n")); - return EFI_UNSUPPORTED; + Status = EFI_UNSUPPORTED; + } + + if (EFI_ERROR (Status)) { + DEBUG ((DEBUG_ERROR, "%a: Failed to install ACPI tables\n", __FUNCTION__)); + return Status; } Status = EFI_REQUEST_UNLOAD_IMAGE; -- 2.7.4