summaryrefslogtreecommitdiff
path: root/drivers/pmdomain/apple
diff options
context:
space:
mode:
authorUlf Hansson <ulf.hansson@linaro.org>2023-09-12 01:13:37 +0300
committerUlf Hansson <ulf.hansson@linaro.org>2023-09-20 11:08:49 +0300
commit1bfadf2edd653af321af17e1cfac4fb28c3f790d (patch)
tree8dc2523c3fbbe0afbddc3df102ad8b4c3140dfe1 /drivers/pmdomain/apple
parent2dfb28355dd352dcee0053095f3faa7cebe3151e (diff)
downloadlinux-1bfadf2edd653af321af17e1cfac4fb28c3f790d.tar.xz
pmdomain: apple: Move Kconfig option to the pmdomain subsystem
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>
Diffstat (limited to 'drivers/pmdomain/apple')
-rw-r--r--drivers/pmdomain/apple/Kconfig18
1 files changed, 18 insertions, 0 deletions
diff --git a/drivers/pmdomain/apple/Kconfig b/drivers/pmdomain/apple/Kconfig
new file mode 100644
index 000000000000..12237cbcfaa9
--- /dev/null
+++ b/drivers/pmdomain/apple/Kconfig
@@ -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