]> git.itanic.dy.fi Git - linux-stable/commitdiff
pmdomain: arm_scmi: Move Kconfig options to the pmdomain subsystem
authorSudeep Holla <sudeep.holla@arm.com>
Thu, 23 Nov 2023 12:08:46 +0000 (12:08 +0000)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 23 Nov 2023 16:32:53 +0000 (17:32 +0100)
The Kconfig options belongs closer to the corresponding implementations,
hence let's move them from the firmware to the pmdomain subsystem.

Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Link: https://lore.kernel.org/r/20231123120847.2825444-1-sudeep.holla@arm.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/firmware/arm_scmi/Kconfig
drivers/pmdomain/Kconfig
drivers/pmdomain/arm/Kconfig [new file with mode: 0644]

index 706d1264d038965b3a37a60a10f38fb30d5c5ff6..aa5842be19b2d12aa65862dcefaabee731c1ae2b 100644 (file)
@@ -168,31 +168,6 @@ config ARM_SCMI_TRANSPORT_VIRTIO_ATOMIC_ENABLE
 
 endif #ARM_SCMI_PROTOCOL
 
-config ARM_SCMI_POWER_DOMAIN
-       tristate "SCMI power domain driver"
-       depends on ARM_SCMI_PROTOCOL || (COMPILE_TEST && OF)
-       default y
-       select PM_GENERIC_DOMAINS if PM
-       help
-         This enables support for the SCMI power domains which can be
-         enabled or disabled via the SCP firmware
-
-         This driver can also be built as a module.  If so, the module
-         will be called scmi_pm_domain. Note this may needed early in boot
-         before rootfs may be available.
-
-config ARM_SCMI_PERF_DOMAIN
-       tristate "SCMI performance domain driver"
-       depends on ARM_SCMI_PROTOCOL || (COMPILE_TEST && OF)
-       default y
-       select PM_GENERIC_DOMAINS if PM
-       help
-         This enables support for the SCMI performance domains which can be
-         enabled or disabled via the SCP firmware.
-
-         This driver can also be built as a module. If so, the module will be
-         called scmi_perf_domain.
-
 config ARM_SCMI_POWER_CONTROL
        tristate "SCMI system power control driver"
        depends on ARM_SCMI_PROTOCOL || (COMPILE_TEST && OF)
index c98c5bf75a14b416edf8507b89dbaeb6e0cae52e..23c64851a5b07bc655090adc691a639155956058 100644 (file)
@@ -4,6 +4,7 @@ menu "PM Domains"
 source "drivers/pmdomain/actions/Kconfig"
 source "drivers/pmdomain/amlogic/Kconfig"
 source "drivers/pmdomain/apple/Kconfig"
+source "drivers/pmdomain/arm/Kconfig"
 source "drivers/pmdomain/bcm/Kconfig"
 source "drivers/pmdomain/imx/Kconfig"
 source "drivers/pmdomain/mediatek/Kconfig"
diff --git a/drivers/pmdomain/arm/Kconfig b/drivers/pmdomain/arm/Kconfig
new file mode 100644 (file)
index 0000000..acbe433
--- /dev/null
@@ -0,0 +1,25 @@
+# SPDX-License-Identifier: GPL-2.0-only
+config ARM_SCMI_PERF_DOMAIN
+       tristate "SCMI performance domain driver"
+       depends on ARM_SCMI_PROTOCOL || (COMPILE_TEST && OF)
+       default y
+       select PM_GENERIC_DOMAINS if PM
+       help
+         This enables support for the SCMI performance domains which can be
+         enabled or disabled via the SCP firmware.
+
+         This driver can also be built as a module. If so, the module will be
+         called scmi_perf_domain.
+
+config ARM_SCMI_POWER_DOMAIN
+       tristate "SCMI power domain driver"
+       depends on ARM_SCMI_PROTOCOL || (COMPILE_TEST && OF)
+       default y
+       select PM_GENERIC_DOMAINS if PM
+       help
+         This enables support for the SCMI power domains which can be
+         enabled or disabled via the SCP firmware
+
+         This driver can also be built as a module. If so, the module
+         will be called scmi_pm_domain. Note this may needed early in boot
+         before rootfs may be available.