commit | d6a1bae7b7d07e05d658d686ff688d4c5a448e82 | [log] [tgz] |
---|---|---|
author | George Liu <liuxiwei@inspur.com> | Mon Jun 20 13:47:31 2022 +0800 |
committer | George Liu <liuxiwei@inspur.com> | Fri Jun 24 19:54:34 2022 +0800 |
tree | 958711d1f8382a2d45b585d1f9af73b2065e313c | |
parent | dd225382761d4952ff77bb573be3d1a2707b0581 [diff] |
meson: Add meson build The intent behind this commit is build obmc-phosphor-buttons with meson, and then remove files related to cmake. Signed-off-by: George Liu <liuxiwei@inspur.com> Change-Id: Iedf8c49224032e016fed3471e6e41f6055b09065
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" } ] },
}