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 45258AC0F59 for ; Thu, 23 May 2024 10:56:21 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=r7Of3E1iVcoJn4Iwv9cRmsiykokAqMAff3iFTgNEGO8=; 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=1716461779; v=1; b=qSCcBcCs067PCfSlOhC3qBQhDfb99xgQchGkwi3r9UOvpViNVKN2A3UPPOE/jq2WPyEwnOgE iiPSguR0bLJEq5OdOQiAB6OtsPIlee5nxEjZh2R8MVJ4ENbVKGc9uPLYHgNa9F5mYKH7+FX9tAV yvzzBvPFBT0+qIaeDC3ye8zj+ilzWXD+3W4oDcca7TIEWnJCFZ0Yivt0teVYiRkmzx3d1kMm6Du xLOeThljTtPNywmLarnsPfxvfukCFkETZGymI7Xyp4IZE8lmIKds5BkNLKKJRGOF+1944VU22k5 wNMbGGlCXGcnzY+nfOfVHniLXQdpXcMBMEEmppzp7wyEA== X-Received: by 127.0.0.2 with SMTP id vsbcYY7687511x4VNz0PPfOv; Thu, 23 May 2024 03:56:19 -0700 X-Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web11.14098.1716461778915731634 for ; Thu, 23 May 2024 03:56:19 -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 A513BDA7; Thu, 23 May 2024 03:56:42 -0700 (PDT) X-Received: from usa.arm.com (a077434.arm.com [10.162.46.143]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id E25353F766; Thu, 23 May 2024 03:56:16 -0700 (PDT) From: "Sahil Kaushal" To: devel@edk2.groups.io Cc: Ard Biesheuvel , =?UTF-8?q?Leif=20Lindholm=20=C2=A0?= , Sami Mujawar , =?UTF-8?q?sahil=20=C2=A0?= Subject: [edk2-devel] [edk2-platforms][PATCH V3 13/17] Silicon/ARM/NeoverseN1Soc: Enable SCP QSPI flash region Date: Thu, 23 May 2024 16:25:07 +0530 Message-Id: <20240523105511.13189-14-Sahil.Kaushal@arm.com> In-Reply-To: <20240523105511.13189-1-Sahil.Kaushal@arm.com> References: <20240523105511.13189-1-Sahil.Kaushal@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: Thu, 23 May 2024 03:56:19 -0700 Resent-From: sahil.kaushal@arm.com Reply-To: devel@edk2.groups.io,sahil.kaushal@arm.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: Ty19u8QlR7LWupONA7GE8P6Ix7686176AA= 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=qSCcBcCs; 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: sahil Enable SCP QSPI flash region access by adding it in the PlatformLibMem. This flash is shared between AP core and System Control Processor. The lower addresses are used to store SCP and AP boot images and higher addresses will be used for variable storage. Signed-off-by: sahil --- Silicon/ARM/NeoverseN1Soc/Include/NeoverseN1Soc.h | 7 +++++++ Silicon/ARM/NeoverseN1Soc/Library/PlatformLib/PlatformLibMem.c | 8 +++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/Silicon/ARM/NeoverseN1Soc/Include/NeoverseN1Soc.h b/Silicon/AR= M/NeoverseN1Soc/Include/NeoverseN1Soc.h index 5483e7bc5f68..2dae57a0f01a 100644 --- a/Silicon/ARM/NeoverseN1Soc/Include/NeoverseN1Soc.h +++ b/Silicon/ARM/NeoverseN1Soc/Include/NeoverseN1Soc.h @@ -4,6 +4,9 @@ *=0D * SPDX-License-Identifier: BSD-2-Clause-Patent=0D *=0D +* Arm Neoverse N1 System Development Platform Technical Reference Manual=0D +* https://developer.arm.com/documentation/101489/0000/?lang=3Den=0D +*=0D **/=0D =0D #ifndef NEOVERSEN1SOC_PLATFORM_H_=0D @@ -41,6 +44,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 /*=0D * Platform information structure stored in Non-secure SRAM. Platform=0D * information are passed from the trusted firmware with the below structu= re=0D diff --git a/Silicon/ARM/NeoverseN1Soc/Library/PlatformLib/PlatformLibMem.c= b/Silicon/ARM/NeoverseN1Soc/Library/PlatformLib/PlatformLibMem.c index 80daedb33416..282bfbc81736 100644 --- a/Silicon/ARM/NeoverseN1Soc/Library/PlatformLib/PlatformLibMem.c +++ b/Silicon/ARM/NeoverseN1Soc/Library/PlatformLib/PlatformLibMem.c @@ -14,7 +14,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 @@ -203,6 +203,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 (#119155): https://edk2.groups.io/g/devel/message/119155 Mute This Topic: https://groups.io/mt/106260153/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-