oem_ibm : Sync power bios attribues to dbus
1. Map PowerCapEnable dbus property to hb_power_limit_enable
2. Map PowerCap dbus property to hb_power_limit_in_watts
Signed-off-by: Manojkiran Eda <manojkiran.eda@gmail.com>
Change-Id: I99dbc067c743c7b9a9a73c92e72975af05310dac
diff --git a/oem/ibm/configurations/bios/enum_attrs.json b/oem/ibm/configurations/bios/enum_attrs.json
index 175fda3..d66f01d 100644
--- a/oem/ibm/configurations/bios/enum_attrs.json
+++ b/oem/ibm/configurations/bios/enum_attrs.json
@@ -335,7 +335,15 @@
"Disabled"
],
"helpText" : "Specifies whether the power limit is enabled.",
- "displayName" : "Power Limit Enable"
+ "displayName" : "Power Limit Enable",
+ "dbus":
+ {
+ "object_path" : "/xyz/openbmc_project/control/host0/power_cap",
+ "interface" : "xyz.openbmc_project.Control.Power.Cap",
+ "property_name" : "PowerCapEnable",
+ "property_type" : "bool",
+ "property_values" : [true, false]
+ }
},
{
"attribute_name":"hb_secure_ver_lockin_enabled",