diff options
author | Ye Li <ye.li@nxp.com> | 2021-07-15 23:21:43 -0700 |
---|---|---|
committer | Ye Li <ye.li@nxp.com> | 2022-04-06 18:04:46 +0800 |
commit | 8512eafb70bdbec53e2f466f19c3d081ae0f0587 (patch) | |
tree | 48aa78c7e9ff2d492870cf0dbef3e264100907c7 /include | |
parent | 10204eff4a6f1e3088c1bd74e168756152143838 (diff) |
LFU-196-1 power: domain: Add SCMI based power domain driver
Add the SCMI message format and implement SCMI based power domain
driver for power on/off support.
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit 87187c4e969403827e2ba569263a5c7479be6fd6)
Diffstat (limited to 'include')
-rw-r--r-- | include/scmi_protocols.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/include/scmi_protocols.h b/include/scmi_protocols.h index ef26e72176..bcda4762d7 100644 --- a/include/scmi_protocols.h +++ b/include/scmi_protocols.h @@ -289,4 +289,38 @@ struct scmi_voltd_level_get_out { s32 voltage_level; }; +/* + * SCMI Power Protocol + */ + +enum scmi_power_message_id { + SCMI_POWER_DOMAIN_ATTRIBUTES = 0x3, + SCMI_POWER_STATE_SET = 0x4, + SCMI_POWER_STATE_GET = 0x5, + SCMI_POWER_STATE_NOTIFY = 0x6, +}; + + +#define SCMI_POWER_STATE_GENERIC_ON (0 << 30) +#define SCMI_POWER_STATE_GENERIC_OFF (1 << 30) + +struct scmi_power_set_state { + u32 flags; + u32 domain; + u32 state; +}; + +struct scmi_power_set_state_out { + s32 status; +}; + +struct scmi_power_get_state { + u32 domain; +}; + +struct scmi_power_get_state_out { + s32 status; + u32 state; +}; + #endif /* _SCMI_PROTOCOLS_H */ |