hwmon: Add OCC driver polling and parse response
RFC v4 4/6 hwmon: Add OCC driver polling and parse response
From: "Edward A. James" <[email protected]>
Add code to poll the OCC and parse the response. Add all the necessary structures for the P8 OCC.
Signed-off-by Edward A. James <[email protected]>
--- drivers/hwmon/occ/occ_i2c.c | 1 + drivers/hwmon/occ/power8_occ.c | 492 ++++++++++++++++++++++++++++++++++++++++- 2 files changed, 487 insertions(+), 6 deletions(-)
drivers/hwmon/occ/occ_i2c.c +1 -0
@@ -59,6 +59,7 @@ int occ_getscom(void *bus, u32 address, u8 *data, size_t offset)if (rc !=sizeof (u64))return -I2C_READ_ERROR ; +/* TODO: is OCC be or le? */ *((u64 *)data) =le64_to_cpu (buf);return 0 ;
drivers/hwmon/occ/power8_occ.c +486 -6
536 lines not on this page · raw message
Signature · 1 line
1.9.1