1# SPDX-License-Identifier: GPL-2.0-only 2menu "ARM System Control and Management Interface Protocol" 3 4config ARM_SCMI_PROTOCOL 5 tristate "ARM System Control and Management Interface (SCMI) Message Protocol" 6 depends on ARM || ARM64 || COMPILE_TEST 7 help 8 ARM System Control and Management Interface (SCMI) protocol is a 9 set of operating system-independent software interfaces that are 10 used in system management. SCMI is extensible and currently provides 11 interfaces for: Discovery and self-description of the interfaces 12 it supports, Power domain management which is the ability to place 13 a given device or domain into the various power-saving states that 14 it supports, Performance management which is the ability to control 15 the performance of a domain that is composed of compute engines 16 such as application processors and other accelerators, Clock 17 management which is the ability to set and inquire rates on platform 18 managed clocks and Sensor management which is the ability to read 19 sensor data, and be notified of sensor value. 20 21 This protocol library provides interface for all the client drivers 22 making use of the features offered by the SCMI. 23 24if ARM_SCMI_PROTOCOL 25 26config ARM_SCMI_NEED_DEBUGFS 27 bool 28 help 29 This declares whether at least one SCMI facility is configured 30 which needs debugfs support. When selected causess the creation 31 of a common SCMI debugfs root directory. 32 33config ARM_SCMI_RAW_MODE_SUPPORT 34 bool "Enable support for SCMI Raw transmission mode" 35 depends on DEBUG_FS 36 select ARM_SCMI_NEED_DEBUGFS 37 help 38 Enable support for SCMI Raw transmission mode. 39 40 If enabled allows the direct injection and snooping of SCMI bare 41 messages through a dedicated debugfs interface. 42 It is meant to be used by SCMI compliance/testing suites. 43 44 When enabled regular SCMI drivers interactions are inhibited in 45 order to avoid unexpected interactions with the SCMI Raw message 46 flow. If unsure say N. 47 48config ARM_SCMI_HAVE_TRANSPORT 49 bool 50 help 51 This declares whether at least one SCMI transport has been configured. 52 Used to trigger a build bug when trying to build SCMI without any 53 configured transport. 54 55config ARM_SCMI_HAVE_SHMEM 56 bool 57 help 58 This declares whether a shared memory based transport for SCMI is 59 available. 60 61config ARM_SCMI_HAVE_MSG 62 bool 63 help 64 This declares whether a message passing based transport for SCMI is 65 available. 66 67config ARM_SCMI_TRANSPORT_MAILBOX 68 bool "SCMI transport based on Mailbox" 69 depends on MAILBOX 70 select ARM_SCMI_HAVE_TRANSPORT 71 select ARM_SCMI_HAVE_SHMEM 72 default y 73 help 74 Enable mailbox based transport for SCMI. 75 76 If you want the ARM SCMI PROTOCOL stack to include support for a 77 transport based on mailboxes, answer Y. 78 79config ARM_SCMI_TRANSPORT_OPTEE 80 bool "SCMI transport based on OP-TEE service" 81 depends on OPTEE=y || OPTEE=ARM_SCMI_PROTOCOL 82 select ARM_SCMI_HAVE_TRANSPORT 83 select ARM_SCMI_HAVE_SHMEM 84 select ARM_SCMI_HAVE_MSG 85 default y 86 help 87 This enables the OP-TEE service based transport for SCMI. 88 89 If you want the ARM SCMI PROTOCOL stack to include support for a 90 transport based on OP-TEE SCMI service, answer Y. 91 92config ARM_SCMI_TRANSPORT_SMC 93 bool "SCMI transport based on SMC" 94 depends on HAVE_ARM_SMCCC_DISCOVERY 95 select ARM_SCMI_HAVE_TRANSPORT 96 select ARM_SCMI_HAVE_SHMEM 97 default y 98 help 99 Enable SMC based transport for SCMI. 100 101 If you want the ARM SCMI PROTOCOL stack to include support for a 102 transport based on SMC, answer Y. 103 104config ARM_SCMI_TRANSPORT_SMC_ATOMIC_ENABLE 105 bool "Enable atomic mode support for SCMI SMC transport" 106 depends on ARM_SCMI_TRANSPORT_SMC 107 help 108 Enable support of atomic operation for SCMI SMC based transport. 109 110 If you want the SCMI SMC based transport to operate in atomic 111 mode, avoiding any kind of sleeping behaviour for selected 112 transactions on the TX path, answer Y. 113 Enabling atomic mode operations allows any SCMI driver using this 114 transport to optionally ask for atomic SCMI transactions and operate 115 in atomic context too, at the price of using a number of busy-waiting 116 primitives all over instead. If unsure say N. 117 118config ARM_SCMI_TRANSPORT_VIRTIO 119 bool "SCMI transport based on VirtIO" 120 depends on VIRTIO=y || VIRTIO=ARM_SCMI_PROTOCOL 121 select ARM_SCMI_HAVE_TRANSPORT 122 select ARM_SCMI_HAVE_MSG 123 help 124 This enables the virtio based transport for SCMI. 125 126 If you want the ARM SCMI PROTOCOL stack to include support for a 127 transport based on VirtIO, answer Y. 128 129config ARM_SCMI_TRANSPORT_VIRTIO_VERSION1_COMPLIANCE 130 bool "SCMI VirtIO transport Version 1 compliance" 131 depends on ARM_SCMI_TRANSPORT_VIRTIO 132 default y 133 help 134 This enforces strict compliance with VirtIO Version 1 specification. 135 136 If you want the ARM SCMI VirtIO transport layer to refuse to work 137 with Legacy VirtIO backends and instead support only VirtIO Version 1 138 devices (or above), answer Y. 139 140 If you want instead to support also old Legacy VirtIO backends (like 141 the ones implemented by kvmtool) and let the core Kernel VirtIO layer 142 take care of the needed conversions, say N. 143 144config ARM_SCMI_TRANSPORT_VIRTIO_ATOMIC_ENABLE 145 bool "Enable atomic mode for SCMI VirtIO transport" 146 depends on ARM_SCMI_TRANSPORT_VIRTIO 147 help 148 Enable support of atomic operation for SCMI VirtIO based transport. 149 150 If you want the SCMI VirtIO based transport to operate in atomic 151 mode, avoiding any kind of sleeping behaviour for selected 152 transactions on the TX path, answer Y. 153 154 Enabling atomic mode operations allows any SCMI driver using this 155 transport to optionally ask for atomic SCMI transactions and operate 156 in atomic context too, at the price of using a number of busy-waiting 157 primitives all over instead. If unsure say N. 158 159endif #ARM_SCMI_PROTOCOL 160 161config ARM_SCMI_POWER_DOMAIN 162 tristate "SCMI power domain driver" 163 depends on ARM_SCMI_PROTOCOL || (COMPILE_TEST && OF) 164 default y 165 select PM_GENERIC_DOMAINS if PM 166 help 167 This enables support for the SCMI power domains which can be 168 enabled or disabled via the SCP firmware 169 170 This driver can also be built as a module. If so, the module 171 will be called scmi_pm_domain. Note this may needed early in boot 172 before rootfs may be available. 173 174config ARM_SCMI_POWER_CONTROL 175 tristate "SCMI system power control driver" 176 depends on ARM_SCMI_PROTOCOL || (COMPILE_TEST && OF) 177 help 178 This enables System Power control logic which binds system shutdown or 179 reboot actions to SCMI System Power notifications generated by SCP 180 firmware. 181 182 This driver can also be built as a module. If so, the module will be 183 called scmi_power_control. Note this may needed early in boot to catch 184 early shutdown/reboot SCMI requests. 185 186endmenu 187