x86: Move P2SB from Apollo Lake to a more generic location
PATCH 1/1 x86: Move P2SB from Apollo Lake to a more generic location
The Primary to Sideband Bridge (P2SB) is not specific to Apollo Lake, so move its driver to a common location within arch/x86.
---
This commit follows a similar rational as the recent moving of the ITSS driver from Apollo Lake to the intel_common directory, and it also depends on those patches (which are currently in u-boot-x86).
arch/x86/Kconfig | 7 +++++++
arch/x86/cpu/apollolake/Kconfig | 1 +
arch/x86/cpu/apollolake/Makefile | 1 -
arch/x86/cpu/intel_common/Makefile | 1 +
arch/x86/cpu/{apollolake => intel_common}/p2sb.c | 0
5 files changed, 9 insertions(+), 1 deletion(-)
rename arch/x86/cpu/{apollolake => intel_common}/p2sb.c (100%)arch/x86/Kconfig +7 -0
@@ -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
arch/x86/cpu/apollolake/Kconfig +1 -0
@@ -40,6 +40,7 @@ config INTEL_APOLLOLAKE imply INTEL_GPIO imply SMP imply HAVE_ITSS + imply HAVE_P2SB if INTEL_APOLLOLAKE
arch/x86/cpu/apollolake/Makefile +0 -1
@@ -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
arch/x86/cpu/intel_common/Makefile +1 -0
@@ -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
arch/x86/cpu/intel_common/p2sb.c renamed from arch/x86/cpu/apollolake/p2sb.c +0 -0
Signature · 1 line
2.25.0
PATCH 1/1 x86: Move P2SB from Apollo Lake to a more generic location
Quoted 11 lines · Wolfgang Wallner
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 <[email protected]>---
This commit follows a similar rational as the recent moving of the ITSS driver from Apollo Lake to theintel_commondirectory, and it also depends on those patches (which are currently in u-boot-x86).
Quoted 8 lines
arch/x86/Kconfig | 7 +++++++
arch/x86/cpu/apollolake/Kconfig | 1 +
arch/x86/cpu/apollolake/Makefile | 1 -
arch/x86/cpu/intel_common/Makefile | 1 +
arch/x86/cpu/{apollolake => intel_common}/p2sb.c | 0
5 files changed, 9 insertions(+), 1 deletion(-)
rename arch/x86/cpu/{apollolake => intel_common}/p2sb.c (100%)PATCH 1/1 x86: Move P2SB from Apollo Lake to a more generic location
Quoted 23 lines · Bin Meng
Quoted 11 lines · Wolfgang Wallner
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 <[email protected]>---
This commit follows a similar rational as the recent moving of the ITSS driver from Apollo Lake to theintel_commondirectory, and it also depends on those patches (which are currently in u-boot-x86).Quoted 8 lines
arch/x86/Kconfig | 7 +++++++ arch/x86/cpu/apollolake/Kconfig | 1 + arch/x86/cpu/apollolake/Makefile | 1 - arch/x86/cpu/intel_common/Makefile | 1 + arch/x86/cpu/{apollolake => intel_common}/p2sb.c | 0 5 files changed, 9 insertions(+), 1 deletion(-) rename arch/x86/cpu/{apollolake => intel_common}/p2sb.c (100%)
Quoted 1 line
Reviewed-by Bin Meng <[email protected]>
applied to u-boot-x86, thanks!