From nobody Sun Feb 8 21:47:32 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+76396+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+76396+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1623426744; cv=none; d=zohomail.com; s=zohoarc; b=Vr+l/bzEL6js5unXySx/cPuj/hS6963aWjV6fcWfQ7rabeXqKFnnnCi+Ow4wzzWdVnn6K2/y9gXEfyN+VK1BVbZafcm9nShqnWWHIV9nl1l33xH0M12Y5EwW0xFu3zAmHwWAuM5x+4aFM4Tb1acI2Zlk+kveAq4qvR7wt6lwvsI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1623426744; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=uUKwJniwJuj1dLxNEOxsPlKQLXI3N5XtJb3un0/a8Ok=; b=gW9LIomjScNFTK5Kpo7te+zXiL+e9L5FFDsV4qmlyasVIJS3OxDQ3k1u9TWEA5duQ2U+SuJArR9K/LWTnnQRDnG0Jid4yUT7HfmnVF9XbXJERQrXjm9VNrozYgI6I+j+lxGL8sEsM3XRiREasubvCjkzAw5StllrLFvE52X8W3s= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+76396+1787277+3901457@groups.io Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1623426744490571.1901402563133; Fri, 11 Jun 2021 08:52:24 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id xOrqYY1788612xQRDs5Xrbax; Fri, 11 Jun 2021 08:52:24 -0700 X-Received: from mail-pf1-f178.google.com (mail-pf1-f178.google.com [209.85.210.178]) by mx.groups.io with SMTP id smtpd.web11.10459.1623426743566688914 for ; Fri, 11 Jun 2021 08:52:23 -0700 X-Received: by mail-pf1-f178.google.com with SMTP id k15so4788829pfp.6 for ; Fri, 11 Jun 2021 08:52:23 -0700 (PDT) X-Gm-Message-State: f9UKxzn1BTYstSRvxQkHNZLGx1787277AA= X-Google-Smtp-Source: ABdhPJywdiCoEhmYH+OqNxIMEd80na0v/1pICZdPJFww2dXdPfuCMceJ288LFH0Gm//sZ7UL2KlTpA== X-Received: by 2002:a65:5684:: with SMTP id v4mr4163601pgs.218.1623426742982; Fri, 11 Jun 2021 08:52:22 -0700 (PDT) X-Received: from embedded-PC.puresoft.int ([125.63.92.170]) by smtp.gmail.com with ESMTPSA id h8sm5458689pjf.7.2021.06.11.08.52.19 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 11 Jun 2021 08:52:22 -0700 (PDT) From: "Vikas Singh via groups.io" To: devel@edk2.groups.io Cc: sami.mujawar@arm.com, leif@nuviainc.com, meenakshi.aggarwal@nxp.com, samer.el-haj-mahmoud@arm.com, v.sethi@nxp.com, arokia.samy@puresoftware.com, kuldip.dwivedi@puresoftware.com, ard.biesheuvel@arm.com, vikas.singh@nxp.com, Sunny.Wang@arm.com Subject: [edk2-devel] [PATCH V1 1/4] Platform/NXP: Add generic log in CM to print SoC version Date: Fri, 11 Jun 2021 21:21:57 +0530 Message-Id: <20210611155200.15535-2-vikas.singh@puresoftware.com> In-Reply-To: <20210611155200.15535-1-vikas.singh@puresoftware.com> References: <20210611155200.15535-1-vikas.singh@puresoftware.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,vikas.singh@puresoftware.com Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1623426744; bh=Ki+Hivm4Vgz1WitOwHm6RQnrlxCV3Me0HqkzMbzhMrA=; h=Cc:Date:From:Reply-To:Subject:To; b=l5QlVK2T3ELibYtzINNDjy7edePJ3ThYmsIUN5fj9Q9CCCjV86mqSGMJ9vvK7UR6tQx RJZQ0jCj2xWa4y7MEFbDqkNBSwtPMoba88xro/e5FGL/H2Nc2qPIGYN/tyloI0nOEgoFr vERI32wr7jU4IL8ubEELxf0d9KrEmIvE5UA= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" Summary - 1.Configuration Manager(CM) is a common implementation and should not evaluate the SoC version using macro's However CM must directly consume SoC ver string from platfrom who is extending CM services for ACPI table generation. 2.Platforms who extends CM services for themselves must notify their SoC details to CM. 3.This patch will update the lx2160ardb platform header also with PLAT_SOC_NAME, this will be consumed by CM. Signed-off-by: Vikas Singh --- Platform/NXP/ConfigurationManagerPkg/ConfigurationManagerDxe/Configuration= Manager.c | 10 +++------- Platform/NXP/LX2160aRdbPkg/Include/Platform.h = | 5 ++--- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/Platform/NXP/ConfigurationManagerPkg/ConfigurationManagerDxe/C= onfigurationManager.c b/Platform/NXP/ConfigurationManagerPkg/ConfigurationM= anagerDxe/ConfigurationManager.c index 80ce8412c4..dc1a7f5f85 100644 --- a/Platform/NXP/ConfigurationManagerPkg/ConfigurationManagerDxe/Configur= ationManager.c +++ b/Platform/NXP/ConfigurationManagerPkg/ConfigurationManagerDxe/Configur= ationManager.c @@ -2,7 +2,7 @@ Configuration Manager Dxe =20 Copyright 2020 NXP - Copyright 2020 Puresoftware Ltd + Copyright 2020-2021 Puresoftware Ltd =20 SPDX-License-Identifier: BSD-2-Clause-Patent =20 @@ -170,12 +170,8 @@ InitializePlatformRepository ( PlatformRepo =3D This->PlatRepoInfo; =20 Svr =3D SocGetSvr (); - if (SVR_SOC_VER(Svr) =3D=3D SVR_LX2160A) { - PlatformRepo->FslBoardRevision =3D SVR_MAJOR(Svr); - DEBUG ((DEBUG_INFO, "Fsl : SoC LX2160A Rev =3D 0x%x\n", PlatformRepo->= FslBoardRevision)); - } else { - DEBUG ((DEBUG_INFO, "Fsl : SoC Unknown Rev =3D 0x%x\n", PlatformRepo->= FslBoardRevision)); - } + PlatformRepo->FslBoardRevision =3D SVR_MAJOR(Svr); + DEBUG ((DEBUG_INFO, "Fsl : SoC =3D %s Rev =3D 0x%x\n", PLAT_SOC_NAME, Pl= atformRepo->FslBoardRevision)); =20 return EFI_SUCCESS; } diff --git a/Platform/NXP/LX2160aRdbPkg/Include/Platform.h b/Platform/NXP/L= X2160aRdbPkg/Include/Platform.h index 76a41d4369..c18faf28cd 100644 --- a/Platform/NXP/LX2160aRdbPkg/Include/Platform.h +++ b/Platform/NXP/LX2160aRdbPkg/Include/Platform.h @@ -2,7 +2,7 @@ * Platform headers * * Copyright 2020 NXP - * Copyright 2020 Puresoftware Ltd + * Copyright 2020-2021 Puresoftware Ltd * * SPDX-License-Identifier: BSD-2-Clause-Patent * @@ -15,12 +15,11 @@ #define EFI_ACPI_ARM_OEM_REVISION 0x00000000 =20 // Soc defines +#define PLAT_SOC_NAME "LX2160ARDB" #define SVR_SOC_VER(svr) (((svr) >> 8) & 0xFFFFFE) #define SVR_MAJOR(svr) (((svr) >> 4) & 0xf) #define SVR_MINOR(svr) (((svr) >> 0) & 0xf) =20 -#define SVR_LX2160A 0x873600 - // PCLK #define DCFG_BASE 0x1E00000 #define DCFG_LEN 0x1FFFF --=20 2.25.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#76396): https://edk2.groups.io/g/devel/message/76396 Mute This Topic: https://groups.io/mt/83471705/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-