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 040F8D80888 for ; Thu, 4 Apr 2024 09:11:23 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=uhFx16GqaQN9w56t1AojxvmV/Cs8f1ZFVAgvMMV3Y7g=; 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=1712221882; v=1; b=TXOz1x3A5YR1Z78Y30cY9NPmHP4HnX49vWuY/DjNuN1JF4cETQcYvOpAA260waQBgLpQ2KrN 5jyPp4RoPVEBLzBBZ9yQsyxmr5nH3BqpkEl1gD6ej/T5CihO9lP/qyA8s85DsVoTqBkmWdTpndp LUOle3jbP2MOKxrRaOG5OzgmCzue6u8x+EYIG38LEqoJ94fYN6bRfWEnYUZLLPHogedzXVdhlH+ SNQqFMMM3J4d34yrir84YJuvJD489u351D6Qnx0kLfYnu5OO1C61rURtfpG0Vhr0cq0IuLqRHVS g7AWzORNznJoNEPnAI4dz7UiCH7JXleGm+yDBc6MQKvMA== X-Received: by 127.0.0.2 with SMTP id DxYSYY7687511xFj6hDaQLkF; Thu, 04 Apr 2024 02:11:22 -0700 X-Received: from NAM02-SN1-obe.outbound.protection.outlook.com (NAM02-SN1-obe.outbound.protection.outlook.com [40.107.96.84]) by mx.groups.io with SMTP id smtpd.web10.33808.1712221882038032259 for ; Thu, 04 Apr 2024 02:11:22 -0700 X-Received: from BN9P221CA0013.NAMP221.PROD.OUTLOOK.COM (2603:10b6:408:10a::6) by MW5PR12MB5598.namprd12.prod.outlook.com (2603:10b6:303:193::11) 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:11:15 +0000 X-Received: from BN2PEPF000044A6.namprd04.prod.outlook.com (2603:10b6:408:10a:cafe::6d) by BN9P221CA0013.outlook.office365.com (2603:10b6:408:10a::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.46 via Frontend Transport; Thu, 4 Apr 2024 09:11:14 +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 BN2PEPF000044A6.mail.protection.outlook.com (10.167.243.100) 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:11:13 +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:11:10 -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 RESEND V4 0/6] SPI NOR Flash Driver for SFDP flash device Date: Thu, 4 Apr 2024 17:10:46 +0800 Message-ID: <20240404091052.794-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: BN2PEPF000044A6:EE_|MW5PR12MB5598:EE_ X-MS-Office365-Filtering-Correlation-Id: 2bf24f56-528c-4b61-f1b6-08dc54872d9b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Message-Info: PLd9e+mouSZdODmo4isoXTiI3g9Bq3acQsEUinhygBE7+GAiJf3FRNiJjHmnS8OtWNtFqfyOjThXyTZYSTbBHlPbw++qdYovDswYLTmpbedgbDXm604g7s37VTd2dwJpRXDcAbcrYYUmvuVAKLBc1VvmOBKZxco5CLQy6Ud/OHQP9ZiFYaaFz+CH0YFJYiTW1VPaX5CH/ZWFHP2fu4HfZ6GjY4fW8oouDOou394yu7Im8qMW2ugpx9vP9rJr6vnNpaEw6vRfnN0aXMtS7X4yCoAv3YRnctH0OzamIQz1DClBpnaHTBJ0siC+cHWkxV1PVxxoKuO28hAjXuCHb98MQVHn4afIvgStSHJhOyqSpUqkdyiStOsbs9sJV3xnU6rE7nH+xyACJsbPgfPnez6QFRQ9CcyPXggfTRoZTtpJ1SNM/NJVE/w7wKzxIHwaZqFW0slK+TDxKTOI+hVmvCHUPGOhMthkgt5YiTqwklT2jQ2tFbu8y2IjbrmdOa/cY6Ip1W12iYdi8pAkP2+k89wX6x487xhyWWPHxblN2Uf1D80npH4S6Y5oduFgGJPd/WRADSTFdHn92wnGX3qW0iGhy3WIO8foTvRlb1td/n1xJ/GEztjekyzkpr0a0yF4hmgIlLfJ9TOSxaQ5Th3u5STmfpJsqcauQRB9o+BCn1dMAoGDmdA1Iucabase2/C1ujUW98UKRGqvDFAuNtnjSlxyWDylxREGSltV49doyOnXHfJaQuYw68FL5gAN5Ibv1Ifg X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Apr 2024 09:11:13.9936 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2bf24f56-528c-4b61-f1b6-08dc54872d9b 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: BN2PEPF000044A6.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW5PR12MB5598 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:11:22 -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: apOMchIwZiimglFm1t2YioW5x7686176AA= 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=TXOz1x3A; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io; dmarc=pass (policy=none) header.from=groups.io From: Abner Chang Sending V4 for review as SPI related ECR is approved by PIWG in PI spec 1.8A 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 (#117408): https://edk2.groups.io/g/devel/message/117408 Mute This Topic: https://groups.io/mt/105325627/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-