From nobody Mon Feb 9 09:00:43 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+90777+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+90777+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=arm.com Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1656312024553624.6592430081729; Sun, 26 Jun 2022 23:40:24 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id M70bYY1788612xURrOyiwgif; Sun, 26 Jun 2022 23:40:24 -0700 X-Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web10.38621.1656312023658545455 for ; Sun, 26 Jun 2022 23:40:23 -0700 X-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 799021758; Sun, 26 Jun 2022 23:40:23 -0700 (PDT) X-Received: from usa.arm.com (unknown [10.162.16.33]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 1B2F83F5A1; Sun, 26 Jun 2022 23:40:21 -0700 (PDT) From: "Pranav Madhu" To: devel@edk2.groups.io Cc: Ard Biesheuvel , Sami Mujawar Subject: [edk2-devel] [edk2-platforms][PATCH V1 2/5] Platform/Sgi: Add ProductId lookup values for RD-N2-Cfg2 Platform Date: Mon, 27 Jun 2022 12:10:08 +0530 Message-Id: <20220627064011.542820-3-pranav.madhu@arm.com> In-Reply-To: <20220627064011.542820-1-pranav.madhu@arm.com> References: <20220627064011.542820-1-pranav.madhu@arm.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,pranav.madhu@arm.com X-Gm-Message-State: hZ5JqmthNEH9zqyYkUBNVbz3x1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1656312024; bh=g5+VcjRuCNAIrMzWhCf+WrVM8Hmzr+DlSWB9RxwVBkA=; h=Cc:Date:From:Reply-To:Subject:To; b=eSuj1nYKZ8fUmGr6+0C77HDXyz60ugu/f3d9wE/s37QNJlwRvOvK9YnJJosTweTYasV luEJCKPj0ptow8auevr+1kkChhJK3LjhlSuhT0R7mPRhhO380FSug6AKr6gW8pXr2qWBV K7eG0I06HLzGbymRFXjfS3g4IWUMdtG9dPg= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1656312025046100007 Content-Type: text/plain; charset="utf-8" From: Vijayenthiran Subramaniam The RD-N2-Cfg2 platform is a quad-chip variant of the RD-N2 platform but with reduced core count, that is, each instance of the RD-N2 chip has four cores. This platform shares the same product and config ID as the RD-N2 platform. As a preparatory step towards adding support for RD-N2-Cfg2 Platfrom, add the Product ID lookup values for GetProductID API. Signed-off-by: Vijayenthiran Subramaniam Signed-off-by: Pranav Madhu --- Platform/ARM/SgiPkg/Include/SgiPlatform.h | 3 ++- Platform/ARM/SgiPkg/Library/PlatformLib/PlatformLib.c | 8 +++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Platform/ARM/SgiPkg/Include/SgiPlatform.h b/Platform/ARM/SgiPk= g/Include/SgiPlatform.h index 04390d6dcc20..e83853664c4c 100644 --- a/Platform/ARM/SgiPkg/Include/SgiPlatform.h +++ b/Platform/ARM/SgiPkg/Include/SgiPlatform.h @@ -83,7 +83,8 @@ typedef enum { RdV1, RdV1Mc, RdN2, - RdN2Cfg1 + RdN2Cfg1, + RdN2Cfg2, } ARM_RD_PRODUCT_ID; =20 // Arm ProductId look-up table diff --git a/Platform/ARM/SgiPkg/Library/PlatformLib/PlatformLib.c b/Platfo= rm/ARM/SgiPkg/Library/PlatformLib/PlatformLib.c index a982e3d403fa..fa006320025b 100644 --- a/Platform/ARM/SgiPkg/Library/PlatformLib/PlatformLib.c +++ b/Platform/ARM/SgiPkg/Library/PlatformLib/PlatformLib.c @@ -1,6 +1,6 @@ /** @file * -* Copyright (c) 2018-2021, ARM Limited. All rights reserved. +* Copyright (c) 2018 - 2022, Arm Limited. All rights reserved. * * SPDX-License-Identifier: BSD-2-Clause-Patent * @@ -73,6 +73,12 @@ STATIC CONST SGI_PRODUCT_ID_LOOKUP SgiProductIdLookup[] = =3D { RD_N2_CFG1_CONF_ID, 0 }, + { + RdN2Cfg2, + RD_N2_PART_NUM, + RD_N2_CONF_ID, + 1 + }, }; =20 EFI_BOOT_MODE --=20 2.25.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#90777): https://edk2.groups.io/g/devel/message/90777 Mute This Topic: https://groups.io/mt/92015421/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-