From nobody Mon Sep 16 19:50:25 2024 Delivered-To: importer@patchew.org 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+114058+1787277+3901457@groups.io; arc=fail (BodyHash is different from the expected one) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1705676242024266.9538019361328; Fri, 19 Jan 2024 06:57:22 -0800 (PST) Return-Path: DKIM-Signature: a=rsa-sha256; bh=ijn0B4V65q0E1rewzGMtgEezYpCYiTxhaNC0TceatIY=; c=relaxed/simple; d=groups.io; h=ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:Received-SPF: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:Content-Type; s=20140610; t=1705676241; v=1; b=mXRUIn8hSXg0wQq5ey/bBY4pU0tQDE1qkvl2tuW3Da8AnhEJxDH+gUgT8ttKbbWDa5JdJMaQ gd/gMpIhMcVueryWEimE6V22mYmnieS2SwzqJFkSvxvgsBKrbCrpMul0Ccp1854O07Wa2xo4OMb SoJeRv9tPG/9wIYQSAKy7ep8= X-Received: by 127.0.0.2 with SMTP id XyPzYY1788612xVMXDDcVKZl; Fri, 19 Jan 2024 06:57:21 -0800 X-Received: from NAM11-DM6-obe.outbound.protection.outlook.com (NAM11-DM6-obe.outbound.protection.outlook.com [40.107.223.54]) by mx.groups.io with SMTP id smtpd.web10.5965.1705560669778597273 for ; Wed, 17 Jan 2024 22:51:09 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dcow2eO64+zzYG5BF+6O49i8JUfxuUB4bEaQrK5YqF1X1188yBBcHZBJVqFEh67ezHxaqlIAfqoUzPWuYbWaxKU+BTLMjl3fb/Db9RuiU3Eufxdg3br3kUIs04bGnwHrJS72TYOwAICx2Osrjudu5RE3RR8r0msuN759amjChvPc/TCb/RuQ5KLE0Te4uc67rbcJ1Pb4NH0YZHg9qYntGEHjBxQrxgGCmRPARva2iolZDVcQ+Z4ARJCRVqJwZbWWC9D47o9DNDJoej+jXDwKV5JcDHXd09IlF3gAEe+TY32Iuau7SFGBXfoXp7rZgHkUWrWIlA6Z7rkT1mx/T6I4HA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=nuQrm5vS+NJKecafNfc2RvdZ9gQ44rOEFD2ZC8PbLEM=; b=HRjgUrEIFSD91WZ7MtSs2eUVFpIUNbHULjJMyTxRt1PzS1Bp8A9cylqAgFzyCc4mYqwcuAlFQnGYeQ3wVP3GXnNDBjRGd5aGuuE+9I8oTC9L3IKJcu7zdV+RPQb+MGsbf8Jcv5y13WlzWlOWeY1atFLwtwYIL1OQ5YH8M6m2PFFOKEwLHvjLKCLa87/PPYeNaNAsRiadKqV7GP4OmyJSDJ0hcPREfyhK+ojZx49R2s50vXaEs7QEF/hw+p1VdiIXekS/rhqjZoyIGvCB+ZpMjbVl/heFIqyOO/l4uyWe8nN0Ut0YVRgOlUNvgOnG7ulitfAbFWMLfQGDQAhqThnF/w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=edk2.groups.io smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) X-Received: from CY5PR19CA0106.namprd19.prod.outlook.com (2603:10b6:930:83::29) by SN7PR12MB6861.namprd12.prod.outlook.com (2603:10b6:806:266::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7202.24; Thu, 18 Jan 2024 06:51:07 +0000 X-Received: from CY4PEPF0000E9D6.namprd05.prod.outlook.com (2603:10b6:930:83:cafe::52) by CY5PR19CA0106.outlook.office365.com (2603:10b6:930:83::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7202.24 via Frontend Transport; Thu, 18 Jan 2024 06:51:06 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; 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+114058+1787277+3901457@groups.io; helo=mail02.groups.io; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C X-Received: from SATLEXMB04.amd.com (165.204.84.17) by CY4PEPF0000E9D6.mail.protection.outlook.com (10.167.241.80) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7181.14 via Frontend Transport; Thu, 18 Jan 2024 06:51:06 +0000 X-Received: from SATLEXMB08.amd.com (10.181.40.132) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34; Thu, 18 Jan 2024 00:51:06 -0600 X-Received: from SATLEXMB03.amd.com (10.181.40.144) by SATLEXMB08.amd.com (10.181.40.132) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.32; Wed, 17 Jan 2024 22:51:05 -0800 X-Received: from SHA-LX-MINGXZHA.amd.com (10.180.168.240) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server id 15.1.2507.34 via Frontend Transport; Thu, 18 Jan 2024 00:51:04 -0600 From: "duke.zhai via groups.io" To: CC: Eric Xing , Ken Yao , Igniculus Fu , Abner Chang Subject: [edk2-devel] [PATCH 09/33] AMD/VanGoghBoard: Check in Flash_AB Date: Thu, 18 Jan 2024 14:50:22 +0800 Message-ID: <20240118065046.961-10-duke.zhai@amd.com> In-Reply-To: <20240118065046.961-1-duke.zhai@amd.com> References: <20240118065046.961-1-duke.zhai@amd.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY4PEPF0000E9D6:EE_|SN7PR12MB6861:EE_ X-MS-Office365-Filtering-Correlation-Id: 12b837c6-4c08-499e-52d8-08dc17f1d8b1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Message-Info: jJj9lJjIKCc81ZLhva0g2PQ/zxQa0V4JRiebSOGznW7+/eH9WHCnOwoPAtHu57KUfBEaK7fnaEsc6Fb6HaXEuTQfdgod0KzCpCILI9wPyCGjGjEgpR3g5FMGZK9YtB27LjFKfEkcAxtOJJVJPst0JDbcoTcGCV3AOUlfZ4gZkLwKcthWRW7WVV2Y9dV+S4soaxilXffMrpkqbij/MjohcKehzblY0NmfafzVPQpqJFJTaSPQeQpgiWDLFhfQxO0owRfykYFwBYr0KmNaA6oX80HK/6/FsjXeRzc3bCukIJ2jJjzoOEjX+VoKOFG50dbzIrik6EAJA2bO5Qdp9GF5wOGbe1FHf3S6bbXZlYq2SITEH4E5wXp17NAXbMhBqSGTDm8nUDNBMF7UEGvWu+dDufS80peOEdg53WYrKyJIU3h1e5uq0Z11eB/s63dFA20wryE0lei7dJrGzLyNkNfwnkrIro80aeHQ3rGtOYsqO2CjMoF8UdeArdp6Adth/qQUWmLXHPNqbcETABTf3qJNTQzUDRQw20ISUhNoTZ9DlavMq3D3e3SIk7XtegtzgbvQ77F4zp9H4rKYElmWQzIkiSUcLphOFaTW2RWcwu3reTxjx5Bi3xBZGkp2vevCmc0wajJmjtNeyfulP4R63/8K+Ztjd/BQ7UnVAgvq8PbAp1RZF8pRA46ZnBY8kjjwx1ZwLMNyvn5ycZSupLeQiAejCfZ9WLIxzCy3YILtTnWVkJ9yQxOVobZlvhfwtcSu7MitCOH+gQEGOC4RRTpIzeqk4A== X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jan 2024 06:51:06.8887 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 12b837c6-4c08-499e-52d8-08dc17f1d8b1 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: CY4PEPF0000E9D6.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR12MB6861 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,duke.zhai@amd.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: 1HovgsK3L24D0ktWJkHExWo1x1787277AA= Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1705676242885100038 Content-Type: text/plain; charset="utf-8" From: Duke Zhai BZ #:4640 Chachani board supports AB recovery function. Initial Flash_AB module to create AB recovery header in BIOS binary. Signed-off-by: Duke Zhai Cc: Eric Xing Cc: Ken Yao Cc: Igniculus Fu Cc: Abner Chang --- .../ImageSlotHeader/ImageSlotHeader_1.inf | 34 ++++++++++++++++ .../ImageSlotHeader/ImageSlotHeader_1.nasmb | 18 +++++++++ .../ImageSlotHeader/ImageSlotHeader_2.inf | 34 ++++++++++++++++ .../ImageSlotHeader/ImageSlotHeader_2.nasmb | 18 +++++++++ .../Flash_AB/NewEFS/NewEFS.inf | 26 ++++++++++++ .../Flash_AB/NewEFS/NewEFS.nasmb | 40 +++++++++++++++++++ .../PspL1Directory/PspL1Directory.inf | 38 ++++++++++++++++++ .../PspL1Directory/PspL1Directory.nasmb | 28 +++++++++++++ 8 files changed, 236 insertions(+) create mode 100644 Platform/AMD/VanGoghBoard/VanGoghCommonPkg/Flash_AB/Ima= geSlotHeader/ImageSlotHeader_1.inf create mode 100644 Platform/AMD/VanGoghBoard/VanGoghCommonPkg/Flash_AB/Ima= geSlotHeader/ImageSlotHeader_1.nasmb create mode 100644 Platform/AMD/VanGoghBoard/VanGoghCommonPkg/Flash_AB/Ima= geSlotHeader/ImageSlotHeader_2.inf create mode 100644 Platform/AMD/VanGoghBoard/VanGoghCommonPkg/Flash_AB/Ima= geSlotHeader/ImageSlotHeader_2.nasmb create mode 100644 Platform/AMD/VanGoghBoard/VanGoghCommonPkg/Flash_AB/New= EFS/NewEFS.inf create mode 100644 Platform/AMD/VanGoghBoard/VanGoghCommonPkg/Flash_AB/New= EFS/NewEFS.nasmb create mode 100644 Platform/AMD/VanGoghBoard/VanGoghCommonPkg/Flash_AB/Psp= L1Directory/PspL1Directory.inf create mode 100644 Platform/AMD/VanGoghBoard/VanGoghCommonPkg/Flash_AB/Psp= L1Directory/PspL1Directory.nasmb diff --git a/Platform/AMD/VanGoghBoard/VanGoghCommonPkg/Flash_AB/ImageSlotH= eader/ImageSlotHeader_1.inf b/Platform/AMD/VanGoghBoard/VanGoghCommonPkg/Fl= ash_AB/ImageSlotHeader/ImageSlotHeader_1.inf new file mode 100644 index 0000000000..61184ca544 --- /dev/null +++ b/Platform/AMD/VanGoghBoard/VanGoghCommonPkg/Flash_AB/ImageSlotHeader/I= mageSlotHeader_1.inf @@ -0,0 +1,34 @@ +## @file +# ImageSlotHeader_1 +# +# Copyright (C) 2024 Advanced Micro Devices, Inc. All rights reserved.
+# SPDX-License-Identifier: BSD-2-Clause-Patent +# +## + +[Defines] + INF_VERSION =3D 0x00010005 + BASE_NAME =3D ImageSlotHeader_1 + FILE_GUID =3D 3FAD5469-976C-4BBB-8127-43D536A71356 + MODULE_TYPE =3D SEC + VERSION_STRING =3D 1.1 + +# +# The following information is for reference only and not required by the = build tools. +# +# VALID_ARCHITECTURES =3D IA32 X64 +# + +[Sources] + ImageSlotHeader_1.nasmb + +[Packages] + MdePkg/MdePkg.dec + ChachaniBoardPkg/Project.dec + +[Pcd] + gPlatformPkgTokenSpaceGuid.PcdFlashAbImageSlotImageSize + gPlatformPkgTokenSpaceGuid.PcdFlashAbImageSlotDefaultPriority + gPlatformPkgTokenSpaceGuid.PcdFlashAbImageSlotUpdateRetries + gPlatformPkgTokenSpaceGuid.PcdFlashAbImageSlotGlitchRetry + gPlatformPkgTokenSpaceGuid.PcdFlashAbImageSlot1Base \ No newline at end of file diff --git a/Platform/AMD/VanGoghBoard/VanGoghCommonPkg/Flash_AB/ImageSlotH= eader/ImageSlotHeader_1.nasmb b/Platform/AMD/VanGoghBoard/VanGoghCommonPkg/= Flash_AB/ImageSlotHeader/ImageSlotHeader_1.nasmb new file mode 100644 index 0000000000..6b57199f2f --- /dev/null +++ b/Platform/AMD/VanGoghBoard/VanGoghCommonPkg/Flash_AB/ImageSlotHeader/I= mageSlotHeader_1.nasmb @@ -0,0 +1,18 @@ +;/** @file +; ImageSlotHeader_1 +; +; Copyright (C) 2024 Advanced Micro Devices, Inc. All rights reserved.
+; SPDX-License-Identifier: BSD-2-Clause-Patent +; +;**/ + +BITS 16 + +ALIGN 16 + +ImageSlotHeader: + DD FixedPcdGet32 (PcdFlashAbImageSlotDefaultPriority) ; Priority + DD FixedPcdGet32 (PcdFlashAbImageSlotUpdateRetries) ; UpdateRetries -= [2^(n+1) - 1] + DD FixedPcdGet32 (PcdFlashAbImageSlotGlitchRetry) ; GlitchRetry + DD FixedPcdGet32 (PcdFlashAbImageSlot1Base) ; Location of IMAG= ES_SLOT No. + ; Enhanced Structure diff --git a/Platform/AMD/VanGoghBoard/VanGoghCommonPkg/Flash_AB/ImageSlotH= eader/ImageSlotHeader_2.inf b/Platform/AMD/VanGoghBoard/VanGoghCommonPkg/Fl= ash_AB/ImageSlotHeader/ImageSlotHeader_2.inf new file mode 100644 index 0000000000..df23e3d8fd --- /dev/null +++ b/Platform/AMD/VanGoghBoard/VanGoghCommonPkg/Flash_AB/ImageSlotHeader/I= mageSlotHeader_2.inf @@ -0,0 +1,34 @@ +## @file +# ImageSlotHeader_2 +# +# Copyright (C) 2024 Advanced Micro Devices, Inc. All rights reserved.
+# SPDX-License-Identifier: BSD-2-Clause-Patent +# +## + +[Defines] + INF_VERSION =3D 0x00010005 + BASE_NAME =3D ImageSlotHeader_2 + FILE_GUID =3D 889470B2-F0EC-456b-9D23-5379959AB561 + MODULE_TYPE =3D SEC + VERSION_STRING =3D 1.1 + +# +# The following information is for reference only and not required by the = build tools. +# +# VALID_ARCHITECTURES =3D IA32 X64 +# + +[Sources] + ImageSlotHeader_2.nasmb + +[Packages] + MdePkg/MdePkg.dec + ChachaniBoardPkg/Project.dec + +[Pcd] + gPlatformPkgTokenSpaceGuid.PcdFlashAbImageSlotImageSize + gPlatformPkgTokenSpaceGuid.PcdFlashAbImageSlotDefaultPriority + gPlatformPkgTokenSpaceGuid.PcdFlashAbImageSlotUpdateRetries + gPlatformPkgTokenSpaceGuid.PcdFlashAbImageSlotGlitchRetry + gPlatformPkgTokenSpaceGuid.PcdFlashAbImageSlot2Base \ No newline at end of file diff --git a/Platform/AMD/VanGoghBoard/VanGoghCommonPkg/Flash_AB/ImageSlotH= eader/ImageSlotHeader_2.nasmb b/Platform/AMD/VanGoghBoard/VanGoghCommonPkg/= Flash_AB/ImageSlotHeader/ImageSlotHeader_2.nasmb new file mode 100644 index 0000000000..c257cf3c3f --- /dev/null +++ b/Platform/AMD/VanGoghBoard/VanGoghCommonPkg/Flash_AB/ImageSlotHeader/I= mageSlotHeader_2.nasmb @@ -0,0 +1,18 @@ +;/** @file +; ImageSlotHeader_2 +; +; Copyright (C) 2024 Advanced Micro Devices, Inc. All rights reserved.
+; SPDX-License-Identifier: BSD-2-Clause-Patent +; +;**/ + +BITS 16 + +ALIGN 16 + +ImageSlotHeader: + DD FixedPcdGet32 (PcdFlashAbImageSlotDefaultPriority) - 1 ; Priority + DD FixedPcdGet32 (PcdFlashAbImageSlotUpdateRetries) ; UpdateRetrie= s - [2^(n+1) - 1] + DD FixedPcdGet32 (PcdFlashAbImageSlotGlitchRetry) ; GlitchRetry + DD FixedPcdGet32 (PcdFlashAbImageSlot2Base) ; Location of = IMAGES_SLOT No. + ; Enhanced Structure diff --git a/Platform/AMD/VanGoghBoard/VanGoghCommonPkg/Flash_AB/NewEFS/New= EFS.inf b/Platform/AMD/VanGoghBoard/VanGoghCommonPkg/Flash_AB/NewEFS/NewEFS= .inf new file mode 100644 index 0000000000..2315f0e2e1 --- /dev/null +++ b/Platform/AMD/VanGoghBoard/VanGoghCommonPkg/Flash_AB/NewEFS/NewEFS.inf @@ -0,0 +1,26 @@ +## @file +# EFS header +# +# Copyright (C) 2024 Advanced Micro Devices, Inc. All rights reserved.
+# SPDX-License-Identifier: BSD-2-Clause-Patent +# +## + +[Defines] + INF_VERSION =3D 0x00010005 + BASE_NAME =3D NewEFS + FILE_GUID =3D 9EB20E65-AA38-44e8-8315-BE4305EAB250 + MODULE_TYPE =3D SEC + VERSION_STRING =3D 1.1 + +# +# The following information is for reference only and not required by the = build tools. +# +# VALID_ARCHITECTURES =3D IA32 X64 +# + +[Sources] + NewEFS.nasmb + +[Packages] + MdePkg/MdePkg.dec diff --git a/Platform/AMD/VanGoghBoard/VanGoghCommonPkg/Flash_AB/NewEFS/New= EFS.nasmb b/Platform/AMD/VanGoghBoard/VanGoghCommonPkg/Flash_AB/NewEFS/NewE= FS.nasmb new file mode 100644 index 0000000000..1133fe21ae --- /dev/null +++ b/Platform/AMD/VanGoghBoard/VanGoghCommonPkg/Flash_AB/NewEFS/NewEFS.nas= mb @@ -0,0 +1,40 @@ +;/** @file +; ImageSlotHeader_2 +; +; Copyright (C) 2024 Advanced Micro Devices, Inc. All rights reserved.
+; SPDX-License-Identifier: BSD-2-Clause-Patent +; +;**/ + +BITS 16 + +ALIGN 16 + +OemRomSignature: + DD 0x55AA55AA ; 0x00 - Signature + DD 0x00000000 ; 0x04 - Reserved + DD 0x00000000 ; 0x08 - Reserved + DD 0x00000000 ; 0x0C - Reserved + DD 0x00000000 ; 0x10 - Reserved + DD 0x00021000 ; 0x14 - PSP_L1_DIRECTORY + DD 0x00000000 ; 0x18 - Reserved + DD 0x00000000 ; 0x1C - Reserved + DD 0x00000000 ; 0x20 - Reserved + DD 0x00000000 ; 0x24 - Reserved + DD 0x00000000 ; 0x28 - Reserved + DD 0x00000000 ; 0x2C - Reserved + DD 0x00000000 ; 0x30 - Reserved + DD 0x00000000 ; 0x34 - Reserved + DD 0x00000000 ; 0x38 - Reserved + DD 0x00000000 ; 0x3C - Reserved + DB 0xFF ; 0x40 - SPI read mode for + DB 0xFF ; 0x41 - SPI read speed for + DB 0x00 ; 0x42 - Reserved + DB 0xFF ; 0x43 - SPI read mode + DB 0xFF ; 0x44 - SPI read speed + DB 0xFF ; 0x45 - SPI Dummy Cycle Con= fig + DB 0x00 ; 0x46 - Reserved + DB 0x05 ; 0x47 - SpiReadMode + DB 0x00 ; 0x48 - SpiFastSpeed + DB 0x55 ; 0x49 - MicronDetectFlag + DB 0x01 ; 0x4A - SpiWriteSpeed diff --git a/Platform/AMD/VanGoghBoard/VanGoghCommonPkg/Flash_AB/PspL1Direc= tory/PspL1Directory.inf b/Platform/AMD/VanGoghBoard/VanGoghCommonPkg/Flash_= AB/PspL1Directory/PspL1Directory.inf new file mode 100644 index 0000000000..b96f6774d5 --- /dev/null +++ b/Platform/AMD/VanGoghBoard/VanGoghCommonPkg/Flash_AB/PspL1Directory/Ps= pL1Directory.inf @@ -0,0 +1,38 @@ +## @file +# PspL1Directory +# +# Copyright (C) 2024 Advanced Micro Devices, Inc. All rights reserved.
+# SPDX-License-Identifier: BSD-2-Clause-Patent +# +## + +[Defines] + INF_VERSION =3D 0x00010005 + BASE_NAME =3D PspL1Directory + FILE_GUID =3D A41C64EC-9702-42bd-8C4A-84F64CA6DCFE + MODULE_TYPE =3D SEC + VERSION_STRING =3D 1.1 + +# +# The following information is for reference only and not required by the = build tools. +# +# VALID_ARCHITECTURES =3D IA32 X64 +# + +[Sources] + PspL1Directory.nasmb + +[Packages] + MdePkg/MdePkg.dec + ChachaniBoardPkg/Project.dec + +[Pcd] + gPlatformPkgTokenSpaceGuid.PcdFlashAbImageSlotNumbers + gPlatformPkgTokenSpaceGuid.PcdFlashAbImageSlotHeader1Base + gPlatformPkgTokenSpaceGuid.PcdFlashAbImageSlotHeader2Base + gPlatformPkgTokenSpaceGuid.PcdFlashAbImageSlotHeader3Base + gPlatformPkgTokenSpaceGuid.PcdFlashAbImageSlotHeader4Base + gPlatformPkgTokenSpaceGuid.PcdFlashAbImageSlotHeader5Base + gPlatformPkgTokenSpaceGuid.PcdFlashAbImageSlotHeader6Base + gPlatformPkgTokenSpaceGuid.PcdFlashAbImageSlotHeader7Base + gPlatformPkgTokenSpaceGuid.PcdFlashAbImageSlotHeader8Base diff --git a/Platform/AMD/VanGoghBoard/VanGoghCommonPkg/Flash_AB/PspL1Direc= tory/PspL1Directory.nasmb b/Platform/AMD/VanGoghBoard/VanGoghCommonPkg/Flas= h_AB/PspL1Directory/PspL1Directory.nasmb new file mode 100644 index 0000000000..65cbc4565a --- /dev/null +++ b/Platform/AMD/VanGoghBoard/VanGoghCommonPkg/Flash_AB/PspL1Directory/Ps= pL1Directory.nasmb @@ -0,0 +1,28 @@ +;/** @file +; ImageSlotHeader_2 +; +; Copyright (C) 2024 Advanced Micro Devices, Inc. All rights reserved.
+; SPDX-License-Identifier: BSD-2-Clause-Patent +; +;**/ + +BITS 16 + +ALIGN 16 + +PspL1Directory: + ; Header + DD 0x50535024 ; Signature =E2=80=98= $PSP=E2=80=99 + DD 0x00000000 ; Checksum of PSP_L1_= DIRECTORY + DD FixedPcdGet32 (PcdFlashAbImageSlotNumbers) ; Total enties of IMA= GE_SLOT + DD 0x00000000 ; Reserved + ; Entry 1 + DD 0x00000048 ; Type + DD 0x00000000 ; Size - Reserved + DD FixedPcdGet32 (PcdFlashAbImageSlotHeader1Base) ; Location (L) of IMA= GE_SLOT_HEADER No. + DD 0x00000000 ; Location (H) of IMA= GE_SLOT_HEADER No. + ; Entry 2 + DD 0x0000004A ; Type + DD 0x00000000 ; Size - Reserved + DD FixedPcdGet32 (PcdFlashAbImageSlotHeader2Base) ; Location (L) of IMA= GE_SLOT_HEADER No. + DD 0x00000000 ; Location (H) of IMA= GE_SLOT_HEADER No. -- 2.31.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 (#114058): https://edk2.groups.io/g/devel/message/114058 Mute This Topic: https://groups.io/mt/103831170/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-