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 E8D25AC0C89 for ; Wed, 3 Apr 2024 08:38:34 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=E5eiFL1fRqgHpNwAt6wxlaOzDkgBXW9dFr1jxErXeMU=; 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=1712133513; v=1; b=D2S7Sb5L0j2BNj9v/X1wcu5GRjRJq5pAu+pWlyXFAbdWg15N3/BeFM/O//On06epByQmA03k xY15cTueBFyILrGCBeyjdNTbwn4t+gsJIoKJNY21Ih69pDbghFUNYd/vbbUkEzheID/vRpaB3Zp rTpuuvKtkypd7xT0/OLJD7/LaPeY1f9a67UVQeegSMcN/xy1yMONGUfIP4esr2wf1HbWQIw13O2 G/F4fcnOS6P4uV7f/aq4Dudj1K4xiikTeLIJ9JMGzErvC2+6AaoIZfwtaBN2iW3osxGp83VX0Uj AWj+YwYUKlnw91LIJ2fdjdpQpx4teEJ1KpN/fJGNG+8xw== X-Received: by 127.0.0.2 with SMTP id Cs3iYY7687511xPlo6v6psXF; Wed, 03 Apr 2024 01:38:33 -0700 X-Received: from NAM11-CO1-obe.outbound.protection.outlook.com (NAM11-CO1-obe.outbound.protection.outlook.com [40.107.220.52]) by mx.groups.io with SMTP id smtpd.web10.6530.1712133512786816416 for ; Wed, 03 Apr 2024 01:38:32 -0700 X-Received: from MW4PR04CA0323.namprd04.prod.outlook.com (2603:10b6:303:82::28) by CY5PR12MB6599.namprd12.prod.outlook.com (2603:10b6:930:41::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.46; Wed, 3 Apr 2024 08:38:29 +0000 X-Received: from CO1PEPF000044FD.namprd21.prod.outlook.com (2603:10b6:303:82:cafe::ee) by MW4PR04CA0323.outlook.office365.com (2603:10b6:303:82::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.46 via Frontend Transport; Wed, 3 Apr 2024 08:38:29 +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 CO1PEPF000044FD.mail.protection.outlook.com (10.167.241.203) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7472.0 via Frontend Transport; Wed, 3 Apr 2024 08:38:28 +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; Wed, 3 Apr 2024 03:38:24 -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 V4 0/6] SPI NOR Flash Driver for SFDP flash device Date: Wed, 3 Apr 2024 16:38:00 +0800 Message-ID: <20240403083806.952-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: CO1PEPF000044FD:EE_|CY5PR12MB6599:EE_ X-MS-Office365-Filtering-Correlation-Id: e2cc8195-21bd-4d01-e5d9-08dc53b97003 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Message-Info: sil4LNGoLUp7QV8svMo+sCikKmTgSeVn8cgxpzn/kgd9toCmx5PwHw+zX/gQfktWWVbfU14LDQGPiaaAc/11Ny0uf+x8xGJP/NKaENGhs0M5DDV0gQiRa9C9A9y12hw7FhpzghyT2c/uN39C8hL5nKMrRInEA7AO0f5Csl76uRBaEEQV7IowQchZB5r+MDfm8cwNCd8jM9uV2B0YSvC6H2k86jHQGJK35ZzImrQiN0Or+DARE7us/ApqZDJiTIz92AQx4JGpqPlcUUCZ+fX0WNEkYIate1Y4v5meuOvjKkURGNpr6eE3OgQdzAkMR7XpNhKRf+yU8RiPsOoHz55VK+RgIkPjkY4paHhsXlo22ehayjpU6rjnGBlFvCH52/UUztvEZYn1n4/VV78+SGvKrxGGEsDUFpkZcZ1WP+Gqtj/yDWVHChbzKlbB3u7S6funET9J4nzeT8UlckYtru7XMm2T1qoCSqMUYnQZGE+ZkO6d+txoVisNGSIv4HPSCqLQ7tvmdKx7rS9cjCaz7UhmItT0kYczHmfVre2+cthyA4BGN8LdBf97rvNRX6eHdLQCNxFDQBQ9MTWUVPs7U9phBjiLr/OkPGylI4bJNW/mNRkR9vnsBHFpGxhpn1cYDAgJDCIQDj2cwwSMa2oDXQvKEJ59VEMoR2sRhN6kMYemBMIN0j/5wXeLYjoJYQ+4ccJfUvpdoGiTgt+IU8Gqc9cs1FiZGdymDDr18ejSiTsIs/+uOfs88OOL+ZihSWQ9qTDx X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Apr 2024 08:38:28.9532 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e2cc8195-21bd-4d01-e5d9-08dc53b97003 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: CO1PEPF000044FD.namprd21.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY5PR12MB6599 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: Wed, 03 Apr 2024 01:38:32 -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: S1Ts7eN3Ze2gUmxs5LqRl50Tx7686176AA= 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=D2S7Sb5L; 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 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 | 1137 +++++++++++ .../SpiNorFlashJedecSfdp.c | 1782 +++++++++++++++++ .../SpiNorFlashJedecSfdpDxe.c | 261 +++ .../SpiNorFlashJedecSfdpSmm.c | 234 +++ Maintainers.txt | 11 + .../SpiNorFlashJedecSfdpDxe.uni | 13 + .../SpiNorFlashJedecSfdpExtra.uni | 11 + .../SpiNorFlashJedecSfdpSmm.uni | 13 + 18 files changed, 4564 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 (#117358): https://edk2.groups.io/g/devel/message/117358 Mute This Topic: https://groups.io/mt/105304853/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-