]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
x86: itss: Add a Kconfig option to enable/disable ITSS driver
authorWolfgang Wallner <wolfgang.wallner@br-automation.com>
Mon, 3 Feb 2020 13:06:45 +0000 (14:06 +0100)
committerBin Meng <bmeng.cn@gmail.com>
Tue, 4 Feb 2020 04:54:54 +0000 (12:54 +0800)
Add a Kconfig option to support enabling/disabling the inclusion of
the ITSS driver depending on the platform.

Atuomatically select the ITSS driver when building for Apollo Lake.

Signed-off-by: Wolfgang Wallner <wolfgang.wallner@br-automation.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
[bmeng: squashed in http://patchwork.ozlabs.org/patch/1232761/]
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/Kconfig
arch/x86/cpu/apollolake/Kconfig
arch/x86/cpu/intel_common/Makefile

index 89b93e5de25aa7228a7699ec373efa189697a089..b733d2264efa1595c839e2fd73d6f8cb919909ff 100644 (file)
@@ -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
 
index fcff176c27d11aa9d34b834893615632a408c5b8..a760e0ac68ea27aa6813a52580634095e1ceab49 100644 (file)
@@ -39,6 +39,7 @@ config INTEL_APOLLOLAKE
        imply HAVE_X86_FIT
        imply INTEL_GPIO
        imply SMP
+       imply HAVE_ITSS
 
 if INTEL_APOLLOLAKE
 
index 1e7a72f2baf618b02be69c76d0e255d4a90826a7..e22c70781d60644ef5661c1ee29de3b1e411b08d 100644 (file)
@@ -27,9 +27,7 @@ obj-y += microcode.o
 endif
 endif
 obj-y += pch.o
-ifdef CONFIG_INTEL_APOLLOLAKE
-obj-y += itss.o
-endif
+obj-$(CONFIG_HAVE_ITSS) += itss.o
 
 ifdef CONFIG_SPL
 ifndef CONFIG_SPL_BUILD