From patchwork Wed Jul 1 09:06:40 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfgang Wallner X-Patchwork-Id: 1321037 X-Patchwork-Delegate: bmeng.cn@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=br-automation.com Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49y9wG155Sz9sTN for ; Thu, 2 Jul 2020 18:18:38 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 696DF81B92; Thu, 2 Jul 2020 10:17:22 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=br-automation.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id D58AE81991; Wed, 1 Jul 2020 11:06:47 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail2.br-automation.com (mail2.br-automation.com [213.33.116.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 083538044A for ; Wed, 1 Jul 2020 11:06:44 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=br-automation.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=wolfgang.wallner@br-automation.com X-AuditID: c0a80110-0dbff70000007cc3-e0-5efc522445c7 Received: from brsmtp01.br-automation.co.at (Unknown_Domain [192.168.1.60]) by mail2.br-automation.com () with SMTP id 6F.0F.31939.4225CFE5; Wed, 1 Jul 2020 11:06:44 +0200 (CEST) From: "Wolfgang Wallner" To: u-boot@lists.denx.de Cc: "Simon Glass" , "Bin Meng" , "Wolfgang Wallner" ,"Adam Ford" ,"Eugen Hristev" ,"Finley Xiao" ,"Peng Fan" ,"Pragnesh Patel" ,"Tero Kristo" ,"Trevor Woerner" Subject: [PATCH v2 1/2] drivers: p2sb: replace Primary-to-Sideband Bus with Primary to Sideband Bridge Date: Wed, 1 Jul 2020 11:06:40 +0200 Message-Id: <20200701090642.232739-2-wolfgang.wallner@br-automation.com> In-Reply-To: <20200701090642.232739-1-wolfgang.wallner@br-automation.com> X-Mailer: git-send-email 2.27.0 References: <20200701090642.232739-1-wolfgang.wallner@br-automation.com> MIME-Version: 1.0 X-MIMETrack: Itemize by SMTP Server on BRSMTPINTERN2/InternSMTP(Release 10.0.1FP3|August 09, 2019) at 01/07/2020 11:06:43, Serialize by Router on BRSMTPINTERN2/InternSMTP(Release 10.0.1FP3|August 09, 2019) at 01/07/2020 11:06:43, Itemize by SMTP Server on BRSMTP01/Eggelsberg/AT/B&R(Release 10.0.1FP3|August 09, 2019) at 07/01/2020 11:06:43 AM X-TNEFEvaluated: 1 X-Disclaimed: 33047 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrPLMWRmVeSWpSXmKPExsVyYAWjja5K0J84g70f5C3u3D7NbDG1J97i wI/jLBZ9S6wsfqz6wmpxddZBJotvW7YxWix52sFmcefFJyaLt3s72R24PGY3XGTx2DnrLrvH 2Ts7GD3u/FjK6LHx3Q4mj7+z9rN4XGq+zu5x/MZ2pgCOKC6blNSczLLUIn27BK6MHZ2XWAs+ 81e8mH2drYHxNk8XIyeHhICJxJOXP5m7GDk4hAS2MkrstgcJswnYSjQe2coGYosISEj86r/K 2MXIxcEsMJFZ4tXneSwgCWGBNInmZRvAbBYBFYmlx+8xgti8Ah4Ssye0gNmcAp4SE6bPZwax mQW0JZYtfM0MsVdeYuLsu2A1QkD1fx6tYYLoFZQ4OfMJC8gyCYHbTBL/Xu5ghWgQkji9+CzY oRICwhIPH5RPYBSYhWTsLCTtCxiZVjGK5yZm5hjpJRXpJpaW5OcmlmTm5+kl5+duYoREgsAO xt1vtA8xMnEwHmKU4GBWEuE9bfArTog3JbGyKrUoP76oNCe1+BCjNAeLkjiv71WtOCGB9MSS 1OzU1ILUIpgsEwenVAOjnETCM31Tjpx5x4s/P+3+6rYx/b8vT+H39T9evHi5ryKTT0N2pv9K 3X+c/xtf/u1oUcosdrr+8Zg8l8xntUSzD2lWSsU+sxnZdedUPl1i8SJjskK8lvfLmmXLuT50 pfw+uOUHw5Wgz7MXOcyKap88jytdImXuwUMsF+qrS2+pPZW+NXPqqvxVSizFGYmGWsxFxYkA Zrm/E3ICAAA= X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean In Intel's documentation the term P2SB stands for "Primary to Sideband Bridge". Signed-off-by: Wolfgang Wallner --- (no changes since v1) drivers/misc/Kconfig | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig index 6bb5bc77e9..b6b8510e40 100644 --- a/drivers/misc/Kconfig +++ b/drivers/misc/Kconfig @@ -243,10 +243,10 @@ config NUVOTON_NCT6102D in the Nuvoton Super IO chips on X86 platforms. config P2SB - bool "Intel Primary-to-Sideband Bus" + bool "Intel Primary to Sideband Bridge" depends on X86 || SANDBOX help - This enables support for the Intel Primary-to-Sideband bus, + This enables support for the Intel Primary to Sideband Bridge, abbreviated to P2SB. The P2SB is used to access various peripherals such as eSPI, GPIO, through memory-mapped I/O in a large chunk of PCI space. The space is segmented into different channels and peripherals @@ -259,7 +259,7 @@ config SPL_P2SB bool "Intel Primary-to-Sideband Bus in SPL" depends on SPL && (X86 || SANDBOX) help - The Primary-to-Sideband bus is used to access various peripherals + The Primary to Sideband Bridge is used to access various peripherals through memory-mapped I/O in a large chunk of PCI space. The space is segmented into different channels and peripherals are accessed by device-specific means within those channels. Devices should be added @@ -269,7 +269,7 @@ config TPL_P2SB bool "Intel Primary-to-Sideband Bus in TPL" depends on TPL && (X86 || SANDBOX) help - The Primary-to-Sideband bus is used to access various peripherals + The Primary to Sideband Bridge is used to access various peripherals through memory-mapped I/O in a large chunk of PCI space. The space is segmented into different channels and peripherals are accessed by device-specific means within those channels. Devices should be added From patchwork Wed Jul 1 09:06:41 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfgang Wallner X-Patchwork-Id: 1321038 X-Patchwork-Delegate: bmeng.cn@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=br-automation.com Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49y9wW31whz9sSt for ; Thu, 2 Jul 2020 18:18:51 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8916D81B9B; Thu, 2 Jul 2020 10:17:25 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=br-automation.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id D658A8044A; Wed, 1 Jul 2020 11:06:49 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail2.br-automation.com (mail2.br-automation.com [213.33.116.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 44751818E7 for ; Wed, 1 Jul 2020 11:06:45 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=br-automation.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=wolfgang.wallner@br-automation.com X-AuditID: c0a80110-0dbff70000007cc3-e1-5efc5224ae2d Received: from brsmtp01.br-automation.co.at (Unknown_Domain [192.168.1.60]) by mail2.br-automation.com () with SMTP id 7F.0F.31939.4225CFE5; Wed, 1 Jul 2020 11:06:44 +0200 (CEST) From: "Wolfgang Wallner" To: u-boot@lists.denx.de Cc: "Simon Glass" , "Bin Meng" , "Wolfgang Wallner" Subject: [PATCH v2 2/2] x86: p2sb: make P2SB driver depend on P2SB uclass Date: Wed, 1 Jul 2020 11:06:41 +0200 Message-Id: <20200701090642.232739-3-wolfgang.wallner@br-automation.com> In-Reply-To: <20200701090642.232739-1-wolfgang.wallner@br-automation.com> X-Mailer: git-send-email 2.27.0 References: <20200701090642.232739-1-wolfgang.wallner@br-automation.com> MIME-Version: 1.0 X-MIMETrack: Itemize by SMTP Server on BRSMTPINTERN2/InternSMTP(Release 10.0.1FP3|August 09, 2019) at 01/07/2020 11:06:43, Serialize by Router on BRSMTPINTERN2/InternSMTP(Release 10.0.1FP3|August 09, 2019) at 01/07/2020 11:06:44, Itemize by SMTP Server on BRSMTP01/Eggelsberg/AT/B&R(Release 10.0.1FP3|August 09, 2019) at 07/01/2020 11:06:44 AM X-TNEFEvaluated: 1 X-Disclaimed: 45391 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrMLMWRmVeSWpSXmKPExsVyYAWjja5K0J84g4eHlCym9sRbfNuyjdHi 7d5Odgdmj9kNF1k8ds66y+5x9s4OxgDmKC6blNSczLLUIn27BK6ME3d7WAouslbsP1fawLiX pYuRk0NCwESiofkaWxcjF4eQwFZGifNHDrCCJNgEbCUaj2xlA7FFBCQkfvVfZexi5OBgFqiT +DorGiQsLOApcWHaC7ASFgEViZbvH9lBbF4BD4n+dzfA4pxANROmz2cGsZkFtCWWLXzNDLFX XmLi7LuMILYQUP2fR2uYIHoFJU7OfAJ1220midMzBCFsIYnTi89C9QpLdF6YxTKBUWAWkrGz kLQvYGRaxSiem5iZY6SXVKSbWFqSn5tYkpmfp5ecn7uJERKQAjsYd7/RPsTIxMF4iFGCg1lJ hPe0wa84Id6UxMqq1KL8+KLSnNTiQ4zSHCxK4ry+V7XihATSE0tSs1NTC1KLYLJMHJxSDYym /c+zvyewcdalaQVddW9wTXt0keffuc/BE+Klrv2/pHFx01xRlqKyer2fmlNNUn+anxcyrCyL uz/JKX79F79b+5sdTiqu2SV0riyqsq9h3sxLD3Wmi/96sS0xWi926YsvTwM3TJvw7J/ePtW1 sVb9O/xfzvvGv3fRkp/JOjd50pLTe233225VYinOSDTUYi4qTgQAwbQdSTYCAAA= X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean Currently it is possible to select the P2SB driver without selecting the P2SB uclass, which can't work. Fix this by adding a "depends on" in Kconfig. Signed-off-by: Wolfgang Wallner --- Changes in v2: - Fixed cover letter arch/x86/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index c8eae24c07..27295ef384 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -717,6 +717,7 @@ config HAVE_ITSS config HAVE_P2SB bool "Enable P2SB" + depends on P2SB help Select this to include the driver for the Primary to Sideband Bridge (P2SB) which is found on several Intel