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 3D2147803CC for ; Sun, 13 Aug 2023 04:36:58 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=oWc19aZRrKDB5Wv91qoJ3aE7b01TM48DeyVJ8ymUHFg=; c=relaxed/simple; d=groups.io; h=ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:Received-SPF:From:To:CC:Subject:Date:Message-ID: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=1691901417; v=1; b=Y/MLiYnP7XbK5J1moIRR9jAnyOShAuBzP6viLxmQDWd7oeipHd+et4VH/zaZHdXkOJCxluBi Vdv3eoxq9RVHPKqTdd2nCkrhGB3zUn/arRmg9mY0gR40lZ0UAjeGKndLa/M4TPCZNGlNbY7jLJq POBpuP6SvFs3vZHhiWsrahiU= X-Received: by 127.0.0.2 with SMTP id EmgmYY7687511x4qYt6V9jLA; Sat, 12 Aug 2023 21:36:57 -0700 X-Received: from NAM04-BN8-obe.outbound.protection.outlook.com (NAM04-BN8-obe.outbound.protection.outlook.com [40.107.100.88]) by mx.groups.io with SMTP id smtpd.web10.80500.1691901416814363570 for ; Sat, 12 Aug 2023 21:36:57 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eeuc5ou/3JV3HHiDJ3mQRr2v/cLCfSWhbZI5Rc5dhEVXNMXGF7xI6HXp6vKjQ3XlDG7gLIJnO9TXuS1VVs1SQp6TS1tIq7AN3TJ9fy7j+lagMw4NBWKC1SGASZmRccduZSmAQ69HgiBbI8Z2OOZCr4btpWkxo/leWs+WExkMKhpioevRBNsfLbrv/hlN99daYSfqhe03eodBTYPcu4inZFNr/dR50s68T+Som/F3Syem/bw2gf+JtMwc1/L8UD9acIS695Qim4FMMIbJrYqx44uznsshxD1zN4kxs7gv+XRfnGz2gRHH2Q0Ik3Iq2icBFJu8lwEp1LtcAMpkX/8Vcw== 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=oD0bKcTpwDwQTLKpbft6tnKZnHujOc9b3xmO1oR4FNM=; b=gbLzBp4FGMD4HeG8t9OFuarxl3Ui1kSLTav1fXRsA5H1NYErBBuaAYZ7a7vhISiNor9lnQ9BJO8At+kJPIBd5gvLQhycqeX1u/SoQecvaL7DiFJLeEraX9dWQluY1zcgdEstxhZXZ1ulIjtAYjBuApZb6UR3wEUmQmo65Z6O/E6DZX9f3gCm6rl/ccaSZnT+Jaks85x5WTQLQjfdP0iMNgq9+d/57psGW04Pbm+RFwVh1sjdS1B49paZrdK7LbSvfDVre0YSGpFHbSLfCXug5rJ0XQNlCtH2p9/Jkr50wpFlZ1h1PfqO8ZJx5GIXIstLBMC+IjyI8Jb8xC5BEGejuQ== 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 CYZPR02CA0021.namprd02.prod.outlook.com (2603:10b6:930:a1::18) by BN9PR12MB5098.namprd12.prod.outlook.com (2603:10b6:408:137::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6678.24; Sun, 13 Aug 2023 04:36:52 +0000 X-Received: from CY4PEPF0000EDD1.namprd03.prod.outlook.com (2603:10b6:930:a1:cafe::14) by CYZPR02CA0021.outlook.office365.com (2603:10b6:930:a1::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6652.33 via Frontend Transport; Sun, 13 Aug 2023 04:36:51 +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 CY4PEPF0000EDD1.mail.protection.outlook.com (10.167.241.205) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6699.12 via Frontend Transport; Sun, 13 Aug 2023 04:36:51 +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; Sat, 12 Aug 2023 23:36:47 -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 V3 0/6] SPI NOR Flash Driver for SFDP flash device Date: Sun, 13 Aug 2023 12:36:24 +0800 Message-ID: <20230813043630.1123-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: CY4PEPF0000EDD1:EE_|BN9PR12MB5098:EE_ X-MS-Office365-Filtering-Correlation-Id: f09ac0bf-e8ee-4eca-5bb4-08db9bb6ea25 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Message-Info: MOvp8rF8bwzNf01FiFvOKnyTvwPFsQ+41EtZ6/Aup8pIBIg5ehkbE9dHoocsPsoeV+LrlOYUJP0Bx2Nvel6PyUboFH+jyuBzIUyVDJElpv/MeRQXfjwAy/Wl8bco+oxvdnq4ZFy3EUreuhBQYCX+ATjAqkxnK6KwjJXoAsnqnAykdlwPzbn9YoXKkmzp+jnVlhD23nV99qnMZ6VV7FoHxjH6j0ryIiw4dl1RwBF1ZZS/ZvXEBS+KgxIp+VW6cg8XHNRKPUOrxxp4WtHlhqldrzU+qZxhlg5dM35B5hY7e88qkggfTe3JWzJkZfCPjdkRTTN8tJ/Di4tLK4IO6r9SrdTSi7ZYsX5ehCbudogsNrUs6+6ULECvla1vxJtiz3O2go8GyCqV+p72DA06Q/3j9dUeBv8OwM8N8BXFTOj1pdIKS0ZtGGk2ZwIXc7o1FJq3uuV57vxOCgi6iBF72lz/ZyuG7m9xaE9tmgasNuuxMxRZwZwuGFr6KMP3TsIP1NqYRzMOy6cFhGvX64ucn1Fxb86jQZ/QosED8IavIus6ol4vgXVUVfihJLl/ntN8tjNj7V4qyjuoK7hwktxKPTtVEOLmeoYUGoBw46Qgs2ZkcWHqpwKI63oF+nXeNpr/XPkJe4WuKx5USaH3TED3m0EpSOqFWtW1dVR4Rj0fSfVAymjmQHnVozLcDaYQwN5U1v05JmIM6MYjVpcgBIhP4JZTRKuvtYq/AQFle0fgUV+IJc/GEZjwgHPpresb4nKFBwjYQmuc1FiJA517ACZ2Dqn4rg== X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Aug 2023 04:36:51.5383 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f09ac0bf-e8ee-4eca-5bb4-08db9bb6ea25 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: CY4PEPF0000EDD1.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN9PR12MB5098 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: 1I5DQAFYAM1TUo5vIRQi1DiKx7686176AA= 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="Y/MLiYnP"; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}"); dmarc=none; 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 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 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 Cc: Brit Chesley Abner Chang (6): MdePkg/Include: Update definitions of SPI related header files MdePkg/Include: Add SPI NOR Flash JEDEC SFDP header file MdeModulePkg: Add definitions in DEC for SPI NOR Flash SFDP driver MdeModulePkg/SpiNorFlashJedecSfdp: SPI NOR Flash JEDEC SFDP MdeModulePkg: Add SPI NOR FLash SFDP drivers to DSC Maintainers.txt: Update maintainer for SPI modules MdeModulePkg/MdeModulePkg.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 +++ Maintainers.txt | 5 + .../SpiNorFlashJedecSfdpDxe.uni | 13 + .../SpiNorFlashJedecSfdpExtra.uni | 11 + .../SpiNorFlashJedecSfdpSmm.uni | 13 + 18 files changed, 4494 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 (#107719): https://edk2.groups.io/g/devel/message/107719 Mute This Topic: https://groups.io/mt/100713984/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-