From nobody Tue Feb 10 01:50:26 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+95088+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+95088+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1665571585; cv=none; d=zohomail.com; s=zohoarc; b=navVfO+k4RsCJJXZ6ZifAeeOUAQPovwGa3CcHhg5TbMUiP/ZRyhodKgPhFueQfIBRhi5E8sscd6DfsCG3sI2QS+Y5trskrF2zrueoBqm6Gptqdh9VMw23QWUlhcp/6GmqBx2ga0rwf+R85tt8zBT2aJDBzWQd182W65Qn0w4EDI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1665571585; 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=EImnsTaJ57z/As1lbpApDvetQZqNcwxU7djoxdjVsfw=; b=a3zgxkUlZOB+qWBREqoA1qnYl/aSgagP70l5w5iiTw5nhy5YCafZdc4HF4oOzMUAhVNti1Dl0ymXfGQXeB9qTzsLbcpgPXQbNWQMmo7JGulC8VNzkxL/LYVgTPe8Ko3rAYFn0ka3zrNBtkp5SBEGz9jThw5i/1ox9Q0r/MTvBVA= 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+95088+1787277+3901457@groups.io Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1665571585802138.4884359131937; Wed, 12 Oct 2022 03:46:25 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id w6aIYY1788612x4ija3vh9Us; Wed, 12 Oct 2022 03:46:25 -0700 X-Received: from mail-pj1-f46.google.com (mail-pj1-f46.google.com [209.85.216.46]) by mx.groups.io with SMTP id smtpd.web09.19010.1665571573105924861 for ; Wed, 12 Oct 2022 03:46:24 -0700 X-Received: by mail-pj1-f46.google.com with SMTP id gf8so14916587pjb.5 for ; Wed, 12 Oct 2022 03:46:24 -0700 (PDT) X-Gm-Message-State: nCRhYZs4xoOfaPfYAzOErmdGx1787277AA= X-Google-Smtp-Source: AMsMyM4TTyeSOUKjWUxljJr+m9toe3mnj5I0G7VmYLQHdXIv2/KCdF0fMK5dkKTP7JrnoHS7fMk2Fg== X-Received: by 2002:a17:90b:4b02:b0:20c:c3a8:38d with SMTP id lx2-20020a17090b4b0200b0020cc3a8038dmr4313880pjb.12.1665571584134; Wed, 12 Oct 2022 03:46:24 -0700 (PDT) X-Received: from localhost.localdomain ([49.206.13.138]) by smtp.gmail.com with ESMTPSA id z4-20020aa79e44000000b0054223a0185asm10812221pfq.161.2022.10.12.03.46.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Oct 2022 03:46:23 -0700 (PDT) From: "Sunil V L" To: devel@edk2.groups.io Cc: Leif Lindholm , Ard Biesheuvel , Michael D Kinney , Liming Gao , Zhiguang Liu , Andrew Fish Subject: [edk2-devel] [edk2-staging/RiscV64QemuVirt PATCH V2 25/33] ArmPlatformPkg/NorFlashPlatformLib.h:Move to MdePkg Date: Wed, 12 Oct 2022 16:14:48 +0530 Message-Id: <20221012104456.1393376-26-sunilvl@ventanamicro.com> In-Reply-To: <20221012104456.1393376-1-sunilvl@ventanamicro.com> References: <20221012104456.1393376-1-sunilvl@ventanamicro.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,sunilvl@ventanamicro.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=1665571585; bh=kCXRwd3TT8uT8rU67XtqtnIuHXoiCkwrOnlgHze/1D8=; h=Cc:Date:From:Reply-To:Subject:To; b=uGFXB8nGlufRyKAEu48eWjCiVAeo6YRmyIrl5yhM8ex6rbqpH0OjUCZk0hJgDz8aND6 mytvwTy6sCF/LX/n8DNE5/6NXUQVzjehPidiN/5rqJxND2BOtheTnSEJix1fMjKQnSg45 r3bBwr9nbBSZxVik5tNyxxIXEmLUcITLSi4= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1665571586706100001 Content-Type: text/plain; charset="utf-8" Migrate NorFlashPlatformLib.h to MdePkg and add a Null instance of the NorFlashPlatformLib library in MdePkg. Cc: Leif Lindholm Cc: Ard Biesheuvel Cc: Michael D Kinney Cc: Liming Gao Cc: Zhiguang Liu Cc: Andrew Fish Signed-off-by: Sunil V L --- ArmPlatformPkg/ArmPlatformPkg.dec | 4 --- MdePkg/MdePkg.dec | 4 +++ MdePkg/MdePkg.dsc | 1 + .../NorFlashPlatformLibNull.inf | 23 ++++++++++++++++ .../Include/Library/NorFlashPlatformLib.h | 0 .../NorFlashPlatformLibNull.c | 26 +++++++++++++++++++ 6 files changed, 54 insertions(+), 4 deletions(-) create mode 100644 MdePkg/Library/NorFlashPlatformLibNull/NorFlashPlatform= LibNull.inf rename {ArmPlatformPkg =3D> MdePkg}/Include/Library/NorFlashPlatformLib.h = (100%) create mode 100644 MdePkg/Library/NorFlashPlatformLibNull/NorFlashPlatform= LibNull.c diff --git a/ArmPlatformPkg/ArmPlatformPkg.dec b/ArmPlatformPkg/ArmPlatform= Pkg.dec index dd6e78f62aa1..86559aa6e57d 100644 --- a/ArmPlatformPkg/ArmPlatformPkg.dec +++ b/ArmPlatformPkg/ArmPlatformPkg.dec @@ -38,10 +38,6 @@ [LibraryClasses] # LcdPlatformLib|Include/Library/LcdPlatformLib.h =20 - ## @libraryclass Provides a Nor flash interface. - # - NorFlashPlatformLib|Include/Library/NorFlashPlatformLib.h - ## @libraryclass Provides an interface to the clock of a PL011 device. # PL011UartClockLib|Include/Library/PL011UartClockLib.h diff --git a/MdePkg/MdePkg.dec b/MdePkg/MdePkg.dec index 1762068ffad7..16d01948f746 100644 --- a/MdePkg/MdePkg.dec +++ b/MdePkg/MdePkg.dec @@ -275,6 +275,10 @@ [LibraryClasses] ## @libraryclass Provides function for SMM CPU Rendezvous Library. SmmCpuRendezvousLib|Include/Library/SmmCpuRendezvousLib.h =20 + ## @libraryclass Provides a Nor flash interface. + # + NorFlashPlatformLib|Include/Library/NorFlashPlatformLib.h + [LibraryClasses.IA32, LibraryClasses.X64, LibraryClasses.AARCH64] ## @libraryclass Provides services to generate random number. # diff --git a/MdePkg/MdePkg.dsc b/MdePkg/MdePkg.dsc index fd08122f441d..c575390bcff2 100644 --- a/MdePkg/MdePkg.dsc +++ b/MdePkg/MdePkg.dsc @@ -133,6 +133,7 @@ [Components] MdePkg/Library/RegisterFilterLibNull/RegisterFilterLibNull.inf MdePkg/Library/CcProbeLibNull/CcProbeLibNull.inf MdePkg/Library/SmmCpuRendezvousLibNull/SmmCpuRendezvousLibNull.inf + MdePkg/Library/NorFlashPlatformLibNull/NorFlashPlatformLibNull.inf =20 [Components.IA32, Components.X64, Components.ARM, Components.AARCH64] # diff --git a/MdePkg/Library/NorFlashPlatformLibNull/NorFlashPlatformLibNull= .inf b/MdePkg/Library/NorFlashPlatformLibNull/NorFlashPlatformLibNull.inf new file mode 100644 index 000000000000..3d135405a5dd --- /dev/null +++ b/MdePkg/Library/NorFlashPlatformLibNull/NorFlashPlatformLibNull.inf @@ -0,0 +1,23 @@ +#/** @file +# +# Component description file for NorFlashPlatformLibNull module +# +# Copyright (c) 2022, Ventana Micro Systems Inc. All rights reserved.
+# +# SPDX-License-Identifier: BSD-2-Clause-Patent +# +#**/ + +[Defines] + INF_VERSION =3D 0x00010005 + BASE_NAME =3D NorFlashPlatformLibNull + FILE_GUID =3D DE9C2866-5C5C-4BD3-9A09-3C4EB7448069 + MODULE_TYPE =3D DXE_DRIVER + VERSION_STRING =3D 1.0 + LIBRARY_CLASS =3D NorFlashPlatformLib + +[Sources.common] + NorFlashPlatformLibNull.c + +[Packages] + MdePkg/MdePkg.dec diff --git a/ArmPlatformPkg/Include/Library/NorFlashPlatformLib.h b/MdePkg/= Include/Library/NorFlashPlatformLib.h similarity index 100% rename from ArmPlatformPkg/Include/Library/NorFlashPlatformLib.h rename to MdePkg/Include/Library/NorFlashPlatformLib.h diff --git a/MdePkg/Library/NorFlashPlatformLibNull/NorFlashPlatformLibNull= .c b/MdePkg/Library/NorFlashPlatformLibNull/NorFlashPlatformLibNull.c new file mode 100644 index 000000000000..cd779f504e40 --- /dev/null +++ b/MdePkg/Library/NorFlashPlatformLibNull/NorFlashPlatformLibNull.c @@ -0,0 +1,26 @@ +/** @file + + Copyright (c) 2022, Ventana Micro Systems Inc. All rights reserved.
+ + SPDX-License-Identifier: BSD-2-Clause-Patent + + **/ + +#include + +EFI_STATUS +NorFlashPlatformInitialization ( + VOID + ) +{ + return EFI_SUCCESS; +} + +EFI_STATUS +NorFlashPlatformGetDevices ( + OUT NOR_FLASH_DESCRIPTION **NorFlashDescriptions, + OUT UINT32 *Count + ) +{ + return EFI_SUCCESS; +} --=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 (#95088): https://edk2.groups.io/g/devel/message/95088 Mute This Topic: https://groups.io/mt/94278098/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-