pmdomain: apple: Move Kconfig option to the pmdomain subsystem
authorUlf Hansson <ulf.hansson@linaro.org>
Mon, 11 Sep 2023 22:13:37 +0000 (00:13 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 20 Sep 2023 08:08:49 +0000 (10:08 +0200)
The Kconfig option belongs closer to the corresponding implementation,
hence let's move it from the soc subsystem to the pmdomain subsystem.

Cc: Hector Martin <marcan@marcan.st>
Cc: Sven Peter <sven@svenpeter.dev>
Cc: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Cc: <asahi@lists.linux.dev>
Reviewed-by: Eric Curtin <ecurtin@redhat.com>
Reviewed-by: Neal Gompa <neal@gompa.dev>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/pmdomain/Kconfig
drivers/pmdomain/apple/Kconfig [new file with mode: 0644]
drivers/soc/apple/Kconfig

index 03c8991ad0fd66bdbe46da3c742bbdc1411374e3..482d9e970e1470e53f0dfc995688684e69beb797 100644 (file)
@@ -3,5 +3,6 @@ menu "PM Domains"
 
 source "drivers/pmdomain/actions/Kconfig"
 source "drivers/pmdomain/amlogic/Kconfig"
+source "drivers/pmdomain/apple/Kconfig"
 
 endmenu
diff --git a/drivers/pmdomain/apple/Kconfig b/drivers/pmdomain/apple/Kconfig
new file mode 100644 (file)
index 0000000..12237cb
--- /dev/null
@@ -0,0 +1,18 @@
+# SPDX-License-Identifier: GPL-2.0-only
+
+if ARCH_APPLE || COMPILE_TEST
+
+config APPLE_PMGR_PWRSTATE
+       bool "Apple SoC PMGR power state control"
+       depends on PM
+       select REGMAP
+       select MFD_SYSCON
+       select PM_GENERIC_DOMAINS
+       select RESET_CONTROLLER
+       default ARCH_APPLE
+       help
+         The PMGR block in Apple SoCs provides high-level power state
+         controls for SoC devices. This driver manages them through the
+         generic power domain framework, and also provides reset support.
+
+endif
index a1596fefacffe1b94265a47c255378940083035b..eff486a7733772d8e2e9a101b7fdfc2c161fa1df 100644 (file)
@@ -4,19 +4,6 @@ if ARCH_APPLE || COMPILE_TEST
 
 menu "Apple SoC drivers"
 
-config APPLE_PMGR_PWRSTATE
-       bool "Apple SoC PMGR power state control"
-       depends on PM
-       select REGMAP
-       select MFD_SYSCON
-       select PM_GENERIC_DOMAINS
-       select RESET_CONTROLLER
-       default ARCH_APPLE
-       help
-         The PMGR block in Apple SoCs provides high-level power state
-         controls for SoC devices. This driver manages them through the
-         generic power domain framework, and also provides reset support.
-
 config APPLE_RTKIT
        tristate "Apple RTKit co-processor IPC protocol"
        depends on MAILBOX