diff options
| -rw-r--r-- | drivers/firmware/Kconfig | 15 | ||||
| -rw-r--r-- | drivers/firmware/Makefile | 3 | ||||
| -rw-r--r-- | drivers/firmware/psci/Kconfig | 13 | ||||
| -rw-r--r-- | drivers/firmware/psci/Makefile | 4 | ||||
| -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 | ||
| 6 | menu "Firmware Drivers" | 6 | menu "Firmware Drivers" |
| 7 | 7 | ||
| 8 | config ARM_PSCI_FW | ||
| 9 | bool | ||
| 10 | |||
| 11 | config 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 | |||
| 22 | config ARM_SCMI_PROTOCOL | 8 | config 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 | |||
| 270 | config HAVE_ARM_SMCCC | 256 | config HAVE_ARM_SMCCC |
| 271 | bool | 257 | bool |
| 272 | 258 | ||
| 259 | source "drivers/firmware/psci/Kconfig" | ||
| 273 | source "drivers/firmware/broadcom/Kconfig" | 260 | source "drivers/firmware/broadcom/Kconfig" |
| 274 | source "drivers/firmware/google/Kconfig" | 261 | source "drivers/firmware/google/Kconfig" |
| 275 | source "drivers/firmware/efi/Kconfig" | 262 | source "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 | # |
| 5 | obj-$(CONFIG_ARM_PSCI_FW) += psci.o | ||
| 6 | obj-$(CONFIG_ARM_PSCI_CHECKER) += psci_checker.o | ||
| 7 | obj-$(CONFIG_ARM_SCPI_PROTOCOL) += arm_scpi.o | 5 | obj-$(CONFIG_ARM_SCPI_PROTOCOL) += arm_scpi.o |
| 8 | obj-$(CONFIG_ARM_SCPI_POWER_DOMAIN) += scpi_pm_domain.o | 6 | obj-$(CONFIG_ARM_SCPI_POWER_DOMAIN) += scpi_pm_domain.o |
| 9 | obj-$(CONFIG_ARM_SDE_INTERFACE) += arm_sdei.o | 7 | obj-$(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 | |||
| 25 | obj-$(CONFIG_TI_SCI_PROTOCOL) += ti_sci.o | 23 | obj-$(CONFIG_TI_SCI_PROTOCOL) += ti_sci.o |
| 26 | 24 | ||
| 27 | obj-$(CONFIG_ARM_SCMI_PROTOCOL) += arm_scmi/ | 25 | obj-$(CONFIG_ARM_SCMI_PROTOCOL) += arm_scmi/ |
| 26 | obj-y += psci/ | ||
| 28 | obj-y += broadcom/ | 27 | obj-y += broadcom/ |
| 29 | obj-y += meson/ | 28 | obj-y += meson/ |
| 30 | obj-$(CONFIG_GOOGLE_FIRMWARE) += google/ | 29 | obj-$(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 @@ | |||
| 1 | config ARM_PSCI_FW | ||
| 2 | bool | ||
| 3 | |||
| 4 | config 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 | # | ||
| 3 | obj-$(CONFIG_ARM_PSCI_FW) += psci.o | ||
| 4 | obj-$(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 | |||
