commit | 5b98f4db0ed7c0d17023593a36dc9faf8377eb46 | [log] [tgz] |
---|---|---|
author | George Liu <liuxiwei@inspur.com> | Mon Jun 20 13:31:14 2022 +0800 |
committer | George Liu <liuxiwei@inspur.com> | Tue Jun 21 12:47:32 2022 +0800 |
tree | e554d96bcabaec9ff1a300db6446aa01ddac5e9b | |
parent | 8eca9bb6fee53d3a95c4a955877086ddcd09ff37 [diff] |
Update clang-format Refer:https://github.com/openbmc/docs/blob/ac5d544553934f8083c61c5986a1420261bc8a4c/style/cpp/.clang-format Signed-off-by: George Liu <liuxiwei@inspur.com> Change-Id: I593ddf950d14009ab77251fd6d3f248214661765
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" } ] },
}