diff options
author | Sudeep Holla <sudeep.holla@arm.com> | 2016-04-20 14:05:14 +0100 |
---|---|---|
committer | Sudeep Holla <sudeep.holla@arm.com> | 2016-06-21 10:15:56 +0100 |
commit | 37a441dcd5f4db7f769fee50ba7a2c602903a052 (patch) | |
tree | 07481fae5bd7d12d2d88d3421b9bd54677b509da /include/linux/scpi_protocol.h | |
parent | 8f1498c03d1503c8675a633e9f354041558cc459 (diff) | |
download | lwn-37a441dcd5f4db7f769fee50ba7a2c602903a052.tar.gz lwn-37a441dcd5f4db7f769fee50ba7a2c602903a052.zip |
firmware: arm_scpi: add support for device power state management
SCPI protocol supports device power state management. This deals with
power states of various peripheral devices in the system other than the
core compute subsystem.
This patch adds support for the power state management of those
peripheral devices.
Tested-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Tested-by: Jon Medhurst <tixy@linaro.org>
Reviewed-by: Jon Medhurst <tixy@linaro.org>
Reviewed-by: Kevin Hilman <khilman@baylibre.com>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Diffstat (limited to 'include/linux/scpi_protocol.h')
-rw-r--r-- | include/linux/scpi_protocol.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/scpi_protocol.h b/include/linux/scpi_protocol.h index 35de50a65665..dc5f989be226 100644 --- a/include/linux/scpi_protocol.h +++ b/include/linux/scpi_protocol.h @@ -70,6 +70,8 @@ struct scpi_ops { int (*sensor_get_capability)(u16 *sensors); int (*sensor_get_info)(u16 sensor_id, struct scpi_sensor_info *); int (*sensor_get_value)(u16, u64 *); + int (*device_get_power_state)(u16); + int (*device_set_power_state)(u16, u8); }; #if IS_REACHABLE(CONFIG_ARM_SCPI_PROTOCOL) |