Преглед на файлове

Platform/Sgi: Add ProductId lookup values for RD-N2-Cfg2 Platform

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@arm.com>
Signed-off-by: Pranav Madhu <pranav.madhu@arm.com>
Vijayenthiran Subramaniam преди 2 години
родител
ревизия
5d44ddb37a
променени са 2 файла, в които са добавени 9 реда и са изтрити 2 реда
  1. 2 1
      Platform/ARM/SgiPkg/Include/SgiPlatform.h
  2. 7 1
      Platform/ARM/SgiPkg/Library/PlatformLib/PlatformLib.c

+ 2 - 1
Platform/ARM/SgiPkg/Include/SgiPlatform.h

@@ -83,7 +83,8 @@ typedef enum {
   RdV1,
   RdV1Mc,
   RdN2,
-  RdN2Cfg1
+  RdN2Cfg1,
+  RdN2Cfg2,
 } ARM_RD_PRODUCT_ID;
 
 // Arm ProductId look-up table

+ 7 - 1
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[] = {
     RD_N2_CFG1_CONF_ID,
     0
   },
+  {
+    RdN2Cfg2,
+    RD_N2_PART_NUM,
+    RD_N2_CONF_ID,
+    1
+  },
 };
 
 EFI_BOOT_MODE