aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2017-04-04 08:38:56 -0400
committerLee Jones <lee.jones@linaro.org>2017-04-27 06:54:42 -0400
commitb5238b41858229b2dcb684cd71d81f4c6d6311c0 (patch)
tree3a3032325b3bb79f4fc09c3380cf189139e1280a
parent90f447170c6f283a80a729ff92aabecdb2206cbe (diff)
mfd: intel_soc_pmic: Fix a mess with compilation units
Crystal Cove and Whiskey Cove are two different PMICs which are installed on Intel Atom SoC based platforms. Moreover there are two independent drivers that by some reason were supposed (*) to get into one kernel module. Fix the mess by clarifying Kconfig option for Crystal Cove and split Whiskey Cove out of it. (*) It looks like the configuration was never tested with INTEL_SOC_PMIC=n. The line in Makefile is actually wrong. Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net> (supporter:ACPI) Acked-by: Linus Walleij <linus.walleij@linaro.org> Acked-by: Zhang Rui <rui.zhang@intel.com> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
-rw-r--r--drivers/acpi/Kconfig2
-rw-r--r--drivers/gpio/Kconfig2
-rw-r--r--drivers/mfd/Kconfig15
-rw-r--r--drivers/mfd/Makefile2
-rw-r--r--drivers/platform/x86/Kconfig2
-rw-r--r--drivers/thermal/Kconfig2
6 files changed, 18 insertions, 7 deletions
diff --git a/drivers/acpi/Kconfig b/drivers/acpi/Kconfig
index 83e5f7e1a20d..03708e08fcb4 100644
--- a/drivers/acpi/Kconfig
+++ b/drivers/acpi/Kconfig
@@ -512,7 +512,7 @@ config XPOWER_PMIC_OPREGION
512 512
513config BXT_WC_PMIC_OPREGION 513config BXT_WC_PMIC_OPREGION
514 bool "ACPI operation region support for BXT WhiskeyCove PMIC" 514 bool "ACPI operation region support for BXT WhiskeyCove PMIC"
515 depends on INTEL_SOC_PMIC 515 depends on INTEL_SOC_PMIC_BXTWC
516 help 516 help
517 This config adds ACPI operation region support for BXT WhiskeyCove PMIC. 517 This config adds ACPI operation region support for BXT WhiskeyCove PMIC.
518 518
diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig
index 05043071fc98..9b1bcb4d0df7 100644
--- a/drivers/gpio/Kconfig
+++ b/drivers/gpio/Kconfig
@@ -1054,7 +1054,7 @@ config GPIO_UCB1400
1054 1054
1055config GPIO_WHISKEY_COVE 1055config GPIO_WHISKEY_COVE
1056 tristate "GPIO support for Whiskey Cove PMIC" 1056 tristate "GPIO support for Whiskey Cove PMIC"
1057 depends on (X86 || COMPILE_TEST) && INTEL_SOC_PMIC 1057 depends on (X86 || COMPILE_TEST) && INTEL_SOC_PMIC_BXTWC
1058 select GPIOLIB_IRQCHIP 1058 select GPIOLIB_IRQCHIP
1059 help 1059 help
1060 Support for GPIO pins on Whiskey Cove PMIC. 1060 Support for GPIO pins on Whiskey Cove PMIC.
diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig
index de68b5ba8741..3eb5c93595f6 100644
--- a/drivers/mfd/Kconfig
+++ b/drivers/mfd/Kconfig
@@ -447,18 +447,29 @@ config LPC_SCH
447 System Management Bus and General Purpose I/O. 447 System Management Bus and General Purpose I/O.
448 448
449config INTEL_SOC_PMIC 449config INTEL_SOC_PMIC
450 bool "Support for Intel Atom SoC PMIC" 450 bool "Support for Crystal Cove PMIC"
451 depends on GPIOLIB 451 depends on GPIOLIB
452 depends on I2C=y 452 depends on I2C=y
453 select MFD_CORE 453 select MFD_CORE
454 select REGMAP_I2C 454 select REGMAP_I2C
455 select REGMAP_IRQ 455 select REGMAP_IRQ
456 help 456 help
457 Select this option to enable support for the PMIC device 457 Select this option to enable support for Crystal Cove PMIC
458 on some Intel SoC systems. The PMIC provides ADC, GPIO, 458 on some Intel SoC systems. The PMIC provides ADC, GPIO,
459 thermal, charger and related power management functions 459 thermal, charger and related power management functions
460 on these systems. 460 on these systems.
461 461
462config INTEL_SOC_PMIC_BXTWC
463 tristate "Support for Intel Broxton Whiskey Cove PMIC"
464 depends on INTEL_PMC_IPC
465 select MFD_CORE
466 select REGMAP_IRQ
467 help
468 Select this option to enable support for Whiskey Cove PMIC
469 on Intel Broxton systems. The PMIC provides ADC, GPIO,
470 thermal, charger and related power management functions
471 on these systems.
472
462config MFD_INTEL_LPSS 473config MFD_INTEL_LPSS
463 tristate 474 tristate
464 select COMMON_CLK 475 select COMMON_CLK
diff --git a/drivers/mfd/Makefile b/drivers/mfd/Makefile
index fa86dbe65e52..c16bf1ea0ea9 100644
--- a/drivers/mfd/Makefile
+++ b/drivers/mfd/Makefile
@@ -212,8 +212,8 @@ obj-$(CONFIG_MFD_RT5033) += rt5033.o
212obj-$(CONFIG_MFD_SKY81452) += sky81452.o 212obj-$(CONFIG_MFD_SKY81452) += sky81452.o
213 213
214intel-soc-pmic-objs := intel_soc_pmic_core.o intel_soc_pmic_crc.o 214intel-soc-pmic-objs := intel_soc_pmic_core.o intel_soc_pmic_crc.o
215intel-soc-pmic-$(CONFIG_INTEL_PMC_IPC) += intel_soc_pmic_bxtwc.o
216obj-$(CONFIG_INTEL_SOC_PMIC) += intel-soc-pmic.o 215obj-$(CONFIG_INTEL_SOC_PMIC) += intel-soc-pmic.o
216obj-$(CONFIG_INTEL_SOC_PMIC_BXTWC) += intel_soc_pmic_bxtwc.o
217obj-$(CONFIG_MFD_MT6397) += mt6397-core.o 217obj-$(CONFIG_MFD_MT6397) += mt6397-core.o
218 218
219obj-$(CONFIG_MFD_ALTERA_A10SR) += altera-a10sr.o 219obj-$(CONFIG_MFD_ALTERA_A10SR) += altera-a10sr.o
diff --git a/drivers/platform/x86/Kconfig b/drivers/platform/x86/Kconfig
index 4bc88eb52712..9a949d531162 100644
--- a/drivers/platform/x86/Kconfig
+++ b/drivers/platform/x86/Kconfig
@@ -1011,7 +1011,7 @@ config INTEL_PMC_IPC
1011config INTEL_BXTWC_PMIC_TMU 1011config INTEL_BXTWC_PMIC_TMU
1012 tristate "Intel BXT Whiskey Cove TMU Driver" 1012 tristate "Intel BXT Whiskey Cove TMU Driver"
1013 depends on REGMAP 1013 depends on REGMAP
1014 depends on INTEL_SOC_PMIC && INTEL_PMC_IPC 1014 depends on INTEL_SOC_PMIC_BXTWC && INTEL_PMC_IPC
1015 ---help--- 1015 ---help---
1016 Select this driver to use Intel BXT Whiskey Cove PMIC TMU feature. 1016 Select this driver to use Intel BXT Whiskey Cove PMIC TMU feature.
1017 This driver enables the alarm wakeup functionality in the TMU unit 1017 This driver enables the alarm wakeup functionality in the TMU unit
diff --git a/drivers/thermal/Kconfig b/drivers/thermal/Kconfig
index 776b34396144..751e50a3d946 100644
--- a/drivers/thermal/Kconfig
+++ b/drivers/thermal/Kconfig
@@ -365,7 +365,7 @@ endmenu
365 365
366config INTEL_BXT_PMIC_THERMAL 366config INTEL_BXT_PMIC_THERMAL
367 tristate "Intel Broxton PMIC thermal driver" 367 tristate "Intel Broxton PMIC thermal driver"
368 depends on X86 && INTEL_SOC_PMIC && REGMAP 368 depends on X86 && INTEL_SOC_PMIC_BXTWC && REGMAP
369 help 369 help
370 Select this driver for Intel Broxton PMIC with ADC channels monitoring 370 Select this driver for Intel Broxton PMIC with ADC channels monitoring
371 system temperature measurements and alerts. 371 system temperature measurements and alerts.