summaryrefslogtreecommitdiffstats
path: root/i2c_occ.hpp
diff options
context:
space:
mode:
authorLei YU <mine260309@gmail.com>2017-11-30 16:03:50 +0800
committerLei YU <mine260309@gmail.com>2017-12-12 17:09:02 +0800
commit41470e56e5dce5d9d138fd2a136f0010571bc613 (patch)
treee414217104ad36ec1000dfe8a6fb7e6dd107c438 /i2c_occ.hpp
parent482e31ff8e43e0fefbd697b1985795c4d35eec74 (diff)
downloadopenpower-occ-control-41470e56e5dce5d9d138fd2a136f0010571bc613.tar.gz
openpower-occ-control-41470e56e5dce5d9d138fd2a136f0010571bc613.zip
Powercap: add p8 support
P8 uses i2c-occ and powercap is not created. Add P8 support by creating powercap object with i2c device name. Fixes openbmc/openbmc#2688 Change-Id: Ia63070d63f4392cc4b084ab628cdbdcf4206c883 Signed-off-by: Lei YU <mine260309@gmail.com>
Diffstat (limited to 'i2c_occ.hpp')
-rw-r--r--i2c_occ.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/i2c_occ.hpp b/i2c_occ.hpp
index 31b6721..66dc12c 100644
--- a/i2c_occ.hpp
+++ b/i2c_occ.hpp
@@ -31,6 +31,7 @@ std::string getFileContent(const fs::path& f);
* @param[in] path - The path to search
*
* @return A vector of strings containing the occ hwmon device path
+ where the first device is master occ
*/
std::vector<std::string> getOccHwmonDevices(const char* path);
OpenPOWER on IntegriCloud