From nobody Tue Feb 10 13:01:41 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+111308+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+111308+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=arm.com ARC-Seal: i=1; a=rsa-sha256; t=1700135167; cv=none; d=zohomail.com; s=zohoarc; b=HJi9zGZ15t5SVt1CUh2mN08NZa7BqevVv3HUf9civ+0QL4jCaSyEt9aBxcnztKxhAzeS6G70xU6uYsSQ7qrXd8t25WUp6/nZ12+BvNYe/t1Hk+SG3ny9JiJ+UBv6tCORuTT2/0Qy1g/0SsZOmkFlXppqMqyVdUxfkQIcUHu5Lcs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1700135167; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Reply-To:References:Sender:Subject:Subject:To:To:Message-Id; bh=UDchYwwqV2FsvamKjb6wz3r42kI5hhomra9p5WBh1sQ=; b=Kv0763csj8OAC1LLO1solm6uL/dsZiX94tfIr7gjwTtHT3hqXHKTj5LW2uQABkK1alHxBCujSU1cKW5fcjZqr2fUpKVv7A7Q1T0Mv9OxO7siTAG5WKeaDQYkKvyZxI6iUWeMUSD/RaFCZ3HhBarNxNoPmWMns7W+uB1j9n5i6kM= 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+111308+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1700135167458319.467609320261; Thu, 16 Nov 2023 03:46:07 -0800 (PST) Return-Path: DKIM-Signature: a=rsa-sha256; bh=F0OtNevIYTZAGLOje/aXRsd5wSJVkbDlnwA9DPzdUYM=; 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:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20140610; t=1700135167; v=1; b=GHTaVvUbh4yWCR3/0ES8TE4RSb7InZ8NoZ4l4++S6U6rEXhwiNhdoBIoEeEhKyhZXAJvnPFo 4MBrJ0SKds9+yCKmGJe/30TsBeH1J59znIAoXpCgQE5Bisr/veyqIGweFinU2kvjzjJziKPPJka Pv1SoJvL47hBEolrOMEazgA8= X-Received: by 127.0.0.2 with SMTP id 229WYY1788612xSnhNoiSjCZ; Thu, 16 Nov 2023 03:46:07 -0800 X-Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web10.4905.1700135166509550407 for ; Thu, 16 Nov 2023 03:46:06 -0800 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 25F2E1595; Thu, 16 Nov 2023 03:46:52 -0800 (PST) X-Received: from usa.arm.com (a077434.blr.arm.com [10.162.17.62]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 65B633F7B4; Thu, 16 Nov 2023 03:46:04 -0800 (PST) From: "sahil" To: devel@edk2.groups.io Cc: Ard Biesheuvel , Leif Lindholm , Sami Mujawar , Sahil Subject: [edk2-devel] [edk2-platforms][PATCH V1 1/5] Silicon/ARM/NeoverseN1Soc: Enable SCP QSPI flash region Date: Thu, 16 Nov 2023 17:15:50 +0530 Message-Id: <20231116114554.4055517-2-sahil@arm.com> In-Reply-To: <20231116114554.4055517-1-sahil@arm.com> References: <20231116114554.4055517-1-sahil@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 Reply-To: devel@edk2.groups.io,sahil@arm.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: XAEpn64moeX60Rs17Sq5aL41x1787277AA= Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1700135168851100001 Content-Type: text/plain; charset="utf-8" Enable SCP QSPI flash region access by adding it in the PlatformLibMem Signed-off-by: sahil Reviewed-by: Thomas Abraham --- Silicon/ARM/NeoverseN1Soc/Include/NeoverseN1Soc.h | 6 +++++- Silicon/ARM/NeoverseN1Soc/Library/PlatformLib/PlatformLibMem.c | 10 ++++++= ++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/Silicon/ARM/NeoverseN1Soc/Include/NeoverseN1Soc.h b/Silicon/AR= M/NeoverseN1Soc/Include/NeoverseN1Soc.h index 097160c7e2d1..92b8c9c45775 100644 --- a/Silicon/ARM/NeoverseN1Soc/Include/NeoverseN1Soc.h +++ b/Silicon/ARM/NeoverseN1Soc/Include/NeoverseN1Soc.h @@ -1,6 +1,6 @@ /** @file * -* Copyright (c) 2018 - 2020, ARM Limited. All rights reserved. +* Copyright (c) 2018 - 2023, ARM Limited. All rights reserved. * * SPDX-License-Identifier: BSD-2-Clause-Patent * @@ -41,6 +41,10 @@ #define NEOVERSEN1SOC_EXP_PERIPH_BASE0 0x1C000000 #define NEOVERSEN1SOC_EXP_PERIPH_BASE0_SZ 0x1300000 =20 +// SCP QSPI flash device +#define NEOVERSEN1SOC_SCP_QSPI_AHB_BASE 0x18000000 +#define NEOVERSEN1SOC_SCP_QSPI_AHB_SZ 0x2000000 + // Base address to a structure of type NEOVERSEN1SOC_PLAT_INFO which is // pre-populated by a earlier boot stage #define NEOVERSEN1SOC_PLAT_INFO_STRUCT_BASE (NEOVERSEN1SOC_NON_SE= CURE_SRAM_BASE + \ diff --git a/Silicon/ARM/NeoverseN1Soc/Library/PlatformLib/PlatformLibMem.c= b/Silicon/ARM/NeoverseN1Soc/Library/PlatformLib/PlatformLibMem.c index 9e8a1efc557d..eb099953fe29 100644 --- a/Silicon/ARM/NeoverseN1Soc/Library/PlatformLib/PlatformLibMem.c +++ b/Silicon/ARM/NeoverseN1Soc/Library/PlatformLib/PlatformLibMem.c @@ -1,6 +1,6 @@ /** @file =20 - Copyright (c) 2018 - 2021, ARM Limited. All rights reserved.
+ Copyright (c) 2018 - 2023, ARM Limited. All rights reserved.
=20 SPDX-License-Identifier: BSD-2-Clause-Patent =20 @@ -13,7 +13,7 @@ #include =20 // The total number of descriptors, including the final "end-of-table" des= criptor. -#define MAX_VIRTUAL_MEMORY_MAP_DESCRIPTORS 19 +#define MAX_VIRTUAL_MEMORY_MAP_DESCRIPTORS 20 =20 /** Returns the Virtual Memory Map of the platform. @@ -184,6 +184,12 @@ ArmPlatformGetVirtualMemoryMap ( VirtualMemoryTable[Index].Length =3D NEOVERSEN1SOC_EXP_PERIPH_B= ASE0_SZ; VirtualMemoryTable[Index].Attributes =3D ARM_MEMORY_REGION_ATTRIBUT= E_DEVICE; =20 + // SCP QSPI flash device + VirtualMemoryTable[++Index].PhysicalBase =3D NEOVERSEN1SOC_SCP_QSPI_AHB= _BASE; + VirtualMemoryTable[Index].VirtualBase =3D NEOVERSEN1SOC_SCP_QSPI_AHB= _BASE; + VirtualMemoryTable[Index].Length =3D NEOVERSEN1SOC_SCP_QSPI_AHB= _SZ; + VirtualMemoryTable[Index].Attributes =3D ARM_MEMORY_REGION_ATTRIBUT= E_DEVICE; + if (PlatInfo->MultichipMode =3D=3D 1) { //Remote DDR (2GB) VirtualMemoryTable[++Index].PhysicalBase =3D PcdGet64 (PcdExtMemorySp= ace) + --=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 (#111308): https://edk2.groups.io/g/devel/message/111308 Mute This Topic: https://groups.io/mt/102625033/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-