summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUlf Hansson <ulf.hansson@linaro.org>2019-04-10 04:20:21 -0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2019-04-12 04:59:37 -0400
commite720a6c8fbdb86dcbb493d432e632dfafe6381cc (patch)
tree7e341927fbd57403e47673150a5ee4d7589722f9
parent15ade5d2e7775667cf191cf2f94327a4889f8b9d (diff)
drivers: firmware: psci: Move psci to separate directory
Some following changes extends the PSCI driver with some additional files. Avoid to continue cluttering the toplevel firmware directory and first move the PSCI files into a PSCI sub-directory. Suggested-by: Mark Rutland <mark.rutland@arm.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org> Acked-by: Mark Rutland <mark.rutland@arm.com> Acked-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r--drivers/firmware/Kconfig15
-rw-r--r--drivers/firmware/Makefile3
-rw-r--r--drivers/firmware/psci/Kconfig13
-rw-r--r--drivers/firmware/psci/Makefile4
-rw-r--r--drivers/firmware/psci/psci.c (renamed from drivers/firmware/psci.c)0
-rw-r--r--drivers/firmware/psci/psci_checker.c (renamed from drivers/firmware/psci_checker.c)0
6 files changed, 19 insertions, 16 deletions
diff --git a/drivers/firmware/Kconfig b/drivers/firmware/Kconfig
index cac16c4b0df3..7b655f6156fb 100644
--- a/drivers/firmware/Kconfig
+++ b/drivers/firmware/Kconfig
@@ -5,20 +5,6 @@
5 5
6menu "Firmware Drivers" 6menu "Firmware Drivers"
7 7
8config ARM_PSCI_FW
9 bool
10
11config ARM_PSCI_CHECKER
12 bool "ARM PSCI checker"
13 depends on ARM_PSCI_FW && HOTPLUG_CPU && CPU_IDLE && !TORTURE_TEST
14 help
15 Run the PSCI checker during startup. This checks that hotplug and
16 suspend operations work correctly when using PSCI.
17
18 The torture tests may interfere with the PSCI checker by turning CPUs
19 on and off through hotplug, so for now torture tests and PSCI checker
20 are mutually exclusive.
21
22config ARM_SCMI_PROTOCOL 8config ARM_SCMI_PROTOCOL
23 bool "ARM System Control and Management Interface (SCMI) Message Protocol" 9 bool "ARM System Control and Management Interface (SCMI) Message Protocol"
24 depends on ARM || ARM64 || COMPILE_TEST 10 depends on ARM || ARM64 || COMPILE_TEST
@@ -270,6 +256,7 @@ config TI_SCI_PROTOCOL
270config HAVE_ARM_SMCCC 256config HAVE_ARM_SMCCC
271 bool 257 bool
272 258
259source "drivers/firmware/psci/Kconfig"
273source "drivers/firmware/broadcom/Kconfig" 260source "drivers/firmware/broadcom/Kconfig"
274source "drivers/firmware/google/Kconfig" 261source "drivers/firmware/google/Kconfig"
275source "drivers/firmware/efi/Kconfig" 262source "drivers/firmware/efi/Kconfig"
diff --git a/drivers/firmware/Makefile b/drivers/firmware/Makefile
index 80feb635120f..9a3909a22682 100644
--- a/drivers/firmware/Makefile
+++ b/drivers/firmware/Makefile
@@ -2,8 +2,6 @@
2# 2#
3# Makefile for the linux kernel. 3# Makefile for the linux kernel.
4# 4#
5obj-$(CONFIG_ARM_PSCI_FW) += psci.o
6obj-$(CONFIG_ARM_PSCI_CHECKER) += psci_checker.o
7obj-$(CONFIG_ARM_SCPI_PROTOCOL) += arm_scpi.o 5obj-$(CONFIG_ARM_SCPI_PROTOCOL) += arm_scpi.o
8obj-$(CONFIG_ARM_SCPI_POWER_DOMAIN) += scpi_pm_domain.o 6obj-$(CONFIG_ARM_SCPI_POWER_DOMAIN) += scpi_pm_domain.o
9obj-$(CONFIG_ARM_SDE_INTERFACE) += arm_sdei.o 7obj-$(CONFIG_ARM_SDE_INTERFACE) += arm_sdei.o
@@ -25,6 +23,7 @@ CFLAGS_qcom_scm-32.o :=$(call as-instr,.arch armv7-a\n.arch_extension sec,-DREQU
25obj-$(CONFIG_TI_SCI_PROTOCOL) += ti_sci.o 23obj-$(CONFIG_TI_SCI_PROTOCOL) += ti_sci.o
26 24
27obj-$(CONFIG_ARM_SCMI_PROTOCOL) += arm_scmi/ 25obj-$(CONFIG_ARM_SCMI_PROTOCOL) += arm_scmi/
26obj-y += psci/
28obj-y += broadcom/ 27obj-y += broadcom/
29obj-y += meson/ 28obj-y += meson/
30obj-$(CONFIG_GOOGLE_FIRMWARE) += google/ 29obj-$(CONFIG_GOOGLE_FIRMWARE) += google/
diff --git a/drivers/firmware/psci/Kconfig b/drivers/firmware/psci/Kconfig
new file mode 100644
index 000000000000..26a3b32bf7ab
--- /dev/null
+++ b/drivers/firmware/psci/Kconfig
@@ -0,0 +1,13 @@
1config ARM_PSCI_FW
2 bool
3
4config ARM_PSCI_CHECKER
5 bool "ARM PSCI checker"
6 depends on ARM_PSCI_FW && HOTPLUG_CPU && CPU_IDLE && !TORTURE_TEST
7 help
8 Run the PSCI checker during startup. This checks that hotplug and
9 suspend operations work correctly when using PSCI.
10
11 The torture tests may interfere with the PSCI checker by turning CPUs
12 on and off through hotplug, so for now torture tests and PSCI checker
13 are mutually exclusive.
diff --git a/drivers/firmware/psci/Makefile b/drivers/firmware/psci/Makefile
new file mode 100644
index 000000000000..1956b882470f
--- /dev/null
+++ b/drivers/firmware/psci/Makefile
@@ -0,0 +1,4 @@
1# SPDX-License-Identifier: GPL-2.0
2#
3obj-$(CONFIG_ARM_PSCI_FW) += psci.o
4obj-$(CONFIG_ARM_PSCI_CHECKER) += psci_checker.o
diff --git a/drivers/firmware/psci.c b/drivers/firmware/psci/psci.c
index c80ec1d03274..c80ec1d03274 100644
--- a/drivers/firmware/psci.c
+++ b/drivers/firmware/psci/psci.c
diff --git a/drivers/firmware/psci_checker.c b/drivers/firmware/psci/psci_checker.c
index 346943657962..346943657962 100644
--- a/drivers/firmware/psci_checker.c
+++ b/drivers/firmware/psci/psci_checker.c