pmdomain: sunxi: Move Kconfig option to the pmdomain subsystem
authorUlf Hansson <ulf.hansson@linaro.org>
Tue, 12 Sep 2023 12:09:39 +0000 (14:09 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 4 Oct 2023 21:41:56 +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: Chen-Yu Tsai <wens@csie.org>
Cc: Jernej Skrabec <jernej.skrabec@gmail.com>
Cc: Samuel Holland <samuel@sholland.org>
Cc: <linux-sunxi@lists.linux.dev>
Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/pmdomain/Kconfig
drivers/pmdomain/sunxi/Kconfig [new file with mode: 0644]
drivers/soc/sunxi/Kconfig

index 2286c36076db5b0a9728b3af9008553f88890d01..10c3bc2e244478ded67b897f5551f143477d7f05 100644 (file)
@@ -13,5 +13,6 @@ source "drivers/pmdomain/rockchip/Kconfig"
 source "drivers/pmdomain/samsung/Kconfig"
 source "drivers/pmdomain/st/Kconfig"
 source "drivers/pmdomain/starfive/Kconfig"
+source "drivers/pmdomain/sunxi/Kconfig"
 
 endmenu
diff --git a/drivers/pmdomain/sunxi/Kconfig b/drivers/pmdomain/sunxi/Kconfig
new file mode 100644 (file)
index 0000000..17781bf
--- /dev/null
@@ -0,0 +1,10 @@
+# SPDX-License-Identifier: GPL-2.0-only
+
+config SUN20I_PPU
+       bool "Allwinner D1 PPU power domain driver"
+       depends on ARCH_SUNXI || COMPILE_TEST
+       depends on PM
+       select PM_GENERIC_DOMAINS
+       help
+         Say y to enable the PPU power domain driver. This saves power
+         when certain peripherals, such as the video engine, are idle.
index c5070914fc6aa2810c93a3d8c974ed42e960da3f..8aecbc9b197638c192ea022754c05220ab17ee5d 100644 (file)
@@ -19,12 +19,3 @@ config SUNXI_SRAM
          Say y here to enable the SRAM controller support. This
          device is responsible on mapping the SRAM in the sunXi SoCs
          whether to the CPU/DMA, or to the devices.
-
-config SUN20I_PPU
-       bool "Allwinner D1 PPU power domain driver"
-       depends on ARCH_SUNXI || COMPILE_TEST
-       depends on PM
-       select PM_GENERIC_DOMAINS
-       help
-         Say y to enable the PPU power domain driver. This saves power
-         when certain peripherals, such as the video engine, are idle.