pmdomain: tegra: Move Kconfig option to the pmdomain subsystem
authorUlf Hansson <ulf.hansson@linaro.org>
Tue, 12 Sep 2023 12:16:49 +0000 (14:16 +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: Thierry Reding <thierry.reding@gmail.com>
Cc: Jonathan Hunter <jonathanh@nvidia.com>
Cc: Mikko Perttunen <mperttunen@nvidia.com>
Cc: <linux-tegra@vger.kernel.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/pmdomain/Kconfig
drivers/pmdomain/tegra/Kconfig [new file with mode: 0644]
drivers/soc/tegra/Kconfig

index 10c3bc2..98e0458 100644 (file)
@@ -14,5 +14,6 @@ source "drivers/pmdomain/samsung/Kconfig"
 source "drivers/pmdomain/st/Kconfig"
 source "drivers/pmdomain/starfive/Kconfig"
 source "drivers/pmdomain/sunxi/Kconfig"
+source "drivers/pmdomain/tegra/Kconfig"
 
 endmenu
diff --git a/drivers/pmdomain/tegra/Kconfig b/drivers/pmdomain/tegra/Kconfig
new file mode 100644 (file)
index 0000000..13ade6d
--- /dev/null
@@ -0,0 +1,6 @@
+# SPDX-License-Identifier: GPL-2.0-only
+
+config SOC_TEGRA_POWERGATE_BPMP
+       def_bool y
+       depends on PM_GENERIC_DOMAINS
+       depends on TEGRA_BPMP
index 6f30988..f16beea 100644 (file)
@@ -152,11 +152,6 @@ config SOC_TEGRA_PMC
        select PM_GENERIC_DOMAINS
        select REGMAP
 
-config SOC_TEGRA_POWERGATE_BPMP
-       def_bool y
-       depends on PM_GENERIC_DOMAINS
-       depends on TEGRA_BPMP
-
 config SOC_TEGRA20_VOLTAGE_COUPLER
        bool "Voltage scaling support for Tegra20 SoCs"
        depends on ARCH_TEGRA_2x_SOC || COMPILE_TEST