Skip to content

Commit

Permalink
firmware: arm_scmi: Update protocol commands and notification list
Browse files Browse the repository at this point in the history
Add commands' enumerations and messages definitions for all existing
notify-enable commands across all protocols.

Link: https://lore.kernel.org/r/20200327143438.5382-3-cristian.marussi@arm.com
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
  • Loading branch information
Sudeep Holla committed Apr 14, 2020
1 parent 4ebd8f6 commit 2264417
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
7 changes: 7 additions & 0 deletions drivers/firmware/arm_scmi/base.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ enum scmi_base_protocol_cmd {
BASE_DISCOVER_LIST_PROTOCOLS = 0x6,
BASE_DISCOVER_AGENT = 0x7,
BASE_NOTIFY_ERRORS = 0x8,
BASE_SET_DEVICE_PERMISSIONS = 0x9,
BASE_SET_PROTOCOL_PERMISSIONS = 0xa,
BASE_RESET_AGENT_CONFIGURATION = 0xb,
};

enum scmi_base_protocol_notify {
BASE_ERROR_EVENT = 0x0,
};

struct scmi_msg_resp_base_attributes {
Expand Down
5 changes: 5 additions & 0 deletions drivers/firmware/arm_scmi/perf.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ enum scmi_performance_protocol_cmd {
PERF_DESCRIBE_FASTCHANNEL = 0xb,
};

enum scmi_performance_protocol_notify {
PERFORMANCE_LIMITS_CHANGED = 0x0,
PERFORMANCE_LEVEL_CHANGED = 0x1,
};

struct scmi_opp {
u32 perf;
u32 power;
Expand Down
6 changes: 6 additions & 0 deletions drivers/firmware/arm_scmi/power.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ enum scmi_power_protocol_cmd {
POWER_STATE_SET = 0x4,
POWER_STATE_GET = 0x5,
POWER_STATE_NOTIFY = 0x6,
POWER_STATE_CHANGE_REQUESTED_NOTIFY = 0x7,
};

enum scmi_power_protocol_notify {
POWER_STATE_CHANGED = 0x0,
POWER_STATE_CHANGE_REQUESTED = 0x1,
};

struct scmi_msg_resp_power_attributes {
Expand Down
4 changes: 4 additions & 0 deletions drivers/firmware/arm_scmi/sensors.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ enum scmi_sensor_protocol_cmd {
SENSOR_READING_GET = 0x6,
};

enum scmi_sensor_protocol_notify {
SENSOR_TRIP_POINT_EVENT = 0x0,
};

struct scmi_msg_resp_sensor_attributes {
__le16 num_sensors;
u8 max_requests;
Expand Down

0 comments on commit 2264417

Please sign in to comment.