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.web10.8013.1621940295652916260 for ; Tue, 25 May 2021 03:58:15 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: pranav.madhu@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 56964D6E; Tue, 25 May 2021 03:58:15 -0700 (PDT) Received: from usa.arm.com (a074742.blr.arm.com [10.162.16.32]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 2C49E3F719; Tue, 25 May 2021 03:58:13 -0700 (PDT) From: "Pranav Madhu" To: devel@edk2.groups.io Cc: Ard Biesheuvel , Sami Mujawar Subject: [edk2-platforms][PATCH V2 5/6] Platform/Sgi: Define RD-N2-Cfg1 platform id values Date: Tue, 25 May 2021 16:28:00 +0530 Message-Id: <20210525105801.13793-6-pranav.madhu@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210525105801.13793-1-pranav.madhu@arm.com> References: <20210525105801.13793-1-pranav.madhu@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Add the RD-N2-Cfg1 platform identification values including the part number and configuration number. This information will be used in populating the SMBIOS tables. Signed-off-by: Pranav Madhu Reviewed-by: Sami Mujawar --- Platform/ARM/SgiPkg/Include/SgiPlatform.h | 7 ++++++- Platform/ARM/SgiPkg/Library/PlatformLib/PlatformLib.c | 8 +++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/Platform/ARM/SgiPkg/Include/SgiPlatform.h b/Platform/ARM/Sgi= Pkg/Include/SgiPlatform.h index 4999c9870b49..dddb58832d73 100644 --- a/Platform/ARM/SgiPkg/Include/SgiPlatform.h +++ b/Platform/ARM/SgiPkg/Include/SgiPlatform.h @@ -39,6 +39,10 @@ #define RD_V1_CONF_ID 0x1 #define RD_V1_MC_CONF_ID 0x2 =20 +// RD-N2-Cfg1 Platform Identification values +#define RD_N2_CFG1_PART_NUM 0x7B6 +#define RD_N2_CFG1_CONF_ID 0x1 + // RD-N2 Platform Identification values #define RD_N2_PART_NUM 0x7B7 #define RD_N2_CONF_ID 0x1 @@ -77,7 +81,8 @@ typedef enum { RdE1Edge, RdV1, RdV1Mc, - RdN2 + RdN2, + RdN2Cfg1 } ARM_RD_PRODUCT_ID; =20 // Arm ProductId look-up table diff --git a/Platform/ARM/SgiPkg/Library/PlatformLib/PlatformLib.c b/Plat= form/ARM/SgiPkg/Library/PlatformLib/PlatformLib.c index f27c949dbc24..a982e3d403fa 100644 --- a/Platform/ARM/SgiPkg/Library/PlatformLib/PlatformLib.c +++ b/Platform/ARM/SgiPkg/Library/PlatformLib/PlatformLib.c @@ -66,7 +66,13 @@ STATIC CONST SGI_PRODUCT_ID_LOOKUP SgiProductIdLookup[= ] =3D { RD_N2_PART_NUM, RD_N2_CONF_ID, 0 - } + }, + { + RdN2Cfg1, + RD_N2_CFG1_PART_NUM, + RD_N2_CFG1_CONF_ID, + 0 + }, }; =20 EFI_BOOT_MODE --=20 2.17.1