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 BF6EA9413EC for ; Thu, 4 Apr 2024 09:25:21 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=/T/rmjswxFGhukDrUifHW0zoulxSEu/yWamtJ/IxghE=; c=relaxed/simple; d=groups.io; h=Received-SPF:From:To:CC:Subject:Date:Message-ID: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:Content-Type; s=20240206; t=1712222720; v=1; b=g6IklhrL3sHynKIBaPpkDzmrbVwP5vzHNp15L5JTu3aApaffajATdwgRLLF8IWz1hs1X3MEr b1KrHvBEdNRltoKhhMUcVtZ/ZPRbvdrnroiTWMKlRVhUxUw5Jl2VhNN3iiBbKlqYOldWiuNu5pM tl4fBATQf261gHZZrMcT+TF/y2sjZbDTEZEPAsSWdIV6Qgda/uJxXg8E7KOfm3PTUoa8EGdgIG0 0zRx8NY8s8rytLhLpLkQ54NwWMmgvRN9cKZ09G3WEdUY7iI6y6Xplj2Gvijm00UeHUvLwTYGhgV B/oxwmPuaVICT8Zt/RF3l+PVt35exnk7U6L1uoK9uQ2sQ== X-Received: by 127.0.0.2 with SMTP id bi28YY7687511xmnh0pS94sN; Thu, 04 Apr 2024 02:25:20 -0700 X-Received: from NAM10-BN7-obe.outbound.protection.outlook.com (NAM10-BN7-obe.outbound.protection.outlook.com [40.107.92.80]) by mx.groups.io with SMTP id smtpd.web10.33970.1712222719693367226 for ; Thu, 04 Apr 2024 02:25:19 -0700 X-Received: from DM6PR08CA0038.namprd08.prod.outlook.com (2603:10b6:5:1e0::12) by IA0PR12MB8747.namprd12.prod.outlook.com (2603:10b6:208:48b::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.46; Thu, 4 Apr 2024 09:25:17 +0000 X-Received: from DS1PEPF0001709B.namprd05.prod.outlook.com (2603:10b6:5:1e0:cafe::e2) by DM6PR08CA0038.outlook.office365.com (2603:10b6:5:1e0::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7452.26 via Frontend Transport; Thu, 4 Apr 2024 09:25:17 +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 (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 DS1PEPF0001709B.mail.protection.outlook.com (10.167.18.105) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7452.22 via Frontend Transport; Thu, 4 Apr 2024 09:25:16 +0000 X-Received: from TPE-L1-ABNCHANG.amd.com (10.180.168.240) 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.35; Thu, 4 Apr 2024 04:25:12 -0500 From: "Chang, Abner via groups.io" To: CC: Michael D Kinney , Liming Gao , Zhiguang Liu , "Abdul Lateef Attar" , Hao A Wu , Ray Ni , Jian J Wang , Brit Chesley Subject: [edk2-devel] [PATCH V5 0/6] SPI NOR Flash Driver for SFDP flash device Date: Thu, 4 Apr 2024 17:24:48 +0800 Message-ID: <20240404092455.1903-1-abner.chang@amd.com> MIME-Version: 1.0 X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB04.amd.com (10.181.40.145) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS1PEPF0001709B:EE_|IA0PR12MB8747:EE_ X-MS-Office365-Filtering-Correlation-Id: 5c2b20f1-285c-4fcd-d06d-08dc5489240c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Message-Info: P0qCISdmRH4cZaNTNoPKYfBkpN2wbgM6RZuohFoFx9kn4ic47Em1q00Si2TH4Qzg3OVL+uZZJR2mlVy3Ld9hYLRqfUKJXNCCnp48fcEYzoTfjz26ixybh5LLpRthXq1UI+GM3XOLW4GyvQqSizVhStU7HuEP09KHPIKTokZhev6CR4yc81gqfFj7mmTiL6/GaQt/7ugJGNLUjEYtDx+X+yRZyKvHdZLle7gVaEPmX6E1KAthhq9ThBGphZXQtRSvQp6kFDmWk78pCiBBjGPGUixarZk7apy3lJm9k0832wSDpYSM+sFrhkBHguEByrznZpIkUPhYn9n1ZYR+cDAuI4dgY/7rfvpB6bRobzMSLCeOUqTVD60k6QdlVe12TyEWfPcW0XFs3kIkbGqQyXsDGQ0KINGubcOdxqHWy4r9A9an6dVafmQfFzNMsg2af2GqknwQJd0ASCjeTlwTmnsTdRjzO+xlKFor6dFiJvAWQZiQdTBqLsoJJmZbcZJyL2IvAY7M/yxmjfqqYb5rVIa8Qq6vT7beo6f8C1WGmy16qtyhC+bLE0DLeh5dbiFI1v25YNEN2FWIrot0Y4HqavcnpZHa6QqvOQuZM484PzEtV8HaOKdkvYLXcO1urw1lhBZjNDL2zz8Rclv6bKeu6Qh4lAEVdaevPfvTMcLiAzwWsHV0Xsth5E44F4pYvLXzKdyjOfL7vxLiHyyfcBt0XuHjH9PoNZ96RAD+8K/aFg6kIrLLONUhb5UhLv9GyMz6K9WJ X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Apr 2024 09:25:16.9183 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5c2b20f1-285c-4fcd-d06d-08dc5489240c 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: DS1PEPF0001709B.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA0PR12MB8747 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, 04 Apr 2024 02:25:19 -0700 Resent-From: abner.chang@amd.com Reply-To: devel@edk2.groups.io,abner.chang@amd.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: JPtD4IF3b4DOdGdDDhlkj1vsx7686176AA= Content-Transfer-Encoding: quoted-printable Content-Type: text/plain X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240206 header.b=g6IklhrL; dmarc=pass (policy=none) header.from=groups.io; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io From: Abner Chang Sending V4 for review as SPI related ECR is approved by PIWG in PI spec 1.8A In V5: Correct patch 6/6, as some source files are fixed in this patch. In RESEND V4: Add Cc in patch 6/6 In V4: Enhance timeout algorithm In V3: Relocate GUIDs/PCDs for SPI SFDP drivers to MdeModulePkg.dec. In V2: Add maintainer entry for Bus/Spi. This patch fixes the missing SPI defintions per to PI spec 1.8 errata A. This patch also provides the implemtation of SPI NOR flash driver that supports JEDEC SFDP specification. This driver support the flash device that has the GUID gEdk2JedecSfdpSpiDxeDriverGuid or gEdk2JedecSfdpSpiSmmDriverGuid declared in EFI_SPI_PERIPHERAL SpiPeripheralDriverGuid structure. The driver has been verified with Macronix MX25U6435F flash device. Signed-off-by: Abner Chang Cc: Michael D Kinney Cc: Liming Gao Cc: Zhiguang Liu Cc: Abdul Lateef Attar Cc: Hao A Wu Cc: Ray Ni Cc: Jian J Wang Cc: Liming Gao Cc: Brit Chesley Abner Chang (2): MdeModulePkg: Add definitions in DEC for SPI NOR Flash SFDP driver Maintainers: AMD as SPI driver stack maintainer abnchang (4): MdePkg/Include: Update definitions of SPI related header files MdePkg/Include: Add SPI NOR Flash JEDEC SFDP header file MdeModulePkg/SpiNorFlashJedecSfdp: SPI NOR Flash JEDEC SFDP MdeModulePkg: Add SPI NOR FLash SFDP drivers to DSC MdeModulePkg/MdeModulePkg.dec | 28 +- MdeModulePkg/MdeModulePkg.dsc | 4 +- .../SpiNorFlashJedecSfdpDxe.inf | 64 + .../SpiNorFlashJedecSfdpSmm.inf | 64 + .../Spi/SpiNorFlashJedecSfdp/SpiNorFlash.h | 286 +++ .../SpiNorFlashJedecSfdpInternal.h | 299 +++ .../IndustryStandard/SpiNorFlashJedecSfdp.h | 324 +++ MdePkg/Include/Protocol/SpiConfiguration.h | 10 +- MdePkg/Include/Protocol/SpiHc.h | 16 +- MdePkg/Include/Protocol/SpiIo.h | 12 +- .../Spi/SpiNorFlashJedecSfdp/SpiNorFlash.c | 1141 +++++++++++ .../SpiNorFlashJedecSfdp.c | 1780 +++++++++++++++++ .../SpiNorFlashJedecSfdpDxe.c | 261 +++ .../SpiNorFlashJedecSfdpSmm.c | 234 +++ Maintainers.txt | 11 + .../SpiNorFlashJedecSfdpDxe.uni | 13 + .../SpiNorFlashJedecSfdpExtra.uni | 11 + .../SpiNorFlashJedecSfdpSmm.uni | 13 + 18 files changed, 4566 insertions(+), 5 deletions(-) create mode 100644 MdeModulePkg/Bus/Spi/SpiNorFlashJedecSfdp/SpiNorFlashJe= decSfdpDxe.inf create mode 100644 MdeModulePkg/Bus/Spi/SpiNorFlashJedecSfdp/SpiNorFlashJe= decSfdpSmm.inf create mode 100644 MdeModulePkg/Bus/Spi/SpiNorFlashJedecSfdp/SpiNorFlash.h create mode 100644 MdeModulePkg/Bus/Spi/SpiNorFlashJedecSfdp/SpiNorFlashJe= decSfdpInternal.h create mode 100644 MdePkg/Include/IndustryStandard/SpiNorFlashJedecSfdp.h create mode 100644 MdeModulePkg/Bus/Spi/SpiNorFlashJedecSfdp/SpiNorFlash.c create mode 100644 MdeModulePkg/Bus/Spi/SpiNorFlashJedecSfdp/SpiNorFlashJe= decSfdp.c create mode 100644 MdeModulePkg/Bus/Spi/SpiNorFlashJedecSfdp/SpiNorFlashJe= decSfdpDxe.c create mode 100644 MdeModulePkg/Bus/Spi/SpiNorFlashJedecSfdp/SpiNorFlashJe= decSfdpSmm.c create mode 100644 MdeModulePkg/Bus/Spi/SpiNorFlashJedecSfdp/SpiNorFlashJe= decSfdpDxe.uni create mode 100644 MdeModulePkg/Bus/Spi/SpiNorFlashJedecSfdp/SpiNorFlashJe= decSfdpExtra.uni create mode 100644 MdeModulePkg/Bus/Spi/SpiNorFlashJedecSfdp/SpiNorFlashJe= decSfdpSmm.uni --=20 2.37.1.windows.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 (#117413): https://edk2.groups.io/g/devel/message/117413 Mute This Topic: https://groups.io/mt/105325717/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-