4c94bc7c | 13-Dec-2019 |
Shawn McCarney <shawnmm@us.ibm.com> |
Create phosphor-regulators application
Create the initial version of the phosphor-regulators application.
Modify the meson.build file to build and install the application.
Signed-off-by: Shawn McC
Create phosphor-regulators application
Create the initial version of the phosphor-regulators application.
Modify the meson.build file to build and install the application.
Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com> Change-Id: I22da7e81f02d401d152d954a254cff3c35c84b73
show more ...
|
6d597737 | 13-Nov-2019 |
Shawn McCarney <shawnmm@us.ibm.com> |
Create regulators IfAction class
Create the IfAction class that implements the "if" action in the JSON config file.
See phosphor-regulators/docs/config_file/if.md for more information on the "if" a
Create regulators IfAction class
Create the IfAction class that implements the "if" action in the JSON config file.
See phosphor-regulators/docs/config_file/if.md for more information on the "if" action.
Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com> Change-Id: I16d5ba7bb88b5baa8a5085168a8bd2dc75449e9b
show more ...
|
d3bbfe29 | 13-Nov-2019 |
Shawn McCarney <shawnmm@us.ibm.com> |
Create regulators OrAction class
Create the OrAction class that implements the "or" action in the JSON config file.
Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com> Change-Id: I6df3da246f03fd0ac4
Create regulators OrAction class
Create the OrAction class that implements the "or" action in the JSON config file.
Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com> Change-Id: I6df3da246f03fd0ac4de16de5ccf1436e3b2d63e
show more ...
|
74538a6d | 13-Nov-2019 |
Shawn McCarney <shawnmm@us.ibm.com> |
Create regulators AndAction class
Create the AndAction class that implements the "and" action in the JSON config file.
Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com> Change-Id: If6f0353c8ac8805
Create regulators AndAction class
Create the AndAction class that implements the "and" action in the JSON config file.
Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com> Change-Id: If6f0353c8ac8805d4db6ad7c6591869fb6c6c0e3
show more ...
|
6aac4148 | 12-Nov-2019 |
Shawn McCarney <shawnmm@us.ibm.com> |
Create regulators NotAction class
Create the NotAction class that implements the "not" action in the JSON config file.
Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com> Change-Id: I2ceb4c4c623ac11
Create regulators NotAction class
Create the NotAction class that implements the "not" action in the JSON config file.
Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com> Change-Id: I2ceb4c4c623ac11f2af5f1eabe5c83244c38d0cf
show more ...
|
8122eee2 | 12-Nov-2019 |
Shawn McCarney <shawnmm@us.ibm.com> |
Only build regulator tests when option enabled
Currently the regulator tests are always built. This causes problems in the Witherspoon SDK because it seems to contain an older, incompatible version
Only build regulator tests when option enabled
Currently the regulator tests are always built. This causes problems in the Witherspoon SDK because it seems to contain an older, incompatible version of gmock.
Modified the regulators meson file to only build the tests if the meson 'tests' option is enabled.
Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com> Change-Id: I5bfe6ee22487085d37832e4b7b0d9f63c8751c0a
show more ...
|
2134ca66 | 11-Nov-2019 |
Shawn McCarney <shawnmm@us.ibm.com> |
Create regulators RunRuleAction class
Create the RunRuleAction class that implements the run_rule action in the JSON config file.
Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com> Change-Id: I382d
Create regulators RunRuleAction class
Create the RunRuleAction class that implements the run_rule action in the JSON config file.
Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com> Change-Id: I382d072f6648f7609b0eb2b4e8a51b7fb18d54db
show more ...
|
9fc08e73 | 07-Nov-2019 |
Shawn McCarney <shawnmm@us.ibm.com> |
Enhance regulators Rule class
Enhance the regulators Rule class by adding a vector of actions and an execute() method.
Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com> Change-Id: I09300b7345110fb
Enhance regulators Rule class
Enhance the regulators Rule class by adding a vector of actions and an execute() method.
Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com> Change-Id: I09300b7345110fbce8b3a794c8f77a8d234ff538
show more ...
|
494ef03a | 07-Nov-2019 |
Shawn McCarney <shawnmm@us.ibm.com> |
Remove circular dependencies in regulator includes
Remove the circular dependencies that currently exist among regulator include files. Add forward declarations in two key includes that cause the i
Remove circular dependencies in regulator includes
Remove the circular dependencies that currently exist among regulator include files. Add forward declarations in two key includes that cause the issue.
This requires the creation of a new source (.cpp) file and as a result a new static library.
Change-Id: Ib136adf0a0cf6b30781b64cfecede0fbd50e13f7 Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com>
show more ...
|
ea7385b8 | 07-Nov-2019 |
Shawn McCarney <shawnmm@us.ibm.com> |
Use C++17 format for nested namespace definitions
Use the new C++17 format for defining nested namespaces in the phosphor-regulators application.
The definition namespace A::B::C { ... }
i
Use C++17 format for nested namespace definitions
Use the new C++17 format for defining nested namespaces in the phosphor-regulators application.
The definition namespace A::B::C { ... }
is now equivalent to namespace A { namespace B { namespace C { ... } } }
Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com> Change-Id: I284055bc94578a45d04d3561f511c0e347a8ecef
show more ...
|
78488f61 | 05-Nov-2019 |
Shawn McCarney <shawnmm@us.ibm.com> |
Create regulators action_utils namespace
Create the action_utils namespace for utility functions related to the regulators action framework.
Create a function in that namespace that executes a vect
Create regulators action_utils namespace
Create the action_utils namespace for utility functions related to the regulators action framework.
Create a function in that namespace that executes a vector of actions.
Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com> Change-Id: I22297435daad0d5f6ad61157c094938f0488f076
show more ...
|
f2aa59d5 | 06-Nov-2019 |
Shawn McCarney <shawnmm@us.ibm.com> |
Replace regulators StubAction with MockAction
Replace the hand-written StubAction class with a gmock-based MockAction class. This is the standard OpenBMC method for stub/mock objects.
Signed-off-b
Replace regulators StubAction with MockAction
Replace the hand-written StubAction class with a gmock-based MockAction class. This is the standard OpenBMC method for stub/mock objects.
Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com> Change-Id: I5a972032b118a40576829a08020cc2ac675520cc
show more ...
|
6b2ebaf7 | 04-Nov-2019 |
Shawn McCarney <shawnmm@us.ibm.com> |
Combine regulator tests into one executable
Combine the regulator tests into one executable to simplify running the tests and maintaining the meson build files.
Signed-off-by: Shawn McCarney <shawn
Combine regulator tests into one executable
Combine the regulator tests into one executable to simplify running the tests and maintaining the meson build files.
Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com> Change-Id: I907a3d6ab5380eacef183d42e41f3b8e40735a99
show more ...
|
623f5a8c | 03-Nov-2019 |
Shawn McCarney <shawnmm@us.ibm.com> |
Create regulators StubAction class
Created the StubAction class to aid in unit testing the phosphor-regulators application. This simple 'stub' will either return a predefined return value or throw
Create regulators StubAction class
Created the StubAction class to aid in unit testing the phosphor-regulators application. This simple 'stub' will either return a predefined return value or throw a predefined exception.
Updated the meson.build file to search for includes in the test tree. This is where stub classes will be located.
Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com> Change-Id: I78030d29f3bc6a94db998c5a1712a3b4a03c3e90
show more ...
|
1e5f993d | 31-Oct-2019 |
Shawn McCarney <shawnmm@us.ibm.com> |
Create regulators SetDeviceAction class
Create the SetDeviceAction class that implements the set_device action in the JSON config file.
Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com> Change-Id:
Create regulators SetDeviceAction class
Create the SetDeviceAction class that implements the set_device action in the JSON config file.
Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com> Change-Id: I31b8fbc144aa2cb2b4b3373fda559b0404d271cb
show more ...
|
7a7a29ec | 31-Oct-2019 |
Shawn McCarney <shawnmm@us.ibm.com> |
Create regulators Action class
Create the Action abstract base class used in the regulators action framework.
Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com> Change-Id: I0acab1d2fb5fa429a7553623
Create regulators Action class
Create the Action abstract base class used in the regulators action framework.
Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com> Change-Id: I0acab1d2fb5fa429a755362304ea8c85a154c58e
show more ...
|
c69a2750 | 30-Oct-2019 |
Shawn McCarney <shawnmm@us.ibm.com> |
Create regulators ActionEnvironment class
Create the ActionEnvironment class used in the regulators action framework.
Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com> Change-Id: I9d5493cd9d3b8594
Create regulators ActionEnvironment class
Create the ActionEnvironment class used in the regulators action framework.
Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com> Change-Id: I9d5493cd9d3b8594076e5a97628b61a152c8c500
show more ...
|
5ea8b552 | 17-Oct-2019 |
Gunnar Mills <gmills@us.ibm.com> |
Update sensor-architecture.md link
sensor-architecture.md is moving under architecture/ as part of https://gerrit.openbmc-project.xyz/c/openbmc/docs/+/26251/
26251 should merge before this is merge
Update sensor-architecture.md link
sensor-architecture.md is moving under architecture/ as part of https://gerrit.openbmc-project.xyz/c/openbmc/docs/+/26251/
26251 should merge before this is merged.
Change-Id: I0e2b6cd45642c12ffb389be830cf89ae552d1ebd Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
show more ...
|
3daeb919 | 28-Oct-2019 |
Shawn McCarney <shawnmm@us.ibm.com> |
Create regulators IDMap class
Create the IDMap class used in the regulators action framework.
Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com> Change-Id: I5bd08df04a4b93ba0ebf5f8648084f79ca7c1a1d |
36d8b7d5 | 28-Oct-2019 |
Shawn McCarney <shawnmm@us.ibm.com> |
Add explicit keyword to regulator constructors
Add the 'explicit' keyword to regulator constructors. This prevents automatic, unintended type promotions from occurring.
Signed-off-by: Shawn McCarn
Add explicit keyword to regulator constructors
Add the 'explicit' keyword to regulator constructors. This prevents automatic, unintended type promotions from occurring.
Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com> Change-Id: Ice9983093114192c33d083b58cf85247d29792a8
show more ...
|
4afb285e | 27-Oct-2019 |
Shawn McCarney <shawnmm@us.ibm.com> |
Conform regulator methods to acronym conventions
Change regulator class methods to conform to OpenBMC capitalization conventions for acronyms.
Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com> Cha
Conform regulator methods to acronym conventions
Change regulator class methods to conform to OpenBMC capitalization conventions for acronyms.
Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com> Change-Id: I1eb5202685796cbc2d45cb6368ee4dbd4706e504
show more ...
|
a2461b34 | 24-Oct-2019 |
Shawn McCarney <shawnmm@us.ibm.com> |
Create stubs for regulator Device, Rail, and Rule
Create stub versions of the Device, Rail, and Rule classes for the phosphor-regulators application. Having a stub version of these classes is a pre
Create stubs for regulator Device, Rail, and Rule
Create stub versions of the Device, Rail, and Rule classes for the phosphor-regulators application. Having a stub version of these classes is a pre-requisite for implementing the action framework.
Also updated the top level meson.build file to build the phosphor-regulators directory. Created new meson.build files for several phosphor-regulators sub-directories.
Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com> Change-Id: I50b018db744191acd1e473652019906a8506745f
show more ...
|
f94b1133 | 07-Oct-2019 |
Shawn McCarney <shawnmm@us.ibm.com> |
Document utility actions in regulator config file
Created documentation for the phosphor-regulators config file. This commit contains documentation for some utility actions.
Signed-off-by: Shawn M
Document utility actions in regulator config file
Created documentation for the phosphor-regulators config file. This commit contains documentation for some utility actions.
Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com> Change-Id: I4f2fab3557bffb6320d3a6f8e656bcf078ceedee
show more ...
|
aebb3ee5 | 07-Oct-2019 |
Shawn McCarney <shawnmm@us.ibm.com> |
Document logic actions in regulator config file
Created documentation for the phosphor-regulators config file. This commit contains documentation for the logic-related actions.
Signed-off-by: Shaw
Document logic actions in regulator config file
Created documentation for the phosphor-regulators config file. This commit contains documentation for the logic-related actions.
Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com> Change-Id: Icef0c1687ef4bb402c6a478d208ff4dc3c0ef67b
show more ...
|
21814349 | 07-Oct-2019 |
Shawn McCarney <shawnmm@us.ibm.com> |
Document PMBus actions in regulator config file
Created documentation for the phosphor-regulators config file. This commit contains documentation for the PMBus-specific actions.
Signed-off-by: Sha
Document PMBus actions in regulator config file
Created documentation for the phosphor-regulators config file. This commit contains documentation for the PMBus-specific actions.
Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com> Change-Id: Iec1b8de2b27b8e0ee26cd6ce8204907c6d89a12f
show more ...
|