Skip to content

Commit 2264417

Browse files
committed
firmware: arm_scmi: Update protocol commands and notification list
Add commands' enumerations and messages definitions for all existing notify-enable commands across all protocols. Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Jonathan Cameron <[email protected]> Signed-off-by: Sudeep Holla <[email protected]>
1 parent 4ebd8f6 commit 2264417

File tree

4 files changed

+22
-0
lines changed

4 files changed

+22
-0
lines changed

drivers/firmware/arm_scmi/base.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@ enum scmi_base_protocol_cmd {
1414
BASE_DISCOVER_LIST_PROTOCOLS = 0x6,
1515
BASE_DISCOVER_AGENT = 0x7,
1616
BASE_NOTIFY_ERRORS = 0x8,
17+
BASE_SET_DEVICE_PERMISSIONS = 0x9,
18+
BASE_SET_PROTOCOL_PERMISSIONS = 0xa,
19+
BASE_RESET_AGENT_CONFIGURATION = 0xb,
20+
};
21+
22+
enum scmi_base_protocol_notify {
23+
BASE_ERROR_EVENT = 0x0,
1724
};
1825

1926
struct scmi_msg_resp_base_attributes {

drivers/firmware/arm_scmi/perf.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ enum scmi_performance_protocol_cmd {
2727
PERF_DESCRIBE_FASTCHANNEL = 0xb,
2828
};
2929

30+
enum scmi_performance_protocol_notify {
31+
PERFORMANCE_LIMITS_CHANGED = 0x0,
32+
PERFORMANCE_LEVEL_CHANGED = 0x1,
33+
};
34+
3035
struct scmi_opp {
3136
u32 perf;
3237
u32 power;

drivers/firmware/arm_scmi/power.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ enum scmi_power_protocol_cmd {
1212
POWER_STATE_SET = 0x4,
1313
POWER_STATE_GET = 0x5,
1414
POWER_STATE_NOTIFY = 0x6,
15+
POWER_STATE_CHANGE_REQUESTED_NOTIFY = 0x7,
16+
};
17+
18+
enum scmi_power_protocol_notify {
19+
POWER_STATE_CHANGED = 0x0,
20+
POWER_STATE_CHANGE_REQUESTED = 0x1,
1521
};
1622

1723
struct scmi_msg_resp_power_attributes {

drivers/firmware/arm_scmi/sensors.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ enum scmi_sensor_protocol_cmd {
1414
SENSOR_READING_GET = 0x6,
1515
};
1616

17+
enum scmi_sensor_protocol_notify {
18+
SENSOR_TRIP_POINT_EVENT = 0x0,
19+
};
20+
1721
struct scmi_msg_resp_sensor_attributes {
1822
__le16 num_sensors;
1923
u8 max_requests;

0 commit comments

Comments
 (0)