From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail05.groups.io (mail05.groups.io [45.79.224.7]) by spool.mail.gandi.net (Postfix) with ESMTPS id 15B7574004A for ; Tue, 30 Apr 2024 14:06:03 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=nJniwg26w4Y1c8wIYvzJMFgQPZeP0V7MFAvKZObr2TU=; 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=1714485962; v=1; b=Ry0V9wf0A3/G/uNGWJTxRzYhss/FvqsH/b9N08g2sYZmUEZ/Zlp79Io9k4iELwT1zh1d3VQa gBYBUHPIb9257Xqo+LfHxmrR5wk6nhGGyP+TRFgaWi9Kt+KKgKv3+4rteQTI2fBuhlu8STZVCyI zXcMwr/aw8BEmGTRKNIytx8isJQs4nLRvsd8RVRn6deDgH7mJ6Z9O8O9Ty35uVSXDgJNR5PH69W A1yIy8d/qmkNm3Cl7sE7nVIiSKOXVQYg9l8tIAAao4BUj9FXARrM4/f8ck1ifE94h4/BxCOxpwg GSZXbzSWlHSP1jcrS/rIOr/vHul+Ab5WLinYS5H+SVr2Q== X-Received: by 127.0.0.2 with SMTP id o5jSYY7687511xiQGwrv55gg; Tue, 30 Apr 2024 07:06:02 -0700 X-Received: from NAM12-BN8-obe.outbound.protection.outlook.com (NAM12-BN8-obe.outbound.protection.outlook.com [40.107.237.88]) by mx.groups.io with SMTP id smtpd.web10.16502.1714485961502355119 for ; Tue, 30 Apr 2024 07:06:01 -0700 X-Received: from CH0P221CA0009.NAMP221.PROD.OUTLOOK.COM (2603:10b6:610:11c::11) by PH7PR12MB9176.namprd12.prod.outlook.com (2603:10b6:510:2e9::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7519.35; Tue, 30 Apr 2024 14:05:56 +0000 X-Received: from CH2PEPF0000009F.namprd02.prod.outlook.com (2603:10b6:610:11c:cafe::a2) by CH0P221CA0009.outlook.office365.com (2603:10b6:610:11c::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.24 via Frontend Transport; Tue, 30 Apr 2024 14:05:56 +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 CH2PEPF0000009F.mail.protection.outlook.com (10.167.244.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7544.18 via Frontend Transport; Tue, 30 Apr 2024 14:05:56 +0000 X-Received: from AUS-BIOSDEV-68.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; Tue, 30 Apr 2024 09:05:55 -0500 From: "Chesley, Brit via groups.io" To: CC: Liming Gao , Ray Ni , "Abner Chang" , Abdul Lateef Attar Subject: [edk2-devel] [PATCH 0/5] SPI Driver Stack Date: Tue, 30 Apr 2024 09:05:31 -0500 Message-ID: <20240430140536.4252-1-brit.chesley@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: CH2PEPF0000009F:EE_|PH7PR12MB9176:EE_ X-MS-Office365-Filtering-Correlation-Id: fc497f6b-80f2-47fa-fdd0-08dc691ea7b2 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?bxenS0k96E/oO/iUrH4Shbgtg+nPS3Uyu5WkXJNyGohmjlsTS01n2WrN9Lmm?= =?us-ascii?Q?A4jEy29sAC+opuVsIOAHhhMIIs29G7zejpDzX3CaaFJ9aelgqEwA8+eBDuyM?= =?us-ascii?Q?XG4OxB7HCLZgQUTUL+XOPje6EHZ8SZW35DQi5AOOhSjy51ZoCNXbx8yYTHwA?= =?us-ascii?Q?q9ahBbL9b0BLZO3V5WogyaiQcEG+r9XWgxaf7Pp5nDt2Xa0aeRiPkXdxGi8s?= =?us-ascii?Q?q9ZdNblOTVQjMci26RPDJ28K9wtf5W4vD1YeiUkDrIw72ig54QiYohX4TzHo?= =?us-ascii?Q?0x4Wr+GInNbHXSHyHTasqKJ6YzJVil5spD2pJ0LLKiYsWYqEC6AyvFiU+fBa?= =?us-ascii?Q?Cb8L6obWgyNlvrXq8PitkC8sjT8BYIS7Pe+EAusqPM5+bccOhiQCkTracnep?= =?us-ascii?Q?HxOZjYCk2ZX89eAeLEnb6mi9tfO6zOhelVZrhn9b0g3rcTQCRs/nbdPuyBxD?= =?us-ascii?Q?MKqAkvFUUSI5/CHA5/CCEwn2yvA+JbPzw6D5vsJn5Y6kyr3X/ukPyN6jJqvg?= =?us-ascii?Q?GP0Ud9URqUXKoGVW2/w4P+534OU6mWxBcNepkafr11jLC4nKa7V7ky/J4Mho?= =?us-ascii?Q?9QDa2GykoRcLKqRSZbdRckjwDsEntodYE9eeKbF8fMg18bvz3By+i5kvPg/K?= =?us-ascii?Q?meIHwp7fNCTentroWJ9AQ1rj4mKPtcCqQCDRe/Xw+6t49hM4WU6YKVCXuAHK?= =?us-ascii?Q?6Ziov3dTTEZC1M9luqoINqxjjb+TEif3A5XZmC4AFBjlR5QRv68MTU0LnrsG?= =?us-ascii?Q?h2Zf+CO728Fda5ihyW31mL7JBWMffsEzdpOCdgoqx+sZscREIhfYootj024g?= =?us-ascii?Q?4Eakc1RhC4d1NOvwXkpnPmgoXXnKpKZzbBcz9kQO+4KjzJNryJau2Tek0ZNU?= =?us-ascii?Q?+iOJ7MwvogLfCdfk57W/RCTqI3gHavawVUXKvjxNy9kIYt/EITlayM8fvnPQ?= =?us-ascii?Q?bgJ1959HdH+LiqdgAlwGNM6AEs7yLcN9u3alDKFH9KiuSlMwRVjVJBbkGT0C?= =?us-ascii?Q?unHKRZiMsWzXRkVjyUPX8YsIClMmy4B3AOCF66HpBmOvxmVuoIIM/AoTBaH7?= =?us-ascii?Q?H0xpJaJ+sXG9sapf04kX5IFABQUGOprWV3UrkqJ6ZhnnjBGmifwI1ZQMMPN2?= =?us-ascii?Q?s98lkx8bB0efPcDGsnfciThUFu88gB0ot55oJHq1Yc7EDvbmcgIbXb5BPlmH?= =?us-ascii?Q?HRjmOPzy+LKWdiRX/BcnFf6wYfHChjRXtw1rknlC4QQWShB2gPbp/bnMphbK?= =?us-ascii?Q?qYpZQ4F1nMpY5t/u+5nEZj3b7C4FB9GuongkAcVT+ihJ1AFXboy6opQCDff2?= =?us-ascii?Q?wSCJmmfNvW4UjZ4CfUUPT+OvIGGcZmlmElfkKLgrjdXwkLLaMO9x4lecHkoi?= =?us-ascii?Q?w7NyQNKObCujbZdMKfc4VTNizrb1?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Apr 2024 14:05:56.2603 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: fc497f6b-80f2-47fa-fdd0-08dc691ea7b2 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: CH2PEPF0000009F.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB9176 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: Tue, 30 Apr 2024 07:06:01 -0700 Resent-From: brit.chesley@amd.com Reply-To: devel@edk2.groups.io,brit.chesley@amd.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: wJm9l7ZrN2hmIzNeHn8FbJ7jx7686176AA= 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=Ry0V9wf0; dmarc=pass (policy=none) header.from=groups.io; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 45.79.224.7 as permitted sender) smtp.mailfrom=bounce@groups.io From: Brit Chesley This patchset introduces the SPI driver stack as defined in the Platform Initialization specification Volume 5 chapter 18 (DXE) and Volume 4 chapter 12 (SMM). The SPI stack decouples the SPI chip details from the SPI controller and SPI bus configuration details to enable silicon vendors to write drivers effectively. This patchset also introduces the SpiHcPlatformLib, which allows for OEMs to handle low level SPI host controller details while using the generic SPI bus/hc drivers. https://github.com/BritChesley/edk2/tree/SpiBusStack Cc: Liming Gao Cc: Ray Ni Cc: Abner Chang Cc: Abdul Lateef Attar Brit Chesley (5): MdeModulePkg/Bus/Spi/SpiBus: Adding SpiBus Drivers MdeModulePkg: Adding SpiBus Drivers MdeModulePkg:BaseSpiHcPlatformLib: Adding NULL lib instance MdeModulePkg: SpiHc: SpiHc Drivers MdeModulePkg: Adding SpiHc Drivers MdeModulePkg/MdeModulePkg.dec | 5 + MdeModulePkg/MdeModulePkg.dsc | 5 + MdeModulePkg/Bus/Spi/SpiBus/SpiBusDxe.inf | 42 ++ MdeModulePkg/Bus/Spi/SpiBus/SpiBusSmm.inf | 42 ++ MdeModulePkg/Bus/Spi/SpiHc/SpiHcDxe.inf | 46 ++ MdeModulePkg/Bus/Spi/SpiHc/SpiHcSmm.inf | 44 ++ .../BaseSpiHcPlatformLibNull.inf | 35 ++ MdeModulePkg/Bus/Spi/SpiBus/SpiBus.h | 167 +++++++ MdeModulePkg/Bus/Spi/SpiHc/SpiHc.h | 111 +++++ .../Include/Library/SpiHcPlatformLib.h | 148 ++++++ MdeModulePkg/Bus/Spi/SpiBus/SpiBus.c | 433 ++++++++++++++++++ MdeModulePkg/Bus/Spi/SpiBus/SpiBusDxe.c | 198 ++++++++ MdeModulePkg/Bus/Spi/SpiBus/SpiBusSmm.c | 162 +++++++ MdeModulePkg/Bus/Spi/SpiHc/SpiHc.c | 115 +++++ MdeModulePkg/Bus/Spi/SpiHc/SpiHcDxe.c | 101 ++++ MdeModulePkg/Bus/Spi/SpiHc/SpiHcSmm.c | 79 ++++ .../BaseSpiHcPlatformLibNull.c | 145 ++++++ MdeModulePkg/Bus/Spi/SpiBus/SpiBus.uni | 10 + MdeModulePkg/Bus/Spi/SpiHc/SpiHc.uni | 10 + .../BaseSpiHcPlatformLibNull.uni | 11 + 20 files changed, 1909 insertions(+) create mode 100644 MdeModulePkg/Bus/Spi/SpiBus/SpiBusDxe.inf create mode 100644 MdeModulePkg/Bus/Spi/SpiBus/SpiBusSmm.inf create mode 100644 MdeModulePkg/Bus/Spi/SpiHc/SpiHcDxe.inf create mode 100644 MdeModulePkg/Bus/Spi/SpiHc/SpiHcSmm.inf create mode 100644 MdeModulePkg/Library/BaseSpiHcPlatformLibNull/BaseSpiHc= PlatformLibNull.inf create mode 100644 MdeModulePkg/Bus/Spi/SpiBus/SpiBus.h create mode 100644 MdeModulePkg/Bus/Spi/SpiHc/SpiHc.h create mode 100644 MdeModulePkg/Include/Library/SpiHcPlatformLib.h create mode 100644 MdeModulePkg/Bus/Spi/SpiBus/SpiBus.c create mode 100644 MdeModulePkg/Bus/Spi/SpiBus/SpiBusDxe.c create mode 100644 MdeModulePkg/Bus/Spi/SpiBus/SpiBusSmm.c create mode 100644 MdeModulePkg/Bus/Spi/SpiHc/SpiHc.c create mode 100644 MdeModulePkg/Bus/Spi/SpiHc/SpiHcDxe.c create mode 100644 MdeModulePkg/Bus/Spi/SpiHc/SpiHcSmm.c create mode 100644 MdeModulePkg/Library/BaseSpiHcPlatformLibNull/BaseSpiHc= PlatformLibNull.c create mode 100644 MdeModulePkg/Bus/Spi/SpiBus/SpiBus.uni create mode 100644 MdeModulePkg/Bus/Spi/SpiHc/SpiHc.uni create mode 100644 MdeModulePkg/Library/BaseSpiHcPlatformLibNull/BaseSpiHc= PlatformLibNull.uni --=20 2.42.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 (#118439): https://edk2.groups.io/g/devel/message/118439 Mute This Topic: https://groups.io/mt/105821487/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-