]> git.baikalelectronics.ru Git - uboot.git/commitdiff
firmware: scmi: add configs to select the supported agents
authorPatrick Delaunay <patrick.delaunay@foss.st.com>
Thu, 28 Oct 2021 17:13:15 +0000 (19:13 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 23 Nov 2021 18:53:03 +0000 (13:53 -0500)
Add two configs CONFIG_SCMI_AGENT_MAILBOX and CONFIG_SCMI_AGENT_SMCCC
to select the supported agents as all the agents are not supported.

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Acked-by: Etienne Carriere <etienne.carriere@linaro.org>
drivers/firmware/scmi/Kconfig
drivers/firmware/scmi/Makefile

index c3a109beac713d4a4ce56be1d11525fb12192985..c33de87cd053001567c27858e8560c2977f514ad 100644 (file)
@@ -17,3 +17,19 @@ config SCMI_FIRMWARE
          based on message exchange. Messages can be exchange over tranport
          channels as a mailbox device or an Arm SMCCC service with some
          piece of identified shared memory.
+
+config SCMI_AGENT_MAILBOX
+       bool "Enable SCMI agent mailbox"
+       depends on SCMI_FIRMWARE && DM_MAILBOX
+       default y
+       help
+         Enable the SCMI communication channel based on mailbox
+         for compatible "arm,scmi".
+
+config SCMI_AGENT_SMCCC
+       bool "Enable SCMI agent SMCCC"
+       depends on SCMI_FIRMWARE && ARM_SMCCC
+       default y
+       help
+         Enable the SCMI communication channel based on Arm SMCCC service for
+         compatible "arm,scmi-smc".
index 966475ec10af0657ef83903660a4c54eccc2a795..7d6f4df1ded216ebeaca488cc3a061ecb917d4a1 100644 (file)
@@ -1,5 +1,5 @@
 obj-y  += scmi_agent-uclass.o
 obj-y  += smt.o
-obj-$(CONFIG_ARM_SMCCC)                += smccc_agent.o
-obj-$(CONFIG_DM_MAILBOX)       += mailbox_agent.o
+obj-$(CONFIG_SCMI_AGENT_SMCCC)         += smccc_agent.o
+obj-$(CONFIG_SCMI_AGENT_MAILBOX)       += mailbox_agent.o
 obj-$(CONFIG_SANDBOX)          += sandbox-scmi_agent.o sandbox-scmi_devices.o