diff options
author | Shilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com> | 2017-12-15 12:51:00 +0530 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2018-02-21 11:58:19 +1100 |
commit | fa3494602a3e3effe9f222193453d67ccc0c0606 (patch) | |
tree | 730c36fc14fb245578927ca98f11287a16833cde /platforms/ibm-fsp/common.c | |
parent | 7f4c8e8ce0b78ca046643d7f4f63d81f4fd11746 (diff) | |
download | skiboot-fa3494602a3e3effe9f222193453d67ccc0c0606.zip skiboot-fa3494602a3e3effe9f222193453d67ccc0c0606.tar.gz skiboot-fa3494602a3e3effe9f222193453d67ccc0c0606.tar.bz2 |
sensors: Support reading u64 sensor values
This patch adds support to read u64 sensor values. This also adds
changes to the core and the backend implementation code to make this
API as the base call. Host can use this new API to read sensors
upto 64bits.
This adds a list to store the pointer to the kernel u32 buffer, for
older kernels making async sensor u32 reads.
Signed-off-by: Shilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'platforms/ibm-fsp/common.c')
-rw-r--r-- | platforms/ibm-fsp/common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platforms/ibm-fsp/common.c b/platforms/ibm-fsp/common.c index e916c39..87afbb6 100644 --- a/platforms/ibm-fsp/common.c +++ b/platforms/ibm-fsp/common.c @@ -230,7 +230,7 @@ int64_t ibm_fsp_cec_power_down(uint64_t request) } int64_t ibm_fsp_sensor_read(uint32_t sensor_hndl, int token, - uint32_t *sensor_data) + uint64_t *sensor_data) { return fsp_opal_read_sensor(sensor_hndl, token, sensor_data); } |