commit | ba33275d9fbf89bdaa75c241b87b5520bb54c440 | [log] [tgz] |
---|---|---|
author | George Liu <liuxiwei@inspur.com> | Thu Jul 07 13:31:40 2022 +0800 |
committer | George Liu <liuxiwei@inspur.com> | Thu Jul 07 13:43:04 2022 +0800 |
tree | e39ce367f83838aa7f0362e9145d32d32f938a3f | |
parent | f756f8b0cef0acf6af2c20ccbb7b7c0d2bb7536a [diff] |
Fix meson build Since the previous patch did not enable LOOKUP_GPIO_BASE and incorrectly defined the object path, etc., the buttons process failed to start, this commit fixes these problems Signed-off-by: George Liu <liuxiwei@inspur.com> Change-Id: I0285795370d751db2d0fe738cae5645df3d7c955
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" } ] },
}