]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
x86: Move P2SB from Apollo Lake to a more generic location
authorWolfgang Wallner <wolfgang.wallner@br-automation.com>
Tue, 4 Feb 2020 08:04:56 +0000 (09:04 +0100)
committerBin Meng <bmeng.cn@gmail.com>
Fri, 7 Feb 2020 14:41:24 +0000 (22:41 +0800)
The Primary to Sideband Bridge (P2SB) is not specific to Apollo Lake, so
move its driver to a common location within arch/x86.

Signed-off-by: Wolfgang Wallner <wolfgang.wallner@br-automation.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/Kconfig
arch/x86/cpu/apollolake/Kconfig
arch/x86/cpu/apollolake/Makefile
arch/x86/cpu/intel_common/Makefile
arch/x86/cpu/intel_common/p2sb.c [moved from arch/x86/cpu/apollolake/p2sb.c with 100% similarity]

index b733d2264efa1595c839e2fd73d6f8cb919909ff..b3fbf306f79bac5bd0697316e04f94cd19a88aaa 100644 (file)
@@ -715,6 +715,13 @@ config HAVE_ITSS
          Select this to include the driver for the Interrupt Timer
          Subsystem (ITSS) which is found on several Intel devices.
 
+config HAVE_P2SB
+       bool "Enable P2SB"
+       help
+         Select this to include the driver for the Primary to
+         Sideband Bridge (P2SB) which is found on several Intel
+         devices.
+
 menu "System tables"
        depends on !EFI && !SYS_COREBOOT
 
index a760e0ac68ea27aa6813a52580634095e1ceab49..145b8cbdf5b947512f770633729c4f52b165612a 100644 (file)
@@ -40,6 +40,7 @@ config INTEL_APOLLOLAKE
        imply INTEL_GPIO
        imply SMP
        imply HAVE_ITSS
+       imply HAVE_P2SB
 
 if INTEL_APOLLOLAKE
 
index f99f2c6473971cf474c64da4063e226c99abbefb..578e15c4bf70533d978fdd0a874dbf38fb3a20fd 100644 (file)
@@ -20,7 +20,6 @@ endif
 
 obj-y += hostbridge.o
 obj-y += lpc.o
-obj-y += p2sb.o
 obj-y += pch.o
 obj-y += pmc.o
 obj-y += uart.o
index e22c70781d60644ef5661c1ee29de3b1e411b08d..1736bd2b530e1820490169d80fb2ab46ace136aa 100644 (file)
@@ -28,6 +28,7 @@ endif
 endif
 obj-y += pch.o
 obj-$(CONFIG_HAVE_ITSS) += itss.o
+obj-$(CONFIG_HAVE_P2SB) += p2sb.o
 
 ifdef CONFIG_SPL
 ifndef CONFIG_SPL_BUILD