diff options
author | Sudeep Holla <sudeep.holla@arm.com> | 2017-06-06 12:22:51 +0200 |
---|---|---|
committer | Sudeep Holla <sudeep.holla@arm.com> | 2018-02-28 17:37:57 +0100 |
commit | a9e3fbfaa0ff885aacafe6f33e72448a2993d072 (patch) | |
tree | 9812dade5ac31beb5516084debf183e79b59062e /drivers/firmware/arm_scmi/common.h | |
parent | firmware: arm_scmi: add scmi protocol bus to enumerate protocol devices (diff) | |
download | linux-a9e3fbfaa0ff885aacafe6f33e72448a2993d072.tar.xz linux-a9e3fbfaa0ff885aacafe6f33e72448a2993d072.zip |
firmware: arm_scmi: add initial support for performance protocol
The performance protocol is intended for the performance management of
group(s) of device(s) that run in the same performance domain. It
includes even the CPUs. A performance domain is defined by a set of
devices that always have to run at the same performance level.
For example, a set of CPUs that share a voltage domain, and have a
common frequency control, is said to be in the same performance domain.
The commands in this protocol provide functionality to describe the
protocol version, describe various attribute flags, set and get the
performance level of a domain. It also supports discovery of the list
of performance levels supported by a performance domain, and the
properties of each performance level.
This patch adds basic support for the performance protocol.
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Diffstat (limited to 'drivers/firmware/arm_scmi/common.h')
-rw-r--r-- | drivers/firmware/arm_scmi/common.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/firmware/arm_scmi/common.h b/drivers/firmware/arm_scmi/common.h index 95053ed5ccb9..0c30234f9098 100644 --- a/drivers/firmware/arm_scmi/common.h +++ b/drivers/firmware/arm_scmi/common.h @@ -19,6 +19,7 @@ #define PROTOCOL_REV_MAJOR(x) ((x) >> PROTOCOL_REV_MINOR_BITS) #define PROTOCOL_REV_MINOR(x) ((x) & PROTOCOL_REV_MINOR_MASK) #define MAX_PROTOCOLS_IMP 16 +#define MAX_OPPS 16 enum scmi_common_cmd { PROTOCOL_VERSION = 0x0, |