commit | dd225382761d4952ff77bb573be3d1a2707b0581 | [log] [tgz] |
---|---|---|
author | George Liu <liuxiwei@inspur.com> | Mon Jun 20 14:15:52 2022 +0800 |
committer | George Liu <liuxiwei@inspur.com> | Fri Jun 24 19:54:34 2022 +0800 |
tree | ebc65c999dc7b3037c09d60b62b23e3358bfb892 | |
parent | 1efa3e2969262594457441acc612216dd1e2e7e7 [diff] |
meson: Add subprojects file Signed-off-by: George Liu <liuxiwei@inspur.com> Change-Id: I10c3565f225cab63fe6834280aefbce1385a0df0
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" } ] },
}