From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail05.groups.io (mail05.groups.io [45.79.224.7]) by spool.mail.gandi.net (Postfix) with ESMTPS id 91D8EAC0AD4 for ; Mon, 10 Jun 2024 09:34:52 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=JXbQWl7Kt9uP5xqDA3/Ro/5R4E30Bq7OQzjIcVj86OM=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Resent-Date:Resent-From:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20240206; t=1718012092; v=1; b=s/MQ8GptEpEg92uOOc426yi3+Y/7ftGeJJaNiu8YxNojB8HErYKM7klrDB9rgHs3e8fRrMTQ BHcYVzRsCTxVuARo1QkSNvivxtDdz/yigjc7cZUjkkZxTsidjuz5PC8kh2I4K0EC4cowAS1+XUm /tL4zmJDENKAirLzfe31GqpbE5HQoj3JhWBM1V9PIBpc3cCvW5+Iq/5iTzyNxlCY+NQTE3EjQtd 7pPv+Q06eaHm0IB69w+4+vpgkGPezcb24K5cKqIJim3ZtZvsQeyUx0entcYqktdtlNkAqHxeupx WrMdLXQv10Sx5LypyPJpuI5VVqPl/ppxl8siQzT3HqLlA== X-Received: by 127.0.0.2 with SMTP id wQajYY7687511xRPA0PN62OX; Mon, 10 Jun 2024 02:34:51 -0700 X-Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web11.15511.1718012090189305112 for ; Mon, 10 Jun 2024 02:34:50 -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 69B5D12FC; Mon, 10 Jun 2024 02:35:14 -0700 (PDT) X-Received: from e126645.arm.com (unknown [10.57.69.240]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 577ED3F73B; Mon, 10 Jun 2024 02:34:49 -0700 (PDT) From: "PierreGondois" To: devel@edk2.groups.io Cc: Pierre Gondois Subject: [edk2-devel] [platforms/devel-dynamictables-reorg PATCH 12/14] Platform/NXP: Move Power Mgmt Profile info to Arch Common Date: Mon, 10 Jun 2024 11:34:03 +0200 Message-Id: <20240610093405.1980592-13-Pierre.Gondois@arm.com> In-Reply-To: <20240610093405.1980592-1-Pierre.Gondois@arm.com> References: <20240610093405.1980592-1-Pierre.Gondois@arm.com> MIME-Version: 1.0 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Resent-Date: Mon, 10 Jun 2024 02:34:50 -0700 Resent-From: pierre.gondois@arm.com Reply-To: devel@edk2.groups.io,pierre.gondois@arm.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: BZZNy7HwmNoidMxsloSjvsDZx7686176AA= Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240206 header.b="s/MQ8Gpt"; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=arm.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 45.79.224.7 as permitted sender) smtp.mailfrom=bounce@groups.io From: Pierre Gondois 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 --- .../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/Configurat= ionManagerDxe/ConfigurationManager.c index b5ad69cc9632..6de0c768e880 100644 --- a/Platform/NXP/ConfigurationManagerPkg/ConfigurationManagerDxe/Config= urationManager.c +++ b/Platform/NXP/ConfigurationManagerPkg/ConfigurationManagerDxe/Config= urationManager.c @@ -508,7 +508,17 @@ GetArchCommonNameSpaceObject ( PlatformRepo =3D This->PlatRepoInfo; =20 switch (GET_CM_OBJECT_ID (CmObjectId)) { - default: { + case EArchCommonObjPowerManagementProfileInfo: + Status =3D HandleCmObject ( + CmObjectId, + &PlatformRepo->PmProfileInfo, + sizeof (PlatformRepo->PmProfileInfo), + 1, + CmObject + ); + break; + + default: { Status =3D EFI_NOT_FOUND; DEBUG (( DEBUG_INFO, @@ -567,16 +577,6 @@ GetArmNameSpaceObject ( ); break; =20 - case EArmObjPowerManagementProfileInfo: - Status =3D HandleCmObject ( - CmObjectId, - &PlatformRepo->PmProfileInfo, - sizeof (PlatformRepo->PmProfileInfo), - 1, - CmObject - ); - break; - case EArmObjGenericTimerInfo: Status =3D HandleCmObject ( CmObjectId, diff --git a/Platform/NXP/ConfigurationManagerPkg/ConfigurationManagerDxe= /ConfigurationManager.h b/Platform/NXP/ConfigurationManagerPkg/Configurat= ionManagerDxe/ConfigurationManager.h index 0c7dd411f44c..c276ba048999 100644 --- a/Platform/NXP/ConfigurationManagerPkg/ConfigurationManagerDxe/Config= urationManager.h +++ b/Platform/NXP/ConfigurationManagerPkg/ConfigurationManagerDxe/Config= urationManager.h @@ -3,6 +3,7 @@ =20 Copyright 2020 NXP Copyright 2020 Puresoftware Ltd + Copyright (c) 2024, Arm Limited. All rights reserved.
=20 SPDX-License-Identifier: BSD-2-Clause-Patent =20 @@ -80,7 +81,7 @@ typedef struct PlatformRepositoryInfo { CM_ARM_BOOT_ARCH_INFO BootArchInfo; =20 /// Power management profile information - CM_ARM_POWER_MANAGEMENT_PROFILE_INFO PmProfileInfo; + CM_ARCH_COMMON_POWER_MANAGEMENT_PROFILE_INFO PmProfileInfo; =20 /// Generic timer information CM_ARM_GENERIC_TIMER_INFO GenericTimerInfo; --=20 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/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-