]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
pmdomain: mediatek: Move Kconfig options to the pmdomain subsystem
authorUlf Hansson <ulf.hansson@linaro.org>
Mon, 11 Sep 2023 22:52:25 +0000 (00:52 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 4 Oct 2023 21:41:18 +0000 (23:41 +0200)
The Kconfig options belongs closer to the corresponding implementations,
hence let's move them from the soc subsystem to the pmdomain subsystem.

Cc: Matthias Brugger <matthias.bgg@gmail.com>
Cc: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Cc: <linux-mediatek@lists.infradead.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/pmdomain/Kconfig
drivers/pmdomain/mediatek/Kconfig [new file with mode: 0644]
drivers/soc/mediatek/Kconfig

index e2c85f20a0c3aed465bacc4886193b8a8e073f44..b1d9dc7d71e308da7322f9d80c3dbbcc19826154 100644 (file)
@@ -6,5 +6,6 @@ source "drivers/pmdomain/amlogic/Kconfig"
 source "drivers/pmdomain/apple/Kconfig"
 source "drivers/pmdomain/bcm/Kconfig"
 source "drivers/pmdomain/imx/Kconfig"
+source "drivers/pmdomain/mediatek/Kconfig"
 
 endmenu
diff --git a/drivers/pmdomain/mediatek/Kconfig b/drivers/pmdomain/mediatek/Kconfig
new file mode 100644 (file)
index 0000000..21305c4
--- /dev/null
@@ -0,0 +1,29 @@
+# SPDX-License-Identifier: GPL-2.0-only
+
+menu "MediaTek PM Domains"
+       depends on ARCH_MEDIATEK || COMPILE_TEST
+
+config MTK_SCPSYS
+       bool "MediaTek SCPSYS Support"
+       default ARCH_MEDIATEK
+       depends on OF
+       select REGMAP
+       select MTK_INFRACFG
+       select PM_GENERIC_DOMAINS if PM
+       help
+         Say yes here to add support for the MediaTek SCPSYS power domain
+         driver.
+
+config MTK_SCPSYS_PM_DOMAINS
+       bool "MediaTek SCPSYS generic power domain"
+       default ARCH_MEDIATEK
+       depends on PM
+       select PM_GENERIC_DOMAINS
+       select REGMAP
+       help
+         Say y here to enable power domain support.
+         In order to meet high performance and low power requirements, the System
+         Control Processor System (SCPSYS) has several power management related
+         tasks in the system.
+
+endmenu
index a88cf04fc803d54da72250cdff501c75e5f82eda..0810b5b0c6883f5f88215651d6b8fa2f4461a923 100644 (file)
@@ -49,29 +49,6 @@ config MTK_REGULATOR_COUPLER
        default ARCH_MEDIATEK
        depends on REGULATOR
 
-config MTK_SCPSYS
-       bool "MediaTek SCPSYS Support"
-       default ARCH_MEDIATEK
-       depends on OF
-       select REGMAP
-       select MTK_INFRACFG
-       select PM_GENERIC_DOMAINS if PM
-       help
-         Say yes here to add support for the MediaTek SCPSYS power domain
-         driver.
-
-config MTK_SCPSYS_PM_DOMAINS
-       bool "MediaTek SCPSYS generic power domain"
-       default ARCH_MEDIATEK
-       depends on PM
-       select PM_GENERIC_DOMAINS
-       select REGMAP
-       help
-         Say y here to enable power domain support.
-         In order to meet high performance and low power requirements, the System
-         Control Processor System (SCPSYS) has several power management related
-         tasks in the system.
-
 config MTK_MMSYS
        tristate "MediaTek MMSYS Support"
        default ARCH_MEDIATEK