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
2 files changed
tree: f1d7bb0a95a605c770d255bde76ff02a5a510dbd
  1. inc/
  2. service_files/
  3. src/
  4. subprojects/
  5. .clang-format
  6. .gitignore
  7. LICENSE
  8. MAINTAINERS
  9. meson.build
  10. meson_options.txt
  11. OWNERS
  12. README.md
README.md

phosphor-buttons

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.

Gpio defs config

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"

  1. The button interface type name.
  2. An array consists of single or multiple gpio configs associated with the specific button interface.

example gpio def Json config

{ "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"
        }
        ]
    },

}