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: 235815 List-Id: U-Boot discussion From: wolfgang.wallner at br-automation.com (Wolfgang Wallner) Date: Mon, 3 Feb 2020 14:06:45 +0100 Subject: [PATCH 1/2] x86: itss: Add a Kconfig option to enable/disable ITSS driver Message-ID: <20200203130646.86598-1-wolfgang.wallner@br-automation.com> 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: 235816 List-Id: U-Boot discussion From: wolfgang.wallner at br-automation.com (Wolfgang Wallner) Date: Mon, 3 Feb 2020 14:06:46 +0100 Subject: [PATCH 2/2] x86: apl: Include ITSS driver In-Reply-To: <20200203130646.86598-1-wolfgang.wallner@br-automation.com> References: <20200203130646.86598-1-wolfgang.wallner@br-automation.com> Message-ID: <20200203130646.86598-2-wolfgang.wallner@br-automation.com> 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