diff options
author | Peng Fan <peng.fan@nxp.com> | 2024-01-21 14:09:00 +0300 |
---|---|---|
committer | Sudeep Holla <sudeep.holla@arm.com> | 2024-02-20 09:29:43 +0300 |
commit | dc36561e1548a8ca93b34ef385da03c289ec5ac0 (patch) | |
tree | e5141b1a9001c5a8a5a1db9bd27220a753843551 /include/linux/scmi_protocol.h | |
parent | 2858f6e5f06440d6b9e9c3f57bc68915344830a9 (diff) | |
download | linux-dc36561e1548a8ca93b34ef385da03c289ec5ac0.tar.xz |
firmware: arm_scmi: Implement clock get permissions
ARM SCMI v3.2 introduces clock get permission command. To implement the
same let us stash the values of those permissions in the scmi_clock_info.
They indicate if the operation is forbidden or not.
If the CLOCK_GET_PERMISSIONS command is not supported, the default
permissions are set to allow the operations, otherwise they will be set
according to the response of CLOCK_GET_PERMISSIONS from the SCMI
platform firmware.
Reviewed-by: Cristian Marussi <cristian.marussi@arm.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Link: https://lore.kernel.org/r/20240121110901.1414856-1-peng.fan@oss.nxp.com
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Diffstat (limited to 'include/linux/scmi_protocol.h')
-rw-r--r-- | include/linux/scmi_protocol.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/scmi_protocol.h b/include/linux/scmi_protocol.h index f2f05fb42d28..0cc40af5519a 100644 --- a/include/linux/scmi_protocol.h +++ b/include/linux/scmi_protocol.h @@ -47,6 +47,9 @@ struct scmi_clock_info { bool rate_discrete; bool rate_changed_notifications; bool rate_change_requested_notifications; + bool state_ctrl_forbidden; + bool rate_ctrl_forbidden; + bool parent_ctrl_forbidden; union { struct { int num_rates; |