From: Pierre Gondois <pierre.gond...@arm.com> Some DynamicTables objects have been moved from the Arm namespace to a new Arch Common namespace. Reflect this change by renaming/moving the relevant object.
This patch modifies the ConfigurationManager of the NXP platforms for the following Arch Common object Id: - EArchCommonObjPowerManagementProfileInfo Signed-off-by: Pierre Gondois <pierre.gond...@arm.com> --- .../ConfigurationManager.c | 22 +++++++++---------- .../ConfigurationManager.h | 3 ++- 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/Platform/NXP/ConfigurationManagerPkg/ConfigurationManagerDxe/ConfigurationManager.c b/Platform/NXP/ConfigurationManagerPkg/ConfigurationManagerDxe/ConfigurationManager.c index b5ad69cc9632..6de0c768e880 100644 --- a/Platform/NXP/ConfigurationManagerPkg/ConfigurationManagerDxe/ConfigurationManager.c +++ b/Platform/NXP/ConfigurationManagerPkg/ConfigurationManagerDxe/ConfigurationManager.c @@ -508,7 +508,17 @@ GetArchCommonNameSpaceObject ( PlatformRepo = This->PlatRepoInfo; switch (GET_CM_OBJECT_ID (CmObjectId)) { - default: { + case EArchCommonObjPowerManagementProfileInfo: + Status = HandleCmObject ( + CmObjectId, + &PlatformRepo->PmProfileInfo, + sizeof (PlatformRepo->PmProfileInfo), + 1, + CmObject + ); + break; + + default: { Status = EFI_NOT_FOUND; DEBUG (( DEBUG_INFO, @@ -567,16 +577,6 @@ GetArmNameSpaceObject ( ); break; - case EArmObjPowerManagementProfileInfo: - Status = HandleCmObject ( - CmObjectId, - &PlatformRepo->PmProfileInfo, - sizeof (PlatformRepo->PmProfileInfo), - 1, - CmObject - ); - break; - case EArmObjGenericTimerInfo: Status = HandleCmObject ( CmObjectId, diff --git a/Platform/NXP/ConfigurationManagerPkg/ConfigurationManagerDxe/ConfigurationManager.h b/Platform/NXP/ConfigurationManagerPkg/ConfigurationManagerDxe/ConfigurationManager.h index 0c7dd411f44c..c276ba048999 100644 --- a/Platform/NXP/ConfigurationManagerPkg/ConfigurationManagerDxe/ConfigurationManager.h +++ b/Platform/NXP/ConfigurationManagerPkg/ConfigurationManagerDxe/ConfigurationManager.h @@ -3,6 +3,7 @@ Copyright 2020 NXP Copyright 2020 Puresoftware Ltd + Copyright (c) 2024, Arm Limited. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent @@ -80,7 +81,7 @@ typedef struct PlatformRepositoryInfo { CM_ARM_BOOT_ARCH_INFO BootArchInfo; /// Power management profile information - CM_ARM_POWER_MANAGEMENT_PROFILE_INFO PmProfileInfo; + CM_ARCH_COMMON_POWER_MANAGEMENT_PROFILE_INFO PmProfileInfo; /// Generic timer information CM_ARM_GENERIC_TIMER_INFO GenericTimerInfo; -- 2.25.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#119532): https://edk2.groups.io/g/devel/message/119532 Mute This Topic: https://groups.io/mt/106589350/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-