[edk2-platforms][PATCH V1 2/5] Platform/Sgi: Add ProductId lookup values for RD-N2-Cfg2 Platform


Pranav Madhu
 

From: Vijayenthiran Subramaniam <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 <vijayenthiran.subramaniam@...=
om>
Signed-off-by: Pranav Madhu <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/Sgi=
Pkg/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/Plat=
form/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