scmi_protocols: add SCMI Performance domain management protocol message IDs
authorPeng Fan <peng.fan@nxp.com>
Mon, 28 Apr 2025 10:37:29 +0000 (18:37 +0800)
committerFabio Estevam <festevam@gmail.com>
Sat, 3 May 2025 19:55:32 +0000 (16:55 -0300)
SCMI Performance domain management protocol is intended for performance
management of groups of devices or APs that run in the same performance
domain. The functionality provided by the callee-side can be used by
passing the corresponding message_id.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Alice Guo <alice.guo@nxp.com>
Reviewed-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Marek Vasut <marex@denx.de>
include/scmi_protocols.h

index 06de4a6..34f272c 100644 (file)
@@ -1046,4 +1046,22 @@ struct scmi_pinctrl_config_set_out {
        s32 status;
 };
 
+/* SCMI Perf Protocol */
+enum scmi_perf_message_id {
+       SCMI_PERF_DOMAIN_ATTRIBUTES = 0x3,
+       SCMI_PERF_DESCRIBE_LEVELS = 0x4,
+       SCMI_PERF_LIMITS_SET = 0x5,
+       SCMI_PERF_LIMITS_GET = 0x6,
+       SCMI_PERF_LEVEL_SET = 0x7,
+       SCMI_PERF_LEVEL_GET = 0x8
+};
+
+struct scmi_perf_in {
+       u32 domain_id;
+       u32 perf_level;
+};
+
+struct scmi_perf_out {
+       s32 status;
+};
 #endif /* _SCMI_PROTOCOLS_H */