Add SCMI v3.1 clock pre and post notifications.
Showing the changes to include (1 of 2 files). Show all
Unified · Split
| @@ -44,6 +44,8 @@ struct scmi_clock_info { · 43 unmodified lines | ||
| 44 | 44 | char name[SCMI_MAX_STR_SIZE]; |
| 45 | 45 | unsigned int enable_latency; |
| 46 | 46 | bool rate_discrete; |
| 47 | + bool rate_changed_notifications; | |
| 48 | + bool rate_change_requested_notifications; | |
| 47 | 49 | union { |
| 48 | 50 | struct { |
| 49 | 51 | int num_rates; |
| @@ -744,6 +746,8 @@ void scmi_protocol_unregister(const struct scmi_protocol *proto); · 694 unmodified lines | ||
| 744 | 746 | /* SCMI Notification API - Custom Event Reports */ |
| 745 | 747 | enum scmi_notification_events { |
| 746 | 748 | SCMI_EVENT_POWER_STATE_CHANGED = 0x0, |
| 749 | + SCMI_EVENT_CLOCK_RATE_CHANGED = 0x0, | |
| 750 | + SCMI_EVENT_CLOCK_RATE_CHANGE_REQUESTED = 0x1, | |
| 747 | 751 | SCMI_EVENT_PERFORMANCE_LIMITS_CHANGED = 0x0, |
| 748 | 752 | SCMI_EVENT_PERFORMANCE_LEVEL_CHANGED = 0x1, |
| 749 | 753 | SCMI_EVENT_SENSOR_TRIP_POINT_EVENT = 0x0, |
| @@ -760,6 +764,13 @@ struct scmi_power_state_changed_report { · 10 unmodified lines | ||
| 760 | 764 | unsigned int power_state; |
| 761 | 765 | }; |
| 762 | 766 | |
| 767 | +struct 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 | + | |
| 763 | 774 | struct scmi_system_power_state_notifier_report { |
| 764 | 775 | ktime_t timestamp; |
| 765 | 776 | unsigned int agent_id; |