diff options
author | Cristian Marussi <cristian.marussi@arm.com> | 2020-07-01 16:53:44 +0100 |
---|---|---|
committer | Sudeep Holla <sudeep.holla@arm.com> | 2020-07-01 17:07:26 +0100 |
commit | e27077bc04d5a2e09a0860ca086e1d55adf6a16d (patch) | |
tree | 7748f4136d302588a3c2d2a1face9baa994194a1 /include/linux/scmi_protocol.h | |
parent | 6b8a69131dc63df2eab3fc6f5f91b60bdd5301ff (diff) |
firmware: arm_scmi: Add power notifications support
Make SCMI power protocol register with the notification core.
Link: https://lore.kernel.org/r/20200701155348.52864-6-cristian.marussi@arm.com
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Cristian Marussi <cristian.marussi@arm.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 | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/scmi_protocol.h b/include/linux/scmi_protocol.h index 26957d6872a5..81dc3b132fda 100644 --- a/include/linux/scmi_protocol.h +++ b/include/linux/scmi_protocol.h @@ -375,4 +375,16 @@ typedef int (*scmi_prot_init_fn_t)(struct scmi_handle *); int scmi_protocol_register(int protocol_id, scmi_prot_init_fn_t fn); void scmi_protocol_unregister(int protocol_id); +/* SCMI Notification API - Custom Event Reports */ +enum scmi_notification_events { + SCMI_EVENT_POWER_STATE_CHANGED = 0x0, +}; + +struct scmi_power_state_changed_report { + u64 timestamp; + u32 agent_id; + u32 domain_id; + u32 power_state; +}; + #endif /* _LINUX_SCMI_PROTOCOL_H */ |