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 825D9D80A20 for ; Tue, 25 Jul 2023 07:11:12 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=jgahm7HymKKoY6n2E860SC7qc+sXLJzok1rxvD17hsY=; c=relaxed/simple; d=groups.io; h=X-Received:X-Received:ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:X-Received:X-Received:X-MS-Exchange-Authentication-Results:Received-SPF:X-Received:X-Received:From:To:CC:Subject:Date:Message-ID:MIME-Version:X-Originating-IP:X-ClientProxiedBy:X-EOPAttributedMessage:X-MS-PublicTrafficType:X-MS-TrafficTypeDiagnostic:X-MS-Office365-Filtering-Correlation-Id:X-MS-Exchange-SenderADCheck:X-MS-Exchange-AntiSpam-Relay:X-Microsoft-Antispam-Message-Info:X-OriginatorOrg:X-MS-Exchange-CrossTenant-OriginalArrivalTime:X-MS-Exchange-CrossTenant-Network-Message-Id:X-MS-Exchange-CrossTenant-Id:X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp:X-MS-Exchange-CrossTenant-AuthSource:X-MS-Exchange-CrossTenant-AuthAs:X-MS-Exchange-CrossTenant-FromEntityHeader:X-MS-Exchange-Transport-CrossTenantHeadersStamped:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:X-Gm-Message-State:Content-Transfer-Encoding:Co ntent-Type; s=20140610; t=1690269071; v=1; b=f0Gu0IDnzMNuNLaXbkGJ5DagnGIPslZLcIfp/Bcuiw4n4y65KEYP5+q7Ax5XxP93KnUSq1eJ a0z93WI+VJZIvbE+nNjh4pNe58rk7syODNZB8fmMMgw6bauj34hGQofCW0WodExWG12K929+MFP /pF6Khj/UizsW8Av03o0KfR8= X-Received: by 127.0.0.2 with SMTP id cl32YY7687511xnwS2tHn8yA; Tue, 25 Jul 2023 00:11:11 -0700 X-Received: from NAM10-DM6-obe.outbound.protection.outlook.com (NAM10-DM6-obe.outbound.protection.outlook.com [40.107.93.78]) by mx.groups.io with SMTP id smtpd.web11.15142.1690269070483932440 for ; Tue, 25 Jul 2023 00:11:10 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=K8sQGDg7Ppetzt32QC5kM62pe05VJ3uCwQbADzdCI5akrtROrB2HwityaAoCQRYQ+H3gRAwMr8Cu8J0RMuBhZPQsIEZMaNnGomYIJvQPro5RVHxH0h7YocUA2GRZa7h0VFVA5tsrjfthXFIELV0rXU141V+JC1ve1qkA7Owm4HxRmFamEtXCrvxEnKMn+tXQw1xisD+a7flHtLhwW0dM/azqnGX9Gy3glaze6TN6OA7IOfIKRs3dbHKL/ZlbOVo+K0OSekYlZ6n6Q3j324FVZJrJbiQ3okzVK8MCoQtluTbM6R4YMyLurpxwFQ8YbF4RMVUUOz0v06tcan336cOOqA== 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=oyKSUVasSqTLcU+QtMLJNAlaNAGcUaB+TmCdF7fp1yk=; b=hS1eGMz+EE1I2ddanzxb+J0cOh0W6liU3c7BPjp75OCGM8FWWOyExY7l1NWraCDk/jL7uzYpLyELnCusj1lwMb0gfLwcmMJTIvfPx4xJ+ymR1q2XDYNAhNHEoxlzMrHsRaRRLsxYIjw4UGomF1pZx0nvnivXQ6kH46HDe+TJehg0BzPAODuNPEmDyTpDY6IBikDwbkhIgntPz4mEl8M7Vk5cQVOXf+9Ba0qBjw1qGRN54+Yk6xj6M3nWdx3HU72oot7tUsk5DL0PdiXCXjWJCbNB51Q3yPsCwItky0se6SfbI+SazhW0tP9acEJi1IWdpkppYA/duW/48AtDCgnybw== 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 X-Received: from DM6PR07CA0065.namprd07.prod.outlook.com (2603:10b6:5:74::42) by MN2PR12MB4437.namprd12.prod.outlook.com (2603:10b6:208:26f::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6609.33; Tue, 25 Jul 2023 07:11:08 +0000 X-Received: from DM6NAM11FT031.eop-nam11.prod.protection.outlook.com (2603:10b6:5:74:cafe::b0) by DM6PR07CA0065.outlook.office365.com (2603:10b6:5:74::42) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6609.33 via Frontend Transport; Tue, 25 Jul 2023 07:11:08 +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 DM6NAM11FT031.mail.protection.outlook.com (10.13.172.203) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6631.25 via Frontend Transport; Tue, 25 Jul 2023 07:11:07 +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.27; Tue, 25 Jul 2023 02:11:05 -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 Subject: [edk2-devel] [PATCH 0/5] SPI NOR Flash Driver for SFDP flash device Date: Tue, 25 Jul 2023 15:10:44 +0800 Message-ID: <20230725071049.12-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: DM6NAM11FT031:EE_|MN2PR12MB4437:EE_ X-MS-Office365-Filtering-Correlation-Id: 3d0c52e8-3aab-4923-8ed5-08db8cde5163 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Message-Info: dKnyydLPNtK1xnUamwowLBXaZLMVhG0JCy+q/GlSRtkvPi1C2eohRMAJWMYq9hFypbajlGiuEzSlTVDGDwG6UKWeLiPOZDricpjz31HuZG36Ia104KH1+WaFkeQyPVrDFx/BozycaOorhr9udB+vvRTjNeE9CteKM45DjYh6ygj0ndX/0w2w4g5Iod2i1EGWskCds4iGp3/arl0BE4hLYrYieKI9qKiLHkh/aCav5aSKOckD+dYb21G0bSgIEsOv3gdZjjVwEMgmPbrS+N80XwWBCFn5nFilWHJrTyFpAweqQrUY7lobf8WzfUrCHEqppiGGR2z2ThjDnajsj420ICnjSGFydxZoXVSTT/h/xMj/iQ4vVUYLMjdNtvQ33n0t4modoRP7uPeDU9kH0U26alLj332rY004njfNS+JjsseXQ6kK09YK4oQitnTodUaeb5tgj5fCwN/JUVkoaHdylH2bs5VA9ybx21WZQIzwv7BceGr5/MC+s6+ak8ltH7yVd/8KYTUL7Xk1HjQCVVCztsUTcTGnuqy7WrAYFppnboNfAxfrZTpRcXouUb9sNHH3RW3JJJ8PqWz4Qpb5Sc95J0siJcQCaguaKmLqdJiX1My6IX1V/I4IT9JnJ32bwogk0RmkKeBYn9j2nKEJKVJPuMiDhE8jM9dh2e7fZj7dh2z9Qf/sZtjJrrO9Wfnr8D2MCj3In1k+3djXH2+3EepDW/W1VfjUzvBBMKn0rqx7zmcfFsTcWtWNQo4XafHQMpUZl7IdVkhAng686elk+eHy5g== X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jul 2023 07:11:07.8383 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3d0c52e8-3aab-4923-8ed5-08db8cde5163 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: DM6NAM11FT031.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB4437 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,abner.chang@amd.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: WX9p5JuJLpsJtiLNYVFzdeyqx7686176AA= 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=20140610 header.b=f0Gu0IDn; 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=none; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}") From: Abner Chang This patch fixes the missing SPI defintions per to the PIWG approval against PI spec 1.8 errata for ticket #2394. 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 abnchang (5): MdePkg/Include: Update definitions of SPI related header files MdePkg/Include: Add SPI NOR Flash JEDEC SFDP header file MdePkg: Add definitions in DEC for SPI NOR Flash SPDF driver MdeModulePkg/SpiNorFlashJedecSfdp: SPI NOR Flash JEDEC SFDP MdeModulePkg: Add SPI NOR FLash SFDP drivers to DSC MdePkg/MdePkg.dec | 19 + MdeModulePkg/MdeModulePkg.dsc | 2 + .../SpiNorFlashJedecSfdpDxe.inf | 63 + .../SpiNorFlashJedecSfdpSmm.inf | 63 + .../Spi/SpiNorFlashJedecSfdp/SpiNorFlash.h | 274 +++ .../SpiNorFlashJedecSfdpInternal.h | 294 +++ .../IndustryStandard/SpiNorFlashJedecSfdp.h | 324 +++ MdePkg/Include/Protocol/SpiConfiguration.h | 8 + MdePkg/Include/Protocol/SpiHc.h | 14 + MdePkg/Include/Protocol/SpiIo.h | 10 + .../Spi/SpiNorFlashJedecSfdp/SpiNorFlash.c | 1114 +++++++++++ .../SpiNorFlashJedecSfdp.c | 1772 +++++++++++++++++ .../SpiNorFlashJedecSfdpDxe.c | 261 +++ .../SpiNorFlashJedecSfdpSmm.c | 234 +++ .../SpiNorFlashJedecSfdpDxe.uni | 13 + .../SpiNorFlashJedecSfdpExtra.uni | 11 + .../SpiNorFlashJedecSfdpSmm.uni | 13 + 17 files changed, 4489 insertions(+) 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 (#107220): https://edk2.groups.io/g/devel/message/107220 Mute This Topic: https://groups.io/mt/100345720/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-