commit | 9fb159700f98937bab15a9b056e435ec28600161 | [log] [tgz] |
---|---|---|
author | George Liu <liuxiwei@inspur.com> | Mon Jun 20 14:54:38 2022 +0800 |
committer | George Liu <liuxiwei@inspur.com> | Fri Jun 24 19:56:38 2022 +0800 |
tree | 3f1b883a191dabf9e209c99b158d8c496cba06ed | |
parent | d6a1bae7b7d07e05d658d686ff688d4c5a448e82 [diff] |
logging: switch to lg2 After switching to C++20, it is recommended to use `phosphor::lg2` to format log, and the correct `CODE_LINE` and `CODE_FUNC` values can be used in log tracking. Signed-off-by: George Liu <liuxiwei@inspur.com> Change-Id: I7983e39c9afdd455b21923f860f827cf9a9c257c
Phosphor-buttons has a collection of IO event handler interfaces for physical inputs which are part of OCP front panel.
It defines an individual dbus interface object for each physical button/switch inputs such as power button, reset button etc. Each of this button interfaces monitors it's associated io for event changes and calls the respective event handlers.
In order to monitor a button/input interface the
respective gpio config details should be mentioned in the gpio defs json file - "/etc/default/obmc/gpio/gpio_defs.json"
{ "gpio_definitions": [ { "name": "POWER_BUTTON", "gpio_config" :[ { "pin": "D0", "direction": "both" } ] }, { "name": "RESET_BUTTON", "gpio_config" :[ { "pin": "AB0", "direction": "both" } ] }, { "name" : "HOST_SELECTOR",
"gpio_config" : [ { "pin": "AA4", "direction": "both" }, { "pin": "AA5", "direction": "both" }, { "pin": "AA6", "direction": "both" }, { "pin": "AA7", "direction": "both" } ] },
}