From patchwork Mon Feb 3 13:06:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfgang Wallner X-Patchwork-Id: 1232760 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) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48B7QW6DMXz9s3x for ; Tue, 4 Feb 2020 00:07:12 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9476881862; Mon, 3 Feb 2020 14:07:04 +0100 (CET) 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 2F5B881924; Mon, 3 Feb 2020 14:07:03 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=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 29DA18185A for ; Mon, 3 Feb 2020 14:07:00 +0100 (CET) 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-b81ff70000001e67-55-5e381af35483 Received: from brsmtp01.br-automation.co.at (Unknown_Domain [192.168.1.60]) by mail2.br-automation.com () with SMTP id 25.3B.07783.3FA183E5; Mon, 3 Feb 2020 14:06:59 +0100 (CET) From: "Wolfgang Wallner" To: u-boot@lists.denx.de Subject: [PATCH 1/2] x86: itss: Add a Kconfig option to enable/disable ITSS driver Date: Mon, 3 Feb 2020 14:06:45 +0100 Message-Id: <20200203130646.86598-1-wolfgang.wallner@br-automation.com> X-Mailer: git-send-email 2.25.0 MIME-Version: 1.0 X-MIMETrack: Itemize by SMTP Server on BRSMTPINTERN2/InternSMTP(Release 9.0.1FP5|November 22, 2015) at 03/02/2020 14:06:58, Serialize by Router on BRSMTPINTERN2/InternSMTP(Release 9.0.1FP5|November 22, 2015) at 03/02/2020 14:06:58, Itemize by SMTP Server on BRSMTP01/Eggelsberg/AT/B&R(Release 10.0.1FP3|August 09, 2019) at 02/03/2020 02:06:59 PM X-TNEFEvaluated: 1 X-Disclaimed: 29339 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFuplluLIzCtJLcpLzFFi42I5sILRRvezlEWcQc9rUYupPfEW37ZsY7R4 u7eT3YHZY3bDRRaPnbPusnucvbODMYA5issmJTUnsyy1SN8ugSvj+//VbAXNXBXTznxhbmCc x9HFyMkhIWAi0d3cww5iCwlsYZR4dIAFxGYTsJVoPLKVDcQWEZCQ+NV/lRHEZhaok5j/cjOY LSwQJHFy5hawXhYBFYm5F66A2bwC7hI7ZvazQNRrSyxb+JoZYpe8xOzG02wQNYJAvU+AariA 4veZJCbP72KBKBKSOL34LFSDsMTqs69ZJzDyzUIyaxaS/gWMTKsYxXMTM3OM9JKKdBNLS/Jz E0sy8/P0kvNzNzFCgkxgB+PuN9qHGJk4GA8xSnAwK4nw1lmZxgnxpiRWVqUW5ccXleakFh9i lOZgURLn9b2qFSckkJ5YkpqdmlqQWgSTZeLglGpglNyxqSL3xut7fIo55yRUfr2NYZjB//D5 YoZ3d+zO7f3NW8b4v8Q9TSq9SOxU3FM73lxh3f/7vuxN5Kx+lrs4/nRVj6mi5qeFU1VzksSD jhnpfNhnwbPxZxWL0t3kTcl3xG2WF7E1yr73PvCCe0HQm42HOT7OrfLLSf3XsvGapsQtt3q/ 7MB0JZbijERDLeai4kQAhBeG2CACAAA= X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.26 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.101.4 at phobos.denx.de X-Virus-Status: Clean Currently the ITSS driver is built unconditionally. Add a Kconfig option to support enabling/disabling the inclusion of the ITSS driver depending on the platform. Signed-off-by: Wolfgang Wallner Reviewed-by: Simon Glass Reviewed-by: Bin Meng --- arch/x86/Kconfig | 6 ++++++ arch/x86/cpu/intel_common/Makefile | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 89b93e5de2..b733d2264e 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -709,6 +709,12 @@ config ROM_TABLE_SIZE hex default 0x10000 +config HAVE_ITSS + bool "Enable ITSS" + help + Select this to include the driver for the Interrupt Timer + Subsystem (ITSS) which is found on several Intel devices. + menu "System tables" depends on !EFI && !SYS_COREBOOT diff --git a/arch/x86/cpu/intel_common/Makefile b/arch/x86/cpu/intel_common/Makefile index 266e6e26fa..e22c70781d 100644 --- a/arch/x86/cpu/intel_common/Makefile +++ b/arch/x86/cpu/intel_common/Makefile @@ -27,7 +27,7 @@ obj-y += microcode.o endif endif obj-y += pch.o -obj-y += itss.o +obj-$(CONFIG_HAVE_ITSS) += itss.o ifdef CONFIG_SPL ifndef CONFIG_SPL_BUILD From patchwork Mon Feb 3 13:06:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfgang Wallner X-Patchwork-Id: 1232761 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 48B7Qj1Sdvz9sPK for ; Tue, 4 Feb 2020 00:07:24 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id F0B8281928; Mon, 3 Feb 2020 14:07:06 +0100 (CET) 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 A581681921; Mon, 3 Feb 2020 14:07:03 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=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 7A8C381862 for ; Mon, 3 Feb 2020 14:07:00 +0100 (CET) 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-b97ff70000001e67-56-5e381af34647 Received: from brsmtp01.br-automation.co.at (Unknown_Domain [192.168.1.60]) by mail2.br-automation.com () with SMTP id 65.3B.07783.3FA183E5; Mon, 3 Feb 2020 14:06:59 +0100 (CET) From: "Wolfgang Wallner" To: u-boot@lists.denx.de Subject: [PATCH 2/2] x86: apl: Include ITSS driver Date: Mon, 3 Feb 2020 14:06:46 +0100 Message-Id: <20200203130646.86598-2-wolfgang.wallner@br-automation.com> In-Reply-To: <20200203130646.86598-1-wolfgang.wallner@br-automation.com> X-Mailer: git-send-email 2.25.0 References: <20200203130646.86598-1-wolfgang.wallner@br-automation.com> MIME-Version: 1.0 X-MIMETrack: Itemize by SMTP Server on BRSMTPINTERN2/InternSMTP(Release 9.0.1FP5|November 22, 2015) at 03/02/2020 14:06:58, Serialize by Router on BRSMTPINTERN2/InternSMTP(Release 9.0.1FP5|November 22, 2015) at 03/02/2020 14:06:58, Itemize by SMTP Server on BRSMTP01/Eggelsberg/AT/B&R(Release 10.0.1FP3|August 09, 2019) at 02/03/2020 02:06:59 PM X-TNEFEvaluated: 1 X-Disclaimed: 41595 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrMLMWRmVeSWpSXmKPExsVyYAWjje5nKYs4g+4HmhZTe+Itvm3Zxmjx dm8nuwOzx+yGiyweO2fdZfc4e2cHYwBzFJdNSmpOZllqkb5dAlfGmU2v2Atus1T03c9qYPzJ 3MXIySEhYCLxY84+xi5GLg4hgS2MEu2XfzGBJNgEbCUaj2xlA7FFBCQkfvVfZQSxmQXqJOa/ 3AxmCwsYSeyc8Z2li5GDg0VARWLdRzeQMK+Au8TbnY/BwpwCHhJf5/FCdGpLLFv4GmqtvMTs xtNg04WAys8t/cAK0SoocXLmExaQcyQE7jNJTJ7fxQLRICRxevFZqGZhiZMLu5knMArMQjJ3 FpL+BYxMqxjFcxMzc4z0kop0E0tL8nMTSzLz8/SS83M3MUICUmAH4+432ocYmTgYDzFKcDAr ifDWWZnGCfGmJFZWpRblxxeV5qQWH2KU5mBREuf1vaoVJySQnliSmp2aWpBaBJNl4uCUamBk d7W5IPblu7Ftxrup8x5LpRSYf+5cGydjYrtdI1pCu6Hj9c9lE9YdUV7BKi/BWRJV03d2lkNq 4E5Zx3LzHQ89Nmw56df/5MKPf5rWk/bFXaox0v0gYHxT6+TD1U9/FXJ7uL+Z3vz4XLPR9St3 89a9KZ3eY/iqs8rmn0iSs9vh7I5/fJ6zLn9UYinOSDTUYi4qTgQAjMH8RDYCAAA= X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.26 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.101.4 at phobos.denx.de X-Virus-Status: Clean Atuomatically select the ITSS driver when building for Apollo Lake. Signed-off-by: Wolfgang Wallner Reviewed-by: Simon Glass Reviewed-by: Bin Meng --- arch/x86/cpu/apollolake/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/cpu/apollolake/Kconfig b/arch/x86/cpu/apollolake/Kconfig index fcff176c27..a760e0ac68 100644 --- a/arch/x86/cpu/apollolake/Kconfig +++ b/arch/x86/cpu/apollolake/Kconfig @@ -39,6 +39,7 @@ config INTEL_APOLLOLAKE imply HAVE_X86_FIT imply INTEL_GPIO imply SMP + imply HAVE_ITSS if INTEL_APOLLOLAKE