History log of /openbmc/phosphor-power/phosphor-regulators/src/pmbus_utils.hpp (Results 1 – 7 of 7)
Revision Date Author Comments
# 2f9e14f6 29-Apr-2021 Shawn McCarney <shawnmm@us.ibm.com>

regulators: Convert to new SensorType enumeration

There are several types of voltage regulator sensors, such as vout,
iout, and temperature.

The sensor types were previously def

regulators: Convert to new SensorType enumeration

There are several types of voltage regulator sensors, such as vout,
iout, and temperature.

The sensor types were previously defined by the enumeration
pmbus_utils::SensorValueType. This enumeration should not have been
placed in the pmbus_utils namespace because it is not specific to PMBus.

A new enumeration with the simpler name SensorType was created in
sensors.hpp in a previous commit.

Remove the old enumeration from pmbus_utils. Convert affected files to
use the new enumeration.

Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com>
Change-Id: I4136b392b104edd3eee41ec29c779ad084c7c4de

show more ...


# 5135df63 28-Apr-2021 Shawn McCarney <shawnmm@us.ibm.com>

regulators: Remove SensorReading data type

Remove the SensorReading data type defined in pmbus_utils.hpp and used
in several locations. This data type is no longer needed.

The

regulators: Remove SensorReading data type

Remove the SensorReading data type defined in pmbus_utils.hpp and used
in several locations. This data type is no longer needed.

The original design was for sensor readings to be accumulated in the
ActionEnvironment while the PMBus actions were being executed. Then all
the sensor readings for a voltage rail would be published on D-Bus at
the same time.

The current design is for sensor readings to be immediately published on
D-Bus as they are read using the new Sensors service. They no longer
need to be accumulated in the ActionEnvironment.

Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com>
Change-Id: Ib61a07b5a7f58be3e2dae540ffb4d5128636b7c0

show more ...


# b1ab1cf0 18-May-2020 Bob King <Bob_King@wistron.com>

regulators: ActionEnvironment enhancements

Define a new struct named SensorReading. This will be used the store the
value read when PMBusReadSensorAction::execute() is called.

regulators: ActionEnvironment enhancements

Define a new struct named SensorReading. This will be used the store the
value read when PMBusReadSensorAction::execute() is called.

Add a new data member sensorReadings.
This will hold the sensor readings that are obtained

Add a new method addSensorReading.
It add the specified SensorReading to the sensorReadings vector.

Add a new method getSensorReadings.
This will be called by the SensorMonitoring object.

Signed-off-by: Bob King <Bob_King@wistron.com>
Change-Id: I91076227498712750187d354b76faa2d95e33aac

show more ...


# 8d0b3ce2 12-May-2020 Bob King <Bob_King@wistron.com>

regulators: Add convertFromVoutLinear for sensor monitoring

Add convertFromVoutLinear function.
The function is for converting from linear_16 format to a normal
decimal number.

regulators: Add convertFromVoutLinear for sensor monitoring

Add convertFromVoutLinear function.
The function is for converting from linear_16 format to a normal
decimal number.

Signed-off-by: Bob King <Bob_King@wistron.com>
Change-Id: If6e2a0227502a5674f72f93623108dc155e0c99c

show more ...


# 19523dd6 08-May-2020 Bob King <Bob_King@wistron.com>

regulators: Add convertFromLinear for sensor monitoring

Add convertFromLinear function.
The function is for converting from linear_11 format to a normal
decimal number.

Sign

regulators: Add convertFromLinear for sensor monitoring

Add convertFromLinear function.
The function is for converting from linear_11 format to a normal
decimal number.

Signed-off-by: Bob King <Bob_King@wistron.com>
Change-Id: I6bdeaf8e9d9a26ae144c9db3494f758fd9eb48ee

show more ...


# d6820bb8 28-Apr-2020 Bob King <Bob_King@wistron.com>

regulators: Create regulators PMBusReadSensorAction class

Create the PMBusReadSensorAction class that implements the
"pmbus_read_sensor" action in the JSON config file.

Only cre

regulators: Create regulators PMBusReadSensorAction class

Create the PMBusReadSensorAction class that implements the
"pmbus_read_sensor" action in the JSON config file.

Only create the .hpp file for PMBusReadSensorAction class first.

Signed-off-by: Bob King <Bob_King@wistron.com>
Change-Id: I689ad9dbefe601d8962c694e7e1b8b7275ba6880

show more ...


# 6663abf3 29-Feb-2020 Shawn McCarney <shawnmm@us.ibm.com>

regulators: Add PMBus utilities

Create namespace pmbus_utils. This namespace contains utilities for
sending PMBus commands over an I2C interface.

These utilities are needed to

regulators: Add PMBus utilities

Create namespace pmbus_utils. This namespace contains utilities for
sending PMBus commands over an I2C interface.

These utilities are needed to implement the pmbus_write_vout_command and
pmbus_read_sensor actions from the JSON config file.

See pmbus_write_vout_command.md and pmbus_read_sensor.md for more
information on these actions.

Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com>
Change-Id: I2fabca3ac8b9cd8b1f2b462c80feef6b6d7d60e8

show more ...