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/integer_attrs.json b/oem/ibm/configurations/bios/integer_attrs.json
index 048a093..1d5dcfe 100644
--- a/oem/ibm/configurations/bios/integer_attrs.json
+++ b/oem/ibm/configurations/bios/integer_attrs.json
@@ -79,7 +79,13 @@
"scalar_increment" : 1,
"default_value" : 0,
"helpText" : "Specifies the power limit in watts.",
- "displayName" : "Power Limit In Watts"
+ "displayName" : "Power Limit In Watts",
+ "dbus":{
+ "object_path" : "/xyz/openbmc_project/control/host0/power_cap",
+ "interface" : "xyz.openbmc_project.Control.Power.Cap",
+ "property_type" : "uint32_t",
+ "property_name" : "PowerCap"
+ }
},
{
"attribute_name" : "hb_max_number_huge_pages",