Update to get PSU Asset information from parsing JSON file

The purpose is to support multiple PMBus device drivers, so need to
flexibly read the required PSU asset information attribute from the
configuration file (/usr/share/phosphor-power/psu.json)
and update D-BUS.

Tested: Update phosphor-power_git.bb and add the
psu.json. The psu-monitor process runs normally and can obtain the
asset information of PSU via D-BUS and REST command.

Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: I780172724a397384c9fe3870e2e847580d131e72
4 files changed
tree: e1a92ac7dcbc572c913af1ccceff756023e249c4
  1. example/
  2. org/
  3. power-sequencer/
  4. power-supply/
  5. test/
  6. .clang-format
  7. .gitignore
  8. argument.hpp
  9. device.hpp
  10. device_monitor.hpp
  11. elog-errors.hpp
  12. file.hpp
  13. gpio.cpp
  14. gpio.hpp
  15. LICENSE
  16. MAINTAINERS
  17. meson.build
  18. meson_options.txt
  19. names_values.hpp
  20. pmbus.cpp
  21. pmbus.hpp
  22. README.md
  23. utility.cpp
  24. utility.hpp
README.md

Code for detecting and analyzing power faults on Witherspoon.

To Build

To build this package, do the following steps:

    1. meson build
    2. ninja -C build

To clean the repository again run `rm -rf build`.