Searched hist:"510 acaabb36ab8a2328e5185e022a7affcc0ddc4" (Results 1 – 5 of 5) sorted by relevance
/openbmc/phosphor-power/phosphor-power-supply/test/ |
H A D | power_supply_tests.cpp | diff 510acaabb36ab8a2328e5185e022a7affcc0ddc4 Thu Nov 05 18:32:04 CST 2020 Brandon Wyman <bjwyman@gmail.com> psu-ng: Add method to get PSU conf from D-Bus.
Add a getPSUProperties method that will get the power supply unit configuration information from the D-Bus properties populated by entity-manager. The IBM common form factor power supplies will have these properties under the interface called xyz.openbmc_project.Configuration.IBMCFFPSConnector. See I45b724238cffe6fb7f1f8f9947fa1c2c9e9e8015 for changes to add the necessary updates to entity-manager.
The D-Bus property for I2CAddress is a uint64_t type, while the JSON configuration file had a string. Move the PowerSupply constructor to the cpp file, updated to take in uint16_t for the i2caddr.
Update PSUManager::getJSONProperties() to convert Address from string to uint16_t.
Add in a PSUManager constructor to use the getPSUProperties() function.
Add code to handle interfacesAdded from entity-manager prior to getPSUProperties() or getSystemProperties().
Signed-off-by: Brandon Wyman <bjwyman@gmail.com> Change-Id: I553e8982cf008828823cea2c0f017ff23c9070ab
|
/openbmc/phosphor-power/phosphor-power-supply/ |
H A D | psu_manager.hpp | diff 510acaabb36ab8a2328e5185e022a7affcc0ddc4 Thu Nov 05 18:32:04 CST 2020 Brandon Wyman <bjwyman@gmail.com> psu-ng: Add method to get PSU conf from D-Bus.
Add a getPSUProperties method that will get the power supply unit configuration information from the D-Bus properties populated by entity-manager. The IBM common form factor power supplies will have these properties under the interface called xyz.openbmc_project.Configuration.IBMCFFPSConnector. See I45b724238cffe6fb7f1f8f9947fa1c2c9e9e8015 for changes to add the necessary updates to entity-manager.
The D-Bus property for I2CAddress is a uint64_t type, while the JSON configuration file had a string. Move the PowerSupply constructor to the cpp file, updated to take in uint16_t for the i2caddr.
Update PSUManager::getJSONProperties() to convert Address from string to uint16_t.
Add in a PSUManager constructor to use the getPSUProperties() function.
Add code to handle interfacesAdded from entity-manager prior to getPSUProperties() or getSystemProperties().
Signed-off-by: Brandon Wyman <bjwyman@gmail.com> Change-Id: I553e8982cf008828823cea2c0f017ff23c9070ab
|
H A D | power_supply.hpp | diff 510acaabb36ab8a2328e5185e022a7affcc0ddc4 Thu Nov 05 18:32:04 CST 2020 Brandon Wyman <bjwyman@gmail.com> psu-ng: Add method to get PSU conf from D-Bus.
Add a getPSUProperties method that will get the power supply unit configuration information from the D-Bus properties populated by entity-manager. The IBM common form factor power supplies will have these properties under the interface called xyz.openbmc_project.Configuration.IBMCFFPSConnector. See I45b724238cffe6fb7f1f8f9947fa1c2c9e9e8015 for changes to add the necessary updates to entity-manager.
The D-Bus property for I2CAddress is a uint64_t type, while the JSON configuration file had a string. Move the PowerSupply constructor to the cpp file, updated to take in uint16_t for the i2caddr.
Update PSUManager::getJSONProperties() to convert Address from string to uint16_t.
Add in a PSUManager constructor to use the getPSUProperties() function.
Add code to handle interfacesAdded from entity-manager prior to getPSUProperties() or getSystemProperties().
Signed-off-by: Brandon Wyman <bjwyman@gmail.com> Change-Id: I553e8982cf008828823cea2c0f017ff23c9070ab
|
H A D | power_supply.cpp | diff 510acaabb36ab8a2328e5185e022a7affcc0ddc4 Thu Nov 05 18:32:04 CST 2020 Brandon Wyman <bjwyman@gmail.com> psu-ng: Add method to get PSU conf from D-Bus.
Add a getPSUProperties method that will get the power supply unit configuration information from the D-Bus properties populated by entity-manager. The IBM common form factor power supplies will have these properties under the interface called xyz.openbmc_project.Configuration.IBMCFFPSConnector. See I45b724238cffe6fb7f1f8f9947fa1c2c9e9e8015 for changes to add the necessary updates to entity-manager.
The D-Bus property for I2CAddress is a uint64_t type, while the JSON configuration file had a string. Move the PowerSupply constructor to the cpp file, updated to take in uint16_t for the i2caddr.
Update PSUManager::getJSONProperties() to convert Address from string to uint16_t.
Add in a PSUManager constructor to use the getPSUProperties() function.
Add code to handle interfacesAdded from entity-manager prior to getPSUProperties() or getSystemProperties().
Signed-off-by: Brandon Wyman <bjwyman@gmail.com> Change-Id: I553e8982cf008828823cea2c0f017ff23c9070ab
|
H A D | psu_manager.cpp | diff 510acaabb36ab8a2328e5185e022a7affcc0ddc4 Thu Nov 05 18:32:04 CST 2020 Brandon Wyman <bjwyman@gmail.com> psu-ng: Add method to get PSU conf from D-Bus.
Add a getPSUProperties method that will get the power supply unit configuration information from the D-Bus properties populated by entity-manager. The IBM common form factor power supplies will have these properties under the interface called xyz.openbmc_project.Configuration.IBMCFFPSConnector. See I45b724238cffe6fb7f1f8f9947fa1c2c9e9e8015 for changes to add the necessary updates to entity-manager.
The D-Bus property for I2CAddress is a uint64_t type, while the JSON configuration file had a string. Move the PowerSupply constructor to the cpp file, updated to take in uint16_t for the i2caddr.
Update PSUManager::getJSONProperties() to convert Address from string to uint16_t.
Add in a PSUManager constructor to use the getPSUProperties() function.
Add code to handle interfacesAdded from entity-manager prior to getPSUProperties() or getSystemProperties().
Signed-off-by: Brandon Wyman <bjwyman@gmail.com> Change-Id: I553e8982cf008828823cea2c0f017ff23c9070ab
|