History

firmware: arm_scmi: Add SCMI v3.1 clock notifications

Add SCMI v3.1 clock pre and post notifications.

Cristian Marussi committed 4 years ago

Commit 7aa75491 parent 71bea052 files · +142 −5Browse files

Showing the changes to include (1 of 2 files). Show all

Unified · Split

include/linux/scmi_protocol.h+11−0
@@ -44,6 +44,8 @@ struct scmi_clock_info { · 43 unmodified lines
44 char name[SCMI_MAX_STR_SIZE];44 char name[SCMI_MAX_STR_SIZE];
45 unsigned int enable_latency;45 unsigned int enable_latency;
46 bool rate_discrete;46 bool rate_discrete;
47 bool rate_changed_notifications;
48 bool rate_change_requested_notifications;
47 union {49 union {
48 struct {50 struct {
49 int num_rates;51 int num_rates;
@@ -744,6 +746,8 @@ void scmi_protocol_unregister(const struct scmi_protocol *proto); · 694 unmodified lines
744/* SCMI Notification API - Custom Event Reports */746/* SCMI Notification API - Custom Event Reports */
745enum scmi_notification_events {747enum scmi_notification_events {
746 SCMI_EVENT_POWER_STATE_CHANGED = 0x0,748 SCMI_EVENT_POWER_STATE_CHANGED = 0x0,
749 SCMI_EVENT_CLOCK_RATE_CHANGED = 0x0,
750 SCMI_EVENT_CLOCK_RATE_CHANGE_REQUESTED = 0x1,
747 SCMI_EVENT_PERFORMANCE_LIMITS_CHANGED = 0x0,751 SCMI_EVENT_PERFORMANCE_LIMITS_CHANGED = 0x0,
748 SCMI_EVENT_PERFORMANCE_LEVEL_CHANGED = 0x1,752 SCMI_EVENT_PERFORMANCE_LEVEL_CHANGED = 0x1,
749 SCMI_EVENT_SENSOR_TRIP_POINT_EVENT = 0x0,753 SCMI_EVENT_SENSOR_TRIP_POINT_EVENT = 0x0,
@@ -760,6 +764,13 @@ struct scmi_power_state_changed_report { · 10 unmodified lines
760 unsigned int power_state;764 unsigned int power_state;
761};765};
762 766
767struct scmi_clock_rate_notif_report {
768 ktime_t timestamp;
769 unsigned int agent_id;
770 unsigned int clock_id;
771 unsigned long long rate;
772};
773
763struct scmi_system_power_state_notifier_report {774struct scmi_system_power_state_notifier_report {
764 ktime_t timestamp;775 ktime_t timestamp;
765 unsigned int agent_id;776 unsigned int agent_id;