]> git.itanic.dy.fi Git - linux-stable/commitdiff
firmware: arm_scpi: Move power-domain driver to the pmdomain dir
authorSudeep Holla <sudeep.holla@arm.com>
Thu, 23 Nov 2023 12:08:47 +0000 (12:08 +0000)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 23 Nov 2023 16:32:53 +0000 (17:32 +0100)
To simplify with maintenance let's move the Arm SCPI power-domain driver
to the new pmdomain directory. Note this is different from and precedes
the new Arm SCMI protocol.

Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Link: https://lore.kernel.org/r/20231123120847.2825444-2-sudeep.holla@arm.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/firmware/Kconfig
drivers/firmware/Makefile
drivers/pmdomain/arm/Kconfig
drivers/pmdomain/arm/Makefile
drivers/pmdomain/arm/scpi_pm_domain.c [moved from drivers/firmware/scpi_pm_domain.c with 100% similarity]

index 4a98a859d44d34c9b27b81de7a90cdc779104e07..afeb050ae1b42116450804f1dbdb8f0824d13e15 100644 (file)
@@ -28,15 +28,6 @@ config ARM_SCPI_PROTOCOL
          This protocol library provides interface for all the client drivers
          making use of the features offered by the SCP.
 
-config ARM_SCPI_POWER_DOMAIN
-       tristate "SCPI power domain driver"
-       depends on ARM_SCPI_PROTOCOL || (COMPILE_TEST && OF)
-       default y
-       select PM_GENERIC_DOMAINS if PM
-       help
-         This enables support for the SCPI power domains which can be
-         enabled or disabled via the SCP firmware
-
 config ARM_SDE_INTERFACE
        bool "ARM Software Delegated Exception Interface (SDEI)"
        depends on ARM64
index 5f9dab82e1a0e9f30d941beb6b1d63232386e4be..944833702ebdbf75173620a44db3ce3f35f7ca1d 100644 (file)
@@ -3,7 +3,6 @@
 # Makefile for the linux kernel.
 #
 obj-$(CONFIG_ARM_SCPI_PROTOCOL)        += arm_scpi.o
-obj-$(CONFIG_ARM_SCPI_POWER_DOMAIN) += scpi_pm_domain.o
 obj-$(CONFIG_ARM_SDE_INTERFACE)        += arm_sdei.o
 obj-$(CONFIG_DMI)              += dmi_scan.o
 obj-$(CONFIG_DMI_SYSFS)                += dmi-sysfs.o
index acbe4331aaf78996e365e39135d8e2b917fc3b11..efa139c34e086919557a0e2358a8b51781ba6f52 100644 (file)
@@ -23,3 +23,15 @@ config ARM_SCMI_POWER_DOMAIN
          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_SCPI_POWER_DOMAIN
+       tristate "SCPI power domain driver"
+       depends on ARM_SCPI_PROTOCOL || (COMPILE_TEST && OF)
+       default y
+       select PM_GENERIC_DOMAINS if PM
+       help
+         This enables support for the SCPI 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 scpi_pm_domain.
index cfcb1f6cdd90094320275aeeada48a541400c8ba..502fe4d0a83ead43cb3b3d3b18b487a11d4cde75 100644 (file)
@@ -2,3 +2,4 @@
 
 obj-$(CONFIG_ARM_SCMI_PERF_DOMAIN) += scmi_perf_domain.o
 obj-$(CONFIG_ARM_SCMI_POWER_DOMAIN) += scmi_pm_domain.o
+obj-$(CONFIG_ARM_SCPI_POWER_DOMAIN) += scpi_pm_domain.o