mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
firmware: arm_scmi: Add SCMI v3.1 clock notifications
Add SCMI v3.1 clock pre and post notifications. Link: https://lore.kernel.org/r/20220330150551.2573938-20-cristian.marussi@arm.com Signed-off-by: Cristian Marussi <cristian.marussi@arm.com> Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
This commit is contained in:
parent
71bea05797
commit
7aa75496ea
2 changed files with 142 additions and 5 deletions
|
@ -44,6 +44,8 @@ struct scmi_clock_info {
|
|||
char name[SCMI_MAX_STR_SIZE];
|
||||
unsigned int enable_latency;
|
||||
bool rate_discrete;
|
||||
bool rate_changed_notifications;
|
||||
bool rate_change_requested_notifications;
|
||||
union {
|
||||
struct {
|
||||
int num_rates;
|
||||
|
@ -744,6 +746,8 @@ void scmi_protocol_unregister(const struct scmi_protocol *proto);
|
|||
/* SCMI Notification API - Custom Event Reports */
|
||||
enum scmi_notification_events {
|
||||
SCMI_EVENT_POWER_STATE_CHANGED = 0x0,
|
||||
SCMI_EVENT_CLOCK_RATE_CHANGED = 0x0,
|
||||
SCMI_EVENT_CLOCK_RATE_CHANGE_REQUESTED = 0x1,
|
||||
SCMI_EVENT_PERFORMANCE_LIMITS_CHANGED = 0x0,
|
||||
SCMI_EVENT_PERFORMANCE_LEVEL_CHANGED = 0x1,
|
||||
SCMI_EVENT_SENSOR_TRIP_POINT_EVENT = 0x0,
|
||||
|
@ -760,6 +764,13 @@ struct scmi_power_state_changed_report {
|
|||
unsigned int power_state;
|
||||
};
|
||||
|
||||
struct scmi_clock_rate_notif_report {
|
||||
ktime_t timestamp;
|
||||
unsigned int agent_id;
|
||||
unsigned int clock_id;
|
||||
unsigned long long rate;
|
||||
};
|
||||
|
||||
struct scmi_system_power_state_notifier_report {
|
||||
ktime_t timestamp;
|
||||
unsigned int agent_id;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue