From patchwork Wed Jul 1 11:37:23 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfgang Wallner X-Patchwork-Id: 1321061 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 49yB1M6DRgz9sTX for ; Thu, 2 Jul 2020 18:23:01 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D8A4981BE4; Thu, 2 Jul 2020 10:18:47 +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 8B88E81991; Wed, 1 Jul 2020 13:37:32 +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 7B3098044A for ; Wed, 1 Jul 2020 13:37:29 +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-c7-5efc75781504 Received: from brsmtp01.br-automation.co.at (Unknown_Domain [192.168.1.60]) by mail2.br-automation.com () with SMTP id 75.81.31939.8757CFE5; Wed, 1 Jul 2020 13:37:28 +0200 (CEST) From: "Wolfgang Wallner" To: u-boot@lists.denx.de Cc: "Bin Meng" , "Simon Glass" , "Wolfgang Wallner" ,"Eugen Hristev" ,"Finley Xiao" ,"Kever Yang" ,"Peng Fan" ,"Pragnesh Patel" ,"Tero Kristo" ,"Trevor Woerner" Subject: [PATCH v3 1/2] drivers: p2sb: replace Primary-to-Sideband Bus with Primary to Sideband Bridge Date: Wed, 1 Jul 2020 13:37:23 +0200 Message-Id: <20200701113724.255226-2-wolfgang.wallner@br-automation.com> In-Reply-To: <20200701113724.255226-1-wolfgang.wallner@br-automation.com> X-Mailer: git-send-email 2.27.0 References: <20200701113724.255226-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:37:28, Serialize by Router on BRSMTPINTERN2/InternSMTP(Release 10.0.1FP3|August 09, 2019) at 01/07/2020 13:37:28, Itemize by SMTP Server on BRSMTP01/Eggelsberg/AT/B&R(Release 10.0.1FP3|August 09, 2019) at 07/01/2020 01:37:27 PM X-TNEFEvaluated: 1 X-Disclaimed: 27195 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrALMWRmVeSWpSXmKPExsVyYAWjjW5F6Z84g+9fTCym9sRbHPhxnMWi b4mVxbbpP9ksfqz6wmpxddZBJotvW7YxWix52sFmcefFJyaLt3s72R24PGY3XGTx2DnrLrvH 2Ts7GD3u/FjK6LHx3Q4mj7+z9rN4XGq+zu5x/MZ2pgCOKC6blNSczLLUIn27BK6MR/09jAV3 BCu61v9jbGDs5eti5OSQEDCR2NS+i72LkYtDSGAro8TractYQBJsArYSjUe2soHYIgISEr/6 rzKCFDELzGSWaNz5FqxIWCBNYsHzeUAJDg4WARWJq+tMQMK8Ah4SpzrOgJVwCnhK3P92hhnE ZhbQlli28DUzxGJ5iYmz74K1CgHV//liC9EqKHFy5hMWkFUSAreZJN5PnQFVLyRxevFZKFtY Yu+nVsYJjAKzkIydhaR/ASPTKkbx3MTMHCO9pCLdxNKS/NzEksz8PL3k/NxNjJBYENjBuPuN 9iFGJg7GQ4wSHMxKIrynDX7FCfGmJFZWpRblxxeV5qQWH2KU5mBREuf1vaoVJySQnliSmp2a WpBaBJNl4uCUamBcUlqa/cw4JuG0r/fd7gBmw+lyR87u+1IxlbM/N9c/3LbC2vvIPdYH3gu/ Oj5a6CyX+/6XSvQis/Y9/vGJvakNQofKJm0uucw342Djgz2pN17tzj0X4PDa4hRTZKPQ66cu q1QecPG+jDJ82Z3aupD1m+EHS1dTzrnl4lVs80p5d00vnP2AS1qJpTgj0VCLuag4EQCNxDrF cwIAAA== 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 Reviewed-by: Simon Glass --- 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:37:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfgang Wallner X-Patchwork-Id: 1321064 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 49yB1c1tBFz9sTX for ; Thu, 2 Jul 2020 18:23:15 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id BD4E581BE9; Thu, 2 Jul 2020 10:18:51 +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 0B00B8044A; Wed, 1 Jul 2020 13:37:35 +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 A4D49818E7 for ; Wed, 1 Jul 2020 13:37:29 +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-c8-5efc75793d3f Received: from brsmtp01.br-automation.co.at (Unknown_Domain [192.168.1.60]) by mail2.br-automation.com () with SMTP id 36.81.31939.9757CFE5; Wed, 1 Jul 2020 13:37:29 +0200 (CEST) From: "Wolfgang Wallner" To: u-boot@lists.denx.de Cc: "Bin Meng" , "Simon Glass" , "Wolfgang Wallner" Subject: [PATCH v3 2/2] x86: p2sb: make P2SB driver depend on P2SB uclass Date: Wed, 1 Jul 2020 13:37:24 +0200 Message-Id: <20200701113724.255226-3-wolfgang.wallner@br-automation.com> In-Reply-To: <20200701113724.255226-1-wolfgang.wallner@br-automation.com> X-Mailer: git-send-email 2.27.0 References: <20200701113724.255226-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:37:28, Serialize by Router on BRSMTPINTERN2/InternSMTP(Release 10.0.1FP3|August 09, 2019) at 01/07/2020 13:37:28, Itemize by SMTP Server on BRSMTP01/Eggelsberg/AT/B&R(Release 10.0.1FP3|August 09, 2019) at 07/01/2020 01:37:27 PM X-TNEFEvaluated: 1 X-Disclaimed: 57731 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrKLMWRmVeSWpSXmKPExsVyYAWjjW5l6Z84g7OHuS2m9sRbfNuyjdHi 7d5Odgdmj9kNF1k8ds66y+5x9s4OxgDmKC6blNSczLLUIn27BK6M+fPWMBa8Yq1oetDB2sB4 nqWLkZNDQsBEov3rVOYuRi4OIYGtjBJLlr0HS7AJ2Eo0HtnKBmKLCEhI/Oq/yghiMwvUScx/ uRnMFhbwlDjxHGIQi4CKxIGtu8DivAIeElMeNDCD2JxANfe/nWGG6NWWWLbwNTPEYnmJibPv AtVzAC32kPjzxRaiVVDi5MwnLCD3SAjcZpJ4P3UGVL2QxOnFZ6FsYYmpd46yTGAUmIVk7Cwk /QsYmVYxiucmZuYY6SUV6SaWluTnJpZk5ufpJefnbmKEBKXADsbdb7QPMTJxMB5ilOBgVhLh PW3wK06INyWxsiq1KD++qDQntfgQozQHi5I4r+9VrTghgfTEktTs1NSC1CKYLBMHp1QDo133 oUc5rNoHlXw3P4nasrNa7bh90pxrohYMpzo3FN7cVCdxoELv3PSs0hleS/+68EoefcUlfiXW N+r9oRsxHOs2Jv1Yqri2PG5RG5v1E6OmBP+Zov8Ln6ny/23933JuAdOvmiL+kOb8lSvv166P kj3dUZ1tdXSW7+JdvJnbZL9OWiexitFGVImlOCPRUIu5qDgRAP9qg0k4AgAA 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 Reviewed-by: Simon Glass --- (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