platform/x86: Drop the PMC_ATOM Kconfig option
authorHans de Goede <hdegoede@redhat.com>
Tue, 3 May 2022 14:02:07 +0000 (16:02 +0200)
committerHans de Goede <hdegoede@redhat.com>
Sun, 12 Jun 2022 12:41:22 +0000 (14:41 +0200)
The def_bool y PMC_ATOM Kconfig option provides a couple of symbols used
by the code enabled by the X86_INTEL_LPSS option and it registers some
clocks. These clocks are only registered on Bay Trail, Cherry Trail and
Brasswell Intel SoCs and kernels targeting these SoCs must always have
the X86_INTEL_LPSS option enabled otherwise many things will not work.

Building the PMC_ATOM code on kernels which are not targeting the
mentioned SoCs and which do not have the X86_INTEL_LPSS enabled is
not useful.

This means that we can simplify things by replacing the PMC_ATOM Kconfig
option in Makefiles with X86_INTEL_LPSS and then drop the option.

Cc: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Acked-by: Stephen Boyd <sboyd@kernel.org>
Link: https://lore.kernel.org/r/20220503140207.101218-2-hdegoede@redhat.com
drivers/clk/x86/Makefile
drivers/platform/x86/Kconfig
drivers/platform/x86/Makefile

index 1244c4e568ffa52b4a97b0f3d660ee2544769cd1..c2088b3c408128e7eb325869d3f0f08daa0f5e9c 100644 (file)
@@ -1,6 +1,4 @@
 # SPDX-License-Identifier: GPL-2.0-only
-obj-$(CONFIG_PMC_ATOM)         += clk-pmc-atom.o
 obj-$(CONFIG_X86_AMD_PLATFORM_DEVICE)  += clk-fch.o
-clk-x86-lpss-y                 := clk-lpss-atom.o
-obj-$(CONFIG_X86_INTEL_LPSS)   += clk-x86-lpss.o
+obj-$(CONFIG_X86_INTEL_LPSS)   += clk-lpss-atom.o clk-pmc-atom.o
 obj-$(CONFIG_CLK_LGM_CGU)      += clk-cgu.o clk-cgu-pll.o clk-lgm.o
index f08ad85683cb0de9ae987a763bb18556d6b4ab1d..85c396a430484b40afd2a7234e61b384920d6109 100644 (file)
@@ -1161,8 +1161,3 @@ config WINMATE_FM07_KEYS
          that delivers key events when these buttons are pressed.
 
 endif # X86_PLATFORM_DEVICES
-
-config PMC_ATOM
-       def_bool y
-       depends on PCI
-       select COMMON_CLK
index 4a59f47a46e269803acaf758417e2d0da4b33d0a..cc2a747133131a401143924964ea10bdd6b4e58d 100644 (file)
@@ -126,7 +126,7 @@ obj-$(CONFIG_INTEL_SCU_PCI)         += intel_scu_pcidrv.o
 obj-$(CONFIG_INTEL_SCU_PLATFORM)       += intel_scu_pltdrv.o
 obj-$(CONFIG_INTEL_SCU_WDT)            += intel_scu_wdt.o
 obj-$(CONFIG_INTEL_SCU_IPC_UTIL)       += intel_scu_ipcutil.o
-obj-$(CONFIG_PMC_ATOM)                 += pmc_atom.o
+obj-$(CONFIG_X86_INTEL_LPSS)           += pmc_atom.o
 
 # Siemens Simatic Industrial PCs
 obj-$(CONFIG_SIEMENS_SIMATIC_IPC)      += simatic-ipc.o