From patchwork Wed Jul 1 11:26:54 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfgang Wallner X-Patchwork-Id: 1321051 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=2a01:238:438b:c500:173d:9f52:ddab:ee01; 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 [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (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 49yB0X5Q4Pz9sSt for ; Thu, 2 Jul 2020 18:22:20 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id EF0F481BA5; Thu, 2 Jul 2020 10:18:33 +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 66B6381991; Wed, 1 Jul 2020 13:27:01 +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 39C2E8044A for ; Wed, 1 Jul 2020 13:26:58 +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-0f1ff70000007cc3-2f-5efc73010d81 Received: from brsmtp01.br-automation.co.at (Unknown_Domain [192.168.1.60]) by mail2.br-automation.com () with SMTP id 02.61.31939.1037CFE5; Wed, 1 Jul 2020 13:26:57 +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 13:26:54 +0200 Message-Id: <20200701112655.252849-2-wolfgang.wallner@br-automation.com> In-Reply-To: <20200701112655.252849-1-wolfgang.wallner@br-automation.com> X-Mailer: git-send-email 2.27.0 References: <20200701112655.252849-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 13:26:57, Serialize by Router on BRSMTPINTERN2/InternSMTP(Release 10.0.1FP3|August 09, 2019) at 01/07/2020 13:26:57, Itemize by SMTP Server on BRSMTP01/Eggelsberg/AT/B&R(Release 10.0.1FP3|August 09, 2019) at 07/01/2020 01:26:56 PM X-TNEFEvaluated: 1 X-Disclaimed: 52679 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrELMWRmVeSWpSXmKPExsVyYAWjjS5j8Z84g+kdOhZ3bp9mtpjaE29x 4MdxFou+JVYWP1Z9YbW4Ousgk8W3LdsYLZY87WCzuPPiE5PF272d7A5cHrMbLrJ47Jx1l93j 7J0djB53fixl9Nj4bgeTx99Z+1k8LjVfZ/c4fmM7UwBHFJdNSmpOZllqkb5dAlfGo/4exoI7 ghVd6/8xNjD28nUxcnJICJhIzLi2hq2LkYtDSGAro0TDjA3sIAk2AVuJxiNb2UBsEQEJiV/9 VxlBipgFJjJLvPo8jwUkISyQJtG8bAOYzSKgIjHxxi1GEJtXwENi2ZvTYIM4BTwljn6YC1bD LKAtsWzha2aIzfISE2ffBasXAqp/2HqfCaJXUOLkzCcsIMskBG4zSSzZD5GQEBCSOL34LFSz sMTjCb2sExgFZiGZOwtJ/wJGplWM4rmJmTlGeklFuomlJfm5iSWZ+Xl6yfm5mxgh8SCwg3H3 G+1DjEwcjIcYJTiYlUR4Txv8ihPiTUmsrEotyo8vKs1JLT7EKM3BoiTO63tVK05IID2xJDU7 NbUgtQgmy8TBKdXAGKwhcuRJiTen7ucs7o2/+qIzPAxNuJhSgmtnT1vtKfl4peg5Dc1vh1gn PfvT6iJn4OslavC8Juz11MyL7rtivQ9JCLMt1U246H7xOXMYj9DhgpMcDKEPjkTsdju+RNGk OXqJ46WjXK0TF09dm3Thn5OY13MBQ87zmryHZ8o3ScTsm7jxQeRaJZbijERDLeai4kQADMub 63UCAAA= 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 --- Changes in v3: - Replaced the term in two more places drivers/misc/Kconfig | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig index 6bb5bc77e9..b67e906a76 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 @@ -256,20 +256,20 @@ config P2SB devices - see pcr_readl(), etc. config SPL_P2SB - bool "Intel Primary-to-Sideband Bus in SPL" + bool "Intel Primary to Sideband Bridge 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 in the device tree as subnodes of the p2sb. config TPL_P2SB - bool "Intel Primary-to-Sideband Bus in TPL" + bool "Intel Primary to Sideband Bridge 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 11:26:55 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfgang Wallner X-Patchwork-Id: 1321055 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=2a01:238:438b:c500:173d:9f52:ddab:ee01; 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 [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (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 49yB0p0CWHz9sSt for ; Thu, 2 Jul 2020 18:22:33 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2027C81BD0; Thu, 2 Jul 2020 10:18:36 +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 8D7D88044A; Wed, 1 Jul 2020 13:27:03 +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 860FA818E7 for ; Wed, 1 Jul 2020 13:26:58 +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-30-5efc73015e27 Received: from brsmtp01.br-automation.co.at (Unknown_Domain [192.168.1.60]) by mail2.br-automation.com () with SMTP id B2.61.31939.1037CFE5; Wed, 1 Jul 2020 13:26:57 +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 13:26:55 +0200 Message-Id: <20200701112655.252849-3-wolfgang.wallner@br-automation.com> In-Reply-To: <20200701112655.252849-1-wolfgang.wallner@br-automation.com> X-Mailer: git-send-email 2.27.0 References: <20200701112655.252849-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 13:26:57, Serialize by Router on BRSMTPINTERN2/InternSMTP(Release 10.0.1FP3|August 09, 2019) at 01/07/2020 13:26:57, Itemize by SMTP Server on BRSMTP01/Eggelsberg/AT/B&R(Release 10.0.1FP3|August 09, 2019) at 07/01/2020 01:26:56 PM X-TNEFEvaluated: 1 X-Disclaimed: 13047 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrKLMWRmVeSWpSXmKPExsVyYAWjjS5j8Z84g4NbjSym9sRbfNuyjdHi 7d5Odgdmj9kNF1k8ds66y+5x9s4OxgDmKC6blNSczLLUIn27BK6M+fPWMBa8Yq1oetDB2sB4 nqWLkZNDQsBEouPjdsYuRi4OIYGtjBLvHrYzgiTYBGwlGo9sZQOxRQQkJH71XwWKc3AwC9RJ fJ0VDRIWFvCUuDDtBVgJi4CKxMW738Bm8gp4SEz/dYsZxOYEqjn6YS5YnFlAW2LZwtfMEHvl JSbOvgu2Sgio/mHrfSaIXkGJkzOfsIDcIyFwm0liyX6IhISAkMTpxWehmoUlLi47yTqBUWAW krmzkPQvYGRaxSiem5iZY6SXVKSbWFqSn5tYkpmfp5ecn7uJERKUAjsYd7/RPsTIxMF4iFGC g1lJhPe0wa84Id6UxMqq1KL8+KLSnNTiQ4zSHCxK4ry+V7XihATSE0tSs1NTC1KLYLJMHJxS DYxS7bqxyxhuaeqty97b+OHIHLvqfcLv73R83bam/pH0lWCOs+Yz3PXdkzXbt+no8h4OyP96 Z3G1m7zY6bNbr0rMPWohsdZcY9Pp+MN+C4SypohsXvA+qs/Hxz3IXulz+PoVwotaHq532amw /fh14zefd9dJT/c2n7rM+3LSEmvp9Qwn1t40mTdHiaU4I9FQi7moOBEAYEcWUTgCAAA= 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 --- (no changes since v2) 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