Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

platform/x86: Drop the PMC_ATOM Kconfig option

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

+2 -9
+1 -3
drivers/clk/x86/Makefile
··· 1 1 # SPDX-License-Identifier: GPL-2.0-only 2 - obj-$(CONFIG_PMC_ATOM) += clk-pmc-atom.o 3 2 obj-$(CONFIG_X86_AMD_PLATFORM_DEVICE) += clk-fch.o 4 - clk-x86-lpss-y := clk-lpss-atom.o 5 - obj-$(CONFIG_X86_INTEL_LPSS) += clk-x86-lpss.o 3 + obj-$(CONFIG_X86_INTEL_LPSS) += clk-lpss-atom.o clk-pmc-atom.o 6 4 obj-$(CONFIG_CLK_LGM_CGU) += clk-cgu.o clk-cgu-pll.o clk-lgm.o
-5
drivers/platform/x86/Kconfig
··· 1161 1161 that delivers key events when these buttons are pressed. 1162 1162 1163 1163 endif # X86_PLATFORM_DEVICES 1164 - 1165 - config PMC_ATOM 1166 - def_bool y 1167 - depends on PCI 1168 - select COMMON_CLK
+1 -1
drivers/platform/x86/Makefile
··· 126 126 obj-$(CONFIG_INTEL_SCU_PLATFORM) += intel_scu_pltdrv.o 127 127 obj-$(CONFIG_INTEL_SCU_WDT) += intel_scu_wdt.o 128 128 obj-$(CONFIG_INTEL_SCU_IPC_UTIL) += intel_scu_ipcutil.o 129 - obj-$(CONFIG_PMC_ATOM) += pmc_atom.o 129 + obj-$(CONFIG_X86_INTEL_LPSS) += pmc_atom.o 130 130 131 131 # Siemens Simatic Industrial PCs 132 132 obj-$(CONFIG_SIEMENS_SIMATIC_IPC) += simatic-ipc.o