diff options
author | Yong Li <yong.b.li@linux.intel.com> | 2019-07-22 13:45:24 +0300 |
---|---|---|
committer | Yong Li <yong.b.li@linux.intel.com> | 2019-07-22 13:46:08 +0300 |
commit | c919b98060e9c62f00d854922cb74136104d2341 (patch) | |
tree | d9e1c4e3030dda650b74888a888c919823cc1217 /settings | |
parent | f95328843ca04aa746f5bd8585f1d86c2ef84df7 (diff) | |
download | provingground-c919b98060e9c62f00d854922cb74136104d2341.tar.xz |
Add host POH Counter support
Add the 32-bit POHCounter into settings,
it is used to store the host power on hours.
Tested:
Run “Ipmitool chassis poh” command without errors
Change-Id: I97fa8abdc10d72afb57f870a398f5f9abd5830ef
Signed-off-by: Yong Li <yong.b.li@linux.intel.com>
Diffstat (limited to 'settings')
-rw-r--r-- | settings/include/defaults.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/settings/include/defaults.hpp b/settings/include/defaults.hpp index dc81e41..fac801e 100644 --- a/settings/include/defaults.hpp +++ b/settings/include/defaults.hpp @@ -196,6 +196,12 @@ inline void loadSettings(sdbusplus::asio::object_server &objectServer, setting->addProperty("Enabled", true); + setting = &settings.emplace_back(objectServer, + "/xyz/openbmc_project/state/chassis0", + "xyz.openbmc_project.State.PowerOnHours"); + + setting->addProperty("POHCounter", static_cast<uint32_t>(0)); + setting = &settings.emplace_back( objectServer, "/xyz/openbmc_project/control/chassis_capabilities_config", |