From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 5BCA59418ED for ; Thu, 16 Nov 2023 11:46:08 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=OG3wxaK6E39UR9RtHxFxCBg9eOMdq3mi1OzS14F+mfg=; 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=W9gQaAodCDj5LUS663g54b44S2/PFU+lLqbYWsgN6FwjsbjFn0HhB1y+6k1duIh0kvLXR6G/ IqmfPLFEuGWmmJ+/fSPlyFJlerYJXXohc3Fja+HGOC8Z1+bOHvdeyw9L4RCwpGEvnSIxcbR0wgP bB8iQd2kilIGQ3GUJRp0+WuU= X-Received: by 127.0.0.2 with SMTP id XKDxYY7687511xxedBMBbxnA; 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: 9BglMHNYY9N0zQHpqFUeUwirx7686176AA= Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=W9gQaAod; 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 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io Enable SCP QSPI flash region access by adding it in the PlatformLibMem Signed-off-by: sahil --- 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=0D *=0D -* Copyright (c) 2018 - 2020, ARM Limited. All rights reserved.=0D +* Copyright (c) 2018 - 2023, ARM Limited. All rights reserved.=0D *=0D * SPDX-License-Identifier: BSD-2-Clause-Patent=0D *=0D @@ -41,6 +41,10 @@ #define NEOVERSEN1SOC_EXP_PERIPH_BASE0 0x1C000000=0D #define NEOVERSEN1SOC_EXP_PERIPH_BASE0_SZ 0x1300000=0D =0D +// SCP QSPI flash device=0D +#define NEOVERSEN1SOC_SCP_QSPI_AHB_BASE 0x18000000=0D +#define NEOVERSEN1SOC_SCP_QSPI_AHB_SZ 0x2000000=0D +=0D // Base address to a structure of type NEOVERSEN1SOC_PLAT_INFO which is=0D // pre-populated by a earlier boot stage=0D #define NEOVERSEN1SOC_PLAT_INFO_STRUCT_BASE (NEOVERSEN1SOC_NON_SE= CURE_SRAM_BASE + \=0D 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=0D =0D - Copyright (c) 2018 - 2021, ARM Limited. All rights reserved.
=0D + Copyright (c) 2018 - 2023, ARM Limited. All rights reserved.
=0D =0D SPDX-License-Identifier: BSD-2-Clause-Patent=0D =0D @@ -13,7 +13,7 @@ #include =0D =0D // The total number of descriptors, including the final "end-of-table" des= criptor.=0D -#define MAX_VIRTUAL_MEMORY_MAP_DESCRIPTORS 19=0D +#define MAX_VIRTUAL_MEMORY_MAP_DESCRIPTORS 20=0D =0D /**=0D Returns the Virtual Memory Map of the platform.=0D @@ -184,6 +184,12 @@ ArmPlatformGetVirtualMemoryMap ( VirtualMemoryTable[Index].Length =3D NEOVERSEN1SOC_EXP_PERIPH_B= ASE0_SZ;=0D VirtualMemoryTable[Index].Attributes =3D ARM_MEMORY_REGION_ATTRIBUT= E_DEVICE;=0D =0D + // SCP QSPI flash device=0D + VirtualMemoryTable[++Index].PhysicalBase =3D NEOVERSEN1SOC_SCP_QSPI_AHB= _BASE;=0D + VirtualMemoryTable[Index].VirtualBase =3D NEOVERSEN1SOC_SCP_QSPI_AHB= _BASE;=0D + VirtualMemoryTable[Index].Length =3D NEOVERSEN1SOC_SCP_QSPI_AHB= _SZ;=0D + VirtualMemoryTable[Index].Attributes =3D ARM_MEMORY_REGION_ATTRIBUT= E_DEVICE;=0D +=0D if (PlatInfo->MultichipMode =3D=3D 1) {=0D //Remote DDR (2GB)=0D VirtualMemoryTable[++Index].PhysicalBase =3D PcdGet64 (PcdExtMemorySp= ace) +=0D --=20 2.25.1 -=-=-=-=-=-=-=-=-=-=-=- 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/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-