Skip to content

Commit 42d0d42

Browse files
andy-shevjwrdegoede
authored andcommitted
platform/x86: p2sb: Move out of X86_PLATFORM_DEVICES dependency
The P2SB library is used for various drivers, including server platforms. That's why the dependency on X86_PLATFORM_DEVICES seems superfluous. Reported-by: kernel test robot <[email protected]> Signed-off-by: Andy Shevchenko <[email protected]> Reviewed-by: Hans de Goede <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Hans de Goede <[email protected]>
1 parent 8906ced commit 42d0d42

File tree

5 files changed

+16
-14
lines changed

5 files changed

+16
-14
lines changed

drivers/platform/x86/Kconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1138,3 +1138,15 @@ config WINMATE_FM07_KEYS
11381138
that delivers key events when these buttons are pressed.
11391139

11401140
endif # X86_PLATFORM_DEVICES
1141+
1142+
config P2SB
1143+
bool "Primary to Sideband (P2SB) bridge access support"
1144+
depends on PCI && X86
1145+
help
1146+
The Primary to Sideband (P2SB) bridge is an interface to some
1147+
PCI devices connected through it. In particular, SPI NOR controller
1148+
in Intel Apollo Lake SoC is one of such devices.
1149+
1150+
The main purpose of this library is to unhide P2SB device in case
1151+
firmware kept it hidden on some platforms in order to access devices
1152+
behind it.

drivers/platform/x86/Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,10 @@ obj-$(CONFIG_X86_ANDROID_TABLETS) += x86-android-tablets.o
119119
# Intel uncore drivers
120120
obj-$(CONFIG_INTEL_IPS) += intel_ips.o
121121

122+
# Intel miscellaneous drivers
123+
intel_p2sb-y := p2sb.o
124+
obj-$(CONFIG_P2SB) += intel_p2sb.o
125+
122126
# Intel PMIC / PMC / P-Unit devices
123127
obj-$(CONFIG_INTEL_SCU_IPC) += intel_scu_ipc.o
124128
obj-$(CONFIG_INTEL_SCU_PCI) += intel_scu_pcidrv.o

drivers/platform/x86/intel/Kconfig

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -70,18 +70,6 @@ config INTEL_OAKTRAIL
7070
enable/disable the Camera, WiFi, BT etc. devices. If in doubt, say Y
7171
here; it will only load on supported platforms.
7272

73-
config P2SB
74-
bool "Primary to Sideband (P2SB) bridge access support"
75-
depends on PCI
76-
help
77-
The Primary to Sideband (P2SB) bridge is an interface to some
78-
PCI devices connected through it. In particular, SPI NOR controller
79-
in Intel Apollo Lake SoC is one of such devices.
80-
81-
The main purpose of this library is to unhide P2SB device in case
82-
firmware kept it hidden on some platforms in order to access devices
83-
behind it.
84-
8573
config INTEL_BXTWC_PMIC_TMU
8674
tristate "Intel Broxton Whiskey Cove TMU Driver"
8775
depends on INTEL_SOC_PMIC_BXTWC

drivers/platform/x86/intel/Makefile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ intel_int0002_vgpio-y := int0002_vgpio.o
2828
obj-$(CONFIG_INTEL_INT0002_VGPIO) += intel_int0002_vgpio.o
2929
intel_oaktrail-y := oaktrail.o
3030
obj-$(CONFIG_INTEL_OAKTRAIL) += intel_oaktrail.o
31-
intel_p2sb-y := p2sb.o
32-
obj-$(CONFIG_P2SB) += intel_p2sb.o
3331
intel_sdsi-y := sdsi.o
3432
obj-$(CONFIG_INTEL_SDSI) += intel_sdsi.o
3533
intel_vsec-y := vsec.o
File renamed without changes.

0 commit comments

Comments
 (0)