pmdomain: rockchip: Move Kconfig option to the pmdomain subsystem
authorUlf Hansson <ulf.hansson@linaro.org>
Tue, 12 Sep 2023 10:39:02 +0000 (12:39 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 4 Oct 2023 21:41:18 +0000 (23:41 +0200)
The Kconfig option belongs closer to the corresponding implementation,
hence let's move it from the soc subsystem to the pmdomain subsystem.

Cc: Heiko Stuebner <heiko@sntech.de>
Cc: <linux-rockchip@lists.infradead.org>
Acked-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/pmdomain/Kconfig
drivers/pmdomain/rockchip/Kconfig [new file with mode: 0644]
drivers/soc/rockchip/Kconfig

index 0a75a17f2f3a9514b839cb2d3da6aa5670aaacd7..8afe69251dd221461cd8a83068adf72818f3a86c 100644 (file)
@@ -9,5 +9,6 @@ source "drivers/pmdomain/imx/Kconfig"
 source "drivers/pmdomain/mediatek/Kconfig"
 source "drivers/pmdomain/qcom/Kconfig"
 source "drivers/pmdomain/renesas/Kconfig"
+source "drivers/pmdomain/rockchip/Kconfig"
 
 endmenu
diff --git a/drivers/pmdomain/rockchip/Kconfig b/drivers/pmdomain/rockchip/Kconfig
new file mode 100644 (file)
index 0000000..b0d70f1
--- /dev/null
@@ -0,0 +1,16 @@
+# SPDX-License-Identifier: GPL-2.0-only
+if ARCH_ROCKCHIP || COMPILE_TEST
+
+config ROCKCHIP_PM_DOMAINS
+       bool "Rockchip generic power domain"
+       depends on PM
+       select PM_GENERIC_DOMAINS
+       help
+         Say y here to enable power domain support.
+         In order to meet high performance and low power requirements, a power
+         management unit is designed or saving power when RK3288 in low power
+         mode. The RK3288 PMU is dedicated for managing the power of the whole chip.
+
+         If unsure, say N.
+
+endif
index aff2f7e95237434f1cd1665b9feb6ec9debad217..785f60c6f3ad1a09f517e69a69726a8178bed168 100644 (file)
@@ -22,18 +22,6 @@ config ROCKCHIP_IODOMAIN
          necessary for the io domain setting of the SoC to match the
          voltage supplied by the regulators.
 
-config ROCKCHIP_PM_DOMAINS
-       bool "Rockchip generic power domain"
-       depends on PM
-       select PM_GENERIC_DOMAINS
-       help
-         Say y here to enable power domain support.
-         In order to meet high performance and low power requirements, a power
-         management unit is designed or saving power when RK3288 in low power
-         mode. The RK3288 PMU is dedicated for managing the power of the whole chip.
-
-         If unsure, say N.
-
 config ROCKCHIP_DTPM
        tristate "Rockchip DTPM hierarchy"
        depends on DTPM && m