commit | f756f8b0cef0acf6af2c20ccbb7b7c0d2bb7536a | [log] [tgz] |
---|---|---|
author | George Liu <liuxiwei@inspur.com> | Wed Jul 06 10:44:28 2022 +0800 |
committer | George Liu <liuxiwei@inspur.com> | Wed Jul 06 10:44:28 2022 +0800 |
tree | f1d7bb0a95a605c770d255bde76ff02a5a510dbd | |
parent | 9fb159700f98937bab15a9b056e435ec28600161 [diff] |
meson: Update LONG_PRESS_TIME_MS According to the needs of each company, the value of LONG_PRESS_TIME_MS should be configurable, so moved to the meson_option.txt file Signed-off-by: George Liu <liuxiwei@inspur.com> Change-Id: I90efafe4ea134ec66ab8eca0b8faf418d97bad1f
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" } ] },
}