summaryrefslogtreecommitdiffstats
path: root/occ_device.hpp
Commit message (Collapse)AuthorAgeFilesLines
* Set OccActive property on application startVishwanatha Subbanna2017-09-261-1/+13
| | | | | | | | | | | | | | | | | | | | | Host sends OCC active status command just once as part of power on operation and when that is sent, occ control application binds the device. As part of bind, a sysfs file gets created that would be used to communicate the occ error status back to user. If occ control application terminates and restarts, then it needs some way to set OccActive property and this commit adds that support. Solution is to check if the device is already bound by checking the presence of the OCC_HWMON_PATH/occ<number>-dev0 and set the property if found Fixes openbmc/openbmc#2238 Change-Id: I920b52e3970cc91af50b5bc68ead44c66eab8944 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* Add I2C OCC support for P8 systemsLei YU2017-08-281-0/+6
| | | | | | | | | | | | | | P8 system uses I2C OCC and it uses different driver for occ-hwmon. Add `--enable-i2c-occ` configure option to enable the support. It searches i2c device names in sysfs to get all occ-hwmon devices and use the i2c device name to bind/unbind the driver. The occ control object path for I2C OCC hwmon becomes something like /org/open_power/control/3_0050, where 3_0050 is the i2c address. Change-Id: I8b9d8d4429c563528dc88fb2679b265c53d7a2d5 Signed-off-by: Lei YU <mine260309@gmail.com>
* Add support to watch for OCC errorsVishwanatha Subbanna2017-07-291-4/+33
| | | | | Change-Id: I98d95020a2d01e281e5c8efa825d6b4bd4c6c160 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* Add Support to do device bind and unbind based on OCC statusVishwanatha Subbanna2017-07-061-0/+79
Fixes openbmc/openbmc#1698 Change-Id: Iaa33c3065b0358b62e3ec7e39d4b57c6b9d181e1 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
OpenPOWER on IntegriCloud